ignore-value: Fix self-test.
[gnulib.git] / ChangeLog
1 2011-01-30  Simon Josefsson  <simon@josefsson.org>
2
3         ignore-value: Fix self-test.
4         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5
6 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7
8         TYPE_MAXIMUM: avoid theoretically undefined behavior
9         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10         negative number, which the C Standard says has undefined behavior.
11         In practice this is not a problem, but might as well do it by the book.
12         Reported by Rich Felker and Eric Blake; see
13         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
18         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20
21         mktime: #undef mktime before #defining it
22         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23
24         mktime: systematically normalize tm_isdst comparisons
25         * lib/mktime.c (isdst_differ): New function.
26         (__mktime_internal): Use it systematically for all isdst comparisons.
27         This completes the fix for libc BZ #6723, and removes the need for
28         normalizing tm_isdst.  See
29         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
30         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
31
32         mktime: fix some integer overflow issues and sidestep the rest
33
34         This was prompted by a bug report by Benjamin Lindner for MinGW
35         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
36         His bug is due to signed integer overflow (0 - INT_MIN), and I
37         I scanned through mktime.c looking for other integer overflow
38         problems, fixing all the bugs I found.
39
40         Although the C Standard says the resulting code is still not safe
41         in the presence of integer overflow, in practice it should be good
42         enough for all real-world two's-complement implementations, except
43         for debugging environments that deliberately trap on integer
44         overflow (e.g., gcc -ftrapv).
45
46         * lib/mktime.c (WRAPV): New macro.
47         (SHR): Also check that long_int and time_t shift right in the
48         usual way, before using the fast-but-unportable method.
49         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
50         used.  The code already assumed two's complement, so there's
51         no need to test for alternatives.  All uses removed.
52         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
53         the C standard.  Problem reported by Rich Felker in
54         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
55         (twos_complement_arithmetic): Also check long_int and time_t.
56         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
57         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
58         (__mktime_internal): Avoid integer overflow with unary subtraction
59         in two instances where -1 - X is an adequate replacement for -X,
60         since the calculations are approximate.
61
62 2011-01-29  Eric Blake  <eblake@redhat.com>
63
64         mktime: avoid infinite loop
65         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
66         type; behavior is still undefined but portable to all known targets.
67         Reported by Rich Felker.
68
69 2011-01-29  Simon Josefsson  <simon@josefsson.org>
70
71         rename, unlink, same-inode: Relicense.
72         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
73         * modules/unlink (License): Likewise.
74         * modules/same-inode (License): Likewise.
75
76 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77
78         mktime: avoid problems on NetBSD 5 / i386
79         * lib/mktime.c (long_int): New type.  This works around a problem
80         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
81         but time_t is 64 bits, and where I expect the existing code is
82         wrong in some cases.
83         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
84         (ydhms_diff): Bring back the compile-time check for wide-enough
85         year and yday.
86
87         mktime: fix misspelling in comment
88         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
89         This merges all recent glibc changes of importance.
90
91 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92
93         move-if-change: cope with concurrent mv of identical file.
94         * build-aux/move-if-change (CMPPROG): Accept environment
95         variable as an override for `cmp'.
96         (usage): Document CMPPROG.
97         Adjust comparison to drop stdout.  Cope with failure of mv if
98         the target file exists and is identical to the source, for
99         parallel builds.
100         Report from H.J. Lu against binutils in PR binutils/12283.
101
102 2011-01-28  Bruce Korb  <bkorb@gnu.org>
103
104         * users.txt: Mention sharutils.
105
106 2011-01-28  Simon Josefsson  <simon@josefsson.org>
107
108         * users.txt: Mention OATH Toolkit.
109
110 2011-01-27  Bruno Haible  <bruno@clisp.org>
111
112         Prepare for supporting FreeBSD 10.
113         * build-aux/config.libpath: Remove handling of freebsd1*.
114
115 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
116
117         Prepare for supporting FreeBSD 10.
118         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
119         match FreeBSD 10.0.
120
121 2011-01-27  Bruno Haible  <bruno@clisp.org>
122
123         vma-iter, get-rusage-as: Add OpenBSD support.
124         * modules/vma-iter (configure.ac): Test for mquery.
125         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
126         * lib/vma-iter.c: Include <sys/mman.h>.
127         (vma_iterate): Add an implementation based on mquery().
128         * lib/resource-ext.h (get_rusage_as): Update comments.
129         * lib/get-rusage-as.c: Likewise.
130         * lib/get-rusage-data.c: Likewise.
131
132 2011-01-26  Karl Berry  <karl@gnu.org>
133
134         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
135         variables to make it easier to override the makeinfo program used.
136
137 2011-01-26  Eric Blake  <eblake@redhat.com>
138
139         fcntl: work around Haiku F_DUPFD bugs
140         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
141         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
142         cloexec bit on duplication.
143         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
144
145 2011-01-26  Bruno Haible  <bruno@clisp.org>
146
147         Enable memory leak tests on AIX.
148         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
149         * tests/test-fprintf-posix3.c (main): Likewise.
150
151 2011-01-26  Bruno Haible  <bruno@clisp.org>
152
153         Tests for module 'get-rusage-data'.
154         * modules/get-rusage-data-tests: New file.
155         * tests/test-get-rusage-data.c: New file.
156
157         New module 'get-rusage-data'.
158         * lib/resource-ext.h (get_rusage_data): New declaration.
159         * lib/get-rusage-data.c: New file.
160         * modules/get-rusage-data: New file.
161
162 2011-01-25  Bruno Haible  <bruno@clisp.org>
163
164         get-rusage-as: Allow for easier testing.
165         * lib/resource-ext.h (get_rusage_as): Add comment.
166         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
167         (main): New function for interactive testing.
168
169 2011-01-25  Bruno Haible  <bruno@clisp.org>
170
171         vma-iter: Treat Haiku like BeOS.
172         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
173         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
174
175 2011-01-25  Eric Blake  <eblake@redhat.com>
176
177         c-stack: fix regression on cygwin when libsigsegv is present
178         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
179
180 2011-01-24  Bruno Haible  <bruno@clisp.org>
181
182         vma-iter: Avoid empty intervals.
183         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
184         on an empty interval.
185
186 2011-01-24  Jim Meyering  <meyering@redhat.com>
187
188         u64: remove unnecessary #include
189         * lib/u64.h: Don't include <stddef.h>.  It was not used.
190
191 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
192
193         Allow the user to avoid the GNULIB_TEST_* macros.
194         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
195
196 2011-01-23  Bruno Haible  <bruno@clisp.org>
197
198         New module 'vma-iter'.
199         * lib/vma-iter.h: New file.
200         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
201         * modules/vma-iter: New file.
202         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
203         for get_rusage_as_via_iterator.
204         (vma_iterate_callback): New function.
205         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
206         * modules/get-rusage-as (Depends-on): Add vma-iter.
207
208 2011-01-23  Bruno Haible  <bruno@clisp.org>
209
210         uninorm: Tweak includes.
211         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
212         Reported by Jim Meyering.
213
214 2011-01-23  Bruno Haible  <bruno@clisp.org>
215
216         get-rusage-as: Improve on NetBSD.
217         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
218         /proc, like on FreeBSD.
219
220 2011-01-23  Jim Meyering  <meyering@redhat.com>
221
222         xreadlink.h: remove unnecessary #include
223         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
224
225         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
226         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
227
228 2011-01-23  Bruno Haible  <bruno@clisp.org>
229
230         get-rusage-as: Fix bug.
231         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
232         original limit when aborting the first loop.
233
234 2011-01-23  Bruno Haible  <bruno@clisp.org>
235
236         wctype: Ensure valid C syntax.
237         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
238         unconditionally, instead of gl_NEXT_HEADERS conditionally.
239
240 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
241
242         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
244         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
245         as they are needed only for configure's test case.
246         This removes two unnecessary symbols from config.h.
247
248         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
249         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
251         AC_CHECK_HEADERS_ONCE on a header that we also invoke
252         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
253         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
254         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
255         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
256         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
257         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
258         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
260         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
261         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
262         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
263         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
264         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
265         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
266
267 2011-01-21  Eric Blake  <eblake@redhat.com>
268
269         maintainer-makefile: work with older git for submodule check
270         * top/maint.mk (public-submodule-commit): Rewrite to avoid
271         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
272         Reported by Matthias Bolte.
273
274         bootstrap: minor portability fixes
275         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
276         (usage): Omit leading capital and trailing . on help phrases, per
277         GNU Coding Standards.
278         (check_versions, top level): Prefix messages with script name.
279
280 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
281
282         bootstrap: support --no-git option
283         * build-aux/bootstrap: Add --no-git option, to be used when
284         --gnulib-srcdir points to the exact desired checkout.
285
286 2011-01-21  Eric Blake  <eblake@redhat.com>
287
288         strerror_r-posix: work with glibc 2.13
289         * lib/strerror_r.c (strerror_r): Fix return type.
290
291 2011-01-21  Pádraig Brady  <P@draigBrady.com>
292             Bruno Haible  <bruno@clisp.org>
293
294         uN_strstr: New unit tests.
295         * modules/unistr/u8-strstr-tests: New file.
296         * modules/unistr/u16-strstr-tests: New file.
297         * modules/unistr/u32-strstr-tests: New file.
298         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
299         * tests/unistr/test-u8-strstr.c: New file.
300         * tests/unistr/test-u16-strstr.c: New file.
301         * tests/unistr/test-u32-strstr.c: New file.
302
303 2011-01-21  Pádraig Brady  <P@draigBrady.com>
304             Bruno Haible  <bruno@clisp.org>
305
306         Make uN_strstr functions O(n) worst-case.
307         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
308         16-bit and 32-bit unit cases, use the unibyte algorithm from
309         lib/mbsstr.c.
310         * lib/unistr/u8-strstr.c: Include <string.h>.
311         (UNIT_IS_UINT8_T): New macro.
312         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
313         (U_STRLEN, U_STRNLEN): New macros.
314         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
315         (U_STRLEN, U_STRNLEN): New macros.
316         * modules/unistr/u8-strstr (Depends-on): Add strstr.
317         (configure.ac): Update required libunistring version.
318         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
319         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
320         malloca.
321         (configure.ac): Update required libunistring version.
322         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
323         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
324         malloca.
325         (configure.ac): Update required libunistring version.
326
327 2011-01-21  Pádraig Brady  <P@draigBrady.com>
328             Bruno Haible  <bruno@clisp.org>
329
330         Prepare for faster uN_strstr functions.
331         * lib/str-kmp.h: Support definable UNITs.
332         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
333         needle_len argument.
334         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
335         * lib/mbscasestr.c (mbscasestr): Likewise.
336
337 2011-01-21  Pádraig Brady <P@draigBrady.com>
338
339         malloca-tests: make faster by unsetting MALLOC_PERTURB_
340         * tests/test-malloca.c (main): Unset the environment variable
341         to greatly speed up the test.
342         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
343         * modules/malloca-tests: Depend on unsetenv.
344
345 2011-01-21  Pádraig Brady <P@draigBrady.com>
346
347         ignore-value: remove stdint dependency
348         * lib/ignore-value.h: Remove <stdint.h>
349         * modules/ignore-value: Remove stdint dependency.
350
351 2011-01-21  Jim Meyering  <meyering@redhat.com>
352
353         maint.mk: adjust variable name to be consistent with other gl_ vars
354         * top/maint.mk (gl_public_submodule_commit): Rename the variable
355         to be lower case.
356
357 2011-01-20  Jim Meyering  <meyering@redhat.com>
358
359         maint.mk: make "check" depend on public-submodule-commit by default
360         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
361
362 2011-01-20  Bruno Haible  <bruno@clisp.org>
363
364         mbfile, mbiter: Complete change from 2008-12-21.
365         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
366         * m4/mbiter.m4 (gl_MBITER): Likewise.
367
368 2011-01-20  Jim Meyering  <meyering@redhat.com>
369
370         init.sh: insert space between each function name and "()"
371         * tests/init.sh: Make it a little easier to see that a function's
372         name is "warn_", and not "warn" when looking at the first part of
373         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
374
375 2011-01-20  Jim Meyering  <meyering@redhat.com>
376
377         mountlist: clean up code formatting
378         * lib/mountlist.c (read_file_system_list): Split a long line,
379         correct bracing style, use NULL in place of "(struct statfs *)0",
380         don't parenthesize return value, add spaces around "=" and after
381         ";-in-for-stmt".
382
383 2011-01-14  Markus Duft <mduft@gentoo.org>
384
385         mountlist: add support for Interix
386         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
387         Apply statvfs to all entries of /dev/fs.
388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
389         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
390
391 2011-01-20  Jim Meyering  <meyering@redhat.com>
392
393         maint.mk: improve the public-submodule-commit rule
394         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
395         to suppress printing of its commands... unless V=1.
396         Add git submodule's --quiet option to suppress printing of e.g.,
397         "Entering gnulib" output.
398         "cd" into $(srcdir) before running git submodule.
399
400 2011-01-20  Bruno Haible  <bruno@clisp.org>
401
402         include_next: Fix bug introduced on 2011-01-18.
403         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
404         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
405         ac_cv_header_... variable if the second argument is not 'check'.
406         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
407         gl_NEXT_HEADERS_INTERNAL.
408
409 2011-01-20  Bruno Haible  <bruno@clisp.org>
410
411         Allow the user to avoid the GNULIB_TEST_* macros.
412         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
413         Suggested by Paul Eggert.
414
415 2011-01-14  Jim Meyering  <meyering@redhat.com>
416
417         bootstrap: avoid failure when there is no .gitmodules file
418         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
419         has been assigned to, even when its value is the empty string.
420         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
421         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
422         Reported by John W. Eaton <jwe@gnu.org>.
423
424 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
425
426         assume <ctype.h>, ..., <time.h> exist
427         For years gnulib has been assuming the existence of the headers
428         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
429         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
430         them, since they don't appear to be needed.
431         * README (Portability guidelines): Document this.
432         * lib/flock.c: Assume <fcntl.h> exists.
433         * lib/regex_internal.h: Assume <locale.h> exists.
434         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
435         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
436         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
437         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
438         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
439         * m4/regex.m4 (gl_REGEX): Likewise.
440         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
441         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
442         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
443         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
444         * tests/test-argp.c: Likewise.
445         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
446
447         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
448         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
449         AA_APPLE_UNIVERSAL_BUILD.  See
450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
451         * NEWS: Document this.
452
453 2011-01-19  Eric Blake  <eblake@redhat.com>
454
455         c-stack: assume stack overflow if SA_SIGINFO unsupported
456         * lib/c-stack.c (SIGACTION_WORKS): Rename...
457         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
458         sigaction will work.
459         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
460         behavior match Linux.
461         * tests/test-c-stack.c (main): Prefer NULL for pointers.
462
463         stdbool-tests: accomodate Haiku
464         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
465
466         binary-io: fix O_TEXT on Haiku
467         * modules/binary-io (Depends-on): Add fcntl-h.
468         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
469         than blindly undefining O_TEXT.
470         Reported by Scott McCreary.
471
472 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
473
474         include_next: do not check for standard headers like stddef.h
475
476         I found this problem when modifying Emacs to use gnulib.
477         I noticed that it added HAVE_STDDEF_H to config.h, even though
478         gnulib always assumes <stddef.h> exists as per README and this
479         symbol is unnecessary.
480         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
481         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
482         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
483         faster for headers like stddef.h that are known to exist.
484         (gl_CHECK_NEXT_HEADERS): Use it.
485         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
486         rather than gl_CHECK_NEXT_HEADERS.
487         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
488         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
489
490 2011-01-18  Eric Blake  <eblake@redhat.com>
491
492         ansi-c++-opt: skip C++ dependency style if C++ is unused
493         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
494         tests when we know C++ compilation is not desired.
495         Reported by Scott McCreary.
496
497 2011-01-18  Bruno Haible  <bruno@clisp.org>
498
499         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
500         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
501         (main): Perform test also when getrlimit and setrlimit don't exist or
502         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
503         limiting the address space size using setrlimit, compare the address
504         space size before and after the the test.
505         * tests/test-dprintf-posix2.c: Likewise.
506         * tests/test-fprintf-posix3.sh: Update skip messages.
507         * tests/test-dprintf-posix2.sh: Likewise.
508         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
509         * modules/dprintf-posix-tests (Depends-on): Likewise.
510         Reported by Bruce Korb <bkorb@gnu.org> and
511         Gary V. Vaughan <gary@gnu.org>.
512
513 2011-01-18  Bruno Haible  <bruno@clisp.org>
514
515         get-rusage-as: Improvement for Cygwin.
516         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
517         areas that are merely reserved.
518
519 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
520
521         strftime: remove dependencies on multibyte modules
522
523         strftime depended on mbrlen, mbsinit, and wchar, but these modules
524         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
525         only if __osf__ is defined, and I suspect OSF doesn't need these
526         other modules.  If my guess is wrong, we'll need to come up with a
527         variant of strftime that doesn't need the multibyte modules.
528
529         I discovered this problem when attempting modify Emacs to use the
530         strftime module.  With the previous gnulib, this caused Emacs to
531         need 31 new files, ranging from lib/config.charset to
532         m4/wint_t.m4.  This was overkill and I expect would be offputting
533         to the Emacs maintainers.  After this change, only 6 new files are
534         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
535         stdbool.m4, and tm_gmtoff.m4.
536
537         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
538         Suggested by Bruno Haible in
539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
540         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
541         and do not check for wchar.h.
542         * modules/strftime (Files): Remove m4/mbstate_t.m4.
543         (Depends-on): Remove mbrlen, mbsinit, wchar.
544
545 2011-01-18  Bruno Haible  <bruno@clisp.org>
546
547         Tests for module 'get-rusage-as'.
548         * modules/get-rusage-as-tests: New file.
549         * tests/test-get-rusage-as.c: New file.
550
551         New module 'get-rusage-as'.
552         * modules/get-rusage-as: New file.
553         * lib/resource-ext.h: New file.
554         * lib/get-rusage-as.c: New file.
555
556 2011-01-17  Eric Blake  <eblake@redhat.com>
557
558         sigaction: relax license from LGPLv3+ to LGPLv2+
559         * modules/sigaction (License): Relax to LGPLv2+.
560
561 2011-01-14  Bruno Haible  <bruno@clisp.org>
562
563         filemode: Make function declarations usable in C++ mode.
564         * lib/filemode.h: Enclose function declarations in extern "C" block.
565         Reported by John W. Eaton <jwe@gnu.org>.
566
567 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
568
569         save-cwd: no longer include "xgetcwd.h"
570         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
571         This avoids a compilation failure in projects that use save-cwd
572         without also using the xgetcwd module.
573
574 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
575
576         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
577         This is so that a program like Emacs, which needs only dtoastr,
578         does not have to bother with distributing and compiling ftoastr
579         and ldtoastr.
580         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
581         * modules/dtoastr, modules/ldtoastr: New files.
582         * modules/ftoastr: Now works just for 'float'.
583         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
584         (Makefile.am): Remove ftoastr.h (not needed and no effect),
585         dtoastr.c, ldtoastr.c.
586
587 2011-01-11  Jim Meyering  <meyering@redhat.com>
588
589         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
590         There is no need to work around the lack of the fchdir function,
591         since gnulib can now provide a replacement when required.
592         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
593         * modules/save-cwd (Depends-on): Add fchdir.
594
595 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
596
597         openat, save-cwd: avoid xmalloc
598
599         This removes a direct (but undocumented) dependency of openat on
600         xalloc, along with an indirect dependency via save-cwd.  It also
601         removes a dependency of save-cwd on xgetcwd, and thereby
602         indirectly on xalloc.  This change causes the openat substitute
603         to fall back on save_cwd when memory is tight, and for save_cwd to
604         fail instead of dying when memory is tight, but that's good enough.
605
606         * lib/openat-proc.c: Include stdlib.h (for malloc), not
607         xalloc.h (for xmalloc).
608         (openat_proc_name): Use malloc, not xmalloc.
609         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
610         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
611
612         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
613         This avoids heap allocation for file names whose lengths are in
614         the range 512..1023, with the upper bound increasing to at most
615         4031 depending on the platform's PATH_MAX.  (We do not want
616         pathmax.h here as it might supply a non-constant PATH_MAX.)
617         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
618         Perhaps they should be moved to malloca.h?
619         (OPENAT_BUFFER_SIZE): Use them.
620
621 2011-01-10  Bruno Haible  <bruno@clisp.org>
622
623         doc: Update users.txt.
624         * users.txt: Add recutils.
625
626 2011-01-09  Karl Berry  <karl@gnu.org>
627
628         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
629
630         * doc/configmake.texi: New file.
631         * doc/gnulib.texi: Include it.
632         * modules/configmake: Move documentation from here.
633
634 2011-01-09  Bruno Haible  <bruno@clisp.org>
635
636         Update to Unicode 6.0.0.
637         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
638         (get_lbp): Update for Unicode 6.0.0.
639         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
640         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
641         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
642         U+11001, U+11038..U+11046. Remove U+06DE.
643         (uc_width): Fix bounds of planes.
644         * tests/uniwidth/test-uc_width2.sh: Same updates as in
645         lib/uniwidth/width.c.
646         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
647         trailing whitespace removed.
648         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
649         without comments, but with the original copyright notice.
650         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
651         * lib/unicase/ignorable.h: Likewise.
652         * lib/unicase/tocasefold.h: Likewise.
653         * lib/unicase/tolower.h: Likewise.
654         * lib/unicase/totitle.h: Likewise.
655         * lib/unicase/toupper.h: Likewise.
656         * lib/unictype/bidi_of.h: Likewise.
657         * lib/unictype/blocks.h: Likewise.
658         * lib/unictype/categ_C.h: Likewise.
659         * lib/unictype/categ_Cn.h: Likewise.
660         * lib/unictype/categ_L.h: Likewise.
661         * lib/unictype/categ_Ll.h: Likewise.
662         * lib/unictype/categ_Lm.h: Likewise.
663         * lib/unictype/categ_Lo.h: Likewise.
664         * lib/unictype/categ_Lu.h: Likewise.
665         * lib/unictype/categ_M.h: Likewise.
666         * lib/unictype/categ_Mc.h: Likewise.
667         * lib/unictype/categ_Me.h: Likewise.
668         * lib/unictype/categ_Mn.h: Likewise.
669         * lib/unictype/categ_N.h: Likewise.
670         * lib/unictype/categ_Nd.h: Likewise.
671         * lib/unictype/categ_No.h: Likewise.
672         * lib/unictype/categ_P.h: Likewise.
673         * lib/unictype/categ_Po.h: Likewise.
674         * lib/unictype/categ_S.h: Likewise.
675         * lib/unictype/categ_Sc.h: Likewise.
676         * lib/unictype/categ_Sk.h: Likewise.
677         * lib/unictype/categ_Sm.h: Likewise.
678         * lib/unictype/categ_So.h: Likewise.
679         * lib/unictype/categ_of.h: Likewise.
680         * lib/unictype/combining.h: Likewise.
681         * lib/unictype/ctype_alnum.h: Likewise.
682         * lib/unictype/ctype_alpha.h: Likewise.
683         * lib/unictype/ctype_graph.h: Likewise.
684         * lib/unictype/ctype_lower.h: Likewise.
685         * lib/unictype/ctype_print.h: Likewise.
686         * lib/unictype/ctype_punct.h: Likewise.
687         * lib/unictype/ctype_upper.h: Likewise.
688         * lib/unictype/decdigit.h: Likewise.
689         * lib/unictype/digit.h: Likewise.
690         * lib/unictype/numeric.h: Likewise.
691         * lib/unictype/pr_alphabetic.h: Likewise.
692         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
693         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
694         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
695         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
696         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
697         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
698         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
699         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
700         * lib/unictype/pr_case_ignorable.h: Likewise.
701         * lib/unictype/pr_cased.h: Likewise.
702         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
703         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
704         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
705         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
706         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
707         * lib/unictype/pr_combining.h: Likewise.
708         * lib/unictype/pr_composite.h: Likewise.
709         * lib/unictype/pr_currency_symbol.h: Likewise.
710         * lib/unictype/pr_decimal_digit.h: Likewise.
711         * lib/unictype/pr_deprecated.h: Likewise.
712         * lib/unictype/pr_format_control.h: Likewise.
713         * lib/unictype/pr_grapheme_base.h: Likewise.
714         * lib/unictype/pr_grapheme_extend.h: Likewise.
715         * lib/unictype/pr_grapheme_link.h: Likewise.
716         * lib/unictype/pr_id_continue.h: Likewise.
717         * lib/unictype/pr_id_start.h: Likewise.
718         * lib/unictype/pr_ideographic.h: Likewise.
719         * lib/unictype/pr_lowercase.h: Likewise.
720         * lib/unictype/pr_math.h: Likewise.
721         * lib/unictype/pr_numeric.h: Likewise.
722         * lib/unictype/pr_other_alphabetic.h: Likewise.
723         * lib/unictype/pr_other_id_continue.h: Likewise.
724         * lib/unictype/pr_other_math.h: Likewise.
725         * lib/unictype/pr_punctuation.h: Likewise.
726         * lib/unictype/pr_sentence_terminal.h: Likewise.
727         * lib/unictype/pr_terminal_punctuation.h: Likewise.
728         * lib/unictype/pr_unassigned_code_value.h: Likewise.
729         * lib/unictype/pr_unified_ideograph.h: Likewise.
730         * lib/unictype/pr_uppercase.h: Likewise.
731         * lib/unictype/pr_xid_continue.h: Likewise.
732         * lib/unictype/pr_xid_start.h: Likewise.
733         * lib/unictype/scripts.h: Likewise.
734         * lib/unictype/scripts_byname.gperf: Likewise.
735         * lib/unictype/sy_java_ident.h: Likewise.
736         * lib/unigbrk/gbrkprop.h: Likewise.
737         * lib/unilbrk/lbrkprop1.h: Likewise.
738         * lib/unilbrk/lbrkprop2.h: Likewise.
739         * lib/uninorm/decomposition-table2.h: Likewise.
740         * lib/uniwbrk/wbrkprop.h: Likewise.
741         * tests/unicase/test-cased.c: Likewise.
742         * tests/unicase/test-ignorable.c: Likewise.
743         * tests/unicase/test-uc_tolower.c: Likewise.
744         * tests/unicase/test-uc_totitle.c: Likewise.
745         * tests/unicase/test-uc_toupper.c: Likewise.
746         * tests/unictype/test-categ_C.c: Likewise.
747         * tests/unictype/test-categ_Cn.c: Likewise.
748         * tests/unictype/test-categ_L.c: Likewise.
749         * tests/unictype/test-categ_Ll.c: Likewise.
750         * tests/unictype/test-categ_Lm.c: Likewise.
751         * tests/unictype/test-categ_Lo.c: Likewise.
752         * tests/unictype/test-categ_Lu.c: Likewise.
753         * tests/unictype/test-categ_M.c: Likewise.
754         * tests/unictype/test-categ_Mc.c: Likewise.
755         * tests/unictype/test-categ_Me.c: Likewise.
756         * tests/unictype/test-categ_Mn.c: Likewise.
757         * tests/unictype/test-categ_N.c: Likewise.
758         * tests/unictype/test-categ_Nd.c: Likewise.
759         * tests/unictype/test-categ_No.c: Likewise.
760         * tests/unictype/test-categ_P.c: Likewise.
761         * tests/unictype/test-categ_Po.c: Likewise.
762         * tests/unictype/test-categ_S.c: Likewise.
763         * tests/unictype/test-categ_Sc.c: Likewise.
764         * tests/unictype/test-categ_Sk.c: Likewise.
765         * tests/unictype/test-categ_Sm.c: Likewise.
766         * tests/unictype/test-categ_So.c: Likewise.
767         * tests/unictype/test-ctype_alnum.c: Likewise.
768         * tests/unictype/test-ctype_alpha.c: Likewise.
769         * tests/unictype/test-ctype_graph.c: Likewise.
770         * tests/unictype/test-ctype_lower.c: Likewise.
771         * tests/unictype/test-ctype_print.c: Likewise.
772         * tests/unictype/test-ctype_punct.c: Likewise.
773         * tests/unictype/test-ctype_upper.c: Likewise.
774         * tests/unictype/test-decdigit.h: Likewise.
775         * tests/unictype/test-digit.h: Likewise.
776         * tests/unictype/test-numeric.h: Likewise.
777         * tests/unictype/test-pr_alphabetic.c: Likewise.
778         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
779         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
780         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
781         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
782         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
783         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
784         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
785         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
786         * tests/unictype/test-pr_case_ignorable.c: Likewise.
787         * tests/unictype/test-pr_cased.c: Likewise.
788         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
789         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
790         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
791         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
792         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
793         * tests/unictype/test-pr_combining.c: Likewise.
794         * tests/unictype/test-pr_composite.c: Likewise.
795         * tests/unictype/test-pr_currency_symbol.c: Likewise.
796         * tests/unictype/test-pr_decimal_digit.c: Likewise.
797         * tests/unictype/test-pr_deprecated.c: Likewise.
798         * tests/unictype/test-pr_format_control.c: Likewise.
799         * tests/unictype/test-pr_grapheme_base.c: Likewise.
800         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
801         * tests/unictype/test-pr_grapheme_link.c: Likewise.
802         * tests/unictype/test-pr_id_continue.c: Likewise.
803         * tests/unictype/test-pr_id_start.c: Likewise.
804         * tests/unictype/test-pr_ideographic.c: Likewise.
805         * tests/unictype/test-pr_lowercase.c: Likewise.
806         * tests/unictype/test-pr_math.c: Likewise.
807         * tests/unictype/test-pr_numeric.c: Likewise.
808         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
809         * tests/unictype/test-pr_other_id_continue.c: Likewise.
810         * tests/unictype/test-pr_other_math.c: Likewise.
811         * tests/unictype/test-pr_punctuation.c: Likewise.
812         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
813         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
814         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
815         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
816         * tests/unictype/test-pr_uppercase.c: Likewise.
817         * tests/unictype/test-pr_xid_continue.c: Likewise.
818         * tests/unictype/test-pr_xid_start.c: Likewise.
819         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
820         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
821         changes.
822         * lib/unictype/categ_Cc.h: Likewise.
823         * lib/unictype/categ_Cf.h: Likewise.
824         * lib/unictype/categ_Co.h: Likewise.
825         * lib/unictype/categ_Cs.h: Likewise.
826         * lib/unictype/categ_Lt.h: Likewise.
827         * lib/unictype/categ_Nl.h: Likewise.
828         * lib/unictype/categ_Pc.h: Likewise.
829         * lib/unictype/categ_Pd.h: Likewise.
830         * lib/unictype/categ_Pe.h: Likewise.
831         * lib/unictype/categ_Pf.h: Likewise.
832         * lib/unictype/categ_Pi.h: Likewise.
833         * lib/unictype/categ_Ps.h: Likewise.
834         * lib/unictype/categ_Z.h: Likewise.
835         * lib/unictype/categ_Zl.h: Likewise.
836         * lib/unictype/categ_Zp.h: Likewise.
837         * lib/unictype/categ_Zs.h: Likewise.
838         * lib/unictype/ctype_blank.h: Likewise.
839         * lib/unictype/ctype_cntrl.h: Likewise.
840         * lib/unictype/ctype_digit.h: Likewise.
841         * lib/unictype/ctype_space.h: Likewise.
842         * lib/unictype/ctype_xdigit.h: Likewise.
843         * lib/unictype/mirror.h: Likewise.
844         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
845         * lib/unictype/pr_bidi_block_separator.h: Likewise.
846         * lib/unictype/pr_bidi_common_separator.h: Likewise.
847         * lib/unictype/pr_bidi_control.h: Likewise.
848         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
849         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
850         * lib/unictype/pr_bidi_european_digit.h: Likewise.
851         * lib/unictype/pr_bidi_pdf.h: Likewise.
852         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
853         * lib/unictype/pr_bidi_whitespace.h: Likewise.
854         * lib/unictype/pr_dash.h: Likewise.
855         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
856         * lib/unictype/pr_diacritic.h: Likewise.
857         * lib/unictype/pr_extender.h: Likewise.
858         * lib/unictype/pr_hex_digit.h: Likewise.
859         * lib/unictype/pr_hyphen.h: Likewise.
860         * lib/unictype/pr_ids_binary_operator.h: Likewise.
861         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
862         * lib/unictype/pr_ignorable_control.h: Likewise.
863         * lib/unictype/pr_iso_control.h: Likewise.
864         * lib/unictype/pr_join_control.h: Likewise.
865         * lib/unictype/pr_left_of_pair.h: Likewise.
866         * lib/unictype/pr_line_separator.h: Likewise.
867         * lib/unictype/pr_logical_order_exception.h: Likewise.
868         * lib/unictype/pr_non_break.h: Likewise.
869         * lib/unictype/pr_not_a_character.h: Likewise.
870         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
871         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
872         * lib/unictype/pr_other_id_start.h: Likewise.
873         * lib/unictype/pr_other_lowercase.h: Likewise.
874         * lib/unictype/pr_other_uppercase.h: Likewise.
875         * lib/unictype/pr_paired_punctuation.h: Likewise.
876         * lib/unictype/pr_paragraph_separator.h: Likewise.
877         * lib/unictype/pr_pattern_syntax.h: Likewise.
878         * lib/unictype/pr_pattern_white_space.h: Likewise.
879         * lib/unictype/pr_private_use.h: Likewise.
880         * lib/unictype/pr_quotation_mark.h: Likewise.
881         * lib/unictype/pr_radical.h: Likewise.
882         * lib/unictype/pr_soft_dotted.h: Likewise.
883         * lib/unictype/pr_space.h: Likewise.
884         * lib/unictype/pr_titlecase.h: Likewise.
885         * lib/unictype/pr_variation_selector.h: Likewise.
886         * lib/unictype/pr_white_space.h: Likewise.
887         * lib/unictype/pr_zero_width.h: Likewise.
888         * lib/unictype/sy_c_ident.h: Likewise.
889         * lib/unictype/sy_c_whitespace.h: Likewise.
890         * lib/unictype/sy_java_whitespace.h: Likewise.
891         * lib/uninorm/composition-table.gperf: Likewise.
892         * lib/uninorm/decomposition-table1.h: Likewise.
893         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
894         LB8.
895         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
896         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
897         * modules/unictype/*: Bump version number of expected libunistring
898         version.
899
900 2011-01-09  Bruno Haible  <bruno@clisp.org>
901
902         Update to Unicode 5.2.0.
903         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
904         trailing whitespace removed.
905
906 2011-01-09  Bruno Haible  <bruno@clisp.org>
907
908         New Unicode character properties, from Unicode 5.2.0.
909         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
910         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
911         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
912         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
913         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
914         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
915         uc_is_property_cased, uc_is_property_case_ignorable,
916         uc_is_property_changes_when_lowercased,
917         uc_is_property_changes_when_uppercased,
918         uc_is_property_changes_when_titlecased,
919         uc_is_property_changes_when_casefolded,
920         uc_is_property_changes_when_casemapped): New declarations.
921         * lib/unictype/pr_byname.gperf: Add the new properties.
922         * modules/unictype/property-byname (Depends-on): Depend on the new
923         properties modules.
924         * modules/unictype/property-all (Depends-on): Likewise.
925         * MODULES.html.sh (Unicode string functions): Add
926         unictype/property-case-ignorable, unictype/property-cased,
927         unictype/property-changes-when-casefolded,
928         unictype/property-changes-when-casemapped,
929         unictype/property-changes-when-lowercased,
930         unictype/property-changes-when-titlecased,
931         unictype/property-changes-when-uppercased.
932
933         New module 'unictype/property-changes-when-casemapped'.
934         * modules/unictype/property-changes-when-casemapped: New file.
935         * lib/unictype/pr_changes_when_casemapped.c: New file.
936         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
937         generated by gen-uni-tables.
938         * modules/unictype/property-changes-when-casemapped-tests: New file.
939         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
940         automatically generated by gen-uni-tables.
941
942         New module 'unictype/property-changes-when-casefolded'.
943         * modules/unictype/property-changes-when-casefolded: New file.
944         * lib/unictype/pr_changes_when_casefolded.c: New file.
945         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
946         generated by gen-uni-tables.
947         * modules/unictype/property-changes-when-casefolded-tests: New file.
948         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
949         automatically generated by gen-uni-tables.
950
951         New module 'unictype/property-changes-when-titlecased'.
952         * modules/unictype/property-changes-when-titlecased: New file.
953         * lib/unictype/pr_changes_when_titlecased.c: New file.
954         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
955         generated by gen-uni-tables.
956         * modules/unictype/property-changes-when-titlecased-tests: New file.
957         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
958         automatically generated by gen-uni-tables.
959
960         New module 'unictype/property-changes-when-uppercased'.
961         * modules/unictype/property-changes-when-uppercased: New file.
962         * lib/unictype/pr_changes_when_uppercased.c: New file.
963         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
964         generated by gen-uni-tables.
965         * modules/unictype/property-changes-when-uppercased-tests: New file.
966         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
967         automatically generated by gen-uni-tables.
968
969         New module 'unictype/property-changes-when-lowercased'.
970         * modules/unictype/property-changes-when-lowercased: New file.
971         * lib/unictype/pr_changes_when_lowercased.c: New file.
972         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
973         generated by gen-uni-tables.
974         * modules/unictype/property-changes-when-lowercased-tests: New file.
975         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
976         automatically generated by gen-uni-tables.
977
978         New module 'unictype/property-case-ignorable'.
979         * modules/unictype/property-case-ignorable: New file.
980         * lib/unictype/pr_case_ignorable.c: New file.
981         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
982         by gen-uni-tables.
983         * modules/unictype/property-case-ignorable-tests: New file.
984         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
985         generated by gen-uni-tables.
986
987         New module 'unictype/property-cased'.
988         * modules/unictype/property-cased: New file.
989         * lib/unictype/pr_cased.c: New file.
990         * lib/unictype/pr_cased.h: New file, automatically generated by
991         gen-uni-tables.
992         * modules/unictype/property-cased-tests: New file.
993         * tests/unictype/test-pr_cased.c: New file, automatically generated by
994         gen-uni-tables.
995
996 2011-01-09  Bruno Haible  <bruno@clisp.org>
997
998         Update to Unicode 5.2.0.
999         * lib/gen-uni-tables.c (output_predicate, output_category,
1000         output_combclass, output_bidi_category, output_decimal_digit_test,
1001         output_decimal_digit, output_digit_test, output_digit,
1002         output_numeric_test, output_numeric, output_mirror, output_scripts,
1003         output_scripts_byname, output_blocks, output_ident_category): Fix
1004         comment header.
1005         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
1006         get_wbp.
1007         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
1008         items.
1009         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
1010         Changes_When_Lowercased, Changes_When_Uppercased,
1011         Changes_When_Titlecased, Changes_When_Casefolded,
1012         Changes_When_Casemapped.
1013         (is_property_alphabetic, is_property_default_ignorable_code_point):
1014         Update for Unicode 5.2.0.
1015         (is_property_cased, is_property_case_ignorable,
1016         is_property_changes_when_lowercased,
1017         is_property_changes_when_uppercased,
1018         is_property_changes_when_titlecased,
1019         is_property_changes_when_casefolded,
1020         is_property_changes_when_casemapped): New functions.
1021         (output_properties): Output also the properties cased, case_ignorable,
1022         changes_when_lowercased, changes_when_uppercased,
1023         changes_when_titlecased, changes_when_casefolded,
1024         changes_when_casemapped.
1025         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
1026         Unicode TR#11 revision 17 -> 19.
1027         (LBP_CP): New enumeration value.
1028         (LBP_*): Adjust values accordingly.
1029         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1030         TR#14 revision 22 -> 24.
1031         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
1032         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
1033         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1034         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
1035         is_WBP_MIDLETTER.
1036         (output_composition_tables): Allow for 24 bits instead of 16 bits in
1037         the code1 and code2 of each composition rule.
1038         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
1039         * lib/unicase/ignorable.h: Likewise.
1040         * lib/unicase/tocasefold.h: Likewise.
1041         * lib/unicase/tolower.h: Likewise.
1042         * lib/unicase/totitle.h: Likewise.
1043         * lib/unicase/toupper.h: Likewise.
1044         * lib/unictype/bidi_of.h: Likewise.
1045         * lib/unictype/blocks.h: Likewise.
1046         * lib/unictype/categ_C.h: Likewise.
1047         * lib/unictype/categ_Cf.h: Likewise.
1048         * lib/unictype/categ_Cn.h: Likewise.
1049         * lib/unictype/categ_L.h: Likewise.
1050         * lib/unictype/categ_Ll.h: Likewise.
1051         * lib/unictype/categ_Lm.h: Likewise.
1052         * lib/unictype/categ_Lo.h: Likewise.
1053         * lib/unictype/categ_Lu.h: Likewise.
1054         * lib/unictype/categ_M.h: Likewise.
1055         * lib/unictype/categ_Mc.h: Likewise.
1056         * lib/unictype/categ_Mn.h: Likewise.
1057         * lib/unictype/categ_N.h: Likewise.
1058         * lib/unictype/categ_Nd.h: Likewise.
1059         * lib/unictype/categ_Nl.h: Likewise.
1060         * lib/unictype/categ_No.h: Likewise.
1061         * lib/unictype/categ_P.h: Likewise.
1062         * lib/unictype/categ_Pd.h: Likewise.
1063         * lib/unictype/categ_Po.h: Likewise.
1064         * lib/unictype/categ_S.h: Likewise.
1065         * lib/unictype/categ_Sc.h: Likewise.
1066         * lib/unictype/categ_So.h: Likewise.
1067         * lib/unictype/categ_of.h: Likewise.
1068         * lib/unictype/combining.h: Likewise.
1069         * lib/unictype/ctype_alnum.h: Likewise.
1070         * lib/unictype/ctype_alpha.h: Likewise.
1071         * lib/unictype/ctype_graph.h: Likewise.
1072         * lib/unictype/ctype_lower.h: Likewise.
1073         * lib/unictype/ctype_print.h: Likewise.
1074         * lib/unictype/ctype_punct.h: Likewise.
1075         * lib/unictype/ctype_upper.h: Likewise.
1076         * lib/unictype/decdigit.h: Likewise.
1077         * lib/unictype/digit.h: Likewise.
1078         * lib/unictype/numeric.h: Likewise.
1079         * lib/unictype/pr_alphabetic.h: Likewise.
1080         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1081         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1082         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1083         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1084         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1085         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1086         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1087         * lib/unictype/pr_combining.h: Likewise.
1088         * lib/unictype/pr_composite.h: Likewise.
1089         * lib/unictype/pr_currency_symbol.h: Likewise.
1090         * lib/unictype/pr_dash.h: Likewise.
1091         * lib/unictype/pr_decimal_digit.h: Likewise.
1092         * lib/unictype/pr_deprecated.h: Likewise.
1093         * lib/unictype/pr_diacritic.h: Likewise.
1094         * lib/unictype/pr_extender.h: Likewise.
1095         * lib/unictype/pr_grapheme_base.h: Likewise.
1096         * lib/unictype/pr_grapheme_extend.h: Likewise.
1097         * lib/unictype/pr_grapheme_link.h: Likewise.
1098         * lib/unictype/pr_id_continue.h: Likewise.
1099         * lib/unictype/pr_id_start.h: Likewise.
1100         * lib/unictype/pr_ideographic.h: Likewise.
1101         * lib/unictype/pr_ignorable_control.h: Likewise.
1102         * lib/unictype/pr_logical_order_exception.h: Likewise.
1103         * lib/unictype/pr_lowercase.h: Likewise.
1104         * lib/unictype/pr_numeric.h: Likewise.
1105         * lib/unictype/pr_other_alphabetic.h: Likewise.
1106         * lib/unictype/pr_punctuation.h: Likewise.
1107         * lib/unictype/pr_sentence_terminal.h: Likewise.
1108         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1109         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1110         * lib/unictype/pr_unified_ideograph.h: Likewise.
1111         * lib/unictype/pr_uppercase.h: Likewise.
1112         * lib/unictype/pr_xid_continue.h: Likewise.
1113         * lib/unictype/pr_xid_start.h: Likewise.
1114         * lib/unictype/pr_zero_width.h: Likewise.
1115         * lib/unictype/scripts.h: Likewise.
1116         * lib/unictype/scripts_byname.gperf: Likewise.
1117         * lib/unictype/sy_java_ident.h: Likewise.
1118         * lib/unigbrk/gbrkprop.h: Likewise.
1119         * lib/unilbrk/lbrkprop1.h: Likewise.
1120         * lib/unilbrk/lbrkprop2.h: Likewise.
1121         * lib/unilbrk/lbrktables.h: Likewise.
1122         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
1123         LBP_CP. Implement rule LB30.
1124         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
1125         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
1126         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
1127         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
1128         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
1129         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
1130         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
1131         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
1132         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
1133         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
1134         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
1135         bits instead of 16 bits in the code1 and code2 of each composition
1136         rule.
1137         (uc_composition): Update for Unicode 5.2.0.
1138         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
1139         * lib/uninorm/decomposition-table2.h: Likewise.
1140         * lib/uniwbrk/wbrkprop.h: Likewise.
1141         * tests/unicase/test-cased.c: Likewise.
1142         * tests/unicase/test-ignorable.c: Likewise.
1143         * tests/unicase/test-uc_tolower.c: Likewise.
1144         * tests/unicase/test-uc_totitle.c: Likewise.
1145         * tests/unicase/test-uc_toupper.c: Likewise.
1146         * tests/unictype/test-categ_C.c: Likewise.
1147         * tests/unictype/test-categ_Cf.c: Likewise.
1148         * tests/unictype/test-categ_Cn.c: Likewise.
1149         * tests/unictype/test-categ_L.c: Likewise.
1150         * tests/unictype/test-categ_Ll.c: Likewise.
1151         * tests/unictype/test-categ_Lm.c: Likewise.
1152         * tests/unictype/test-categ_Lo.c: Likewise.
1153         * tests/unictype/test-categ_Lu.c: Likewise.
1154         * tests/unictype/test-categ_M.c: Likewise.
1155         * tests/unictype/test-categ_Mc.c: Likewise.
1156         * tests/unictype/test-categ_Mn.c: Likewise.
1157         * tests/unictype/test-categ_N.c: Likewise.
1158         * tests/unictype/test-categ_Nd.c: Likewise.
1159         * tests/unictype/test-categ_Nl.c: Likewise.
1160         * tests/unictype/test-categ_No.c: Likewise.
1161         * tests/unictype/test-categ_P.c: Likewise.
1162         * tests/unictype/test-categ_Pd.c: Likewise.
1163         * tests/unictype/test-categ_Po.c: Likewise.
1164         * tests/unictype/test-categ_S.c: Likewise.
1165         * tests/unictype/test-categ_Sc.c: Likewise.
1166         * tests/unictype/test-categ_So.c: Likewise.
1167         * tests/unictype/test-ctype_alnum.c: Likewise.
1168         * tests/unictype/test-ctype_alpha.c: Likewise.
1169         * tests/unictype/test-ctype_graph.c: Likewise.
1170         * tests/unictype/test-ctype_lower.c: Likewise.
1171         * tests/unictype/test-ctype_print.c: Likewise.
1172         * tests/unictype/test-ctype_punct.c: Likewise.
1173         * tests/unictype/test-ctype_upper.c: Likewise.
1174         * tests/unictype/test-decdigit.h: Likewise.
1175         * tests/unictype/test-digit.h: Likewise.
1176         * tests/unictype/test-numeric.h: Likewise.
1177         * tests/unictype/test-pr_alphabetic.c: Likewise.
1178         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1179         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1180         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1181         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1182         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1183         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1184         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1185         * tests/unictype/test-pr_combining.c: Likewise.
1186         * tests/unictype/test-pr_composite.c: Likewise.
1187         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1188         * tests/unictype/test-pr_dash.c: Likewise.
1189         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1190         * tests/unictype/test-pr_deprecated.c: Likewise.
1191         * tests/unictype/test-pr_diacritic.c: Likewise.
1192         * tests/unictype/test-pr_extender.c: Likewise.
1193         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1194         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1195         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1196         * tests/unictype/test-pr_id_continue.c: Likewise.
1197         * tests/unictype/test-pr_id_start.c: Likewise.
1198         * tests/unictype/test-pr_ideographic.c: Likewise.
1199         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1200         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1201         * tests/unictype/test-pr_lowercase.c: Likewise.
1202         * tests/unictype/test-pr_numeric.c: Likewise.
1203         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1204         * tests/unictype/test-pr_punctuation.c: Likewise.
1205         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1206         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1207         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1208         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1209         * tests/unictype/test-pr_uppercase.c: Likewise.
1210         * tests/unictype/test-pr_xid_continue.c: Likewise.
1211         * tests/unictype/test-pr_xid_start.c: Likewise.
1212         * tests/unictype/test-pr_zero_width.c: Likewise.
1213         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1214         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
1215         changed behaviour: line breaking is now disallowed between a letter
1216         or '=' and '('.
1217         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1218         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1219         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1220         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
1221         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1222         lib/uniwidth/width.c.
1223         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
1224         without comments, but with the original copyright notice.
1225         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1226         changes.
1227         * lib/unictype/categ_Cc.h: Likewise.
1228         * lib/unictype/categ_Co.h: Likewise.
1229         * lib/unictype/categ_Cs.h: Likewise.
1230         * lib/unictype/categ_Lt.h: Likewise.
1231         * lib/unictype/categ_Me.h: Likewise.
1232         * lib/unictype/categ_Pc.h: Likewise.
1233         * lib/unictype/categ_Pe.h: Likewise.
1234         * lib/unictype/categ_Pf.h: Likewise.
1235         * lib/unictype/categ_Pi.h: Likewise.
1236         * lib/unictype/categ_Ps.h: Likewise.
1237         * lib/unictype/categ_Sk.h: Likewise.
1238         * lib/unictype/categ_Sm.h: Likewise.
1239         * lib/unictype/categ_Z.h: Likewise.
1240         * lib/unictype/categ_Zl.h: Likewise.
1241         * lib/unictype/categ_Zp.h: Likewise.
1242         * lib/unictype/categ_Zs.h: Likewise.
1243         * lib/unictype/ctype_blank.h: Likewise.
1244         * lib/unictype/ctype_cntrl.h: Likewise.
1245         * lib/unictype/ctype_digit.h: Likewise.
1246         * lib/unictype/ctype_space.h: Likewise.
1247         * lib/unictype/ctype_xdigit.h: Likewise.
1248         * lib/unictype/mirror.h: Likewise.
1249         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1250         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1251         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1252         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1253         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1254         * lib/unictype/pr_bidi_control.h: Likewise.
1255         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1256         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1257         * lib/unictype/pr_bidi_pdf.h: Likewise.
1258         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1259         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1260         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1261         * lib/unictype/pr_format_control.h: Likewise.
1262         * lib/unictype/pr_hex_digit.h: Likewise.
1263         * lib/unictype/pr_hyphen.h: Likewise.
1264         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1265         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1266         * lib/unictype/pr_iso_control.h: Likewise.
1267         * lib/unictype/pr_join_control.h: Likewise.
1268         * lib/unictype/pr_left_of_pair.h: Likewise.
1269         * lib/unictype/pr_line_separator.h: Likewise.
1270         * lib/unictype/pr_math.h: Likewise.
1271         * lib/unictype/pr_non_break.h: Likewise.
1272         * lib/unictype/pr_not_a_character.h: Likewise.
1273         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1274         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1275         * lib/unictype/pr_other_id_continue.h: Likewise.
1276         * lib/unictype/pr_other_id_start.h: Likewise.
1277         * lib/unictype/pr_other_lowercase.h: Likewise.
1278         * lib/unictype/pr_other_math.h: Likewise.
1279         * lib/unictype/pr_other_uppercase.h: Likewise.
1280         * lib/unictype/pr_paired_punctuation.h: Likewise.
1281         * lib/unictype/pr_paragraph_separator.h: Likewise.
1282         * lib/unictype/pr_pattern_syntax.h: Likewise.
1283         * lib/unictype/pr_pattern_white_space.h: Likewise.
1284         * lib/unictype/pr_private_use.h: Likewise.
1285         * lib/unictype/pr_quotation_mark.h: Likewise.
1286         * lib/unictype/pr_radical.h: Likewise.
1287         * lib/unictype/pr_soft_dotted.h: Likewise.
1288         * lib/unictype/pr_space.h: Likewise.
1289         * lib/unictype/pr_titlecase.h: Likewise.
1290         * lib/unictype/pr_variation_selector.h: Likewise.
1291         * lib/unictype/pr_white_space.h: Likewise.
1292         * lib/unictype/sy_c_ident.h: Likewise.
1293         * lib/unictype/sy_c_whitespace.h: Likewise.
1294         * lib/unictype/sy_java_whitespace.h: Likewise.
1295         * modules/uni*/*: Bump version number of expected libunistring version.
1296         Reported by Simon Josefsson.
1297
1298 2011-01-09  Karl Heuer  <kwzh@gnu.org>
1299
1300         useless-if-before-free: fix typo in --help and make the internal,
1301         automatic version date update process work once again.
1302         --help output contained a NUL character instead of the
1303         backslash-zero that was intended.  Also, the "must lie within
1304         the first 8 lines" line is on line 9, and hence not getting
1305         automatically updated.
1306         * build-aux/useless-if-before-free: Fix the former by adding a
1307         backslash, and the latter by condensing the three lines of what-it-does
1308         to a single line, leaving one line of slack for the future.
1309
1310 2011-01-09  Bruno Haible  <bruno@clisp.org>
1311
1312         uniwidth/width: Fix width of U+1D173..U+1D17A.
1313         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
1314         symbolic_width, output_width_property_test): New functions.
1315         (main): Invoke output_nonspacing_property, output_width_property_test.
1316         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
1317         U+1D173..U+1D17A.
1318         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
1319         1.
1320         * modules/uniwidth/*: Bump version number of expected libunistring
1321         version.
1322         * modules/unilbrk/*: Likewise.
1323
1324 2011-01-08  Bruno Haible  <bruno@clisp.org>
1325
1326         uninorm tests: Preserve copyright of Unicode data file.
1327         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
1328         Mention modifications.
1329
1330 2011-01-08  Bruno Haible  <bruno@clisp.org>
1331
1332         gen-uni-tables: Prepare for Unicode 5.2.0.
1333         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
1334         (debug_output_lbp, output_lbp): Update.
1335
1336 2011-01-08  Bruno Haible  <bruno@clisp.org>
1337
1338         unilbrk: Clarify gen-uni-tables.c code.
1339         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
1340         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
1341         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
1342
1343 2011-01-07  Bruno Haible  <bruno@clisp.org>
1344
1345         strtod: Restore errno when successfully parsing Infinity or NaN.
1346         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
1347         restore the original errno.
1348
1349 2011-01-07  Bruno Haible  <bruno@clisp.org>
1350
1351         remove test: Avoid failure on HP-UX 11.
1352         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
1353
1354 2011-01-07  Bruno Haible  <bruno@clisp.org>
1355
1356         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
1357         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
1358         error code.
1359
1360 2011-01-07  Pádraig Brady <P@draigBrady.com>
1361
1362         ignore-value: fixup comments, and add Eric Blake
1363         as an author since he rewrote the macros.
1364         * lib/ignore-value.h (ignore_value):  State that
1365         we now support aggregates.  Also specify exactly
1366         when the GCC warn_unused_result feature was added.
1367
1368 2011-01-06  Eric Blake  <eblake@redhat.com>
1369
1370         ignore-value: support aggregate types
1371         * lib/ignore-value.h (ignore_value): Provide separate gcc
1372         definition.
1373         * modules/ignore-value-tests: New test module.
1374         * tests/test-ignore-value.c: New test.
1375
1376         maint.mk: improve sc_prohibit_strcmp regex
1377         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
1378         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
1379         definition of STRNEQ.
1380
1381         signal: work around Haiku issue with SIGBUS
1382         * lib/siglist.h: Add comment.
1383         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
1384         strsignal's favoring of SIGSEGV.
1385         * tests/test-signal.c (main): Avoid test failure.
1386         * doc/posix-headers/signal.texi (signal.h): Document the issue.
1387         Reported by Scott McCreary.
1388
1389         maint.mk: add pre-release check to ensure submodule commits are public
1390         * top/maint.mk (public-submodule-commit): New rule.
1391         (submodule-checks): New variable.
1392         (alpha beta stable): Depend on the variable.
1393
1394 2011-01-05  Pádraig Brady <P@draigBrady.com>
1395         and Jim Meyering  <meyering@redhat.com>
1396
1397         ignore-value: make ignore_value more generic; deprecate ignore_ptr
1398         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
1399         (ATTRIBUTE_DEPRECATED): Define.
1400         (_ignore_case): New function.
1401         (ignore_value): New macro, to replace the old function.
1402         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
1403         * modules/ignore-value (Depends-on): Add stdint.
1404
1405 2011-01-04  Eric Blake  <eblake@redhat.com>
1406
1407         doc: regenerate INSTALL
1408         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1409         @firstparagraphindent support, now that autoconf dropped it.
1410         (INSTALL_PRELUDE): Reinstate old macro.
1411         * doc/install.texi: Resync from autoconf.
1412         * doc/INSTALL: Reflect recent autoconf update.
1413         * doc/INSTALL.ISO: Likewise.
1414         * doc/INSTALL.UTF-8: Likewise.
1415         Reported by Karl Berry.
1416
1417 2011-01-04  Bruce Korb  <address@hidden>
1418
1419         git-version-gen: avoid a sub-shell
1420         * build-aux/git-version-gen: Redirect stderr in `...` via
1421         "exec 2>...", rather than via an added sub-shell.
1422
1423 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1424
1425         git-version-gen: use (...) rather than sh -c '...'
1426         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1427         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1428
1429 2011-01-03  Jim Meyering  <meyering@redhat.com>
1430
1431         git-version-gen: convert leading TABs to spaces
1432         * build-aux/git-version-gen: Expand leading TABs.
1433
1434         git-version-gen: handle failed "git rev-list"
1435         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1436         from git and proceeding as if it had succeeded but printed no SHA1
1437         checksums, suppress the diagnostic and handle the failure.
1438         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1439
1440         git-version-gen: include command name in one more diagnostic
1441         * build-aux/git-version-gen: When the required .tarball-version file
1442         was missing or unreadable, you might see the diagnostic from "cat",
1443         but no trace of the name of the invoking script.  Now, you still see
1444         the diagnostic from cat, but also get one from "git-version-gen: ".
1445         Inspired by a patch from Bruce Korb.
1446
1447         update-copyright: adjust test to match changed code
1448         * tests/test-update-copyright.sh: Change test's expected output
1449         to match new actual output.
1450
1451 2011-01-02  Bruno Haible  <bruno@clisp.org>
1452
1453         getlogin_r: Avoid test failure on HP-UX 11.
1454         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
1455         ERANGE when the second argument is zero.
1456         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
1457         portability problem.
1458
1459 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1460
1461         * build-aux/update-copyright: doc Simon's changes
1462
1463 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1464
1465         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1466         environment variable.
1467
1468 2011-01-02  Bruno Haible  <bruno@clisp.org>
1469
1470         unigbrk: Avoid gcc warnings.
1471         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1472         unused variable.
1473         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1474         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1475         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1476         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1477         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1478         Change type of first argument to 'const char *'.
1479         (main): Remove unused variable.
1480         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1481         type of first argument to 'const char *'.
1482         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1483         Likewise.
1484         (main): Change type of variable 's'.
1485         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1486         to 'int'.
1487
1488 2011-01-02  Bruno Haible  <bruno@clisp.org>
1489
1490         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1491         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1492         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1493         bug.
1494         * lib/pwrite.c: Undo 2010-12-31 patch.
1495         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1496
1497 2011-01-02  Bruno Haible  <bruno@clisp.org>
1498
1499         pread: Fix test whether it works.
1500         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1501
1502 2011-01-02  Bruno Haible  <bruno@clisp.org>
1503
1504         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1505         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1506         ends in "6". Don't require a specific month name. Try also the locale
1507         names found on HP-UX 11 and Solaris 7.
1508
1509 2011-01-02  Bruno Haible  <bruno@clisp.org>
1510
1511         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1512         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1513         C linkage.
1514         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1515
1516 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1517
1518         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1519         for consistency, since the "cluster" term is not used elsewhere.
1520         * lib/unigbrk.in.h: Update name.
1521         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1522         * lib/unigbrk/u16-grapheme-next.c: Update name.
1523         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1524         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1525         * lib/unigbrk/u32-grapheme-next.c: Update name.
1526         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1527         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1528         * lib/unigbrk/u8-grapheme-next.c: Update name.
1529         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1530         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1531         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1532         Suggested by Bruno Haible.
1533
1534 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1535
1536         Remove module 'u8-grapheme-len' as too redundant with
1537         'u8-grapheme-next'.
1538         * modules/unigbrk/u8-grapheme-len: Delete file.
1539         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1540         * lib/unigbrk.in.h: Remove prototype for deleted function.
1541         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1542         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1543
1544         Remove module 'u16-grapheme-len' as too redundant with
1545         'u16-grapheme-next'.
1546         * modules/unigbrk/u16-grapheme-len: Delete file.
1547         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1548         * lib/unigbrk.in.h: Remove prototype for deleted function.
1549         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1550         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1551
1552         Remove module 'u32-grapheme-len' as too redundant with
1553         'u32-grapheme-next'.
1554         * modules/unigbrk/u32-grapheme-len: Delete file.
1555         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1556         * lib/unigbrk.in.h: Remove prototype for deleted function.
1557         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1558         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1559
1560         Suggested by Bruno Haible.
1561
1562 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1563
1564         * unigbrk.in.h: Fix typo: "ben" => "been".
1565         Reported by Bruno Haible.
1566
1567 2011-01-01  Jim Meyering  <meyering@redhat.com>
1568
1569         maint: update almost all copyright ranges to include 2011
1570         Run the new "make update-copyright" rule.
1571
1572 2011-01-01  Jim Meyering  <meyering@redhat.com>
1573
1574         maint: update-copyright: exempt doc/INSTALL*
1575         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1576         since they are generated.  Suggested by Bruno Haible.
1577
1578 2011-01-01  Jim Meyering  <meyering@redhat.com>
1579
1580         maint: refine the update-copyright rule
1581         * Makefile (update-copyright): Also exclude any file that includes
1582         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1583         code that merely generates the comment.
1584
1585 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1586
1587         New module 'u8-grapheme-len'.
1588         * modules/unigbrk/u8-grapheme-len: New file.
1589         * modules/unigbrk/u8-grapheme-len-tests: New file.
1590         * lib/unigbrk.in.h: Add prototype for new function.
1591         * lib/unigbrk/u8-grapheme-len.c: New file.
1592         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1593
1594         New module 'u16-grapheme-len'.
1595         * modules/unigbrk/u16-grapheme-len: New file.
1596         * modules/unigbrk/u16-grapheme-len-tests: New file.
1597         * lib/unigbrk.in.h: Add prototype for new function.
1598         * lib/unigbrk/u16-grapheme-len.c: New file.
1599         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1600
1601         New module 'u32-grapheme-len'.
1602         * modules/unigbrk/u32-grapheme-len: New file.
1603         * modules/unigbrk/u32-grapheme-len-tests: New file.
1604         * lib/unigbrk.in.h: Add prototype for new function.
1605         * lib/unigbrk/u32-grapheme-len.c: New file.
1606         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1607
1608         New module 'u8-grapheme-next'.
1609         * modules/unigbrk/u8-grapheme-next: New file.
1610         * modules/unigbrk/u8-grapheme-next-tests: New file.
1611         * lib/unigbrk.in.h: Add prototype for new function.
1612         * lib/unigbrk/u8-grapheme-next.c: New file.
1613         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1614
1615         New module 'u16-grapheme-next'.
1616         * modules/unigbrk/u16-grapheme-next: New file.
1617         * modules/unigbrk/u16-grapheme-next-tests: New file.
1618         * lib/unigbrk.in.h: Add prototype for new function.
1619         * lib/unigbrk/u16-grapheme-next.c: New file.
1620         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1621
1622         New module 'u32-grapheme-next'.
1623         * modules/unigbrk/u32-grapheme-next: New file.
1624         * modules/unigbrk/u32-grapheme-next-tests: New file.
1625         * lib/unigbrk.in.h: Add prototype for new function.
1626         * lib/unigbrk/u32-grapheme-next.c: New file.
1627         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1628
1629         New module 'u8-grapheme-prev'.
1630         * modules/unigbrk/u8-grapheme-prev: New file.
1631         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1632         * lib/unigbrk.in.h: Add prototype for new function.
1633         * lib/unigbrk/u8-grapheme-prev.c: New file.
1634         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1635
1636         New module 'u16-grapheme-prev'.
1637         * modules/unigbrk/u16-grapheme-prev: New file.
1638         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1639         * lib/unigbrk.in.h: Add prototype for new function.
1640         * lib/unigbrk/u16-grapheme-prev.c: New file.
1641         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1642
1643         New module 'u32-grapheme-prev'.
1644         * modules/unigbrk/u32-grapheme-prev: New file.
1645         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1646         * lib/unigbrk.in.h: Add prototype for new function.
1647         * lib/unigbrk/u32-grapheme-prev.c: New file.
1648         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1649
1650         New module 'u8-grapheme-breaks'.
1651         * modules/unigbrk/u8-grapheme-breaks: New file.
1652         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1653         * lib/unigbrk.in.h: Add prototype for new function.
1654         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1655         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1656
1657         New module 'u16-grapheme-breaks'.
1658         * modules/unigbrk/u16-grapheme-breaks: New file.
1659         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1660         * lib/unigbrk.in.h: Add prototype for new function.
1661         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1662         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1663
1664         New module 'u32-grapheme-breaks'.
1665         * modules/unigbrk/u32-grapheme-breaks: New file.
1666         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1667         * lib/unigbrk.in.h: Add prototype for new function.
1668         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1669         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1670
1671         New module 'ulc-grapheme-breaks'.
1672         * modules/unigbrk/ulc-grapheme-breaks: New file.
1673         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1674         * m4/locale-ar.m4: New file.
1675         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1676         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1677         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1678
1679 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1680
1681         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1682         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1683         modified how this file was generated before I initially submitted
1684         the module, but failed to regenerate it.  This meant that several
1685         of the level2 entries were wrong.
1686         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1687         Remove the division-by-2 that is folded into the table now that
1688         gbrkprop.h has been regenerated properly.  Now -1 entries are
1689         handled correctly.
1690
1691         New module 'unigbrk/uc-gbrk-prop-tests'.
1692         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1693         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1694         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1695         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1696
1697 2011-01-01  Bruno Haible  <bruno@clisp.org>
1698
1699         Avoid use of hexadecimal escapes.
1700         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1701         instead of hexadecimal escapes.
1702
1703 2011-01-01  Jim Meyering  <meyering@redhat.com>
1704
1705         maint: new rule to update copyright year ranges
1706         * Makefile (update-copyright): New rule.
1707
1708         maint: indent with TABs in Makefile
1709         * Makefile: Expand leading sequences of spaces to TABs
1710
1711         version-etc: update the copyright year it reports
1712         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1713
1714 2010-12-31  Bruno Haible  <bruno@clisp.org>
1715
1716         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1717         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1718         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1719         zero.
1720
1721 2010-12-31  Bruno Haible  <bruno@clisp.org>
1722
1723         pwrite: Work around HP-UX 11.11 bug.
1724         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1725         works and set REPLACE_PWRITE if not.
1726         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1727         function.
1728         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1729
1730 2010-12-31  Bruno Haible  <bruno@clisp.org>
1731
1732         pread: Work around HP-UX 11 bugs.
1733         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1734         and set REPLACE_PREAD if not.
1735         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1736
1737 2010-12-31  Eric Blake  <eblake@redhat.com>
1738
1739         nl_langinfo: fix YESEXPR on Irix 6.5
1740         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1741         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1742         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1743         it.
1744
1745 2010-12-31  Bruno Haible  <bruno@clisp.org>
1746
1747         iconv: Document HP-UX 11 bug.
1748         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1749
1750 2010-12-31  Bruno Haible  <bruno@clisp.org>
1751
1752         ldexpl: Fix link error on HP-UX 11.
1753         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1754         LDEXPL_LIBM, using $ISNANL_LIBM.
1755
1756 2010-12-31  Eric Blake  <eblake@redhat.com>
1757
1758         ftello: avoid compilation failure with SunStudio c89
1759         * lib/ftello.c (ftello): Use lseek, not llseek.
1760
1761         tests: avoid failing coreutils tests on cygwin
1762         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1763         (create_exe_shims_): Return 0 when skipping.
1764
1765 2010-12-31  Bruno Haible  <bruno@clisp.org>
1766
1767         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1768         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1769
1770 2010-12-31  Bruno Haible  <bruno@clisp.org>
1771
1772         waitpid: Fix link error in C++ mode.
1773         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1774
1775 2010-12-31  Bruno Haible  <bruno@clisp.org>
1776
1777         isnan: Use GCC built-ins when possible.
1778         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1779         __builtin_isnan.
1780         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1781         (isnan): Define using GCC built-ins for GCC >= 4.0.
1782
1783 2010-12-31  Bruno Haible  <bruno@clisp.org>
1784
1785         isnand: Fix mistake.
1786         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1787         __builtin_isnand.
1788
1789 2010-12-31  Bruno Haible  <bruno@clisp.org>
1790
1791         open: Avoid C++ error on HP-UX 11.
1792         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1793
1794 2010-12-31  Bruno Haible  <bruno@clisp.org>
1795
1796         time_r: Add missing declarations on HP-UX 11.
1797         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1798         instead of HAVE_LOCALTIME_R.
1799         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1800         HAVE_LOCALTIME_R always.
1801         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1802         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1803         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1804         HAVE_LOCALTIME_R.
1805         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1806         * doc/posix-functions/localtime_r.texi: Likewise.
1807
1808 2010-12-29  Eric Blake  <eblake@redhat.com>
1809
1810         mountlist: tweak previous commit
1811         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1812         Reported by Paul Eggert.
1813
1814         mountlist: fix local drive detection on cygwin
1815         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1816         that works for cygwin.
1817
1818 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1819
1820         ftoastr, snprintf: ftoastr + snprintf module
1821         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1822         since the snprintf module now should be good enough here.
1823         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1824         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1825         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1826         GNULIB_SNPRINTF only for the test directory, and the latter
1827         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1828         seems to suffice by itself.
1829
1830 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1831
1832         alloca: one step towards thread-safety
1833         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1834         need for a static variable.  All callers changed.  This does not
1835         make the alloca replacement thread-safe, but it's one step.
1836
1837         tests: minor indenting change
1838         * tests/init.sh: Sync from coreutils housekeeping patch
1839         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1840         to keep lines within 80 columns.
1841
1842 2010-12-28  Jim Meyering  <meyering@redhat.com>
1843
1844         regex: don't infloop on persistent failing calloc
1845         * lib/regexec.c (build_trtable): Return failure indication upon
1846         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1847         In glibc, this was fixed for version 2.13:
1848         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1849
1850 2010-12-28  Bruno Haible  <bruno@clisp.org>
1851             Paul Eggert <eggert@cs.ucla.edu>
1852
1853         linkat: Make implementation robust against system behaviour variations.
1854         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1855         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1856         way, and to -2 if it needs a generic runtime test.
1857         * lib/linkat.c (solaris_optimized_link_immediate,
1858         solaris_optimized_link_follow): New functions.
1859         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1860         (check_same_link): Use it.
1861
1862 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1863
1864         New module 'unigbrk/base'.
1865         * modules/unigbrk/base: New file.
1866         * lib/unigbrk.in.h: New file.
1867
1868         New module 'unigbrk/uc-gbrk-prop'.
1869         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1870         * modules/unigbrk/uc-gbrk-prop: New file.
1871         * lib/unigbrk/gbrkprop.h: New file.
1872         * lib/unigbrk/uc-gbrk-prop.c: New file.
1873
1874         New module 'unigbrk/uc-is-grapheme-break'.
1875         * modules/unigbrk/uc-is-grapheme-break: New file.
1876         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1877         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1878         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1879         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1880         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1881
1882         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1883
1884 2010-12-27  Bruno Haible  <bruno@clisp.org>
1885
1886         linkat test: Avoid failure on Solaris 11 2010-11.
1887         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1888
1889 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1890
1891         utimens: work around glibc rounding bug on more platforms
1892         * lib/utimens.c (fdutimens): Work around rounding bug even if
1893         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1894         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1895
1896 2010-12-27  Bruno Haible  <bruno@clisp.org>
1897
1898         select tests: Improve comments.
1899         * tests/test-select.c (do_select): Add comments.
1900
1901 2010-12-27  Bruno Haible  <bruno@clisp.org>
1902
1903         select tests: Safer way of handling timeout.
1904         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1905         at every invocation.
1906
1907 2010-12-27  Bruno Haible  <bruno@clisp.org>
1908
1909         select tests: Use 'bool' where appropriate.
1910         * tests/test-select.c (connect_to_socket): Change argument type to
1911         'bool'.
1912
1913 2010-12-27  Bruno Haible  <bruno@clisp.org>
1914
1915         select tests: Use existing modules.
1916         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1917         (configure.ac): Don't test for unistd.h.
1918         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1919         declared in <unistd.h>.
1920
1921 2010-12-27  Bruno Haible  <bruno@clisp.org>
1922
1923         mbrtowc: Work around a Solaris 7 bug.
1924         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1925         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1926         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1927         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1928         MBRTOWC_NULL_ARG1_BUG.
1929         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1930         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1931         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1932         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1933
1934 2010-12-27  Jim Meyering  <meyering@redhat.com>
1935
1936         read-file.c: tweak syntax
1937         * lib/read-file.c (fread_file): Remove space after "*" in function
1938         definitions.
1939
1940 2010-12-27  Bruno Haible  <bruno@clisp.org>
1941
1942         times test: Avoid gcc warnings on OSF/1.
1943         * tests/test-times.c (main): Cast printf arguments from clock_t to
1944         'long int'.
1945
1946 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1947
1948         utimens: work around glibc rounding bug on older Linux kernels
1949         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1950         on Linux with a glibc whose utimes might not work, then work
1951         around a longstanding glibc bug involving rounding rather than
1952         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1953         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1954
1955 2010-12-26  Bruno Haible  <bruno@clisp.org>
1956
1957         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1958         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1959         _GL_CXXALIAS_SYS.
1960         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1961
1962 2010-12-26  Bruno Haible  <bruno@clisp.org>
1963
1964         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1965         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1966         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1967         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1968         looking for the declaration.
1969         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1970         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1971         problem.
1972         * doc/posix-functions/inet_pton.texi: Likewise.
1973
1974 2010-12-26  Bruno Haible  <bruno@clisp.org>
1975
1976         arpa_inet: Use the common idioms with C++ support.
1977         * lib/arpa_inet.in.h: Include c++defs.h.
1978         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1979         support.
1980         * modules/arpa_inet (Depends-on): Add c++defs.
1981         (Makefile.am): Substitute the contents of c++defs.h.
1982         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1983         * modules/arpa_inet-c++-tests: New file.
1984         * tests/test-arpa_inet-c++.cc: New file.
1985
1986 2010-12-25  Bruno Haible  <bruno@clisp.org>
1987
1988         Fix more C++ link errors on Solaris 8.
1989         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1990         $(LIB_EACCESS).
1991         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1992         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1993         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1994         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1995         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1996
1997 2010-12-25  Bruno Haible  <bruno@clisp.org>
1998
1999         printf-posix: Fix link error when a non-GCC compiler is used.
2000         * lib/stdio.in.h (printf): When not using GCC, override printf
2001         correctly.
2002         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2003
2004 2010-12-25  Bruno Haible  <bruno@clisp.org>
2005
2006         strerror_r-posix: Update doc.
2007         * doc/posix-functions/strerror_r.texi: Update doc about the return
2008         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
2009
2010 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2011
2012         utimens: simplify the logic of the previous change
2013         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
2014         This should not affect whether the test succeeds or fails.
2015
2016         utimens: configure better on hosts with NFS clock skew
2017         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
2018         uses the clock of the local host.  It might use the clock of the
2019         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
2020         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2021
2022 2010-12-25  Bruno Haible  <bruno@clisp.org>
2023
2024         ptsname test: Avoid failure on Solaris.
2025         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
2026         open a pseudo-terminal; don't use BSD-style ptys.
2027         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
2028
2029 2010-12-25  Bruno Haible  <bruno@clisp.org>
2030
2031         ptsname: Avoid ERANGE failure on some systems.
2032         * lib/ptsname.c (buffer): Increase size.
2033
2034 2010-12-25  Bruno Haible  <bruno@clisp.org>
2035
2036         rename, renameat: Avoid test failures at NFS mounted locations.
2037         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
2038         so that subsequent mkdir calls succeed.
2039
2040 2010-12-25  Bruno Haible  <bruno@clisp.org>
2041
2042         iswblank: Fix C++ link error on Solaris 8.
2043         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
2044         _GL_FUNCDECL_SYS.
2045
2046 2010-12-25  Bruno Haible  <bruno@clisp.org>
2047
2048         unistd: Fix C++ link error on Solaris 8.
2049         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
2050
2051 2010-12-25  Bruno Haible  <bruno@clisp.org>
2052
2053         readlink doc: Mention an old glibc bug.
2054         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
2055
2056 2010-12-25  Bruno Haible  <bruno@clisp.org>
2057
2058         fcntl-h: Fix for use of C++ on glibc systems.
2059         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2060         also on glibc systems in C++ mode.
2061         Reported by Gary V. Vaughan <gary@gnu.org>.
2062
2063 2010-12-25  Bruno Haible  <bruno@clisp.org>
2064
2065         roundl-ieee: Make it work on OSF/1 5.1 with cc.
2066         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
2067
2068 2010-12-25  Bruno Haible  <bruno@clisp.org>
2069
2070         truncl-ieee: Make it work on OSF/1 5.1 with cc.
2071         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
2072         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
2073         test whether truncl works according to ISO C 99 with IEC 60559.
2074         * m4/truncl-ieee.m4: New file.
2075         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
2076         m4/signbit.m4.
2077         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
2078
2079 2010-12-25  Bruno Haible  <bruno@clisp.org>
2080
2081         ceill-ieee: Make it work on OSF/1 5.1 with cc.
2082         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
2083         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
2084         test whether ceill works according to ISO C 99 with IEC 60559.
2085         * m4/ceill-ieee.m4: New file.
2086         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
2087         m4/signbit.m4.
2088         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
2089
2090 2010-12-25  Bruno Haible  <bruno@clisp.org>
2091
2092         Ensure all prerequisites of <wchar.h> are included.
2093         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
2094         before <wchar.h>.
2095         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2096         gl_MBRLEN_NUL_RETVAL): Likewise.
2097         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2098         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
2099         AC_FUNC_MBRTOWC): Likewise.
2100         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2101         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2103         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2104         Likewise.
2105         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2106         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
2107         (gl_WCHAR_H): Improve comments.
2108         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2109
2110 2010-12-25  Bruno Haible  <bruno@clisp.org>
2111
2112         strtok_r: Fix C syntax error in autoconf macro.
2113         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
2114         characters in test program.
2115
2116 2010-12-24  Bruno Haible  <bruno@clisp.org>
2117
2118         ceil, trunc, round: Fix gcc warnings.
2119         * lib/ceil.c (MIN): Undefine before redefining.
2120         * lib/trunc.c (MIN): Likewise.
2121         * lib/round.c (MIN): Likewise.
2122         Include <math.h> first.
2123
2124 2010-12-24  Bruno Haible  <bruno@clisp.org>
2125
2126         select tests: Avoid failures on OSF/1 5.1.
2127         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
2128         failure of closing the last socket; it may fail with ECONNRESET.
2129
2130 2010-12-24  Eric Blake  <eblake@redhat.com>
2131
2132         stdint: avoid HP-UX 10.20 preprocessor bug
2133         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
2134         than #if.
2135         * tests/test-floor2.c (main): Likewise.
2136         Reported by Peter O'Gorman.
2137
2138         pipe: make obsoletion transition easier
2139         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
2140         * modules/pipe (Files): Include revived file.
2141         (Include): Drop reference, to mirror getdate's behavior.
2142
2143 2010-12-24  Bruno Haible  <bruno@clisp.org>
2144
2145         sys_socket: Hide mismatch of declarations on NonStop Kernel.
2146         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
2147         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2148         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2149
2150 2010-12-24  Bruno Haible  <bruno@clisp.org>
2151
2152         gethostname: Ensure declaration on NonStop Kernel.
2153         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
2154         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2155
2156 2010-12-24  Bruno Haible  <bruno@clisp.org>
2157
2158         sys_select: Ensure all necessary types on NonStop Kernel.
2159         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
2160         include <sys/time.h>.
2161         * doc/posix-headers/sys_select.texi: Mention that it's missing on
2162         NonStop Kernel.
2163         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2164
2165 2010-12-24  Bruno Haible  <bruno@clisp.org>
2166
2167         sys_select: Remove unneeded include.
2168         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
2169         have <sys/select.h>.
2170
2171 2010-12-24  Bruno Haible  <bruno@clisp.org>
2172
2173         gethostname: Provide a fallback for HOST_NAME_MAX.
2174         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
2175         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
2176         instead.
2177         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2178
2179 2010-12-24  Bruno Haible  <bruno@clisp.org>
2180
2181         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
2182         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
2183         (SA_RESTART): Likewise.
2184         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2185
2186 2010-12-24  Bruno Haible  <bruno@clisp.org>
2187
2188         signal: Define NSIG.
2189         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
2190         * tests/test-signal.c (nsig): New variable.
2191         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2192
2193 2010-12-24  Bruno Haible  <bruno@clisp.org>
2194
2195         rename, renameat: Avoid test failures on OSF/1 5.1.
2196         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
2197         alternative error codes.
2198         * tests/test-renameat.c (main): Likewise.
2199
2200 2010-12-24  Bruno Haible  <bruno@clisp.org>
2201
2202         *printf: Detect large precisions bug on Solaris 10/SPARC.
2203         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
2204         by Paul Eggert.
2205         * tests/test-snprintf-posix.h (test_function): Add this test code here
2206         too.
2207         * tests/test-sprintf-posix.h (test_function): Likewise.
2208         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2209         * tests/test-vasprintf-posix.c (test_function): Likewise.
2210         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
2211         around by gnulib.
2212         * doc/posix-functions/printf.texi: Likewise.
2213         * doc/posix-functions/snprintf.texi: Likewise.
2214         * doc/posix-functions/sprintf.texi: Likewise.
2215         * doc/posix-functions/vfprintf.texi: Likewise.
2216         * doc/posix-functions/vprintf.texi: Likewise.
2217         * doc/posix-functions/vsnprintf.texi: Likewise.
2218         * doc/posix-functions/vsprintf.texi: Likewise.
2219         * doc/posix-functions/dprintf.texi: Undo last commit.
2220         * doc/posix-functions/vdprintf.texi: Likewise.
2221
2222 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2223
2224         tests: port test-fdutimensat.c to Solaris 8
2225         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
2226         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
2227         On Solaris 8, it fails with errno == ENOSYS, because there is no
2228         futimens (so it can't use the fd), and there is no lutimens (so it
2229         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
2230
2231         vsnprintf: make more consistent with snprintf; doc fixes
2232
2233         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
2234         the byte count return problem was promoted from the snprintf-posix
2235         to the snprintf module.
2236         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2237         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
2238         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
2239         * tests/test-snprintf.c (main): Check the byte count returned.
2240         * tests/test-vsnprintf.c (main): Likewise.
2241
2242 2010-12-23  Eric Blake  <eblake@redhat.com>
2243
2244         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
2245         * modules/sigpipe (License): Relax license.
2246
2247 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         doc: document Solaris printf bug with large float precisions
2250         * doc/posix-functions/dprintf.texi (dprintf):
2251         * doc/posix-functions/fprintf.texi (fprintf):
2252         * doc/posix-functions/printf.texi (printf):
2253         * doc/posix-functions/snprintf.texi (snprintf):
2254         * doc/posix-functions/sprintf.texi (sprintf):
2255         * doc/posix-functions/vdprintf.texi (vdprintf):
2256         * doc/posix-functions/vfprintf.texi (vfprintf):
2257         * doc/posix-functions/vprintf.texi (vprintf):
2258         * doc/posix-functions/vsnprintf.texi (vsnprintf):
2259         * doc/posix-functions/vsprintf.texi (vsprintf):
2260         Mention that these functions mishandle large floating point
2261         precisions on Solaris 10.  The same bug is also present in Solaris
2262         8, and I assume earlier.  This causes "cd gnulib-tests; make
2263         check" to fail on Solaris 8 (and I assume, later) when building
2264         the latest coreutils, in test-vasprintf-posix's call to
2265         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
2266         the wide flavors (e.g., wprintf) so this patch just updates the
2267         documentation for the narrow ones.
2268
2269         test-posixtm.c: add two tests
2270         * tests/test-posixtm.c: Add two tests, to highlight the
2271         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
2272         around this bug; this is merely to document it.
2273
2274 2010-12-22  Bruno Haible  <bruno@clisp.org>
2275
2276         getlogin_r: Work around portability problem on OSF/1.
2277         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
2278         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
2279         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
2280         test for a truncated result.
2281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
2282         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
2283         * modules/getlogin_r (Depends-on): Add memchr.
2284         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
2285
2286 2010-12-22  Bruno Haible  <bruno@clisp.org>
2287
2288         ptsname: Avoid test failure on OSF/1 5.1.
2289         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
2290         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
2291         (same_slave): New function.
2292         (main): Use it to compare ptsname's result with the expected file name.
2293
2294 2010-12-22  Bruno Haible  <bruno@clisp.org>
2295
2296         Port extended stdio modules to HP NonStop Kernel.
2297         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
2298         macros.
2299         * lib/fbufmode.c: Update comments.
2300         * lib/fflush.c: Likewise.
2301         * lib/fpurge.c: Likewise.
2302         * lib/freadable.c: Likewise.
2303         * lib/freadahead.c: Likewise.
2304         * lib/freading.c: Likewise.
2305         * lib/freadptr.c: Likewise.
2306         * lib/freadseek.c: Likewise.
2307         * lib/fseeko.c: Likewise.
2308         * lib/fseterr.c: Likewise.
2309         * lib/fwritable.c: Likewise.
2310         * lib/fwriting.c: Likewise.
2311         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2312
2313 2010-12-22  Bruno Haible  <bruno@clisp.org>
2314
2315         ttyname_r: Work around bug on OSF/1 5.1.
2316         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
2317         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
2318         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
2319         present.
2320         * lib/ttyname_r.c (ttyname_r): Update comments.
2321
2322 2010-12-22  Bruno Haible  <bruno@clisp.org>
2323
2324         round: Implement result sign according to IEEE 754.
2325         * lib/round.c (MIN, MINUS_ZERO): New macros.
2326         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2327         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
2328         * tests/test-round-ieee.c (main): Likewise.
2329         * tests/test-roundl-ieee.c (main): Likewise.
2330
2331         trunc: Implement result sign according to IEEE 754.
2332         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
2333         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
2334         * tests/test-trunc2.c: Include minus-zero.h.
2335         (MINUS_ZERO): New macro.
2336         (trunc_reference): Keep in sync with lib/trunc.c.
2337         * tests/test-truncf2.c: Include minus-zero.h.
2338         (MINUS_ZERO): New macro.
2339         (truncf_reference): Keep in sync with lib/trunc.c.
2340         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
2341         * tests/test-trunc-ieee.c (main): Likewise.
2342         * tests/test-truncl-ieee.c (main): Likewise.
2343
2344         ceil: Implement result sign according to IEEE 754.
2345         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
2346         (FUNC): Return -0.0 for -1 < x < 0.
2347         * tests/test-ceil2.c: Include minus-zero.h.
2348         (MINUS_ZERO): New macro.
2349         (ceil_reference): Keep in sync with lib/ceil.c.
2350         * tests/test-ceilf2.c: Include minus-zero.h.
2351         (MINUS_ZERO): New macro.
2352         (ceilf_reference): Keep in sync with lib/ceil.c.
2353         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
2354         * tests/test-ceil-ieee.c (main): Likewise.
2355         * tests/test-ceill-ieee.c (main): Likewise.
2356
2357         floor: Implement result sign according to IEEE 754.
2358         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
2359         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
2360         * tests/test-floorf2.c (floorf_reference): Likewise.
2361         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
2362         * tests/test-floor-ieee.c (main): Likewise.
2363         * tests/test-floorl-ieee.c (main): Likewise.
2364
2365 2010-12-22  Bruno Haible  <bruno@clisp.org>
2366
2367         getaddrinfo: Update doc.
2368         * doc/posix-functions/gai_strerror.texi: Return type is also different
2369         on AIX and HP-UX.
2370
2371 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2372
2373         getaddrinfo, inet_ntop: Update doc for Solaris.
2374         * doc/posix-functions/gai_strerror.texi: Return type is also an
2375         issue on Solaris 9 and earlier.
2376         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
2377         on Solaris 10 and earlier.
2378
2379 2010-12-21  Bruno Haible  <bruno@clisp.org>
2380
2381         New module 'roundl-ieee'.
2382         * modules/roundl-ieee: New file.
2383         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
2384         test whether roundl works according to ISO C 99 with IEC 60559.
2385         * m4/roundl-ieee.m4: New file.
2386         * modules/roundl-ieee-tests: New file.
2387         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
2388         * tests/test-roundl.c (main): Remove signbit tests.
2389         * modules/roundl-tests (Depends-on): Remove signbit.
2390         * doc/posix-functions/roundl.texi: Mention the new module.
2391
2392 2010-12-21  Bruno Haible  <bruno@clisp.org>
2393
2394         New module 'truncl-ieee'.
2395         * modules/truncl-ieee: New file.
2396         * modules/truncl-ieee-tests: New file.
2397         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
2398         * tests/test-truncl.c (main): Remove signbit tests.
2399         * modules/truncl-tests (Depends-on): Remove signbit.
2400         * doc/posix-functions/truncl.texi: Mention the new module.
2401
2402 2010-12-21  Bruno Haible  <bruno@clisp.org>
2403
2404         New module 'ceill-ieee'.
2405         * modules/ceill-ieee: New file.
2406         * modules/ceill-ieee-tests: New file.
2407         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2408         * tests/test-ceill.c (main): Remove signbit tests.
2409         * modules/ceill-tests (Depends-on): Remove signbit.
2410         * doc/posix-functions/ceill.texi: Mention the new module.
2411
2412 2010-12-21  Bruno Haible  <bruno@clisp.org>
2413
2414         New module 'floorl-ieee'.
2415         * modules/floorl-ieee: New file.
2416         * modules/floorl-ieee-tests: New file.
2417         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2418         * tests/test-floorl.c (main): Remove signbit tests.
2419         * modules/floorl-tests (Depends-on): Remove signbit.
2420         * doc/posix-functions/floorl.texi: Mention the new module.
2421
2422 2010-12-21  Bruno Haible  <bruno@clisp.org>
2423
2424         New module 'round-ieee'.
2425         * modules/round-ieee: New file.
2426         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2427         whether round works according to ISO C 99 with IEC 60559.
2428         * m4/round-ieee.m4: New file.
2429         * modules/round-ieee-tests: New file.
2430         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2431         * tests/test-round1.c (main): Remove signbit tests.
2432         * modules/round-tests (Depends-on): Remove 'signbit'.
2433         * doc/posix-functions/round.texi: Mention the new module.
2434
2435 2010-12-21  Bruno Haible  <bruno@clisp.org>
2436
2437         New module 'trunc-ieee'.
2438         * modules/trunc-ieee: New file.
2439         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2440         whether trunc works according to ISO C 99 with IEC 60559.
2441         * m4/trunc-ieee.m4: New file.
2442         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2444         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2445         * modules/trunc-ieee-tests: New file.
2446         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2447         * tests/test-trunc1.c (main): Remove signbit tests.
2448         * modules/trunc-tests (Depends-on): Remove 'signbit'.
2449         * doc/posix-functions/trunc.texi: Mention the new module.
2450
2451 2010-12-21  Bruno Haible  <bruno@clisp.org>
2452
2453         New module 'ceil-ieee'.
2454         * modules/ceil-ieee: New file.
2455         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
2456         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
2457         ISO C 99 with IEC 60559.
2458         * m4/ceil-ieee.m4: New file.
2459         * modules/ceil (Files): Add lib/ceil.c.
2460         (Depends-on): Add 'float'.
2461         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2462         * lib/math.in.h (ceil): New declaration.
2463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2464         REPLACE_CEIL.
2465         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2466         * modules/ceil-ieee-tests: New file.
2467         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2468         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2469         * doc/posix-functions/ceil.texi: Mention the new module.
2470
2471 2010-12-21  Bruno Haible  <bruno@clisp.org>
2472
2473         New module 'floor-ieee'.
2474         * modules/floor-ieee: New file.
2475         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2476         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2477         ISO C 99 with IEC 60559.
2478         * m4/floor-ieee.m4: New file.
2479         * modules/floor (Files): Add lib/floor.c.
2480         (Depends-on): Add 'float'.
2481         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2482         * lib/math.in.h (floor): New declaration.
2483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2484         REPLACE_FLOOR.
2485         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2486         * modules/floor-ieee-tests: New file.
2487         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2488         * tests/test-math-c++.cc: Check the signature of 'floor'.
2489         * doc/posix-functions/floor.texi: Mention the new module.
2490
2491 2010-12-21  Bruno Haible  <bruno@clisp.org>
2492
2493         New module 'roundf-ieee'.
2494         * modules/roundf-ieee: New file.
2495         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2496         test whether roundf works according to ISO C 99 with IEC 60559.
2497         * m4/roundf-ieee.m4: New file.
2498         * modules/roundf-ieee-tests: New file.
2499         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2500         * tests/test-roundf1.c (main): Remove signbit tests.
2501         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2502         * doc/posix-functions/roundf.texi: Mention the new module.
2503
2504 2010-12-21  Bruno Haible  <bruno@clisp.org>
2505
2506         New module 'truncf-ieee'.
2507         * modules/truncf-ieee: New file.
2508         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2509         test whether truncf works according to ISO C 99 with IEC 60559.
2510         * m4/truncf-ieee.m4: New file.
2511         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2513         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2514         * modules/truncf-ieee-tests: New file.
2515         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2516         * tests/test-truncf1.c (main): Remove signbit tests.
2517         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2518         * doc/posix-functions/truncf.texi: Mention the new module.
2519
2520 2010-12-21  Bruno Haible  <bruno@clisp.org>
2521
2522         New module 'ceilf-ieee'.
2523         * modules/ceilf-ieee: New file.
2524         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2525         test whether ceilf works according to ISO C 99 with IEC 60559.
2526         * m4/ceilf-ieee.m4: New file.
2527         * modules/ceilf-ieee-tests: New file.
2528         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2529         * tests/test-ceilf1.c (main): Remove signbit tests.
2530         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2531         * doc/posix-functions/ceilf.texi: Mention the new module.
2532
2533 2010-12-21  Bruno Haible  <bruno@clisp.org>
2534
2535         New module 'floorf-ieee'.
2536         * modules/floorf-ieee: New file.
2537         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2538         test whether floorf works according to ISO C 99 with IEC 60559.
2539         * m4/floorf-ieee.m4: New file.
2540         * modules/floorf-ieee-tests: New file.
2541         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2542         * tests/test-floorf1.c (main): Remove signbit tests.
2543         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2544         * doc/posix-functions/floorf.texi: Mention the new module.
2545
2546 2010-12-21  Bruno Haible  <bruno@clisp.org>
2547
2548         Support for minus zero in autoconf macros.
2549         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2550         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2551         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2552         * tests/minus-zero.h: Update comments.
2553
2554 2010-12-21  Bruno Haible  <bruno@clisp.org>
2555
2556         Tests for module 'ceil'.
2557         * modules/ceil-tests: New file.
2558         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2559         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2560
2561 2010-12-21  Bruno Haible  <bruno@clisp.org>
2562
2563         Tests for module 'floor'.
2564         * modules/floor-tests: New file.
2565         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2566         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2567
2568 2010-12-21  Bruno Haible  <bruno@clisp.org>
2569
2570         math: Fix indentation.
2571         * lib/math.in.h (floorf): Fix indentation.
2572
2573 2010-12-21  Bruno Haible  <bruno@clisp.org>
2574
2575         Fix cross-compilation guesses on Solaris.
2576         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2577         not match "solaris2.10".
2578         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2579         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2580         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2581
2582 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2583
2584         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2585         This fixes a problem observed with the latest coreutils snapshot
2586         that caused a test to fail on Solaris 8.  src/csplit.c's call
2587         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2588         earlier, instead of returning the number of bytes that would have
2589         been generated; this causes csplit to incorrectly report memory
2590         exhaustion.
2591         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2592         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2593         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2594         comments to match.
2595         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2596         Fix typo in matching older versions of Solaris: "solaris2.10"
2597         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2598         only for guessing while cross-compiling.
2599         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2600
2601 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2602
2603         ftoastr: fix comment again
2604         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2605         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2606         Also, simplify example a bit by using flags = 0.
2607
2608 2010-12-20  Bruno Haible  <bruno@clisp.org>
2609
2610         round*, trunc*: Update documentation regarding glibc.
2611         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2612         * doc/posix-functions/round.texi: Likewise.
2613         * doc/posix-functions/roundl.texi: Likewise.
2614         * doc/posix-functions/truncf.texi: Likewise.
2615         * doc/posix-functions/trunc.texi: Likewise.
2616         * doc/posix-functions/truncl.texi: Likewise.
2617
2618 2010-12-20  Bruno Haible  <bruno@clisp.org>
2619
2620         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2621         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2622         * doc/posix-functions/round.texi: Likewise.
2623         * doc/posix-functions/roundl.texi: Likewise.
2624
2625 2010-12-20  Bruno Haible  <bruno@clisp.org>
2626
2627         ttyname_r: Add missing declaration on HP-UX 11.
2628         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2629         HAVE_TTYNAME_R.
2630         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2631         declared. Set HAVE_TTYNAME_R always.
2632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2633         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2634         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2635         HAVE_TTYNAME_R.
2636         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2637
2638 2010-12-20  Bruno Haible  <bruno@clisp.org>
2639
2640         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2641         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2642         * doc/posix-functions/getlogin_r.texi: Likewise.
2643         * tests/test-getlogin.c: Include <errno.h>.
2644         (main): Avoid test failure on HP-UX 11.11.
2645         * tests/test-getlogin_r.c (main): Likewise.
2646
2647 2010-12-20  Bruno Haible  <bruno@clisp.org>
2648
2649         getlogin_r: Add missing declaration on HP-UX 11.
2650         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2651         declared also when it exists as a function.
2652         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2653
2654 2010-12-20  Bruno Haible  <bruno@clisp.org>
2655
2656         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2657         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2658         through wcrtomb.
2659
2660 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2661
2662         ftoastr: fix comment
2663         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2664         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2665
2666 2010-12-19  Bruno Haible  <bruno@clisp.org>
2667
2668         isnan: Ensure it is a macro.
2669         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2670         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2671         Solaris.
2672
2673 2010-12-19  Bruno Haible  <bruno@clisp.org>
2674
2675         ldexpl test: Fix link error on OSF/1 5.1.
2676         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2677
2678 2010-12-19  Bruno Haible  <bruno@clisp.org>
2679
2680         wctype: Make it work in C++ mode on OSF/1 5.1.
2681         * lib/wctype.in.h (iswblank): Declare but not define here.
2682         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2683         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2684         * modules/wctype (Files): Add lib/iswblank.c.
2685
2686 2010-12-19  Bruno Haible  <bruno@clisp.org>
2687
2688         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2689         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2690         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2691
2692 2010-12-19  Bruno Haible  <bruno@clisp.org>
2693
2694         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2695         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2696         _POSIX_PII_SOCKET.
2697         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2698         * doc/posix-functions/recvfrom.texi: Likewise.
2699         * doc/posix-functions/send.texi: Likewise.
2700         * doc/posix-functions/sendto.texi: Likewise.
2701
2702 2010-12-19  Bruno Haible  <bruno@clisp.org>
2703
2704         tcgetsid: Add missing declaration on OSF/1 5.1.
2705         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2706         HAVE_TCGETSID.
2707         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2708         Don't set HAVE_TCGETSID.
2709         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2710         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2711         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2712         HAVE_TCGETSID.
2713         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2714
2715 2010-12-19  Bruno Haible  <bruno@clisp.org>
2716
2717         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2718         * lib/stdio.in.h: During the include_next statement, let recursive
2719         includes of this file include only the system header file.
2720
2721 2010-12-19  Bruno Haible  <bruno@clisp.org>
2722
2723         iconv_open: Fix regression from 2010-12-04.
2724         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2725         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2726
2727 2010-12-19  Bruno Haible  <bruno@clisp.org>
2728
2729         stdbool test: Avoid a gcc warning.
2730         * tests/test-stdbool.c (main): Fail if e1 is false.
2731         Reported by Jim Meyering.
2732
2733 2010-12-19  Jim Meyering  <meyering@redhat.com>
2734
2735         setenv: restore to working order
2736         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2737         mistakenly removed.
2738         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2739         HAVE_SETENV.
2740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2741         HAVE_SETENV.
2742
2743 2010-12-19  Bruno Haible  <bruno@clisp.org>
2744
2745         Document some different function declarations on OSF/1 5.1.
2746         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2747         * doc/posix-functions/inet_ntop.texi: Likewise.
2748         * doc/posix-functions/gethostname.texi: Likewise.
2749         * lib/unistd.in.h (gethostname): Update comment.
2750
2751 2010-12-19  Bruno Haible  <bruno@clisp.org>
2752
2753         doc: Mention vasprintf-posix module.
2754         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2755         the 'vasprintf-posix' module.
2756         * doc/glibc-functions/vasprintf.texi: Likewise.
2757
2758 2010-12-19  Bruno Haible  <bruno@clisp.org>
2759
2760         unsetenv: Add missing declaration on OSF/1 5.1.
2761         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2762         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2763         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2765         not HAVE_UNSETENV.
2766         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2767         HAVE_UNSETENV.
2768         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2769
2770 2010-12-19  Bruno Haible  <bruno@clisp.org>
2771
2772         setenv: Add missing declaration on OSF/1 5.1.
2773         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2774         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2775         declared. Don't set HAVE_SETENV.
2776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2777         not HAVE_SETENV.
2778         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2779         HAVE_SETENV.
2780         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2781
2782 2010-12-19  Bruno Haible  <bruno@clisp.org>
2783
2784         nl_langinfo tests: Avoid gcc warning.
2785         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2786
2787 2010-12-19  Bruno Haible  <bruno@clisp.org>
2788
2789         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2790         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2791         _GL_CXXALIAS_SYS.
2792
2793 2010-12-19  Bruno Haible  <bruno@clisp.org>
2794
2795         stdbool: Relax test.
2796         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2797         address to 'bool' work in static initializer, for compilers other than
2798         GCC.
2799
2800 2010-12-19  Bruno Haible  <bruno@clisp.org>
2801
2802         ftello: Add missing declaration on OSF/1 5.1.
2803         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2804         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2806         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2807         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2808
2809 2010-12-19  Bruno Haible  <bruno@clisp.org>
2810
2811         fseeko: Add missing declaration on OSF/1 5.1.
2812         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2813         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2815         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2816         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2817
2818 2010-12-19  Bruno Haible  <bruno@clisp.org>
2819
2820         fchdir: Add missing declaration on OSF/1 5.1.
2821         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2824         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2825         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2826
2827 2010-12-19  Bruno Haible  <bruno@clisp.org>
2828
2829         relocatable-prog-wrapper: Separate from relocatable-prog.
2830         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2831         uninstall-relocwrapper rule here.
2832         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2833         Reported by Ian Beckwith <ianb@erislabs.net>.
2834
2835 2010-12-19  Bruno Haible  <bruno@clisp.org>
2836
2837         unistr/u8-mbsnlen: Add missing dependency.
2838         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2839         Reported by Ian Beckwith <ianb@erislabs.net>.
2840
2841 2010-12-19  Bruno Haible  <bruno@clisp.org>
2842
2843         iconv: Make it possible again to use this module without 'iconv-h'.
2844         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2845         if it is not defined.
2846         Reported by Ian Beckwith <ianb@erislabs.net>.
2847
2848 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2849
2850         acl: port to Solaris 8 when copying from tmpfs to ufs
2851         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2852         error number.  Problem observed on Solaris 8 with latest
2853         coreutils, with "mv A B", where A is on a tmpfs file system and B
2854         is on a ufs file system.  This caused coreutils' mv/part-symlink
2855         test to fail.
2856
2857         tests: set fail=0 at start
2858         * tests/init.sh (setup_): Move fail=0 initialization here ...
2859         (mktempd_): ... from here, so that tests can rely on fail being
2860         set to 0 initially.  This fixes a problem in coreutils; see:
2861         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2862
2863 2010-12-18  Bruno Haible  <bruno@clisp.org>
2864
2865         memmem-simple: Stylistic changes.
2866         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2867         Fix preprocessor directive indentation.
2868
2869 2010-12-15  Pádraig Brady <P@draigBrady.com>
2870
2871         memmem, memmem-simple: reorganize and expand empty needle check
2872         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2873         functional checks to memmem-simple so that one has a fully functional
2874         memmem by using just this module.
2875         Restrict the performance only check to the memmem module.
2876         Also expand the empty needle check to ensure the correct
2877         pointer is returned, not just a non NULL pointer.
2878         * doc/glibc-functions/memmem.texi: Rearrange the portability
2879         documentation to correlate with the rearranged checks.
2880         Clarify exactly how the memmem and memmem-simple modules
2881         relate to each other.
2882
2883 2010-12-15  Pádraig Brady <P@draigBrady.com>
2884             Bruno Haible  <bruno@clisp.org>
2885
2886         Improve cross-compilation guesses for uClibc.
2887         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2888         that uClibc does not have the glibc bug.
2889         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2890         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2891
2892 2010-12-14  Eric Blake  <eblake@redhat.com>
2893
2894         configmake: provide fallbacks for oldest supported autotools
2895         * m4/configmake.m4: New file.
2896         * modules/configmake (Files): Ship it.
2897         (configure.ac): Use it to guarantee fallbacks.
2898
2899 2010-12-13  Pádraig Brady <P@draigBrady.com>
2900
2901         read-file: Improve handling of large files
2902         * lib/read-file.c (fread_file): Minimize realloc()s
2903         for regular files, and better manage sizes around SIZE_MAX.
2904
2905 2010-12-13  Eric Blake  <eblake@redhat.com>
2906
2907         cloexec, fcntl: relax license
2908         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2909         consent from all contributors.
2910         * modules/fcntl (License): Likewise.
2911
2912 2010-12-10  Bruno Haible  <bruno@clisp.org>
2913
2914         Tests for module 'pipe-posix'.
2915         * modules/pipe-posix-tests: New file.
2916         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2917
2918 2010-12-10  Bruno Haible  <bruno@clisp.org>
2919
2920         pipe-posix: Make it work in C++ mode.
2921         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2922         (pipe): Use common idiom, not a macro definition.
2923         * lib/pipe.c: New file.
2924         * m4/pipe.m4: New file.
2925         * modules/pipe-posix (Description): Enhance.
2926         (Files): Add lib/pipe.c, m4/pipe.m4.
2927         (configure.ac): Invoke gl_FUNC_PIPE.
2928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2929         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2930         * tests/test-unistd-c++.cc: Check the signature of pipe.
2931
2932 2010-12-10  Bruno Haible  <bruno@clisp.org>
2933
2934         Rename module 'pipe' to 'spawn-pipe'.
2935         * modules/spawn-pipe: New file, renamed from modules/pipe.
2936         (Files, configure.ac, Makefile.am): Update.
2937         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2938         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2939         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2940         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2941         "spawn-pipe.h" instead of "pipe.h".
2942         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2943         to gl_SPAWN_PIPE.
2944         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2945         (Files, Makefile.am): Update.
2946         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2947         Update.
2948         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2949         Include "spawn-pipe.h" instead of "pipe.h".
2950         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2951         * lib/javacomp.c: Likewise.
2952         * lib/javaversion.c: Likewise.
2953         * lib/pipe-filter-gi.c: Likewise.
2954         * lib/pipe-filter-ii.c: Likewise.
2955         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2956         * modules/javacomp (Depends-on): Likewise.
2957         * modules/javaversion (Depends-on): Likewise.
2958         * modules/pipe-filter-gi (Depends-on): Likewise.
2959         * modules/pipe-filter-ii (Depends-on): Likewise.
2960         * MODULES.html.sh (Executing programs): Update.
2961         * NEWS: Mention the change.
2962
2963 2010-12-10  Eric Blake  <eblake@redhat.com>
2964
2965         pipe-posix: new module
2966         * modules/pipe-posix: New file.
2967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2968         (gl_UNISTD_H): Check for declaration.
2969         * modules/unistd (Makefile.am): Substitute it.
2970         * lib/unistd.in.h (pipe): Provide it for mingw.
2971         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2972         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2973
2974 2010-12-07  Bruno Haible  <bruno@clisp.org>
2975
2976         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2977         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2978         u8_strcmp_gnu.
2979         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2980
2981 2010-12-06  Bruno Haible  <bruno@clisp.org>
2982
2983         Update internal documentation.
2984         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2985
2986 2010-12-04  Bruno Haible  <bruno@clisp.org>
2987
2988         Put more information about failed tests into the test return codes.
2989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2990         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2991         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2992         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2993         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2994         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2995         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2996         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2997         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2999         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3000         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3001         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3002         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3003         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
3004         returns a bit mask.
3005         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3006         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3007         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3008         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3009         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3010         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3011         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3013         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3014         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3015         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3016         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3017         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3018         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3019         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3020         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3021         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
3022         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
3023         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3024         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
3025         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3026         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3027         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3028         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3029         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3030         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3031         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3032         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3033         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3034         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
3035         gl_PRINTF_PRECISION): Likewise.
3036         * m4/regex.m4 (gl_REGEX): Likewise.
3037         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3038         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3039         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
3040         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3044         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
3045         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3046         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3047         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3048         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3049         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3050         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3051         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3052         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3053         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3056         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
3057         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
3058         enumerated value.
3059         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
3060
3061 2010-12-04  Bruno Haible  <bruno@clisp.org>
3062
3063         Update for Solaris 11 2010-11.
3064         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
3065         Express, released in November 2010.
3066
3067 2010-12-04  Bruno Haible  <bruno@clisp.org>
3068
3069         nproc: Relax license.
3070         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
3071         and Paul Eggert.
3072         Requested by Ludovic Courtès <ludo@gnu.org>.
3073
3074 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
3075
3076         utimecmp: fine-grained src to nearby coarse-grained dest
3077
3078         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
3079         and the source is on a file system with higher-resolution time
3080         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
3081         not work, and the time stamps are close together, the algorithm to
3082         determine the exact resolution from the read-back mtime was buggy:
3083         it had a "!=" where it should have had an "==".  This bug has been
3084         in the code ever since it was introduced to gnulib.
3085         Problem reported by Dan Jacobson in
3086         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
3087
3088 2010-11-30  Bruno Haible  <bruno@clisp.org>
3089
3090         strerror_r-posix: Fix autoconf test.
3091         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
3092
3093 2010-11-28  Bruno Haible  <bruno@clisp.org>
3094             Paul Eggert  <eggert@cs.ucla.edu>
3095
3096         Tests for module 'getdomainname'.
3097         * modules/getdomainname-tests: New file.
3098         * tests/test-getdomainname.c: New file, based on
3099         tests/test-gethostname.c.
3100
3101 2010-11-28  Bruno Haible  <bruno@clisp.org>
3102             Paul Eggert  <eggert@cs.ucla.edu>
3103
3104         getdomainname: Use the system function when possible.
3105         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
3106         (getdomainname): Replace if needed. Provide the declaration if it is
3107         missing. Don't use _GL_CXXALIAS_SYS_CAST.
3108         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
3109         (getdomainname): When the system has getdomainname, call the system
3110         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
3111         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
3112         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
3113         found in libnsl. Look for the declaration also in <netdb.h>. Replace
3114         the function if its second argument is of type 'int' or if it is found
3115         in libnsl.
3116         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
3117         <sys/systeminfo.h> and sysinfo().
3118         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
3119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3120         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
3121         HAVE_GETDOMAINNAME.
3122         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
3123         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
3124         * doc/glibc-functions/getdomainname.texi: Document the problems with
3125         the getdomainname declaration.
3126
3127 2010-11-28  Bruno Haible  <bruno@clisp.org>
3128
3129         sys_socket: Ensure ss_family field on AIX.
3130         * lib/sys_socket.in.h (ss_family): New macro definition.
3131         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
3132         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
3133         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
3134         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3135         * modules/sys_socket (Makefile.am): Substitute
3136         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3137         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
3138
3139 2010-11-27  Bruno Haible  <bruno@clisp.org>
3140
3141         readline: Improve configure output.
3142         * m4/readline.m4 (gl_FUNC_READLINE): Make the
3143         "checking for readline..." result understandable.
3144
3145 2010-11-27  Bruno Haible  <bruno@clisp.org>
3146
3147         *printf-posix: Detect a bug on Solaris 10/x86.
3148         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
3149         for floating-point output.
3150         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
3151         directive.
3152         * tests/test-snprintf-posix.h (test_function): Likewise.
3153         * tests/test-sprintf-posix.h (test_function): Likewise.
3154         * tests/test-vasprintf-posix.c (test_function): Likewise.
3155         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
3156         * doc/posix-functions/printf.texi: Likewise.
3157         * doc/posix-functions/snprintf.texi: Likewise.
3158         * doc/posix-functions/sprintf.texi: Likewise.
3159         * doc/posix-functions/vfprintf.texi: Likewise.
3160         * doc/posix-functions/vprintf.texi: Likewise.
3161         * doc/posix-functions/vsnprintf.texi: Likewise.
3162         * doc/posix-functions/vsprintf.texi: Likewise.
3163         * doc/glibc-functions/obstack_printf.texi: Likewise.
3164         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3165
3166 2010-11-27  Bruno Haible  <bruno@clisp.org>
3167
3168         Fix link error when module libunistring-optional is in use.
3169         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
3170         * modules/striconveha-tests (Makefile.am): Likewise.
3171
3172 2010-11-27  Bruno Haible  <bruno@clisp.org>
3173
3174         regex: Mention link dependencies.
3175         * modules/regex (Link): New section.
3176         * modules/rpmatch (Link): Likewise.
3177         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
3178
3179 2010-11-27  Bruno Haible  <bruno@clisp.org>
3180
3181         ftoastr: Fix compilation error on Solaris.
3182         * lib/ftoastr.c: Include <config.h>.
3183
3184 2010-11-27  Bruno Haible  <bruno@clisp.org>
3185
3186         getloadavg: Update documentation.
3187         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
3188
3189 2010-11-27  Bruno Haible  <bruno@clisp.org>
3190
3191         sys_socket: Fix test whether the functions are declared.
3192         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
3193         not <sys/select.h>.
3194
3195 2010-11-27  Bruno Haible  <bruno@clisp.org>
3196
3197         getpass: Make sure to get system declaration on some platforms.
3198         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
3199         gl_USE_SYSTEM_EXTENSIONS.
3200         * modules/getpass (Depends-on): Add extensions.
3201
3202 2010-11-26  Bruno Haible  <bruno@clisp.org>
3203
3204         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
3205         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
3206         'iconv' module is present.
3207         (ICONV_CONST): New macro.
3208         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
3209         ICONV_CONST.
3210         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
3211         set ICONV_CONST.
3212         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
3213         here.
3214         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
3215         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
3216         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
3217         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
3218         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
3219         present.
3220
3221 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3222
3223         ftoastr: comment fix
3224         * lib/ftoastr.c: "little" -> "little or no" in comment
3225
3226 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3227
3228         stdint: port to GCC 4.3 + OSX + Octave
3229         On this platform, stdint.h is buggy and defines int64_t to long
3230         long int.  The replacement defined it to long int, causing
3231         problems with C++ style name mangling.  Instead, trust the system
3232         definition if INT64_MAX is defined, and likewise for the unsigned
3233         variant.   Problem reported by Jarno Rajahalme in
3234         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
3235         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
3236         and don't mess with int64_t and INT64_MAX in this case.
3237         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
3238
3239 2010-11-24  Bruno Haible  <bruno@clisp.org>
3240
3241         doc: Corrections regarding MacOS X 10.4 and 10.5.
3242         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
3243         MacOS X.
3244         Reported by Simon Josefsson.
3245
3246 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
3247
3248         Uninstall ".bin" files installed by relocwrapper.
3249         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
3250         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
3251         unless it is already there.
3252
3253 2010-11-21  Bruno Haible  <bruno@clisp.org>
3254
3255         Update for NetBSD 5.0.
3256         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3257         NetBSD; the test fails on NetBSD 5.0.
3258         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3259         about NetBSD.
3260
3261 2010-11-21  Bruno Haible  <bruno@clisp.org>
3262
3263         Update for HP-UX 11.23 and HP-UX 11.31.
3264         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
3265         HP-UX.
3266
3267 2010-11-21  Bruno Haible  <bruno@clisp.org>
3268
3269         Update for MacOS X 10.5.
3270         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3271         MacOS X; the test fails on MacOS X 10.5.8.
3272         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3273         about MacOS X.
3274
3275 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
3276
3277         bootstrap: add bootstrap_sync option.
3278         See discussion at
3279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
3280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
3281         * build-aux/bootstrap: Accept --bootstrap-sync to update
3282         bootstrap if it is not identical to the local gnulib's
3283         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
3284         enable this by default.  Accept --no-bootstrap-sync to disable
3285         it.
3286
3287 2010-11-20  Bruno Haible  <bruno@clisp.org>
3288
3289         Ensure that <features.h> is included before __GLIBC__ is tested.
3290         * lib/printf-parse.h: Include <features.h>.
3291         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
3292         Reported by Mike Frysinger <vapier@gentoo.org>.
3293
3294         Ensure that <features.h> is included before __GLIBC__ is tested.
3295         * lib/wchar.in.h: Include <features.h>.
3296         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
3297         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
3298         Reported by Mike Frysinger <vapier@gentoo.org>.
3299
3300         Ensure that <features.h> is included before __GLIBC__ is tested.
3301         * lib/arpa_inet.in.h: Include <features.h>.
3302         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
3303         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
3304         Reported by Mike Frysinger <vapier@gentoo.org>.
3305
3306         Ensure that <features.h> is included before __GLIBC__ is tested.
3307         * build-aux/link-warning.h: Include <features.h>.
3308         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
3309         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
3310         Reported by Mike Frysinger <vapier@gentoo.org>.
3311
3312         Ensure that <features.h> is included before __GLIBC__ is tested.
3313         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
3314         Reported by Mike Frysinger <vapier@gentoo.org>.
3315
3316 2010-11-20  Bruno Haible  <bruno@clisp.org>
3317
3318         memmem: Fix autoconf test.
3319         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
3320
3321 2010-11-20  Bruno Haible  <bruno@clisp.org>
3322
3323         Port to uClibc.
3324         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
3325         * lib/fcntl.in.h: Likewise.
3326         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3327         * lib/mbrtowc.c (mbrtowc): Likewise.
3328         * lib/relocatable.c (find_shared_library_fullname): Likewise.
3329         * lib/strerror_r.c: Likewise.
3330         * lib/unistr/u8-strnlen.c: Likewise.
3331         * lib/vasnprintf.c (decimal_point_char): Likewise.
3332         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3333         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3334         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3335         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3336         * tests/test-sigaction.c (handler, main): Likewise.
3337         * lib/freading.h: Treat uClibc like a non-glibc platform.
3338         * lib/freading.c: Likewise.
3339         * lib/gettext.h: Likewise.
3340         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
3341         Likewise.
3342         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
3343         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3344         * lib/propername.c (proper_name_utf8): Likewise.
3345         * lib/spawn.in.h: Likewise.
3346         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
3347         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
3348         mem_cd_iconveh_internal): Likewise.
3349         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
3350         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3351         strstr, strcasestr): Likewise.
3352         * lib/unicodeio.c (unicode_to_mb): Likewise.
3353         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
3354         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
3355         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
3356         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
3357         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
3358         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
3359         * lib/unistr/u8-stpncpy.c: Likewise.
3360         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3361         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
3362         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3363         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3364         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3365         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
3366         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
3367         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
3368         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3369         Likewise.
3370         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3371         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3372         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3373         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3374         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3375         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3376         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3377         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3378         * tests/test-getopt.h (OPTIND_MIN): Likewise.
3379         * tests/test-striconveha.c (main): Likewise.
3380         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3381         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
3382         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
3383         * doc/posix-functions/getline.texi: Likewise.
3384         Reported by Mike Frysinger <vapier@gentoo.org>.
3385
3386 2010-11-20  Bruno Haible  <bruno@clisp.org>
3387
3388         nproc: Fix condition.
3389         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
3390         HAVE_PTHREAD_AFFINITY_NP.
3391
3392 2010-11-20  Bruno Haible  <bruno@clisp.org>
3393
3394         Fix a comment.
3395         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
3396
3397 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3398
3399         ftoastr: don't assume snprintf
3400         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
3401         Implement a subset of snprintf here, by using sprintf safely.
3402         * modules/ftoastr (Depends-on): Remove snprintf.
3403
3404 2010-11-19  Jim Meyering  <meyering@redhat.com>
3405
3406         test-rename.h: fix compilation failure
3407         * tests/test-rename.h (test_rename): Add omitted "}".
3408
3409 2010-11-17  Jim Meyering  <meyering@redhat.com>
3410
3411         maint.mk: add a URL discussing the no-@acronym policy
3412         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3413
3414 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3415
3416         ftoastr: depend on snprintf, improve comments
3417         * lib/ftoastr.c: Also mention Loitsch's draft.
3418         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3419         needed in the current implementation, but it might simplify
3420         speeding up the code later.
3421         * modules/ftoastr: Depend on snprintf; this improves portability.
3422         Suggested by Bruno Haible in the same email.
3423
3424         ftoastr: port to hosts lacking strtof and strtold
3425         Problem reported by Bruno Haible in
3426         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3427         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3428         environment and strtold (and presumably strtof) are not available.
3429         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3430         (configure.ac): Require gl_C99_STRTOLD.
3431
3432 2010-11-18  Bruno Haible  <bruno@clisp.org>
3433
3434         c-strtold: Avoid link error on AIX 7.
3435         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3436         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3437         (gl_C_STRTOLD): Test whether strtold_l exists.
3438         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3439
3440 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3441
3442         intprops: new macro INT_BITS_STRLEN_BOUND
3443         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3444         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3445         not exposed.  Also, it uses a slightly tighter bound than before;
3446         though this makes no practical difference, we might as well be as
3447         tight as we easily can.
3448
3449         ftoastr: new module, for lossless conversion of floats to short strings
3450         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
3451         * modules/ftoastr: New files.
3452
3453 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3454
3455         bootstrap: port to Solaris sed
3456         * build-aux/bootstrap (get_version): Port to Solaris sed.
3457         See Ralf Wildenhues's note in
3458         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
3459
3460 2010-11-14  Jim Meyering  <meyering@redhat.com>
3461
3462         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3463         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3464         and move definition closer to sole use.
3465
3466 2010-11-13  Jim Meyering  <meyering@redhat.com>
3467
3468         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3469         Now we require at least autoconf-2.59, which means the work-around
3470         is no longer needed.
3471         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3472         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3473         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3474         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3475         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3476
3477 2010-11-13  Bruno Haible  <bruno@clisp.org>
3478
3479         rename, renameat: Avoid test failures at NFS mounted locations.
3480         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3481         functions.
3482         (test_rename): Use assert_nonexistent.
3483         * tests/test-rename.c: Include <dirent.h>.
3484         * tests/test-renameat.c: Likewise.
3485         Reported by Gary V. Vaughan <gary@gnu.org>.
3486
3487         rename, renameat: Document Linux bug with NFS
3488         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3489         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3490         * doc/posix-functions/renameat.texi: Likewise.
3491         Suggested by Eric Blake.
3492
3493 2010-11-13  Bruno Haible  <bruno@clisp.org>
3494
3495         rename test: Add comments.
3496         * tests/test-rename.h (test_rename): Add structure and comments.
3497
3498 2010-11-13  Eric Blake  <eblake@redhat.com>
3499
3500         maintainer-makefile: cover a few more files
3501         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3502         scripts generated within C files, for libvirt.
3503
3504 2010-11-13  Bruno Haible  <bruno@clisp.org>
3505
3506         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3507         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3508         character, return the number of bytes that belong together, not always
3509         1.
3510         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3511         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3512         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3513         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3514         number of bytes of an invalid character.
3515         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3516         (main): Invoke it.
3517         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3518         results.
3519         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3520         malformed byte sequences.
3521         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3522         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3523         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3524         Reported by Ben Pfaff and Paolo Bonzini.
3525
3526 2010-11-13  Bruno Haible  <bruno@clisp.org>
3527
3528         openat: Work around glibc bug with fchownat() and empty file names.
3529         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3530         (gl_FUNC_FCHOWNAT): Invoke it.
3531         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3532         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3533         Reported by Gary V. Vaughan <gary@gnu.org>.
3534
3535 2010-11-13  Bruno Haible  <bruno@clisp.org>
3536
3537         openat: Ensure autoconf macro ordering.
3538         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3539         gl_USE_SYSTEM_EXTENSIONS.
3540         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3541
3542 2010-11-13  Bruno Haible  <bruno@clisp.org>
3543
3544         Update comments.
3545         * lib/unistr/u8-check.c: Update file name in comments.
3546         * lib/unistr/u8-mblen.c: Likewise.
3547         * lib/unistr/u8-prev.c: Likewise.
3548         * lib/unistr/u8-strmblen.c: Likewise.
3549         * lib/unistr/u8-strmbtouc.c: Likewise.
3550
3551 2010-11-13  Jim Meyering  <meyering@redhat.com>
3552
3553         tests: avoid test failure on Solaris 10 due to lack of PATH export
3554         * tests/test-update-copyright.sh: Don't forget to export PATH.
3555
3556         init.sh: ensure that IFS is defined, just in case...
3557         * tests/init.sh (setup_): Ensure that IFS is defined,
3558         so that saving and restoring it works as expected.  This
3559         appears to be useful at least for an old version of dash
3560         from a long time ago (RH 6).  See here for details:
3561         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3562
3563         maint.mk: tighten "test a == b" check
3564         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3565         test to files that contain something like #!/bin/sh.
3566         Without this, coreutils would get two false positives in
3567         the comments of C source files.
3568
3569 2010-11-12  Eric Blake  <eblake@redhat.com>
3570
3571         bootstrap: fix typo in previous attempt
3572         * build-aux/bootstrap (buildreq): Correct the grouping.
3573         Reported by Paul Eggert.
3574
3575         maintainer-makefile: prohibit test x == x
3576         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3577         Based on a report by Matthias Bolte.
3578
3579         bootstrap: allow FreeBSD gzip
3580         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3581         which has no '.' and goes to stderr.
3582         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3583         Reported by Matthias Bolte.
3584
3585         maintainer-makefile: check for i18n setup
3586         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3587         will likely work.
3588
3589 2010-11-12  Bruno Haible  <bruno@clisp.org>
3590
3591         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3592         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3593         * lib/nanosleep.c (nanosleep): Likewise.
3594
3595 2010-11-11  Bruno Haible  <bruno@clisp.org>
3596
3597         fcntl-h: Fix for use of C++ on glibc systems.
3598         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3599         also on glibc systems in C++ mode.
3600         Reported by Gary V. Vaughan <gary@gnu.org>.
3601
3602 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3603
3604         mknod: avoid false failure with dash
3605         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3606
3607 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3608
3609         unlink: Fix "is it should" typo in diagnostic.
3610         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3611         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3612
3613 2010-11-11  Bruno Haible  <bruno@clisp.org>
3614
3615         Tests for module 'strerror_r-posix'.
3616         * modules/strerror_r-posix-tests: New file.
3617         * tests/test-strerror_r.c: New file.
3618         * tests/test-string-c++.cc: Check the signature of strerror_r.
3619
3620         New module 'strerror_r-posix'.
3621         * lib/string.in.h (strerror_r): New declaration.
3622         * lib/strerror_r.c: New file.
3623         * m4/strerror_r.m4: New file.
3624         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3625         of strerror_r.
3626         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3627         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3628         * modules/strerror_r-posix: New file.
3629         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3630         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3631         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3632         portability problems.
3633
3634 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3635
3636         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3637         line is also considered for output. Quoted function name in shell
3638         command, so temporary files for functions like MyClass::operator()
3639         are removed correctly without errors.
3640
3641 2010-11-09  Bruno Haible  <bruno@clisp.org>
3642
3643         * doc/posix-functions/strerror.texi: List more failing platforms.
3644
3645         * doc/posix-functions/strerror.texi: Add a comment.
3646
3647 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3648
3649         fdopendir: fix bug on MacOS X when low on file descriptors
3650
3651         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3652         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3653         All callers changed.
3654         (fdopendir): Invoke save_cwd at the top level, not after using
3655         multiple dup() calls to use up file descriptors.  Then retry
3656         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3657         less than the maximum number of open file descriptors, because
3658         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3659         on Mac OS X 10.6.4 for tar 1.24
3660         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3661         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3662         and for tar 1.25
3663         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3664
3665 2010-11-07  Bruno Haible  <bruno@clisp.org>
3666
3667         vasnprintf: Support I flag on glibc systems.
3668         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3669         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3670         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3671         snprintf function.
3672         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3673         glibc systems.
3674         * tests/test-vasnprintf-posix3.c: New file.
3675         * modules/vasnprintf-posix-tests (Files): Add it.
3676         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3677
3678 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3679
3680         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3681         * MODULES.html.sh: For compiler warnings, use name
3682         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3683
3684 2010-11-05  Eric Blake  <eblake@redhat.com>
3685
3686         ceil, floor: avoid spurious failure with icc
3687         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3688         [denormals-as-zero] when optimizing without -mieee-fp option.
3689         * tests/test-floorf2.c (floorf_reference): Likewise.
3690         * tests/test-ceilf1.c (dummy): New function.
3691         (main): Use it to outsmart icc's optimization.
3692         * tests/test-floorf1.c (dummy, main): Likewise.
3693
3694         tests: require working signbit
3695         * modules/ceilf-tests (Depends-on): Add signbit.
3696         * modules/ceill-tests (Depends-on): Likewise.
3697         * modules/floorf-tests (Depends-on): Likewise.
3698         * modules/floorl-tests (Depends-on): Likewise.
3699         * modules/round-tests (Depends-on): Likewise.
3700         * modules/roundf-tests (Depends-on): Likewise.
3701         * modules/roundl-tests (Depends-on): Likewise.
3702         * modules/trunc-tests (Depends-on): Likewise.
3703         * modules/truncf-tests (Depends-on): Likewise.
3704         * modules/truncl-tests (Depends-on): Likewise.
3705
3706         strtod: work around icc bug
3707         * lib/strtod.c (minus_zero): Define to working value.
3708         (strtod): Use it to avoid icc bug.
3709
3710         copysign: enhance tests
3711         * modules/copysign-tests (Files): Add minus-zero.h.
3712         * tests/test-copysign.c (main): Also test zeros.
3713
3714 2010-11-04  Eric Blake  <eblake@redhat.com>
3715
3716         ceil, floor, round, trunc: enhance tests of -0
3717         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3718         * tests/test-ceill.c (main): Likewise.
3719         * tests/test-floorf1.c (main): Likewise.
3720         * tests/test-floorl.c (main): Likewise.
3721         * tests/test-round1.c (main): Likewise.
3722         * tests/test-roundf1.c (main): Likewise.
3723         * tests/test-roundl.c (main): Likewise.
3724         * tests/test-trunc1.c (main): Likewise.
3725         * tests/test-truncf1.c (main): Likewise.
3726         * tests/test-truncl.c (main): Likewise.
3727
3728 2010-11-04  Eric Blake  <eblake@redhat.com>
3729
3730         frexp, tests: work around ICC bug with -zero
3731         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3732         works with more compilers.
3733         * tests/minus-zero.h: New file.
3734         * modules/ceilf-tests (Files): Include it.
3735         * modules/ceill-tests (Files): Likewise.
3736         * modules/floorf-tests (Files): Likewise.
3737         * modules/floorl-tests (Files): Likewise.
3738         * modules/frexp-nolibm-tests (Files): Likewise.
3739         * modules/frexp-tests (Files): Likewise.
3740         * modules/frexpl-nolibm-tests (Files): Likewise.
3741         * modules/frexpl-tests (Files): Likewise.
3742         * modules/isnan-tests (Files): Likewise.
3743         * modules/isnand-nolibm-tests (Files): Likewise.
3744         * modules/isnand-tests (Files): Likewise.
3745         * modules/isnanf-nolibm-tests (Files): Likewise.
3746         * modules/isnanf-tests (Files): Likewise.
3747         * modules/isnanl-nolibm-tests (Files): Likewise.
3748         * modules/isnanl-tests (Files): Likewise.
3749         * modules/round-tests (Files): Likewise.
3750         * modules/roundf-tests (Files): Likewise.
3751         * modules/roundl-tests (Files): Likewise.
3752         * modules/ldexpl-tests (Files): Likewise.
3753         * modules/signbit-tests (Files): Likewise.
3754         * modules/snprintf-posix-tests (Files): Likewise.
3755         * modules/sprintf-posix-tests (Files): Likewise.
3756         * modules/strtod-tests (Files): Likewise.
3757         * modules/trunc-tests (Files): Likewise.
3758         * modules/truncf-tests (Files): Likewise.
3759         * modules/truncl-tests (Files): Likewise.
3760         * modules/vsnprintf-posix-tests (Files): Likewise.
3761         * modules/vsprintf-posix-tests (Files): Likewise.
3762         * modules/vasnprintf-posix-tests (Files): Likewise.
3763         * modules/vasprintf-posix-tests (Files): Likewise.
3764         * tests/test-ceilf1.c (main): Use it.
3765         * tests/test-ceill.c (main): Likewise.
3766         * tests/test-floorf1.c (main): Likewise.
3767         * tests/test-floorl.c (main): Likewise.
3768         * tests/test-frexp.c (main): Likewise.
3769         * tests/test-frexpl.c (main): Likewise.
3770         * tests/test-isnan.c (main): Likewise.
3771         * tests/test-isnand.h (main): Likewise.
3772         * tests/test-isnanf.h (main): Likewise.
3773         * tests/test-isnanl.h (main): Likewise.
3774         * tests/test-ldexpl.c (main): Likewise.
3775         * tests/test-round.c (main): Likewise.
3776         * tests/test-roundf.c (main): Likewise.
3777         * tests/test-roundl.c (main): Likewise.
3778         * tests/test-signbit.c (test_signbitf, test_signbitd)
3779         (test_signbitl): Likewise.
3780         * tests/test-snprintf-posix.h (test_function): Likewise.
3781         * tests/test-sprintf-posix.h (test_function): Likewise.
3782         * tests/test-strtod.c (main): Likewise.
3783         * tests/test-trunc1.c (main): Likewise.
3784         * tests/test-truncf1.c (main): Likewise.
3785         * tests/test-truncl.c (main): Likewise.
3786
3787         isnanl: work around icc bug
3788         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3789
3790 2010-11-03  Eric Blake  <eblake@redhat.com>
3791
3792         tests: fix compiler warnings
3793         * tests/test-getopt.h (test_getopt): Fix condition.
3794         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3795         * tests/test-pipe2.c (main): Likewise.
3796         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3797
3798         utimens: fix broken m4 test
3799         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3800
3801 2010-10-28  Bruno Haible  <bruno@clisp.org>
3802
3803         posix_spawn*, getdtablesize: Relax license.
3804         * modules/posix_spawn (License): Change to LGPLv2+.
3805         * modules/posix_spawnp (License): Likewise.
3806         * modules/posix_spawn-internal (License): Likewise.
3807         * modules/posix_spawnattr_init (License): Likewise.
3808         * modules/posix_spawnattr_getflags (License): Likewise.
3809         * modules/posix_spawnattr_setflags (License): Likewise.
3810         * modules/posix_spawnattr_getpgroup (License): Likewise.
3811         * modules/posix_spawnattr_setpgroup (License): Likewise.
3812         * modules/posix_spawnattr_getschedparam (License): Likewise.
3813         * modules/posix_spawnattr_setschedparam (License): Likewise.
3814         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3815         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3816         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3817         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3818         * modules/posix_spawnattr_getsigmask (License): Likewise.
3819         * modules/posix_spawnattr_setsigmask (License): Likewise.
3820         * modules/posix_spawnattr_destroy (License): Likewise.
3821         * modules/posix_spawn_file_actions_init (License): Likewise.
3822         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3823         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3824         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3825         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3826         * modules/getdtablesize (License): Likewise.
3827         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3828
3829 2010-10-26  Bruno Haible  <bruno@clisp.org>
3830
3831         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3832         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3833         Cygwin and mingw.
3834         Suggested by Eric Blake.
3835
3836 2010-10-26  Bruno Haible  <bruno@clisp.org>
3837
3838         stdio: Work around compilation error due to renameat() on Solaris 10.
3839         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3840         * lib/renameat.c: Don't include <unistd.h> here.
3841         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3842         Reported by Paul Eggert and Eric Blake.
3843
3844 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3845
3846         renameat: port to Solaris 10, which declares renameat in unistd.h
3847
3848         * lib/renameat.c: Include unistd.h before stdio.h, because
3849         Solaris 10 declares renameat in unistd.h.  Problem encountered
3850         when building GNU tar 1.24 on Solaris 10.
3851
3852 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3853
3854         fdopendir: fix C89 compilation
3855         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3856         compilers.
3857
3858 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3859
3860         inttostr: simplify by removing unnecessary redundancy
3861         * lib/anytostr.c: Don't include verify.h.
3862         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3863         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3864         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3865         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3866         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3867         Likewise.
3868         * modules/inttostr (Depends-on): Remove 'verify'.
3869
3870 2010-10-23  Bruno Haible  <bruno@clisp.org>
3871
3872         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3873         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3874         Reported by Eric Blake.
3875
3876 2010-10-23  Bruno Haible  <bruno@clisp.org>
3877
3878         Tests: Fix LOCALE_JA on MirBSD 10.
3879         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3880         to an UTF-8 locale.
3881         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3882         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3883         Reported by Eric Blake.
3884
3885 2010-10-21  Bruno Haible  <bruno@clisp.org>
3886
3887         nl_langinfo test: Avoid test failure on NetBSD 5.
3888         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3889         Reported by Eric Blake.
3890
3891 2010-10-21  Eric Blake  <eblake@redhat.com>
3892
3893         c-stack: work around libsigsegv 2.8 bug
3894         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3895         overflow on at least PowerPC64.
3896
3897 2010-10-17  Bruno Haible  <bruno@clisp.org>
3898
3899         userspec: Drop redundant file.
3900         * modules/userspec (Files): Remove lib/inttostr.h.
3901
3902 2010-10-17  Bruno Haible  <bruno@clisp.org>
3903
3904         nl_langinfo tests: Silence some warnings.
3905         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3906         Reported by Jim Meyering.
3907
3908 2010-10-17  Bruno Haible  <bruno@clisp.org>
3909
3910         Make use of GCC's attribute __alloc_size__.
3911         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3912         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3913         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3914         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3915         __alloc_size__.
3916         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3917         Suggested by Jim Meyering.
3918
3919 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3920
3921         bootstrap: anchor .gitignore entries.
3922         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3923         with...
3924         (insert_vc_ignore): ... this new function, which prepends `/' to
3925         all .gitignore entries before passing them to
3926         insert_sorted_if_absent.
3927
3928 2010-10-16  Bruno Haible  <bruno@clisp.org>
3929
3930         nextafter: Fix configure check.
3931         * modules/nextafter (configure.ac): Correct expected prototype.
3932
3933 2010-10-16  Bruno Haible  <bruno@clisp.org>
3934
3935         termios: Update documentation.
3936         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3937
3938 2010-10-16  Bruno Haible  <bruno@clisp.org>
3939
3940         tests: Make them compile with TinyCC.
3941         * tests/test-strstr.c (main): Remove parentheses around array
3942         initializer.
3943
3944 2010-10-15  Eric Blake  <eblake@redhat.com>
3945
3946         ignore-value: make header idempotent
3947         * lib/ignore-value.h: Add double-inclusion guards.
3948         Reported by Stefan Berger.
3949
3950 2010-10-15  Jim Meyering  <meyering@redhat.com>
3951
3952         GNUmakefile: handle "stable" target, not "major"
3953         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3954         lists in maint.mk and announce-gen.  Without this, "make stable"
3955         would fail to ensure that $(VERSION) is up to date.
3956
3957 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3958
3959         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3960         & co.
3961
3962 2010-10-14  Bruno Haible  <bruno@clisp.org>
3963
3964         vasnprintf: Don't set errno to 0.
3965         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3966         block that sets it to 0.
3967         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3968
3969 2010-10-14  Bruno Haible  <bruno@clisp.org>
3970
3971         socketlib: Fix.
3972         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3973         gl_PREREQ_SYS_H_WINSOCK2.
3974         Reported by Ian Beckwith <ianb@erislabs.net>.
3975
3976 2010-10-13  Jim Meyering  <meyering@redhat.com>
3977
3978         test-select-stdin.c: avoid warn_unused_result warnings
3979         * tests/test-select-stdin.c: Include "macros.h".
3980         ASSERT that read and fflush succeed.
3981
3982 2010-10-13  Jim Meyering  <meyering@redhat.com>
3983
3984         git-version-gen: do require git-VC'd files in cwd
3985         * build-aux/git-version-gen: Reject a git version string
3986         if there are no commits associated with the current directory.
3987         This avoids an unlikely false-positive (unrelated dir whose parent
3988         repository also contains a tag matching v*), as pointed out
3989         by Giuseppe Scrivano in
3990         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3991
3992 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3993
3994         argv-iter: omit nonconforming declaration
3995         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3996         enum arg_iter_err declaration, which doesn't conform to C99.
3997         Solaris 10 cc warns about this.
3998
3999 2010-10-13  Eric Blake  <eblake@redhat.com>
4000
4001         termios: fix compilation on mingw
4002         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
4003         (gl_TERMIOS_H): Adjust it on mingw.
4004         * modules/termios (Makefile.am): Substitute new key.
4005         * lib/termios.in.h (includes): Make include_next conditional.
4006         * doc/posix-headers/termios.texi (termios.h): Update
4007         documentation.
4008         Reported by Daniel P. Berrange.
4009
4010 2010-10-13  Jim Meyering  <meyering@redhat.com>
4011
4012         git-version-gen: don't require that .git/ be in the current dir
4013         * build-aux/git-version-gen: Adjust this script so that it works
4014         when run from any working directory beneath the top-level .git/-
4015         containing directory.  Inspired by a patch from Giuseppe Scrivano,
4016         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
4017
4018         test-select: avoid warn_unused_result warnings
4019         * tests/test-select.c: Include "macros.h".
4020         ASSERT that each call to read, write, and pipe succeeds.
4021         While not technically required, also check each "close".
4022         * modules/select-tests (Files): Add tests/macros.h.
4023
4024         test-symlinkat: remove declaration of unused local
4025         * tests/test-symlinkat.c (main): Remove unused local, "buf".
4026
4027         test-inttostr: avoid shadowing warnings
4028         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
4029         and use malloc rather than the stack for the same reason as
4030         mentioned in the comment justifying the other allocation.
4031
4032 2010-10-11  Bruno Haible  <bruno@clisp.org>
4033
4034         stdlib: Allow multiple gnulib generated replacements to coexist.
4035         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
4036         Reported by Sam Steingold <sds@gnu.org>.
4037
4038 2010-10-11  Jim Meyering  <meyering@redhat.com>
4039
4040         fix a documentation typo
4041         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
4042
4043 2010-10-11  Eric Blake  <eblake@redhat.com>
4044
4045         futimens: work around Solaris 11 bug
4046         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
4047         * tests/test-futimens.h (test_futimens): Enhance, rather than
4048         weaken test.
4049         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4050
4051 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4052
4053         Indentation.
4054         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
4055         higher-level operators more to the left.
4056
4057 2010-10-11  Jim Meyering  <meyering@redhat.com>
4058
4059         test-futimens: avoid unwarranted test failure on Solaris 5.11
4060         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
4061         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
4062         because it tries to dereference the NULL name argument.
4063
4064 2010-10-11  Bruno Haible  <bruno@clisp.org>
4065
4066         Indentation.
4067         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
4068         indentation.
4069
4070 2010-10-11  Jim Meyering  <meyering@redhat.com>
4071
4072         spawn.in.h: make indentation consistent with parentheses
4073         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
4074         Make indentation consistent with parentheses.
4075
4076 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
4077
4078         Fix mismatched parens in previous commit
4079         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
4080         parens.
4081
4082 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
4083
4084         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
4085
4086         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
4087         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
4088         * lib/malloca.c: Include "verify.h".
4089         (verify1): Remove, replacing with a verify call.
4090         * lib/relocwrapper.c (verify1): Likewise.
4091         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
4092         Likewise.
4093         * modules/malloca (Depends-on): Add 'verify'.
4094         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
4095         * modules/vasnprintf (Depends-on): Add 'verify'.
4096         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4097         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4098         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4099         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4100         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4101         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4102         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4103
4104         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
4105
4106         Formerly the style was sometimes 2*X - 1, because the C standard
4107         was wrongly thought to disallow ?: in integral constant expressions.
4108         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
4109         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
4110         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4111         * lib/stdint.in.h (_verify_intmax_size): Likewise.
4112         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
4113         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
4114         verify that time_t cannot be floating.
4115
4116 2010-10-08  Eric Blake  <eblake@redhat.com>
4117
4118         time: enforce recent POSIX ruling that time_t is integral
4119         * lib/time.in.h (__time_t_must_be_integral): Detect any
4120         problematic systems, allowing the rest of gnulib to assume POSIX.
4121
4122 2010-10-08  Jim Meyering  <meyering@redhat.com>
4123
4124         fdopendir: fix a bug on systems lacking openat and /proc support
4125         OpenBSD 4.7 is one such system.  The most noticeable effect was
4126         failure of any application making nontrivial use of fts: rm, du,
4127         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
4128           ./rm: traversal failed: `a': Bad file descriptor
4129         Debugging that, you see that even though FD 6 was closed just
4130         prior to the opendir call in fd_clone_opendir, its resulting
4131         dir->dd_fd was 8, rather than the expected value of 6:
4132
4133         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
4134         93                close (fd);
4135         (gdb) n
4136         94                dir = fd_clone_opendir (dupfd);
4137         (gdb) n
4138         95                saved_errno = errno;
4139         (gdb) p dir->dd_fd
4140         $11 = 8
4141
4142         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
4143         The problem is that on OpenBSD, fd_clone_opendir has to resort
4144         to using the old-style save/restore CWD mechanism, due to its
4145         lack of openat/proc support, and *that* would steal the FD (6)
4146         that opendir was supposed to use.
4147
4148         The fix is to squirrel away the desired FD so that save_cwd uses a
4149         different one, and then free the dest FD right before calling opendir.
4150         That guarantees opendir will use the required file descriptor.
4151
4152         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
4153
4154 2010-10-08  Bruno Haible  <bruno@clisp.org>
4155
4156         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
4157         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
4158
4159 2010-10-08  Bruno Haible  <bruno@clisp.org>
4160
4161         nanosleep: Make replacement POSIX compliant.
4162         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
4163         is out of range.
4164         Reported by Jim Meyering.
4165
4166 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4167
4168         bootstrap: add hook for altering gnulib.mk, for Bison
4169         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
4170         the Bison bootstrapping process can rewrite file names and variables
4171         in this file before later parts of 'bootstrap' use the file.
4172         Bison wants to include lib/gnulib.mk from the top-level makefile,
4173         so it needs the file names in this file to be relative to the top
4174         level, not relative to lib; plus it needs variable names to be
4175         rewritten.
4176         (slurp): Use the new function.
4177
4178         bootstrap: reformat for readability
4179         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
4180
4181 2010-10-08  Eric Blake  <eblake@redhat.com>
4182
4183         docs: update cygwin progress
4184         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
4185         1.7.7.
4186         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
4187         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
4188         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
4189         * doc/posix-functions/carg.texi (carg): Likewise.
4190         * doc/posix-functions/cargf.texi (cargf): Likewise.
4191         * doc/posix-functions/casin.texi (casin): Likewise.
4192         * doc/posix-functions/casinf.texi (casinf): Likewise.
4193         * doc/posix-functions/casinh.texi (casinh): Likewise.
4194         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
4195         * doc/posix-functions/catan.texi (catan): Likewise.
4196         * doc/posix-functions/catanf.texi (catanf): Likewise.
4197         * doc/posix-functions/catanh.texi (catanh): Likewise.
4198         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
4199         * doc/posix-functions/ccos.texi (ccos): Likewise.
4200         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
4201         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
4202         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
4203         * doc/posix-functions/cexp.texi (cexp): Likewise.
4204         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
4205         * doc/posix-functions/cimag.texi (cimag): Likewise.
4206         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
4207         * doc/posix-functions/clog.texi (clog): Likewise.
4208         * doc/posix-functions/clogf.texi (clogf): Likewise.
4209         * doc/posix-functions/conj.texi (conj): Likewise.
4210         * doc/posix-functions/conjf.texi (conjf): Likewise.
4211         * doc/posix-functions/cpow.texi (cpow): Likewise.
4212         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
4213         * doc/posix-functions/cproj.texi (cproj): Likewise.
4214         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
4215         * doc/posix-functions/creal.texi (creal): Likewise.
4216         * doc/posix-functions/crealf.texi (crealf): Likewise.
4217         * doc/posix-functions/csin.texi (csin): Likewise.
4218         * doc/posix-functions/csinf.texi (csinf): Likewise.
4219         * doc/posix-functions/csinh.texi (csinh): Likewise.
4220         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
4221         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
4222         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
4223         * doc/posix-functions/ctan.texi (ctan): Likewise.
4224         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
4225         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
4226         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
4227         * doc/posix-headers/complex.texi (complex.h): Likewise.
4228
4229 2010-10-07  Jim Meyering  <meyering@redhat.com>
4230
4231         parse-datetime: avoid compilation failure on OpenBSD 4.7
4232         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
4233         This works around a compilation failure on OpenBSD 4.7:
4234         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
4235
4236 2010-10-07  Eric Blake  <eblake@redhat.com>
4237
4238         docs: update cygwin progress
4239         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
4240         1.7.6.
4241         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4242         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
4243         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
4244         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
4245         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
4246         Likewise.
4247         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
4248         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
4249         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
4250         Likewise.
4251         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
4252         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
4253         Likewise.
4254         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
4255         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
4256         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
4257         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
4258         Likewise.
4259         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
4260         Likewise.
4261         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
4262
4263         docs: update parse-datetime history
4264         * doc/parse-datetime.texi (Authors of parse_datetime): Better
4265         documentation of this function's history and alternatives.
4266
4267         cygwin: use more robust version check
4268         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
4269         exclude an eventual cygwin 1.9.1.
4270         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4272         (gl_FUNC_STRCASESTR): Likewise.
4273         Reported by Bruno Haible.
4274
4275 2010-10-06  Bruno Haible  <bruno@clisp.org>
4276
4277         string, sys_select: Avoid #including large headers unless necessary.
4278         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
4279         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
4280         OSF/1, BeOS, Haiku.
4281         Reported by Jim Meyering.
4282
4283 2010-10-05  Eric Blake  <eblake@redhat.com>
4284
4285         memmem, strstr, strcasestr: fix bug with long periodic needle
4286         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
4287         periodic needle having false positive.
4288         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
4289         and cygwin 1.7.7.
4290         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
4291         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4292         (gl_FUNC_STRCASESTR): Likewise.
4293         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4294         * tests/test-memmem.c (main): Expose the bug.
4295         * tests/test-strcasestr.c (main): Likewise.
4296         * tests/test-strstr.c (main): Likewise.
4297         * tests/test-c-strcasestr.c (main): Likewise.
4298         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
4299         * doc/posix-functions/strstr.texi (strstr): Likewise.
4300         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4301         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
4302
4303 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4304
4305         parse-datetime: do some more renaming
4306         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
4307         parse_datetime, not get_date.  Mention the renaming.
4308         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
4309         in comments.
4310         * m4/bison.m4: Likewise.
4311
4312 2010-10-05  Eric Blake  <eblake@redhat.com>
4313
4314         parse-datetime: better name than get_date
4315         * NEWS: Reword the deprecation notice.
4316         * modules/get_date: Rename to modules/parse-datetime.
4317         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
4318         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
4319         * lib/get_date.y: Rename to lib/parse-datetime.y.
4320         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
4321         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
4322         * doc/getdate.texi: Provide fallback wrapper.
4323         * lib/getdate.h: Move guts, and wrap...
4324         * lib/parse-datetime.h: ...new file.
4325         * lib/parse-datetime.y (get_date): Rename...
4326         (parse_datetime): ...to this.
4327         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
4328         (gl_PARSE_DATETIME): ...to this.
4329         * doc/posix-functions/getdate.texi (get_date): Provide fallback
4330         documentation.
4331         * modules/getdate (Files): Provide fallback docs and header.
4332         (Notice, Depends-on): Update references.
4333         * tests/test-parse-datetime.c: Likewise.
4334         * DEPENDENCIES: Likewise.
4335         * MODULES.html.sh (Date and time <time.h>): Likewise.
4336         * doc/parse-datetime.texi (Date input formats)
4337         (Authors of parse_datetime): Likewise.
4338         * modules/parse-datetime (Files, configure.ac, Makefile.am)
4339         (Include): Likewise.
4340         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
4341         * gnulib-tool: Likewise.
4342         * m4/bison.m4 (gl_BISON): Likewise.
4343         Suggested by Bruno Haible.
4344
4345 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4346
4347         more ports to Solaris tr, which needs [] around ranges
4348         * gnulib-tool: Solaris tr needs [] around ranges.
4349         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4350         * tests/test-pipe-filter-gi1.c (main): Likewise.
4351         * tests/test-pipe-filter-ii1.c (main): Likewise.
4352
4353 2010-10-05  Eric Blake  <eblake@redhat.com>
4354
4355         bootstrap: fix Solaris regression
4356         * build-aux/bootstrap (check_versions): Solaris tr still needs []
4357         around ranges.
4358         Reported by Pádraig Brady.
4359
4360         bootstrap: work with pkg-config
4361         * build-aux/bootstrap (check_versions): Also transliterate - in
4362         prerequisite name.
4363         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
4364         prerequisites that were already found, to avoid confusion.
4365         Reported by Justin Clift.
4366
4367         faccessat: remove unused wrappers
4368         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
4369         presence of these wrappers dragged in -lgen on Solaris.
4370         Reported by Clemens Brogi; fix suggested by Paul Eggert.
4371
4372 2010-10-05  Jim Meyering  <meyering@redhat.com>
4373
4374         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
4375         * Makefile (sc_pragma_columns): New syntax-check rule.
4376
4377 2010-10-04  Bruno Haible  <bruno@clisp.org>
4378
4379         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
4380         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
4381         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
4382         Reported by Bruce Korb and Eric Blake.
4383
4384 2010-10-04  Bruno Haible  <bruno@clisp.org>
4385
4386         threadlib: Make option --with-libpth-prefix work.
4387         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
4388         use $LIBPTH, not just -lpth.
4389
4390 2010-10-04  Bruno Haible  <bruno@clisp.org>
4391
4392         Avoid line length limitation from HP NonStop system header files.
4393         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
4394         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
4395         * lib/ctype.in.h: Likewise.
4396         * lib/dirent.in.h: Likewise.
4397         * lib/errno.in.h: Likewise.
4398         * lib/fcntl.in.h: Likewise.
4399         * lib/float.in.h: Likewise.
4400         * lib/getopt.in.h: Likewise.
4401         * lib/iconv.in.h: Likewise.
4402         * lib/inttypes.in.h: Likewise.
4403         * lib/langinfo.in.h: Likewise.
4404         * lib/locale.in.h: Likewise.
4405         * lib/math.in.h: Likewise.
4406         * lib/netdb.in.h: Likewise.
4407         * lib/netinet_in.in.h: Likewise.
4408         * lib/poll.in.h: Likewise.
4409         * lib/pthread.in.h: Likewise.
4410         * lib/pty.in.h: Likewise.
4411         * lib/sched.in.h: Likewise.
4412         * lib/se-selinux.in.h: Likewise.
4413         * lib/search.in.h: Likewise.
4414         * lib/signal.in.h: Likewise.
4415         * lib/spawn.in.h: Likewise.
4416         * lib/stdarg.in.h: Likewise.
4417         * lib/stddef.in.h: Likewise.
4418         * lib/stdint.in.h: Likewise.
4419         * lib/stdio.in.h: Likewise.
4420         * lib/stdlib.in.h: Likewise.
4421         * lib/string.in.h: Likewise.
4422         * lib/strings.in.h: Likewise.
4423         * lib/sys_file.in.h: Likewise.
4424         * lib/sys_ioctl.in.h: Likewise.
4425         * lib/sys_select.in.h: Likewise.
4426         * lib/sys_socket.in.h: Likewise.
4427         * lib/sys_stat.in.h: Likewise.
4428         * lib/sys_time.in.h: Likewise.
4429         * lib/sys_times.in.h: Likewise.
4430         * lib/sys_utsname.in.h: Likewise.
4431         * lib/sys_wait.in.h: Likewise.
4432         * lib/sysexits.in.h: Likewise.
4433         * lib/termios.in.h: Likewise.
4434         * lib/time.in.h: Likewise.
4435         * lib/unistd.in.h: Likewise.
4436         * lib/wchar.in.h: Likewise.
4437         * lib/wctype.in.h: Likewise.
4438         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4439         * modules/ctype (Makefile.am): Likewise.
4440         * modules/dirent (Makefile.am): Likewise.
4441         * modules/errno (Makefile.am): Likewise.
4442         * modules/fcntl-h (Makefile.am): Likewise.
4443         * modules/float (Makefile.am): Likewise.
4444         * modules/getopt-posix (Makefile.am): Likewise.
4445         * modules/iconv-h (Makefile.am): Likewise.
4446         * modules/inttypes (Makefile.am): Likewise.
4447         * modules/langinfo (Makefile.am): Likewise.
4448         * modules/locale (Makefile.am): Likewise.
4449         * modules/math (Makefile.am): Likewise.
4450         * modules/netdb (Makefile.am): Likewise.
4451         * modules/netinet_in (Makefile.am): Likewise.
4452         * modules/poll-h (Makefile.am): Likewise.
4453         * modules/pthread (Makefile.am): Likewise.
4454         * modules/pty (Makefile.am): Likewise.
4455         * modules/sched (Makefile.am): Likewise.
4456         * modules/search (Makefile.am): Likewise.
4457         * modules/selinux-h (Makefile.am): Likewise.
4458         * modules/signal (Makefile.am): Likewise.
4459         * modules/spawn (Makefile.am): Likewise.
4460         * modules/stdarg (Makefile.am): Likewise.
4461         * modules/stddef (Makefile.am): Likewise.
4462         * modules/stdint (Makefile.am): Likewise.
4463         * modules/stdio (Makefile.am): Likewise.
4464         * modules/stdlib (Makefile.am): Likewise.
4465         * modules/string (Makefile.am): Likewise.
4466         * modules/strings (Makefile.am): Likewise.
4467         * modules/sys_file (Makefile.am): Likewise.
4468         * modules/sys_ioctl (Makefile.am): Likewise.
4469         * modules/sys_select (Makefile.am): Likewise.
4470         * modules/sys_socket (Makefile.am): Likewise.
4471         * modules/sys_stat (Makefile.am): Likewise.
4472         * modules/sys_time (Makefile.am): Likewise.
4473         * modules/sys_times (Makefile.am): Likewise.
4474         * modules/sys_utsname (Makefile.am): Likewise.
4475         * modules/sys_wait (Makefile.am): Likewise.
4476         * modules/sysexits (Makefile.am): Likewise.
4477         * modules/termios (Makefile.am): Likewise.
4478         * modules/time (Makefile.am): Likewise.
4479         * modules/unistd (Makefile.am): Likewise.
4480         * modules/wchar (Makefile.am): Likewise.
4481         * modules/wctype (Makefile.am): Likewise.
4482
4483 2010-10-04  Bruno Haible  <bruno@clisp.org>
4484
4485         read-file tests: Avoid a test failure on NonStop Kernel.
4486         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4487         a regular file.
4488         Reported by Joachim Schmitz <schmitz@hp.com>.
4489
4490 2010-10-03  Bruno Haible  <bruno@clisp.org>
4491
4492         gnulib-tool: Fixes for --create-testdir with --libtool.
4493         * gnulib-tool (func_get_automake_snippet): Don't augment
4494         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4495         an executable.
4496         (func_create_testdir): Handle module 'alloca' like func_import.
4497         Reported by Bruce Korb <bruce.korb@gmail.com>.
4498
4499 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4500
4501         Avoid some lines longer than 80 characters.
4502         * lib/stdint.in.h: Break long comment lines.
4503         * lib/math.in.h: Likewise.
4504         (_GL_NUM_UINT_WORDS): New macro, for readability.
4505         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4506         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4507         * lib/stdlib.in.h: Likewise.
4508         * lib/spawn.in.h: Likewise.
4509         * lib/sys_socket.in.h: Update an URL.
4510         * lib/sys_stat.in.h: Break long line.
4511
4512 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4513
4514         Improve pmccabe2html.
4515         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4516         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4517         when the sources change. Remove the line in the HTML about "Used
4518         ranges" (which implied that there might be other unused ranges),
4519         rename "Resume" to "Summary" (easier to understand for more users).
4520         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4521         styles, and some unnecessary blank lines.
4522
4523 2010-10-03  Bruno Haible  <bruno@clisp.org>
4524             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4525
4526         acl: Add support for ACLs on NonStop Kernel.
4527         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4528         Check whether the function aclsort() exists.
4529         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4530         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4531         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4532         (acl_nontrivial [HAVE_ACLSORT]: New function.
4533         (file_has_acl): Implement for NonStop Kernel.
4534         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4535         (qset_acl): Implement for NonStop Kernel.
4536         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4537         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4538         (main): Implement for NonStop Kernel.
4539         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4540         Kernel. Handle this flavor.
4541         * tests/test-set-mode-acl.sh: Likewise.
4542         * tests/test-copy-acl.sh: Likewise.
4543         * tests/test-copy-file.sh: Likewise.
4544
4545 2010-10-03  Bruno Haible  <bruno@clisp.org>
4546
4547         Info about ACLs on NonStop Kernel.
4548         * doc/acl-resources.txt: Add info about NonStop Kernel.
4549         References by Joachim Schmitz <schmitz@hp.com>.
4550
4551 2010-10-02  Bruno Haible  <bruno@clisp.org>
4552
4553         Define missing EDQUOT on NonStop Kernel.
4554         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4555         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4556         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4557         missing.
4558         * doc/posix-headers/errno.texi: Mention the NSK bug.
4559         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4560         Reported by Joachim Schmitz <schmitz@hp.com>.
4561
4562 2010-10-02  Bruno Haible  <bruno@clisp.org>
4563
4564         Update doc for POSIX:2008.
4565         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4566         Update URL of POSIX specification.
4567
4568 2010-10-02  Bruno Haible  <bruno@clisp.org>
4569
4570         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4571         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4572         from gnulib, not from Automake.
4573
4574 2010-10-02  Bruno Haible  <bruno@clisp.org>
4575
4576         New module 'system-posix'.
4577         * modules/system-posix: New file.
4578         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4579         module is present.
4580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4581         GNULIB_SYSTEM_POSIX.
4582         * modules/stdlib (Depends-on): Remove sys_wait.
4583         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4584         * doc/posix-functions/system.texi: Mention the new module.
4585         * doc/posix-headers/stdlib.texi: Likewise.
4586         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4587         define test_sys_wait_macros to a no-op.
4588         Reported by Sam Steingold <sds@gnu.org>.
4589
4590 2010-09-30  Bruno Haible  <bruno@clisp.org>
4591
4592         More renaming from 'getdate' to 'get_date'.
4593         * doc/get_date.texi: Renamed from doc/getdate.texi.
4594         * modules/get_date (Files): Update.
4595         * MODULES.html.sh (Date and time <time.h>): Update.
4596         * DEPENDENCIES: Update.
4597         * gnulib-tool: Update comment.
4598         * m4/bison.m4 (gl_BISON): Likewise.
4599         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4600
4601 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4602
4603         bootstrap: support ACLOCAL_FLAGS during aclocal
4604         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4605         can add additional -I dir for third-party .m4 files.
4606
4607 2010-09-30  Eric Blake  <eblake@redhat.com>
4608
4609         bootstrap: use glibtoolize on MacOS
4610         * build-aux/bootstrap (check_versions): Convert libtool into
4611         libtoolize.
4612         (tool search): Move libtool check earlier, and look for
4613         glibtoolize for MacOS.
4614         (gnulib_tool_options): Auto-add --libtool when appropriate.
4615         Reported by Justin Clift.
4616
4617         poll: fix typo that broke test on MacOS
4618         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4619         Reported by Justin Clift.
4620
4621         getdate: rename to get_date
4622         Note: getdate.h is not renamed, to minimize client impact.
4623         * modules/getdate: Mark obsolete.  Move old contents...
4624         * modules/get_date: ...to new module name.
4625         * modules/getdate-tests: Move...
4626         * modules/get_date-tests: ...here.
4627         * m4/getdate.m4: Move...
4628         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4629         * lib/getdate.y: Move...
4630         * lib/get_date.y: ...here.
4631         * tests/test-getdate.c: Move...
4632         * tests/test-get_date.c: ...here.
4633         * doc/posix-functions/getdate.texi (getdate): Update name.
4634         * NEWS: Mention the change.
4635
4636 2010-09-29  Bruno Haible  <bruno@clisp.org>
4637
4638         Separate the module 'waitpid' from the module 'sys_wait'.
4639         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4640         present.
4641         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4642         gl_MODULE_INDICATOR_FOR_TESTS.
4643         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4644         * modules/sys_wait (Depends-on): Remove waitpid.
4645         (Makefile.am): Substitute GNULIB_WAITPID.
4646         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4647         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4648         signature only if the 'waitpid' module is present.
4649         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4650         * NEWS: Mention the change.
4651         * modules/grantpt (Depends-on): Add waitpid.
4652         * modules/wait-process (Depends-on): Likewise.
4653
4654 2010-09-29  Bruno Haible  <bruno@clisp.org>
4655
4656         More tests for module 'sys_wait'.
4657         * modules/sys_wait-c++-tests: New file.
4658         * tests/test-sys_wait-c++.cc: New file.
4659         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4660         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4661
4662 2010-09-29  Bruno Haible  <bruno@clisp.org>
4663
4664         New module 'waitpid'.
4665         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4666         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4667         Don't include <process.h>.
4668         (waitpid): Declare only, using modern idiom.
4669         * m4/waitpid.m4: New file.
4670         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4671         * modules/waitpid: New file.
4672         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4673         (Makefile.am): Update.
4674         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4675
4676 2010-09-28  Bruno Haible  <bruno@clisp.org>
4677
4678         poll: Assume ANSI C.
4679         * lib/poll.c (poll): Use an ANSI C declaration.
4680
4681 2010-09-28  Bruno Haible  <bruno@clisp.org>
4682
4683         poll-h: Create poll.h on all platforms.
4684         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4685         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4686         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4687         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4688         (gl_REPLACE_POLL_H): Don't set POLL_H.
4689         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4690         * modules/poll-h (Depends-on): Add include_next.
4691         (Makefile.am): Create poll.h unconditionally. Substitute also
4692         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4693
4694 2010-09-28  Bruno Haible  <bruno@clisp.org>
4695
4696         Tests for module 'poll-h'.
4697         * modules/poll-h-c++-tests: New file.
4698         * tests/test-poll-h-c++.cc: New file.
4699
4700         Tests for module 'poll-h'.
4701         * modules/poll-h-tests: New file.
4702         * tests/test-poll-h.c: New file.
4703
4704 2010-09-28  Bruno Haible  <bruno@clisp.org>
4705
4706         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4707         * modules/poll-h (Depends-on): Add 'extensions'.
4708
4709 2010-09-28  Bruno Haible  <bruno@clisp.org>
4710
4711         New module 'poll-h'.
4712         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4713         (poll): Use modern idiom.
4714         * modules/poll-h: New file.
4715         * modules/poll (Files): Remove lib/poll.in.h.
4716         (Depends-on): Add poll-h.
4717         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4718         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4719         * m4/poll_h.m4: New file.
4720         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4721         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4722         and invoke gl_REPLACE_POLL_H.
4723         * lib/poll.c: Use common idiom.
4724         * tests/test-poll.c: Likewise.
4725         * doc/posix-headers/poll.texi: Mention the poll-h module.
4726         Suggested by Eric Blake.
4727
4728 2010-09-26  Bruno Haible  <bruno@clisp.org>
4729
4730         sys_wait: Implement WSTOPSIG.
4731         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4732         Reported by Simon Josefsson.
4733
4734 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4735
4736         stdlib, sys_wait: Avoid compilation error on mingw.
4737         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4738
4739 2010-09-26  Bruno Haible  <bruno@clisp.org>
4740
4741         stdlib tests: Avoid code duplication.
4742         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4743         * modules/sys_wait-tests (Files): Likewise.
4744         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4745         * tests/test-stdlib.c: Include test-sys_wait.h.
4746         (main): Invoke test_sys_wait_macros.
4747         * tests/test-sys_wait.c: Include test-sys_wait.h.
4748         (main): Invoke test_sys_wait_macros.
4749
4750 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4751
4752         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4753         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4754         sure Windows sockets are working before calling getaddrinfo.
4755         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4756         * doc/gnulib.texi (Windows sockets): Fix typo.
4757
4758 2010-09-25  Bruno Haible  <bruno@clisp.org>
4759
4760         Tests for module 'regex-quote'.
4761         * modules/regex-quote-tests: New file.
4762         * tests/test-regex-quote.c: New file.
4763
4764         New module 'regex-quote'.
4765         * lib/regex-quote.h: New file.
4766         * lib/regex-quote.c: New file.
4767         * modules/regex-quote: New file.
4768         Suggested by Reuben Thomas <rrt@sc3d.org>.
4769
4770 2010-09-24  Bruno Haible  <bruno@clisp.org>
4771
4772         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4773         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4774
4775 2010-09-23  Bruno Haible  <bruno@clisp.org>
4776
4777         setenv: Relax license.
4778         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4779         Blake.
4780         Requested by Eric Blake.
4781
4782 2010-09-22  Bruno Haible  <bruno@clisp.org>
4783
4784         termios: Relax license.
4785         * modules/termios (License): Change to LGPLv2+.
4786         Requested by Eric Blake.
4787
4788 2010-09-22  Bruno Haible  <bruno@clisp.org>
4789
4790         threadlib: Allow the package to change the default to 'no'.
4791         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4792         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4793         Reported by Paul Eggert.
4794
4795 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4796             Bruno Haible  <bruno@clisp.org>
4797
4798         Fix endless loop in mbmemcasecoll.
4799         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4800         byte.
4801         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4802
4803 2010-09-22  Bruno Haible  <bruno@clisp.org>
4804
4805         Tests for module 'memcoll'.
4806         * modules/memcoll-tests: New file.
4807         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4808
4809         memcoll, xmemcoll: Clarify size vs. length.
4810         * modules/memcoll.c (memcoll0): Clarify specification.
4811         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4812         passed to collate_error.
4813
4814 2010-09-22  Bruno Haible  <bruno@clisp.org>
4815
4816         Tests for module 'memcasecmp'.
4817         * modules/memcasecmp-tests: New file.
4818         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4819
4820 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4821
4822         * lib/pthread.in.h: Add split double-inclusion guard, and include
4823         system <pthread.h> if there is one.  Use @@-style as in other
4824         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4825         pthread.h doesn't.
4826         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4827         (pthread_mutexattr_settype, pthread_mutex_trylock):
4828         New static inline functions, if there's no system <pthread.h>.
4829         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4830         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4831         Approximate with mutexes if the system lacks spinlocks, as in
4832         MacOS.
4833         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4834         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4835         @@-style.  Check for spinlocks separately.
4836         (gl_PTHREAD_DEFAULTS): New macro.
4837         * modules/pthread: Redo to use a more typical style for in.h files.
4838
4839 2010-09-21  Eric Blake  <eblake@redhat.com>
4840
4841         net_if: enhance tests
4842         * tests/test-net_if.c (main): Move signature checks earlier.
4843         Print failures to stderr.
4844         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4845         Document the bug that we do not yet fix.
4846
4847 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4848
4849         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4850         about gnulib, not GSS.
4851
4852 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4853
4854         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4855         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4856         for Emacs.
4857         * build-aux/pmccabe2html: Make Makefile.am example code more
4858         cut-and-paste friendly.
4859
4860 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4861
4862         * tests/test-net_if.c: New file.
4863         * modules/net_if-tests: New file.
4864
4865 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         pthread: add pthread_spin_destroy
4868         * lib/pthread.in.h (pthread_spin_destroy): New function.
4869
4870 2010-09-19  Bruno Haible  <bruno@clisp.org>
4871
4872         gnulib-tool: Fix --help output.
4873         * gnulib-tool (func_usage): Fix help message.
4874         Reported by Reuben Thomas <rrt@sc3d.org>.
4875
4876 2010-09-18  Jim Meyering  <meyering@redhat.com>
4877
4878         maint.mk: avoid unexpanded \n in two diagnostics
4879         * top/maint.mk (sc_prohibit_always_true_header_tests):
4880         Don't use a literal \n in a halt=... assignment.  It would not be
4881         expanded, and the two \n bytes would appear in the diagnostic output
4882         rather than the desired newline.  Use halt=$$(printf ... instead.
4883         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4884
4885 2010-09-18  Bruno Haible  <bruno@clisp.org>
4886
4887         netinet_in: Doc tweak.
4888         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4889         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4890
4891 2010-09-18  Jim Meyering  <meyering@redhat.com>
4892
4893         init.sh: correct an outdated comment
4894         * tests/init.sh (create_exe_shims_):  s/function/alias/
4895
4896         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4897         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4898         a file named "*.exe" is removed between the glob expansion and the
4899         processing of that oddly named file.
4900
4901 2010-09-17  Eric Blake  <eblake@redhat.com>
4902
4903         mirbsd: add some more support
4904         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4905         in BSD family.
4906         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4907         devices as OpenBSD.
4908         * m4/host-os.m4 (mirbsd): Add MirBSD.
4909
4910         tests: fix unportable assumption on sys/wait.h
4911         * tests/test-sys_wait.c (main): Relax test.
4912         * tests/test-stdlib.c (main): Likewise.
4913
4914         init.sh: accomodate directory with no .exes
4915         * tests/init.sh: Accomodate directory containing only scripts.
4916
4917         tests: avoid compiler warning
4918         * tests/test-stdlib.c (main): Use the variable.
4919
4920         fdutimens, fdutimensat: update signature, again
4921         * lib/utimens.h (gl_futimens): Delete, and move signature...
4922         (fdutimens): ...here.
4923         (fdutimensat): Rearrange signature.
4924         (lutimensat): Rename variable for clarity.
4925         * lib/fdutimensat.c (fdutimensat): Update signature.
4926         * lib/utimens.c (fdutimens): Likewise.
4927         (gl_futimens): Delete.
4928         (utimens, lutimens): Update callers.
4929         * lib/futimens.c (futimens): Likewise.
4930         * tests/test-fdutimensat.c: Likewise.
4931         * tests/test-utimens.c: Likewise.
4932         * tests/test-futimens.h: Update comment.
4933         * NEWS: Mention this.
4934         Suggested by Paul Eggert.
4935
4936 2010-09-17  Bruno Haible  <bruno@clisp.org>
4937
4938         Take over the maintenance of some older macros from Autoconf.
4939         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4940         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4941         GNU Autoconf.
4942         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4943         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4944
4945 2010-09-17  Eric Blake  <eblake@redhat.com>
4946
4947         fdutimensat: drop atflag validation
4948         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4949         with valid fd, to close a race scenario where futimens is
4950         unsupported and FILE was replaced by a symlink.
4951         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4952         accordingly.
4953         Suggested by Paul Eggert.
4954
4955 2010-09-16  Bruno Haible  <bruno@clisp.org>
4956
4957         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4958         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4959
4960 2010-09-16  Bruno Haible  <bruno@clisp.org>
4961
4962         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4963         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4964         login_tty exists.
4965         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4966
4967 2010-09-16  Bruno Haible  <bruno@clisp.org>
4968
4969         login_tty: Make the replacement code work on BSD systems.
4970         * lib/login_tty.c: Include <sys/ioctl.h>.
4971         (login_tty): Use ioctl TIOCSCTTY when available.
4972         * modules/login_tty (Depends-on): Add sys_ioctl.
4973         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4974
4975 2010-09-16  Bruno Haible  <bruno@clisp.org>
4976
4977         login_tty: Stricter unit test.
4978         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4979         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4980         and tcgetsid() after login_tty.
4981         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4982
4983 2010-09-16  Bruno Haible  <bruno@clisp.org>
4984
4985         New module 'tcgetsid'.
4986         * lib/tcgetsid.c: New file.
4987         * m4/tcgetsid.m4: New file.
4988         * modules/tcgetsid: New file.
4989         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4990         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4991         GNULIB_TCGETSID, HAVE_TCGETSID.
4992         * lib/termios.in.h: Include <sys/types.h>.
4993         (tcgetsid): New declaration.
4994         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4995         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4996         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4997         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4998
4999 2010-09-16  Bruno Haible  <bruno@clisp.org>
5000
5001         Tests for module 'termios'.
5002         * modules/termios-c++-tests: New file.
5003         * modules/termios-tests: New file.
5004         * tests/test-termios-c++.cc: New file.
5005         * tests/test-termios.c: New file.
5006
5007         New module 'termios'.
5008         * modules/termios: New file.
5009         * lib/termios.in.h: New file.
5010         * m4/termios_h.m4: New file.
5011         * doc/posix-headers/termios.texi: Mention the new module.
5012
5013 2010-09-16  Eric Blake  <eblake@redhat.com>
5014
5015         fdutimensat: add an atflag parameter
5016         * lib/fdutimensat.c (fdutimensat): Add new parameter.
5017         * lib/utimens.h (fdutimensat): Update prototype.
5018         * tests/test-fdutimensat.c: Adjust test to match.
5019         * NEWS: Document the change.
5020         Suggested by Paul Eggert.
5021
5022 2010-09-16  Bruno Haible  <bruno@clisp.org>
5023
5024         Fix typos in comments.
5025         * lib/striconveh.h: Fix typo in comment.
5026         * lib/login_tty.c (login_tty): Likewise.
5027
5028 2010-09-15  Bruno Haible  <bruno@clisp.org>
5029
5030         stdlib: clarify MirBSD WEXITSTATUS bug
5031         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
5032         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5033
5034 2010-09-15  Eric Blake  <eblake@redhat.com>
5035
5036         stdlib: work around MirBSD WEXITSTATUS bug
5037         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
5038         * modules/stdlib (Depends-on): Add sys_wait.
5039         * tests/test-sys_wait.c (main): Enhance test.
5040         * tests/test-stdlib.c (main): Likewise.
5041         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
5042
5043         docs: mention MacOS issue with WEXITSTATUS(constant)
5044         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
5045         issue.
5046         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5047
5048         strnlen: add tests
5049         * modules/strnlen-tests: New file.
5050         * tests/test-strnlen.c: Likewise.
5051
5052 2010-09-14  Bruno Haible  <bruno@clisp.org>
5053
5054         unistr/base: Avoid link errors when module 'libunistring' is also used.
5055         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
5056         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
5057         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
5058         Declare also when HAVE_LIBUNISTRING is set.
5059         Reported by Pádraig Brady <P@draigbrady.com>.
5060
5061 2010-09-14  Eric Blake  <eblake@redhat.com>
5062
5063         test-rawmemchr: make more robust
5064         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
5065         (Depends-on, configure.ac): Add needed prerequisites to use it.
5066         * modules/memchr-tests (Files, Depends-on, configure.ac):
5067         Likewise, to avoid implicit reliance on memchr module prereqs.
5068         * tests/test-memchr.c (main): Ensure proper masking.
5069         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
5070         reads.
5071
5072         memchr: detect glibc Alpha bug
5073         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
5074         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
5075         Alpha.
5076         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
5077         * tests/test-memchr.c (main): Enhance test.
5078         Reported by Nelson H. F. Beebe.
5079
5080 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5081
5082         fts, getcwd, glob: audit for dirfd returning -1
5083         * lib/fts.c (opendir): Remove #define; no longer used.
5084         (opendirat): New arg PDIR_FD.  All callers changed.
5085         (fts_build, _opendir2): Use new opendirat to avoid the need for
5086         dirfd, or for checking whether dirfd returns a negative value.
5087         Don't use opendir; always use openat followed by fdopendir.
5088         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
5089         it.
5090         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
5091         returns -1 here.
5092         * modules/fts (Depends-on): Remove dirfd.
5093         * modules/getcwd (Depends-on): Likewise.
5094
5095 2010-09-13  Eric Blake  <eblake@redhat.com>
5096
5097         float: fix broken MirBSD header
5098         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
5099         * doc/posix-headers/float.texi (float.h): Document it.
5100
5101 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5102
5103         fts: use O_NOFOLLOW to avoid race condition when opening a directory
5104         * lib/fts.c (opendirat): New arg extra_flags.
5105         (__opendir2): Use it to avoid following symlinks when opening
5106         a directory, if symlinks are not supposed to be followed.  See
5107         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
5108
5109         fdopendir: preserve argument fd before returning
5110         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
5111         (fdopendir_with_dup, fd_clone_opendir): New static functions.
5112         (fdopendir): Use them, arranging for FD to be open to the same
5113         directory that it was when it started.  (It might be temporarily
5114         closed while fdopendir is running, so this not thread- or
5115         signal-safe.)  Be careful to do the right thing even when file
5116         descriptors are scarce and dup fails with errno == EMFILE.  See
5117         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
5118
5119 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
5120
5121         regex: Pass the system regex if its only problem is 32-bit regoff_t.
5122         * NEWS: Document change.
5123         * m4/regex.m4: Disable test for regoff_t size.
5124
5125 2010-09-13  Jim Meyering  <meyering@redhat.com>
5126
5127         fts: don't operate on an invalid file descriptor after failed dup
5128         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
5129         negative file descriptor.
5130
5131 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5132
5133         savedir: add streamsavedir, deprecate fdsavedir
5134         * NEWS: Mention deprecation of fdsavedir.
5135         * lib/savedir.c (streamsavedir): New extern function, whose name
5136         ends in "savedir" to be consistent with the others.  This differs
5137         from savedirstream in that it doesn't close its argument.  The
5138         next version of GNU tar will use this instead of fdsavedir, to
5139         avoid some race conditions and conserve file descriptors.
5140         (savedirstream): Reimplement as a wrapper around streamsavedir.
5141         (fdsavedir): Add a comment deprecating this function.  As far as
5142         I know, only GNU tar used it, and GNU tar doesn't need it any more.
5143         * lib/savedir.h (streamsavedir): New decl.
5144         (fdsavedir): Add a comment deprecating this.
5145
5146 2010-09-10  Bruno Haible  <bruno@clisp.org>
5147
5148         langinfo: Fix last commit.
5149         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
5150         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
5151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5152
5153 2010-09-10  Bruno Haible  <bruno@clisp.org>
5154
5155         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
5156         * lib/progreloc.c (O_EXEC): Define fallback.
5157
5158 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
5159
5160         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
5161         * NEWS: Document recent changes to fcntl-h.
5162         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
5163         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
5164         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
5165         Similarly for O_SEARCH; this last was already true, but not documented.
5166         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
5167         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
5168         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
5169         Likewise.
5170         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
5171         is zero, not whether it is defined.
5172         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
5173         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
5174         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
5175
5176 2010-09-10  Bruno Haible  <bruno@clisp.org>
5177
5178         langinfo, nl_langinfo: Fix for IRIX 5.3.
5179         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
5180         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
5181         HAVE_LANGINFO_YESEXPR.
5182         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
5183         HAVE_LANGINFO_YESEXPR.
5184         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
5185         HAVE_LANGINFO_T_FMT_AMPM is 0.
5186         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
5187         HAVE_LANGINFO_YESEXPR is 0.
5188         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
5189         NOEXPR.
5190         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
5191         * doc/posix-functions/nl_langinfo.texi: Likewise.
5192         Reported by Eric Blake.
5193
5194 2010-09-10  Bruno Haible  <bruno@clisp.org>
5195
5196         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
5197         * doc/glibc-functions/login_tty.texi: Mention the include file problem
5198         on FreeBSD 8.0 and OpenBSD 4.6.
5199         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
5200         * m4/pty_h.m4 (gl_PTY_H): Likewise.
5201         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
5202         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
5203         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
5204         ac_includes_default.
5205         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5206
5207 2010-09-09  Eric Blake  <eblake@redhat.com>
5208
5209         strsignal: work around NetBSD bug
5210         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
5211         * lib/string.in.h (includes): Likewise.
5212         * doc/posix-functions/strsignal.texi (strsignal): Document the
5213         bug.
5214         Reported by Nelson H. F. Beebe.
5215
5216         gnulib-tool: work with NetBSD /bin/sh
5217         * gnulib-tool (func_cache_var, func_cache_lookup_module)
5218         (func_get_description, func_get_comment, func_get_status)
5219         (func_get_notice, func_get_applicability, func_get_filelist)
5220         (func_get_dependencies, func_get_autoconf_early_snippet)
5221         (func_get_autoconf_snippet, func_get_automake_snippet)
5222         (func_get_include_directive, func_get_link_directive)
5223         (func_get_license, func_get_maintainer, func_import): Avoid
5224         shell syntax errors from parsing syntax extensions.
5225
5226 2010-09-09  Bruno Haible  <bruno@clisp.org>
5227
5228         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5229         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5230         a reliable way to determine whether the 'alias' command works.
5231
5232 2010-09-08  Jim Meyering  <meyering@redhat.com>
5233
5234         init.sh: penalize a set-x-impaired shell; don't disqualify it
5235         * tests/init.sh: Too many shells corrupt application stderr when
5236         you set -x, so we can't afford to disqualify them, since at least
5237         on Irix-6.5, that would disqualify all bourne shells.
5238         Instead, use a two-pass approach.
5239         On the first pass, try to find a shell that meets the stricter
5240         condition that set -x does not corrupt stderr.
5241         If no shell meets the stricter condition, retest each candidate
5242         shell, but without that extra condition.  Finally, when
5243         VERBOSE=yes is requested and set -x might cause trouble, simply
5244         issue a warning and refrain from enabling debug output.
5245
5246 2010-09-08  Eric Blake  <eblake@redhat.com>
5247
5248         unsetenv: fix OpenBSD bug
5249         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
5250         * doc/posix-functions/unsetenv.texi (unsetenv): Update
5251         documentation.
5252         Reported by Jim Meyering.
5253
5254         strtod: work around IRIX 6.5 bug
5255         * lib/strtod.c (strtod): Reparse number on shorter string if
5256         exponent parse was invalid.
5257         * tests/test-strtod.c (main): Add check for "0x1p 2".
5258         Reported by Tom G. Christensen.
5259
5260         getopt: optimize previous patch
5261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
5262         empty variable.  Speed up awk script.
5263         Reported by Paolo Bonzini.
5264
5265 2010-09-08  Jim Meyering  <meyering@redhat.com>
5266
5267         test.sh: disqualify shells for which set -x corrupts stderr
5268         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
5269         and OpenBSD 4.7.  They make it so with "set -x", environment settings
5270         appear in stderr output.  For example, this command:
5271             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
5272         prints "P=1" on those two systems:
5273
5274 2010-09-08  Bruno Haible  <bruno@clisp.org>
5275
5276         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5277         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
5278         commands, because some shells ignore redirections when there is an
5279         error in the command lookup.
5280         Reported by Eric Blake.
5281
5282 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
5283
5284         * lib/regex.h: Fix a mention of `regex_compile' (should be
5285         `re_compile_pattern').
5286         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
5287         (re_set_registers): Correct name of parameter in comment.
5288
5289         * doc/regex.texi: Add documentation for missing syntax flags.
5290         Remove commented-out documentation of defunct syntax option
5291         RE_NO_EMPTY_ALTS.
5292         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
5293         Add documentation of re_set_registers.
5294         Document trick to re-use a pattern buffer by setting fastmap manually.
5295         Update documentation of struct re_pattern_buffer per public members.
5296         Uncomment documentation of equivalence class operators and
5297         collating symbol operators, since they are now implemented,
5298         Explain leftmost-longest matching in relation to alternatives.
5299         Tidy documentation of substring matching.
5300         Remove POSIX documentation, which is done better in
5301         glibc, and refer the reader there. Keep BSD API documentation, as
5302         that is not readily available elsewhere.
5303
5304 2010-09-07  Eric Blake  <eblake@redhat.com>
5305
5306         getopt: handle POSIXLY_CORRECT set but not exported
5307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5308         export state of POSIXLY_CORRECT, due to bash set -o posix.
5309         Reported by Dustin J. Mitchell.
5310
5311 2010-09-05  Bruno Haible  <bruno@clisp.org>
5312
5313         gnulib-tool: Highlight the changed options.
5314         * gnulib-tool (func_usage): Display the --import, --add-import,
5315         --remove-import explanations in bold font.
5316
5317 2010-09-06  Karl Berry  <karl@gnu.org>
5318
5319         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
5320
5321 2010-09-05  Bruno Haible  <bruno@clisp.org>
5322
5323         uniwidth/width: Update comment.
5324         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
5325         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5326
5327 2010-09-05  Bruno Haible  <bruno@clisp.org>
5328
5329         isinf, isnan: Relax license.
5330         * modules/isinf (License): Change from GPL to LGPL, with consent from
5331         Ben Pfaff.
5332         * modules/isnan (License): Likewise.
5333         Requested by Ludovic Courtès.
5334
5335 2010-09-04  Bruno Haible  <bruno@clisp.org>
5336
5337         gnulib-tool: Help migration from --import to --add-import or --update.
5338         * gnulib-tool: Emit a verbose error message when --import is used
5339         without any module name.
5340
5341 2010-09-04  Bruno Haible  <bruno@clisp.org>
5342
5343         Update doc about gnulib-tool.
5344         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
5345         'gnulib-tool --update' in more detail.
5346         Reported by Eric Blake.
5347
5348 2010-09-04  Bruno Haible  <bruno@clisp.org>
5349
5350         gnulib-tool: Change --import. New options --add/remove-import.
5351         * gnulib-tool: New options --add-import, --remove-import.
5352         (func_usage): Document them.
5353         (have_associative): Define always.
5354         (func_import): In import mode, don't merge the specified settings with
5355         the cached settings. Implement remove-import mode.
5356         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
5357         Explain when to use them versus --import.
5358         (Simple update): Use --add-import instead of --import.
5359         * NEWS: Mention the change.
5360
5361 2010-09-04  Bruno Haible  <bruno@clisp.org>
5362
5363         * doc/gnulib-tool.texi (Initial import): Update paragraph about
5364         separate gnulib.mk.
5365
5366 2010-09-04  Bruno Haible  <bruno@clisp.org>
5367
5368         gnulib-tool: Don't talk about CVS any more.
5369         * gnulib-tool (func_usage, func_import): Write "version control"
5370         instead of CVS.
5371
5372 2010-09-04  Jim Meyering  <meyering@redhat.com>
5373
5374         maint.mk: avoid obscure sc_copyright_check failure in coreutils
5375         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
5376         false positives (whose names may be ill-chosen) when searching
5377         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
5378         would cause a false-positive.
5379
5380         avoid coreutils "make distcheck" failure
5381         Coreutils tests with an absolute build directory name that contains
5382         a space.  Not quoting this directory name caused a failure.
5383         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
5384         * tests/test-vc-list-files-cvs.sh: Likewise.
5385
5386 2010-09-04  Bruno Haible  <bruno@clisp.org>
5387
5388         gnulib-tool: Avoid error when run in a package without Makefile.am.
5389         * gnulib-tool: When collecting the m4dirs in a package that does not
5390         have a Makefile.am, eliminate those directories that contain no
5391         gnulib-cache.m4. Fix expression that counts these directories.
5392
5393 2010-09-04  Bruno Haible  <bruno@clisp.org>
5394
5395         update-copyright test: Improve output when perl is missing or too old.
5396         * tests/test-update-copyright.sh: Move test of Perl version down after
5397         the test whether Perl exists. Provide an explanation relating Perl's
5398         error message to Automake's SKIP: message.
5399
5400 2010-09-04  Bruno Haible  <bruno@clisp.org>
5401
5402         Don't augment PATH in TESTS_ENVIRONMENT.
5403         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
5404         set abs_aux_dir instead of augmenting PATH.
5405         * modules/vc-list-files-tests (Makefile.am): Likewise.
5406         * tests/test-update-copyright.sh: Augment PATH here.
5407         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5408         path_prepend_.
5409         * tests/test-vc-list-files-git.sh: Likewise.
5410
5411 2010-09-04  Jim Meyering  <meyering@redhat.com>
5412
5413         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5414         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5415
5416 2010-09-04  Bruno Haible  <bruno@clisp.org>
5417
5418         strdup: Fix compilation error in C++ mode.
5419         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5420         the macro.
5421
5422 2010-09-04  Bruno Haible  <bruno@clisp.org>
5423
5424         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5425         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5426         macro into a function.
5427         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5428
5429 2010-09-04  Bruno Haible  <bruno@clisp.org>
5430
5431         Set PATH_SEPARATOR the same way autoconf does.
5432         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5433         the value of PATH_SEPARATOR the same way autoconf-generated configure
5434         scripts do.
5435         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5436         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5437
5438 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5439
5440         Set PATH_SEPARATOR the same way autoconf does.
5441         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5442         the same way autoconf-generated configure scripts do.
5443         * posix-modules: Likewise.
5444
5445 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5446
5447         hash: fix safe_hasher const typo
5448         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5449         const; otherwise, there is a type error later.
5450
5451 2010-09-02  Jim Meyering  <meyering@redhat.com>
5452
5453         test-update-copyright.sh: require perl 5.8.0
5454         * tests/test-update-copyright.sh: Require 5.8.0,
5455         which Tom G. Christensen has confirmed is adequate,
5456         while 5.6.1 is not.
5457
5458 2010-09-02  Eric Blake  <eblake@redhat.com>
5459
5460         tests: init.sh improvements for re-exec'ing with zsh
5461         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5462         -vx through shell re-exec.
5463         Reported by Tom G. Christensen.
5464
5465         wctype: fix typo in previous commit
5466         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5467         Reported by Ludovic Courtès.
5468
5469 2010-09-02  Jim Meyering  <meyering@redhat.com>
5470
5471         test-update-copyright.sh: skip test if Perl is too old
5472         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5473         Reported by Tom G. Christensen.
5474
5475 2010-09-02  Bruno Haible  <bruno@clisp.org>
5476
5477         wctype: Avoid compilation error on IRIX 6.5.30.
5478         * lib/wctype.in.h (iswblank): Declare with a replacement if
5479         REPLACE_ISWBLANK is set.
5480         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5481         declared. Set REPLACE_ISWBLANK.
5482         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5483         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5484         * doc/posix-headers/wctype.texi: Likewise.
5485         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5486
5487 2010-09-01  Bruno Haible  <bruno@clisp.org>
5488
5489         New module 'socketlib'.
5490         * modules/socketlib: New file.
5491         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5492         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5493         * modules/sockets (Depends-on): Add socketlib.
5494         Suggested by Sam Steingold <sds@gnu.org>.
5495
5496 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5497
5498         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5499
5500         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5501         when one needs search access to a directory but not read access.
5502         On systems where it is available, it works in some cases where
5503         O_RDONLY does not, namely on directories that are searchable but
5504         not readable, and which need only to be searchable.  If O_SEARCH
5505         is not available, fall back to the traditional method of using
5506         O_RDONLY.
5507
5508         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5509         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5510         when opening a directory that needs only to be searchable.
5511         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5512         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5513         * lib/openat-proc.c (openat_proc_name): Likewise.
5514         * lib/openat.c (openat_needs_fchdir): Likewise.
5515         * lib/save-cwd.c (save_cwd): Likewise.
5516         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5517
5518 2010-08-28  Bruno Haible  <bruno@clisp.org>
5519
5520         New module 'host-cpu-c-abi'.
5521         * modules/host-cpu-c-abi: New file.
5522         * m4/host-cpu-c-abi.m4: New file, based on part of
5523         clisp/src/m4/general.m4.
5524         Requested by Sam Steingold <sds@gnu.org>.
5525
5526 2010-08-31  Eric Blake  <eblake@redhat.com>
5527         and Jim Meyering  <meyering@redhat.com>
5528
5529         hash: factor, and guard against misbehaving hasher function
5530         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5531         of table->hasher's return value.  Also protect against a hash value
5532         so large that adding it to table->bucket results in a NULL pointer.
5533         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5534         Use it in place of open-coded check-and-abort.
5535
5536 2010-08-30  Bruno Haible  <bruno@clisp.org>
5537
5538         hash: silence spurious clang warning
5539         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5540         Reported by Eric Blake.
5541
5542 2010-08-30  Eric Blake  <eblake@redhat.com>
5543
5544         strstr, memmem, strcasestr: avoid leaked shell message
5545         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5546         FreeBSD.
5547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5548         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5549
5550         tests: silence clang warning
5551         * tests/test-malloca.c (do_allocation): Avoid dead store.
5552
5553 2010-08-29  Bruno Haible  <bruno@clisp.org>
5554
5555         gettext: Fix recent mistake.
5556         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5557
5558 2010-08-29  Bruno Haible  <bruno@clisp.org>
5559
5560         selinux-h: Offer a --without-selinux option.
5561         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5562         --without-selinux was specified, skip all tests and define
5563         HAVE_SELINUX_SELINUX_H to 0.
5564         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5565         set LIB_SELINUX to empty.
5566         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5567         gl_LIBSELINUX. If --without-selinux was specified, replace
5568         selinux/context.h.
5569         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5570
5571 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5572             Bruno Haible  <bruno@clisp.org>
5573
5574         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5575         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5576         of HAVE_REALLOC.
5577         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5578         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5579         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5580         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5581
5582 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5583             Bruno Haible  <bruno@clisp.org>
5584
5585         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5586         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5587         HAVE_CALLOC.
5588         * lib/xmalloc.c: Update accordingly.
5589         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5590         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5591         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5592
5593 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5594             Bruno Haible  <bruno@clisp.org>
5595
5596         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5597         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5598         HAVE_MALLOC.
5599         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5600         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5601         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5602
5603 2010-08-29  Bruno Haible  <bruno@clisp.org>
5604
5605         Update modules list.
5606         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5607         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5608         (String handling <string.h>): Add astrxfrm.
5609         (File system functions): Add readlinkat.
5610
5611 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5612
5613         Tests for module 'realloc-gnu'.
5614         * modules/realloc-gnu-tests: New file.
5615         * tests/test-realloc-gnu.c: New file.
5616
5617         Tests for module 'calloc-gnu'.
5618         * modules/calloc-gnu-tests: New file.
5619         * tests/test-calloc-gnu.c: New file.
5620
5621         Tests for module 'malloc-gnu'.
5622         * modules/malloc-gnu-tests: New file.
5623         * tests/test-malloc-gnu.c: New file.
5624
5625 2010-08-28  Bruno Haible  <bruno@clisp.org>
5626
5627         Rename module 'realloc' -> 'realloc-gnu'.
5628         * modules/realloc-gnu: New file, copied from modules/realloc.
5629         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5630         obsolete.
5631         * modules/mgetgroups (Depends-on): Update.
5632         * doc/posix-functions/realloc.texi: Update.
5633         * NEWS: Mention the change.
5634
5635         Rename module 'calloc' -> 'calloc-gnu'.
5636         * modules/calloc-gnu: New file, copied from modules/calloc.
5637         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5638         obsolete.
5639         * doc/posix-functions/calloc.texi: Update.
5640         * NEWS: Mention the change.
5641
5642         Rename module 'malloc' -> 'malloc-gnu'.
5643         * modules/malloc-gnu: New file, copied from modules/malloc.
5644         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5645         obsolete.
5646         * modules/argp (Depends-on): Update.
5647         * modules/regex (Depends-on): Update.
5648         * doc/posix-functions/malloc.texi: Update.
5649         * NEWS: Mention the change.
5650
5651 2010-08-28  Eric Blake  <eblake@redhat.com>
5652
5653         pread, pwrite: add missing dependency
5654         * modules/pread (Depends-on): Add extensions.
5655         * modules/pwrite (Depends-on): Likewise.
5656
5657 2010-08-28  Bruno Haible  <bruno@clisp.org>
5658
5659         unistr/u*-strchr: Fix tests dependencies.
5660         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5661         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5662         Reported by Ian Beckwith <ianb@erislabs.net>.
5663
5664 2010-08-28  Bruno Haible  <bruno@clisp.org>
5665
5666         read-file: Don't occupy too much unused memory.
5667         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5668
5669 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5670             Eric Blake  <eblake@redhat.com>
5671             Bruno Haible  <bruno@clisp.org>
5672
5673         read-file: Avoid memory reallocations with regular files.
5674         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5675         (fread_file): With regular files, use the remaining length as the
5676         initial buffer size.  Check against overflow.
5677         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5678         sys_stat.
5679
5680 2010-08-28  Bruno Haible  <bruno@clisp.org>
5681
5682         ftello: Relax license.
5683         * modules/ftello (License): Relax to LGPLv2+.
5684         Reported by Eric Blake.
5685
5686 2010-08-28  Bruno Haible  <bruno@clisp.org>
5687
5688         Avoid relocwrapper link errors due to gnulib replacement functions.
5689         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5690         function.
5691         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5692
5693 2010-08-28  Bruno Haible  <bruno@clisp.org>
5694
5695         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5696         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5697         defined.
5698         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5699         Suggested by Eric Blake.
5700
5701 2010-08-28  Bruno Haible  <bruno@clisp.org>
5702
5703         sys_socket, netdb: Ensure socklen_t gets defined.
5704         * modules/sys_socket (Depends-on): Add socklen.
5705         * modules/netdb (Depends-on): Likewise.
5706         * modules/getaddrinfo (Depends-on): Remove socklen.
5707         * modules/getsockopt (Depends-on): Likewise.
5708         * modules/setsockopt (Depends-on): Likewise.
5709         * tests/test-sys_socket.c: Check that socklen_t is defined.
5710         * tests/test-netdb.c: Likewise.
5711         * m4/socklen.m4: Update comments.
5712         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5713
5714 2010-08-27  Eric Blake  <eblake@redhat.com>
5715
5716         login_tty: add missing dependency
5717         * modules/login_tty (Depends-on): Add pty.
5718
5719 2010-08-26  Eric Blake  <eblake@redhat.com>
5720
5721         lib-symbol-versions: fix m4 quoting
5722         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5723         format for AC_LINK_IFELSE.
5724
5725         glob: fix compile test
5726         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5727
5728         btowc: fix missing file
5729         * modules/btowc (Files): Also ship locale-fr.m4.
5730
5731         lseek: fix link test
5732         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5733         AC_LINK_IFELSE.
5734
5735         include_next: silence autoconf 2.68 warning
5736         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5737         AC_COMPILE_IFELSE as special.
5738         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5739         autoconf < 2.68.
5740
5741         acl: fix compilation test
5742         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5743         AC_COMPILE_IFELSE.
5744
5745 2010-08-26  Bruno Haible  <bruno@clisp.org>
5746
5747         Modernize AC_TRY_RUN invocations.
5748         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5749         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5750         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5751         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5752         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5753         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5754         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5755         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5756         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5757         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5758         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5759         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5760         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5761         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5762         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5763         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5764         gl_MBRLEN_NUL_RETVAL): Likewise.
5765         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5766         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5767         Likewise.
5768         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5769         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5770         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5771         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5772         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5773         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5774         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5775         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5776         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5777         Likewise.
5778         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5779         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5780         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5781         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5782         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5783         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5784         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5785         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5786         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5788
5789 2010-08-26  Bruno Haible  <bruno@clisp.org>
5790
5791         Modernize AC_TRY_LINK invocations.
5792         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5793         AC_TRY_LINK.
5794         * m4/argp.m4 (gl_ARGP): Likewise.
5795         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5796         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5797         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5798         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5799         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5800         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5801         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5802         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5803         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5804         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5805         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5806         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5807         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5808         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5809         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5810         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5811         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5812         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5813         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5814         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5815         Likewise.
5816         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5817         Likewise.
5818         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5819         Likewise.
5820         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5822         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5823         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5824         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5825         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5826         * m4/servent.m4 (gl_SERVENT): Likewise.
5827         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5828         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5829         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5830         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5831         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5832         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5833         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5834         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5835         * modules/tsearch-tests (configure.ac): Likewise.
5836
5837 2010-08-26  Bruno Haible  <bruno@clisp.org>
5838
5839         Modernize AC_TRY_COMPILE invocations.
5840         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5841         AC_TRY_COMPILE.
5842         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5843         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5844         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5845         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5846         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5847         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5848         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5849         * m4/lock.m4 (gl_LOCK): Likewise.
5850         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5851         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5852         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5853         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5854         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5855         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5856         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5857         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5858         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5859         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5860         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5861         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5862         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5863         extraneous semicolon.
5864
5865 2010-08-26  Jim Meyering  <meyering@redhat.com>
5866
5867         stat-time: relax license LGPL
5868         * modules/stat-time (License): Change from GPL to LGPL,
5869         with consent from all contributors, for use in libguile.
5870         Requested by Ludovic Courtès.
5871
5872 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5873
5874         poll: return immediately on POLLHUP.
5875         * lib/poll.c (poll): Always set timeout before wait_timeout is
5876         computed.
5877
5878 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5879
5880         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5881         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5882         rmdir ("dir/.//"), unlinkat.
5883
5884 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5885
5886         stdbool: avoid spurious failure with modern xlc
5887         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5888
5889 2010-08-24  Bruno Haible  <bruno@clisp.org>
5890
5891         getloadavg: simplify code
5892         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5893         gl_have_func. Update comments.
5894
5895 2010-08-24  Eric Blake  <eblake@redhat.com>
5896
5897         getloadavg: don't define SVR4 on cygwin
5898         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5899         only define SVR4 when -lkvm is required.
5900         Reported by Yaakov Selkowitz.
5901
5902 2010-08-24  Bruno Haible  <bruno@clisp.org>
5903
5904         priv-set: fix comment
5905         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5906
5907 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5908
5909         priv-set: fix comments
5910         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5911         to match code, as suggested by David Bartley in:
5912         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5913
5914 2010-08-23  Eric Blake  <eblake@redhat.com>
5915
5916         stdbool: avoid rejecting clang
5917         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5918         * tests/test-stdbool.c: Enable more tests if using the system
5919         <stdbool.h> instead of the gnulib replacement.
5920         (main): Move xlc bug test to a runtime test for all compilers.
5921         Reported by Anders Kaseorg.
5922
5923         argz: fix shell quoting issue
5924         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5925         Reported by Charles Wilson.
5926
5927 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5928             Erik Faye-Lund <kusmabite@gmail.com>
5929
5930         poll, select: handle ERROR_BROKEN_PIPE.
5931         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5932         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5933         * lib/select.c (win32_compute_revents): Do not mark a pipe
5934         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5935
5936 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5937
5938         fts: allow compilation with C++
5939         * lib/fts_.h: Specify extern "C" linkage with C++.
5940
5941 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5942
5943         Fix gnulib-tool sed script de-commentation for AIX sed.
5944         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5945         sed.
5946
5947 2010-08-17  Eric Blake  <eblake@redhat.com>
5948
5949         test-stddef: test for (some) offsetof bugs
5950         * tests/test-stddef.c: Enhance test to ensure correct type of
5951         offsetof.
5952         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5953         that we are not fixing at this time.
5954
5955 2010-08-15  Bruno Haible  <bruno@clisp.org>
5956
5957         stpncpy: Allow stpncpy to be defined as a macro.
5958         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5959         if it's already correctly declared.
5960         * lib/string.in.h (stpncpy): Undefine before redefining.
5961         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5962
5963 2010-08-14  Bruno Haible  <bruno@clisp.org>
5964
5965         Rename module 'memxfrm' to 'amemxfrm'.
5966         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5967         (amemxfrm): Renamed from memxfrm.
5968         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5969         (amemxfrm): Renamed from memxfrm.
5970         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5971         * NEWS: Mention the change.
5972         * MODULES.html.sh (String handling <string.h>): Update.
5973         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5974         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5975         * lib/unicase/u16-casexfrm.c: Likewise.
5976         * lib/unicase/u32-casexfrm.c: Likewise.
5977         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5978         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5979         * lib/uninorm/u16-normxfrm.c: Likewise.
5980         * lib/uninorm/u32-normxfrm.c: Likewise.
5981         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5982         memxfrm.
5983         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5984         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5985         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5986         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5987         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5988         Suggested by Paul Eggert.
5989
5990 2010-08-14  Bruno Haible  <bruno@clisp.org>
5991
5992         Tests for module 'astrxfrm'.
5993         * modules/astrxfrm-tests: New file.
5994         * tests/test-astrxfrm.c: New file.
5995
5996         New module 'astrxfrm'.
5997         * lib/astrxfrm.h: New file.
5998         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5999         * modules/astrxfrm: New file.
6000
6001 2010-08-14  Reuben Thomas <rrt@sc3d.org>
6002
6003         regex: Tweak doc.
6004         * doc/regex.texi (Overview): Don't mention regex.c.
6005         (GNU Regular Expression Compiling): Likewise.
6006         (Match-end-of-line Operator): Mention 'not_eol'.
6007
6008 2010-08-14  Brian Gough  <bjg@gnu.org>
6009             Bruno Haible  <bruno@clisp.org>
6010
6011         git-merge-changelog: add doc relating to use with bzr and hg.
6012         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
6013
6014 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
6015
6016         pthread: fix pthread.h creation for srcdir != builddir
6017         * modules/pthread (Makefile.am): Fix the rule to work also in a
6018         non-srcdir build.
6019
6020 2010-08-13  Karl Berry  <karl@gnu.org>
6021
6022         * doc/regex.texi (Predefined Syntaxes): @smallexample.
6023         * doc/posix-*/*: force line break before @url of POSIX
6024         specifications.
6025         Suggested by Werner Lemberg.
6026
6027 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6028
6029         strtod: fix const diagnostic
6030         * lib/strtod.c (strtod): Don't assign const char * to char *,
6031         as this elicits a warning from GCC when warnings are enabled.
6032
6033 2010-08-10  Pádraig Brady <P@draigbrady.com>
6034         and Eric Blake  <eblake@redhat.com>
6035
6036         copy-acl: ignore ENOTSUP on HP-UX
6037         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
6038         so that it is available for HP-UX.
6039         * lib/copy-acl.c (qcopy_acl): Use it.
6040         Reported by Patrick M. Callahan.
6041
6042 2010-08-10  Eric Blake  <eblake@redhat.com>
6043
6044         open, chown: relax license
6045         * modules/open (License): Change to LGPLv2+, with consent by all
6046         authors, for use in augeas.
6047         * modules/chown (License): Likewise.
6048         * modules/lchown (Likewise): Likewise.
6049         Requested by Adam Stokes.
6050
6051 2010-08-09  Karl Berry  <karl@gnu.org>
6052
6053         * build-aux/ar-lib: new file, import from Automake.
6054         * config/srclist.txt: autocheck for updates.
6055
6056 2010-08-09  Eric Blake  <eblake@redhat.com>
6057
6058         readlinkat: adjust client modules
6059         * modules/areadlinkat (Depends-on): Use readlinkat, not
6060         symlinkat.
6061         * modules/areadlinkat-with-size (Depends-on): Likewise.
6062
6063         mknod: be more vocal about danger of running tests as root
6064         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
6065         root, since that is just asking for problems.
6066         Suggested by Bruno Haible, based on a report by Rainer Tammer.
6067
6068         readlinkat: split into its own module
6069         * modules/symlinkat: Split readlinkat...
6070         * modules/readlinkat: ...into separate module.
6071         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
6072         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
6073         * lib/symlinkat.c (readlinkat): Move...
6074         * lib/readlinkat.c: ...into new file.
6075         * modules/symlinkat-tests: Split readlinkat test...
6076         * modules/readlinkat-tests: ...into separate module.
6077         * tests/test-symlinkat.c: Split...
6078         * tests/test-readlinkat.c: ...into new file.
6079         * NEWS: Document the split.
6080         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6081         * lib/unistd.in.h (readlinkat): Likewise.
6082         Suggested by Bruno Haible.
6083
6084 2010-08-08  Bruno Haible  <bruno@clisp.org>
6085
6086         memxfrm: Speed up.
6087         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
6088         that usually only one call to strxfrm is necessary for each string
6089         part.
6090         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6091
6092 2010-08-07  Karl Berry  <karl@gnu.org>
6093
6094         * doc/posix-headers/limits.texi,
6095         * doc/posix-functions/malloc.texi,
6096         * doc/posix-functions/strsignal.texi: missing @item.
6097         * doc/ld-version-script.texi: spurious leading i.
6098         * doc/regex.texi (Interval Operators): no commas inside @var.
6099
6100 2010-08-01  Bruno Haible  <bruno@clisp.org>
6101
6102         Integrate the regex documentation.
6103         * doc/gnulib.texi: Define 'cn' index.
6104         (Regular expressions): New a chapter that includes regex.texi and
6105         regexprops-generic.texi.
6106         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
6107         syntax.
6108
6109         Whitespace cleanup.
6110         * doc/regex.texi: Remove trailing spaces.
6111
6112         Add regex documentation.
6113         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
6114         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
6115         Written by Kathy A. Hargreaves and Karl Berry.
6116
6117 2010-08-01  Bruno Haible  <bruno@clisp.org>
6118
6119         link: Update documentation.
6120         * doc/posix-functions/link.texi: Update regarding Solaris.
6121
6122 2010-07-31  Bruno Haible  <bruno@clisp.org>
6123
6124         Update modules list.
6125         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
6126         (String handling <string.h>): Add memcmp2, memxfrm.
6127         (Container data structures): Add xlist, xsublist, xoset.
6128         (Core language properties): Add alignof, unused-parameter.
6129         (Process control, Numeric conversion functions <stdlib.h>): Renamed
6130         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
6131         (Unibyte characters <ctype.h>): New section.
6132         (String handling <string.h>): New section.
6133         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
6134         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
6135         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
6136         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
6137         tan, tanh, tanl, y0, y1, yn.
6138         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
6139         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
6140         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
6141         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
6142         unlockpt, vdprintf, vdprintf-posix.
6143         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
6144         (File system functions): Add concat-filename, sys_file, sys_ioctl,
6145         xconcat-filename.
6146         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
6147         getdtablesize, pipe2, pipe2-safer.
6148         (Security): New section.
6149         (Networking functions): Add accept4.
6150         (Signal handling): Add sigpipe.
6151         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
6152         mbmemcasecoll.
6153         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
6154         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
6155         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
6156         pipe-filter-ii.
6157         (Misc): Add argp-version-etc, login_tty, parse-duration.
6158
6159 2010-07-31  Bruno Haible  <bruno@clisp.org>
6160
6161         Improve doc in MODULES.html.
6162         * modules/linkat (Description): Add the word "function".
6163         * modules/mkfifo (Description): Likewise.
6164         * modules/mknod (Description): Likewise.
6165         * modules/remove (Description): Likewise.
6166         * modules/renameat (Description): Likewise.
6167         * modules/stat (Description): Likewise.
6168         * modules/symlink (Description): Likewise.
6169         * modules/unlink (Description): Likewise.
6170
6171 2010-07-31  Bruno Haible  <bruno@clisp.org>
6172
6173         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
6174         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
6175         option --enable/disable-c++ instead of --enable/disable-cxx.
6176         * NEWS: Mention the change.
6177
6178 2010-07-31  Bruno Haible  <bruno@clisp.org>
6179
6180         readlink, areadlink: Relax test a bit.
6181         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
6182         alternative to ENOTDIR.
6183         * tests/test-areadlink.h (test_areadlink): Likewise.
6184         Reported by Rainer Tammer.
6185
6186 2010-07-31  Bruno Haible  <bruno@clisp.org>
6187
6188         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
6189         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
6190         character, perform the search using U_STRCHR.
6191         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
6192         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
6193         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
6194         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
6195         Suggested by Paolo Bonzini.
6196
6197 2010-07-31  Bruno Haible  <bruno@clisp.org>
6198
6199         unistr/u*-strstr: Fix dependencies.
6200         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
6201         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
6202         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
6203
6204 2010-07-31  Bruno Haible  <bruno@clisp.org>
6205
6206         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
6207         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
6208         the beginning of the loop.
6209         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
6210         cases in 'switch' statement.
6211
6212         unistr/u8-strchr: Fix several bugs.
6213         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
6214         the string. When not found, return NULL, not a pointer near the end.
6215
6216         More tests for unistr/u8-strchr.
6217         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
6218         that the function does not read past the first occurrence of the byte
6219         being searched.
6220         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
6221         * tests/unistr/test-u16-strchr.c (main): New function.
6222         * tests/unistr/test-u32-strchr.c (main): New function.
6223
6224 2010-07-31  Bruno Haible  <bruno@clisp.org>
6225
6226         posix-modules: Ignore backup files of documentation files.
6227         * posix-modules: grep only through files named *.texi.
6228
6229 2010-07-31  Bruno Haible  <bruno@clisp.org>
6230
6231         symlinkat: Fix documentation.
6232         * doc/posix-functions/readlinkat.texi: Fix module name.
6233
6234 2010-07-31  Bruno Haible  <bruno@clisp.org>
6235
6236         fchownat: Replace also when chown has the trailing slash bug.
6237         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
6238         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
6239         introduced on 2010-04-10.
6240         Reported by Rainer Tammer.
6241
6242 2010-07-31  Bruno Haible  <bruno@clisp.org>
6243
6244         linkat: Work around AIX 7.1 bug.
6245         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
6246         whether linkat handles trailing slash correctly. If not, replace linkat
6247         and define LINKAT_TRAILING_SLASH_BUG.
6248         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
6249         check whether (fd1,file1) points to a directory if file1 or file2 ends
6250         in a slash. Code taken from lib/link.c.
6251         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
6252         Reported by Rainer Tammer.
6253
6254 2010-07-31  Bruno Haible  <bruno@clisp.org>
6255
6256         Correctly determine whether pow is available in libc on AIX 7 with xlc.
6257         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
6258         This disables an xlc optimization that was causing wrong test results.
6259         Reported by Rainer Tammer.
6260
6261 2010-07-31  Bruno Haible  <bruno@clisp.org>
6262
6263         iconv: Work around AIX 6.1..7.1 bug.
6264         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
6265         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
6266         cross-compiling, guess no on all versions of AIX.
6267         Reported by Rainer Tammer.
6268
6269 2010-07-31  Bruno Haible  <bruno@clisp.org>
6270
6271         readlink: Relax test a bit.
6272         * tests/test-readlink.h (test_readlink): Allow different errno value
6273         when readlink is called with a file name that ends in / and refers to
6274         a file.
6275         Suggested by Eric Blake.
6276         Reported by Rainer Tammer.
6277
6278 2010-07-31  Bruno Haible  <bruno@clisp.org>
6279
6280         copysign: Does not require -lm on glibc systems.
6281         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
6282         gl_COMMON_DOUBLE_MATHFUNC.
6283         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
6284
6285 2010-07-31  Bruno Haible  <bruno@clisp.org>
6286
6287         duplocale: Work around AIX 7.1 bug.
6288         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
6289         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
6290         * lib/duplocale.c (rpl_duplocale): Update comment.
6291         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
6292         Reported by Rainer Tammer.
6293
6294 2010-07-30  Bruno Haible  <bruno@clisp.org>
6295
6296         dirfd: Avoid link error on AIX 7.1.
6297         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
6298         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
6299         exist, set REPLACE_DIRFD.
6300         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
6301         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
6302         * doc/posix-functions/dirfd.texi: Update.
6303         Reported by Rainer Tammer.
6304
6305 2010-07-30  Eric Blake  <eblake@redhat.com>
6306
6307         strtod: next round of AIX fixes
6308         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
6309         exponent.
6310         * tests/test-strtod.c (main): Enhance tests.
6311         * doc/posix-functions/strtod.texi (strtod): Document next bug.
6312         Reported by Rainer Tammer.
6313
6314         futimens: fix configure check
6315         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
6316         Reported by Bruno Haible.
6317
6318 2010-07-30  Bruno Haible  <bruno@clisp.org>
6319
6320         getline: Update regarding AIX.
6321         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
6322         Reported by Rainer Tammer.
6323
6324 2010-07-30  Bruno Haible  <bruno@clisp.org>
6325
6326         wcwidth: Drop replacement on AIX 7.
6327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
6328         AIX 7.
6329         Reported by Rainer Tammer.
6330
6331 2010-07-30  Bruno Haible  <bruno@clisp.org>
6332
6333         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
6334         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
6335         a 'char *'.
6336         Reported by Rainer Tammer.
6337
6338 2010-07-30  Bruno Haible  <bruno@clisp.org>
6339
6340         unlink: Update regarding AIX.
6341         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
6342         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
6343         Reported by Rainer Tammer.
6344
6345 2010-07-30  Bruno Haible  <bruno@clisp.org>
6346
6347         symlink: Update regarding AIX.
6348         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
6349         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
6350         Reported by Rainer Tammer.
6351
6352 2010-07-30  Bruno Haible  <bruno@clisp.org>
6353
6354         strndup: Update regarding AIX.
6355         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
6356         AIX 7.
6357         Reported by Rainer Tammer.
6358
6359 2010-07-30  Bruno Haible  <bruno@clisp.org>
6360
6361         stat: Update regarding AIX.
6362         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
6363         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
6364         Reported by Rainer Tammer.
6365
6366 2010-07-30  Bruno Haible  <bruno@clisp.org>
6367
6368         truncl: Fix autoconf test.
6369         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
6370         whether truncl works.
6371         Reported by Rainer Tammer.
6372
6373 2010-07-30  Bruno Haible  <bruno@clisp.org>
6374
6375         round: Update regarding AIX.
6376         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
6377         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6378         Reported by Rainer Tammer.
6379
6380 2010-07-30  Bruno Haible  <bruno@clisp.org>
6381
6382         rename: Update regarding AIX.
6383         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
6384         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
6385         Reported by Rainer Tammer.
6386
6387 2010-07-30  Bruno Haible  <bruno@clisp.org>
6388
6389         printf.m4: Update regarding AIX.
6390         * m4/printf.m4: Update comments regarding AIX.
6391         Reported by Rainer Tammer.
6392
6393 2010-07-30  Bruno Haible  <bruno@clisp.org>
6394
6395         iconv: Update regarding AIX.
6396         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
6397         AIX 7.
6398         Reported by Rainer Tammer.
6399
6400 2010-07-30  Bruno Haible  <bruno@clisp.org>
6401
6402         getopt: Update regarding AIX.
6403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
6404         no on AIX.
6405         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
6406         Reported by Rainer Tammer.
6407
6408 2010-07-30  Bruno Haible  <bruno@clisp.org>
6409
6410         ldexpl; Update regarding AIX.
6411         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6412         on AIX 7.
6413         Reported by Rainer Tammer.
6414
6415 2010-07-30  Bruno Haible  <bruno@clisp.org>
6416
6417         frexpl: Update regarding AIX.
6418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6419         on AIX 7.
6420         Reported by Rainer Tammer.
6421
6422 2010-07-30  Bruno Haible  <bruno@clisp.org>
6423
6424         open, fopen: Update regarding AIX.
6425         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6426         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6427         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6428         * doc/posix-functions/fopen.texi: Likewise.
6429         Reported by Rainer Tammer.
6430
6431 2010-07-30  Bruno Haible  <bruno@clisp.org>
6432
6433         chown: Update doc regarding AIX.
6434         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6435         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6436         Reported by Rainer Tammer.
6437
6438 2010-07-30  Eric Blake  <eblake@redhat.com>
6439
6440         strtod: fix bug in replacement function on AIX
6441         * lib/strtod.c (strtod): Special case broken "0x" parse in
6442         underlying strtod.
6443         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6444         * doc/posix-functions/strtod.texi (strtod): Likewise.
6445         Reported by Rainer Tammer.
6446
6447 2010-07-30  Bruno Haible  <bruno@clisp.org>
6448
6449         mbrlen: Fix cross-compilation guess for AIX.
6450         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
6451         guess. Leftover from 2008-12-22.
6452
6453 2010-07-30  Bruno Haible  <bruno@clisp.org>
6454
6455         mbrtowc: Fix cross-compilation guess for AIX.
6456         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
6457         guess. Leftover from 2008-12-21.
6458
6459 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6460
6461         init.sh: work around trap limitation of some shells
6462         * tests/init.sh (setup_): Move exit trap outside of shell function.
6463
6464 2010-07-29  Eric Blake  <eblake@redhat.com>
6465
6466         strtod: aid debugging
6467         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6468         understanding why strtod is rejected.
6469
6470 2010-07-28  Bruno Haible  <bruno@clisp.org>
6471
6472         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6473         * lib/unistr/u8-chr.c: Include <string.h>.
6474         * tests/unistr/test-u8-chr.c: Likewise.
6475         * tests/unistr/test-u16-chr.c: Likewise.
6476         * tests/unistr/test-u32-chr.c: Likewise.
6477         * tests/unistr/test-u8-strchr.c: Likewise.
6478         * tests/unistr/test-u16-strchr.c: Likewise.
6479         * tests/unistr/test-u32-strchr.c: Likewise.
6480         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6481         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6482         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6483         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6484
6485 2010-07-28  Bruno Haible  <bruno@clisp.org>
6486
6487         Use spaces for indentation, not tabs.
6488         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6489
6490 2010-07-27  Bruno Haible  <bruno@clisp.org>
6491
6492         mbspcasecmp: Fix function specification.
6493         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6494         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6495         Reported by Eric Blake <eblake@redhat.com>.
6496
6497 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6498
6499         timespec: use cast and not conditional, as truncation isn't possible
6500         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6501         instead of a conditional.  Comment about the situation in more detail.
6502         This undoes most of the 2009-10-29 patch.
6503
6504 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6505
6506         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6507         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6508         * lib/unistr/u8-strchr.c: Likewise.
6509         * modules/unistr/u8-chr: Depend on memchr.
6510
6511         unistr/u*-strchr: add tests
6512         * modules/unistr/u8-strchr-tests: New file.
6513         * modules/unistr/u16-strchr-tests: New file.
6514         * modules/unistr/u32-strchr-tests: New file.
6515         * tests/unistr/test-strchr.h: New file.
6516         * tests/unistr/test-u8-strchr.c: New file.
6517         * tests/unistr/test-u16-strchr.c: New file.
6518         * tests/unistr/test-u32-strchr.c: New file.
6519
6520         unistr/u*-chr: test multibyte sequences more
6521         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6522         test vector.
6523         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6524         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6525         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6526
6527         unistr/u*-chr: test multibyte sequences
6528         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6529
6530         unistr/u*-chr: prepare for multibyte tests
6531         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6532         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6533         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6534         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6535         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6536         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6537
6538 2010-07-18  Bruno Haible  <bruno@clisp.org>
6539
6540         unistr/u8-strchr: Optimize non-ASCII argument case.
6541         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6542         because the first byte often matches anyway.
6543         Reported by Pádraig Brady <P@draigbrady.com>.
6544
6545 2010-07-15  Karl Berry  <karl@gnu.org>
6546
6547         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6548
6549 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6550
6551         getcwd: on Solaris, work better if ancestors are inaccessible
6552         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6553         buffer and size, try again with a large buffer.  This works better
6554         on Solaris, since its getcwd succeeds even if the path to the root
6555         is inaccessible, and this is helpful in common cases such as .zfs
6556         hidden directories.  Problem reported by J Chapman Flack in
6557         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6558         Use system getcwd if it's declared, not merely if it's partly
6559         working; use the partly-working test only to avoid needless effort
6560         if the system getcwd fails.
6561         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6562         comment that was already obsolete and is now even more obsolete.
6563         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6564         now might call strdup.
6565
6566 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6567
6568         pthread: Add enough so that coreutils/src/sort.c compiles.
6569         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6570         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6571         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6572         Include <sys/types.h>, in case it defines pthread_t.
6573         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6574         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6575         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6576         (pthread_rwlockattr_t, pthread_spinlock_t):
6577         New typedefs, if HAVE_PTHREAD_T is not defined.
6578         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6579         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6580         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6581         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6582         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6583         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6584         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6585         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6586         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6587         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6588         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6589         New macros.
6590         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6591         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6592         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6593         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6594         (pthread_spin_unlock): New dummy functions.
6595         (pthread_create): Return EAGAIN; don't set errno.
6596         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6597         require AC_C_INLINE.
6598         * modules/pthread (Depends-on): Add sched, time.
6599         (pthread.h): Use AM_V_GEN.
6600
6601 2010-07-13  Bruno Haible  <bruno@clisp.org>
6602
6603         striconveh: Don't malloc memory if the result buffer is sufficient.
6604         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6605         buffer if its size is sufficient.
6606         Reported by Ludovic Courtès <ludo@gnu.org>.
6607
6608 2010-07-13  Bruno Haible  <bruno@clisp.org>
6609
6610         strtod: Add safety check.
6611         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6612
6613 2010-07-12  Bruno Haible  <bruno@clisp.org>
6614
6615         Unify tests that set gl_cv_func_ldexpl_no_libm.
6616         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6617         gl_FUNC_LDEXPL.
6618         (gl_FUNC_LDEXPL): Invoke it.
6619         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6620
6621 2010-07-12  Bruno Haible  <bruno@clisp.org>
6622
6623         Unify tests that set gl_cv_func_ldexp_no_libm.
6624         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6625         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6626         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6627         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6628         * modules/strtod (Files): Add m4/ldexp.m4.
6629
6630 2010-07-12  Bruno Haible  <bruno@clisp.org>
6631
6632         Unify tests that set gl_cv_func_frexpl_no_libm.
6633         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6634         gl_FUNC_FREXPL_NO_LIBM.
6635         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6636         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6637
6638 2010-07-12  Bruno Haible  <bruno@clisp.org>
6639
6640         Unify tests that set gl_cv_func_frexp_no_libm.
6641         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6642         gl_FUNC_FREXP_NO_LIBM.
6643         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6644         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6645
6646 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6647
6648         memcoll: clarify sizes versus lengths, document better, and tweak perf
6649         * lib/memcoll.c (strcoll_loop, memcoll0):
6650         Improve quality of descriptive comments.  Name variables
6651         consistently as to whether they are lengths (which do not include
6652         terminating null) versus sizes (which do).
6653         * lib/xmemcoll.c (xmemcoll0): Likewise.
6654         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6655         returned when s1size == 0; this is easier to compile and saves
6656         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6657
6658 2010-07-12  Bruno Haible  <bruno@clisp.org>
6659
6660         Tests for module '_Exit'.
6661         * modules/_Exit-tests: New file.
6662         * tests/test-_Exit.sh: New file.
6663         * tests/test-_Exit.c: New file.
6664
6665         New module '_Exit'.
6666         * lib/stdlib.in.h (__attribute__): New macro.
6667         (_Exit): New declaration.
6668         * lib/_Exit.c: New file.
6669         * m4/_Exit.m4: New file.
6670         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6671         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6672         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6673         * modules/_Exit: New file.
6674         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6675         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6676
6677 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6678
6679         strtod: make it more-accurate typically, and don't require libm
6680         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6681         Include limits.h.  Don't include string.h.
6682         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6683         (locale_isspace): New function, so that no casts are needed to
6684         check whether *s is a space.
6685         (ldexp): Provide an unused dummy if not available.
6686         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6687         (strtod): Use them.  This implementation prefers to use the
6688         underlying strtod if available, falling back on our own code
6689         only to fix known bugs.  This is more likely to produce an
6690         accurate result.  Also, it avoids the use of libm functions.
6691         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6692         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6693         was absent, but it caused a test failure with coreutils.
6694         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6695         with libm.
6696         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6697         * modules/strtod-tests (Makefile.am): Likewise.
6698
6699 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6700             Bruno Haible  <bruno@clisp.org>
6701
6702         unistr/u8-strchr: Optimize ASCII argument case.
6703         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6704
6705 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6706
6707         (x)memcoll: minor tweaks
6708         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6709         is after the type that it qualifies.
6710         (memcoll0): Likewise.
6711         * lib/memcoll.h (memcoll0): Likewise.
6712         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6713         * lib/xmemcoll.h (xmemcoll0): Likewise.
6714         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6715         differs from memcoll in that the NUL byte is part of the argument.
6716         Omit the abort-checks, as performance is a real issue here.  Plus,
6717         the checks were wrong anyway (an off-by-one error).  Omit local
6718         variable 'diff', as it's a bit clearer that way.
6719         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6720         no longer needed.
6721
6722 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6723
6724         (x)memcoll: speedup when input is known to be NUL delimited
6725         * lib/memcoll.c: Include stdlib.
6726         (memcoll0) New function.
6727         (strcoll_loop) New function, refactored for use in both memcoll
6728         and memcoll0.
6729         * lib/memcoll.h: Add prototype for memcoll0.
6730         * lib/xmemcoll.c: (xmemcoll0) New function.
6731         (collate_error) New function, refactored for use in both xmemcoll
6732         and xmemcoll0.
6733         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6734         * m4/memcoll.m4: add inline invocation.
6735
6736 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6737
6738         * build-aux/bootstrap: Remove any local translations
6739         from the translation project synchronization directory,
6740         so that local only translations are not distributed.
6741
6742 2010-07-04  Bruno Haible  <bruno@clisp.org>
6743
6744         fsusage: Clarify which code applies to which platforms.
6745         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6746         platform.
6747         * lib/fsusage.c (get_fs_usage): Likewise.
6748
6749 2010-07-04  Bruno Haible  <bruno@clisp.org>
6750
6751         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6752         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6753         Reported by Martin Lambers <marlam@marlam.de>.
6754
6755 2010-07-04  Jim Meyering  <meyering@redhat.com>
6756
6757         hash: once again explicitly disallow insertion of NULL
6758         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6759         inserting a NULL pointer cannot work with these functions.
6760         Add a comment with details.
6761         This reverts part of the 2010-07-01 commit, 5bef1a35
6762         "hash: extend module to deal with non-pointer keys".
6763
6764 2010-07-01  Bruno Haible  <bruno@clisp.org>
6765
6766         stdbool: Update doc.
6767         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6768         Info from Christian Weisgerber <naddy@mips.inka.de>.
6769
6770 2010-07-01  Jim Meyering  <meyering@redhat.com>
6771
6772         hash: extend module to deal with non-pointer keys
6773         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6774         but that allows insertion of non-pointer entries.
6775         Do not disallow an ENTRY value of NULL.
6776         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6777         * lib/hash.h (hash_insert0): Declare.
6778
6779 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6780
6781         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6782         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6783         not present (i.e. with autoconf 2.59 and when using gettextize, not
6784         gnulib), require AC_GNU_SOURCE instead.
6785
6786 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6787
6788         idpriv-drop: Fix tests.
6789         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6790         not to the test-idpriv-droptemp program.
6791
6792 2010-06-29  Bruno Haible  <bruno@clisp.org>
6793
6794         string: Fix syntax error with g++ 2.96.
6795         * lib/string.in.h (__pure__): Remove definition.
6796         (_GL_ATTRIBUTE_PURE): New macro.
6797         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6798         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6799         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6800
6801 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6802
6803         unitypes: Fix bug introduced on 2010-05-18.
6804         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6805
6806 2010-06-22  Eric Blake  <eblake@redhat.com>
6807
6808         memmem: slight optimization
6809         * lib/str-two-way.h (critical_factorization): Update comments.
6810         Reduce work during factorization phase.
6811         Reported by Carlos Bueno <carlos@bueno.org>.
6812
6813 2010-06-21  Bruno Haible  <bruno@clisp.org>
6814
6815         Fix HAVE_CALLOC_POSIX misnomer.
6816         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6817         !HAVE_CALLOC_POSIX.
6818         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6819         HAVE_CALLOC_POSIX.
6820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6821         instead of HAVE_CALLOC_POSIX.
6822         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6823         HAVE_CALLOC_POSIX.
6824
6825         Use modern idiom for calloc() replacement.
6826         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6827         AC_FUNC_CALLOC.
6828         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6829         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6830         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6831         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6832         (gl_REPLACE_CALLOC): New macro.
6833
6834 2010-06-21  Bruno Haible  <bruno@clisp.org>
6835
6836         Fix HAVE_REALLOC_POSIX misnomer.
6837         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6838         !HAVE_REALLOC_POSIX.
6839         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6840         HAVE_REALLOC_POSIX.
6841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6842         instead of HAVE_REALLOC_POSIX.
6843         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6844         HAVE_REALLOC_POSIX.
6845
6846         Use modern idiom for realloc() replacement.
6847         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6848         AC_FUNC_REALLOC.
6849         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6850         Autoconf's AC_FUNC_REALLOC.
6851         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6852         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6853         (gl_REPLACE_REALLOC): New macro.
6854         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6855
6856 2010-06-21  Bruno Haible  <bruno@clisp.org>
6857
6858         Fix HAVE_MALLOC_POSIX misnomer.
6859         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6860         !HAVE_MALLOC_POSIX.
6861         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6862         HAVE_MALLOC_POSIX.
6863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6864         instead of HAVE_MALLOC_POSIX.
6865         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6866         HAVE_MALLOC_POSIX.
6867
6868         Use modern idiom for malloc() replacement.
6869         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6870         AC_FUNC_MALLOC.
6871         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6872         Autoconf's AC_FUNC_MALLOC.
6873         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6874         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6875         (gl_REPLACE_MALLOC): New macro.
6876         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6877
6878 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6879
6880         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6881         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6882         This macro takes 3 arguments, not 4.
6883
6884 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6885
6886         ipv6: fix detection under mingw
6887         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6888         in6_addr.
6889
6890 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6891
6892         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6893         that strtod() works when cross-compiling to a glibc version known
6894         to work.
6895
6896 2010-06-15  Bruno Haible  <bruno@clisp.org>
6897
6898         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6899
6900 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6901
6902         select: Correct timeout.
6903         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6904
6905 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6906
6907         git-version-gen: init shell var to avoid env var influence
6908         * build-aux/git-version-gen (v): Init shell var to empty.
6909
6910 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6911
6912         priv-set: Don't assume that priv.h exists merely because getppriv does.
6913         See Jan Andersen's bug report about AIX 5L in
6914         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6915         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6916         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6917         * lib/priv-set.h: Likewise.
6918         * tests/test-priv-set.c: Likewise.
6919
6920 2010-06-13  Bruno Haible  <bruno@clisp.org>
6921
6922         relocatable: Make it easier to test whether to install wrappers.
6923         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6924         RELOCATABLE_VIA_WRAPPER.
6925
6926 2010-06-13  Bruno Haible  <bruno@clisp.org>
6927
6928         gnulib-tool: Display specified modules and dependencies differently.
6929         * gnulib-tool (func_show_module_list): New function.
6930         (func_import, func_create_testdir): Invoke it.
6931         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6932
6933 2010-06-13  Bruno Haible  <bruno@clisp.org>
6934
6935         gnulib-tool: Align code of func_import and func_create_testdir.
6936         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6937         specified_modules.
6938
6939 2010-06-12  Jim Meyering  <meyering@redhat.com>
6940
6941         test-inttostr: avoid spurious failure on Solaris 9
6942         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6943         to accept "%ju".  Reported by Bruno Haible.
6944
6945 2010-06-11  Jim Meyering  <meyering@redhat.com>
6946
6947         test-sys_socket: mark variables as used more readably
6948         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6949         as "used" explicitly via (void) statement casts.  This is more
6950         readable than using them in an artificial return expression.
6951         Suggestion from Bruno Haible.
6952
6953 2010-06-11  Bruno Haible  <bruno@clisp.org>
6954
6955         Avoid some more warnings from "gcc -Wwrite-strings".
6956         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6957         to 'const char *'.
6958         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6959         * tests/test-c-strcasestr.c (main): Likewise.
6960         * tests/test-mbscasestr1.c (main): Likewise.
6961         * tests/test-mbscasestr2.c (main): Likewise.
6962         * tests/test-memmem.c (main): Likewise.
6963         * tests/test-strstr.c (main): Likewise.
6964         * tests/test-strcasestr.c (main): Likewise.
6965
6966 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6967
6968         init.sh: change framework_failure_ to fail with status 99, not 1
6969         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6970         automake's parallel-tests rule that this is an unexpected failure,
6971         even if the test is listed in XFAIL_TESTS.
6972
6973 2010-06-11  Jim Meyering  <meyering@redhat.com>
6974
6975         test-inttostr: avoid warnings about 4-6KB literal strings
6976         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6977         Include "macros.h", for its definition of ASSERT.
6978         (CK): s/assert/ASSERT/
6979         * modules/inttostr-tests (Files): Add macros.h.
6980
6981         init.sh: don't use $ME_ or skip_ before they are defined
6982         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6983         their first uses.  Also hoist their companions: warn_, fail_,
6984         framework_failure_, $stderr_fileno.  Prompted by a patch from
6985         Stefano Lattarini.
6986
6987         test-sys_socket: avoid set-but-not-used warnings from gcc
6988         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6989         avoid warning about set-but-not-used variables.
6990
6991         test-xvasprintf: avoid 'const' discard warnings
6992         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6993         "const" when assigning from literal strings.
6994         (test_xasprintf): Add "void" in function argument list to placate
6995         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6996
6997         tests: avoid compilation warnings in argmatch and exclude tests...
6998         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6999         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
7000         Since it always exits, declare with the "noreturn" attribute.
7001         * tests/test-argmatch.c: Likewise.
7002
7003         tests: avoid 'const' discard warnings in mbsstr tests
7004         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
7005         * tests/test-mbsstr2.c (main): Likewise.
7006
7007         test-verify: avoid warning from gcc's -Wmissing-declarations
7008         * tests/test-verify.c (function): Declare to be static.
7009
7010         test-inttostr.c: include <string.h> for use of strcmp
7011         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
7012
7013         test-linkat: avoid failed assertion on "other" architectures
7014         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
7015         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
7016         sparc: https://bugs.launchpad.net/bugs/591968
7017
7018 2010-06-11  Jim Meyering  <meyering@redhat.com>
7019
7020         printf.m4: avoid autoconf's "Expanded Before Required" warning
7021         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
7022         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
7023         autoconf warning.
7024
7025 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
7026
7027         Replacement header templates are now named with ".in", not "_".
7028         * doc/gnulib-intro.texi: Correct.
7029
7030 2010-06-10  Jim Meyering  <meyering@redhat.com>
7031
7032         inttostr-tests: depend on snprintf, not snprintf-posix
7033         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
7034         snprintf-posix, to avoid this aclocal failure:
7035           missing file gnulib-tests/vasnprintf.c
7036           configure.ac:45: error: expected source file, required through \
7037           AC_LIBSOURCES, not found
7038
7039 2010-06-10  Jim Meyering  <meyering@redhat.com>
7040
7041         inttostr: add a new function, inttostr, and tests
7042         The namesake function was not available.  The existence of the
7043         template file, inttostr.c makes its addition nontrivial.
7044         * lib/anytostr.c: Rename from inttostr.c.
7045         (anytostr): Rename from inttostr.
7046         * lib/inttostr.c: New file.
7047         * modules/inttostr (Files): Add anytostr.c.
7048         (Makefile.am): Set lib_SOURCES instead of ...
7049         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
7050         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
7051         * lib/offtostr.c: Likewise.
7052         * lib/uinttostr.c: Likewise.
7053         * lib/umaxtostr.c: Likewise.
7054         * modules/inttostr-tests: New file.
7055         * tests/test-inttostr.c: New file.  Test these functions.
7056
7057 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
7058             Bruno Haible  <bruno@clisp.org>
7059
7060         Add "Extending Gnulib" chapter to manual.
7061         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
7062         chapter.
7063         (Extending Gnulib): New chapter.
7064         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
7065         chapter.
7066
7067 2010-06-09  Bruno Haible  <bruno@clisp.org>
7068
7069         Avoid relocwrapper link errors due to gnulib replacement functions.
7070         * lib/areadlink.c: Use the system's malloc, realloc functions.
7071         (areadlink): Set errno to ENOMEM explicitly.
7072         * modules/areadlink (Depends-on): Remove malloc-posix.
7073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7074
7075 2010-06-09  Bruno Haible  <bruno@clisp.org>
7076
7077         Avoid relocwrapper link errors due to gnulib replacement functions.
7078         * lib/canonicalize-lgpl.c: Use the system's malloc function.
7079         * lib/malloca.c: Likewise.
7080         * lib/relocatable.c: Likewise.
7081         * lib/progreloc.c: Use the system's malloc, sprintf functions.
7082         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
7083         * lib/setenv.c: Use the system's malloc, realloc functions.
7084         * lib/strerror.c: Use the system's sprintf function.
7085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7086
7087 2010-06-04  Bruno Haible  <bruno@clisp.org>
7088
7089         Prefer documented low-level autoconf macro names.
7090         * m4/lib-link.m4: Use m4_translit instead of translit.
7091         * m4/environ.m4: Likewise.
7092         * m4/mathfunc.m4: Likewise.
7093         * m4/onceonly.m4: Likewise.
7094         * m4/stdint.m4: Likewise.
7095         Suggested by Eric Blake.
7096
7097 2010-06-04  Martin Lambers  <marlam@marlam.de>
7098             Bruno Haible  <bruno@clisp.org>
7099
7100         havelib: Allow library names with '+' characters.
7101         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7102         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
7103
7104 2010-06-09  Bruno Haible  <bruno@clisp.org>
7105
7106         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
7107         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
7108         realloc failed.
7109
7110 2010-06-08  Peter Simons  <simons@cryp.to>
7111
7112         maint.mk: make the news-check rule more configurable
7113         * top/maint.mk (news-check-lines-spec) New variable.
7114         (news-check): Use "sed -n 1,10p" in place of "head".
7115
7116 2010-06-07  Jim Meyering  <meyering@redhat.com>
7117
7118         do-release-commit-and-tag: fix typo in --help
7119         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
7120
7121         regex: avoid new dead-code warning with gcc-4.6.0
7122         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
7123         if-block containing a while-loop.  It's been unused for at least
7124         5 years.
7125
7126 2010-06-05  Bruno Haible  <bruno@clisp.org>
7127
7128         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
7129         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
7130
7131 2010-06-04  Bruno Haible  <bruno@clisp.org>
7132
7133         Update to GNU gettext 0.18.1.
7134         * modules/gettext (configure.ac): Require gettext infrastructure from
7135         version 0.18.1.
7136
7137 2010-06-03  Bruno Haible  <bruno@clisp.org>
7138
7139         Don't use AC_LIBOBJ with file names in subdirectories.
7140         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
7141         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
7142         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
7143         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
7144         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
7145         gl_LIBUNISTRING_LIBSOURCE.
7146         (Makefile.am): Augment lib_SOURCES here, conditionally.
7147         * NEWS: Drop requirement for Automake option 'subdir-objects'.
7148
7149 2010-06-03  Bruno Haible  <bruno@clisp.org>
7150
7151         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
7152         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
7153         expansion does not end with a newline.
7154         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
7155         unnecessary newline.
7156
7157 2010-06-03  Bruno Haible  <bruno@clisp.org>
7158
7159         Reduce dependencies.
7160         * tests/test-quotearg.h: New file, extracted from
7161         tests/test-quotearg.c.
7162         * tests/test-quotearg-simple.c: New file, extracted from
7163         tests/test-quotearg.c.
7164         * tests/test-quotearg.c: Don't include <ctype.h>.
7165         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
7166         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
7167         use_quote_double_quotes, use_quotearg_colon): Moved to
7168         tests/test-quotearg.h.
7169         (results_g, flag_results, custom_quotes, custom_results): Moved
7170         to tests/test-quotearg-simple.c.
7171         (main): Moved the part that does not depend on gettext to
7172         tests/test-quotearg-simple.c. Return 77 if the test cannot be
7173         performed.
7174         * modules/quotearg-simple: New file.
7175         * modules/quotearg-simple-tests: New file.
7176         * modules/quotearg (Depends-on): Add quotearg-simple.
7177         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
7178         (Files): Add tests/test-quotearg.h.
7179         Reported by Paolo Bonzini.
7180
7181 2010-06-03  Bruno Haible  <bruno@clisp.org>
7182
7183         Reduce dependencies.
7184         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
7185
7186 2010-06-03  Bruno Haible  <bruno@clisp.org>
7187
7188         time: Undefine more broken macros.
7189         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
7190         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
7191         Reported by Eric Blake.
7192
7193 2010-06-03  Bruno Haible  <bruno@clisp.org>
7194
7195         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
7196         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
7197         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
7198         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
7199         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
7200         Reported by Ludovic Courtès <ludo@gnu.org>.
7201
7202 2010-06-02  Eric Blake  <eblake@redhat.com>
7203
7204         time: work with mingw + pthreads-win32 library
7205         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
7206         if timespec is defined only in pthread.h.
7207         * modules/time (Makefile.am): Substitute it.
7208         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
7209         <pthread.h>, when needed.
7210         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
7211         from the library.
7212
7213 2010-05-31  Bruno Haible  <bruno@clisp.org>
7214
7215         Avoid expanding two macros in the wrong order.
7216         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
7217         gl_LIBUNISTRING if it is defined.
7218         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
7219         autoconf >= 2.64.
7220         Reported by Ludovic Courtès <ludo@gnu.org>.
7221
7222 2010-05-27  Jim Meyering  <meyering@redhat.com>
7223
7224         maint.mk: also prohibit "#undef" of always-defined symbols
7225         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
7226         Allow more than one space before the symbol name.
7227         (sc_prohibit_always-defined_macros): Use grep's -E, now that
7228         the regexp uses alternation.
7229
7230 2010-05-26  Eric Blake  <eblake@redhat.com>
7231
7232         maint.mk: avoid echo -e
7233         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
7234         Convert all uses of echo -* to printf.
7235         Reported by Matthias Bolte.
7236
7237 2010-05-25  Bruno Haible  <bruno@clisp.org>
7238
7239         Update to GNU gettext 0.18, part 2.
7240         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
7241         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
7242
7243 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7244
7245         Add missing include in test-pwrite.c.
7246         * tests/test-pwrite.c: Include string.h, for strcmp.
7247
7248 2010-05-24  Bruno Haible  <bruno@clisp.org>
7249
7250         * NEWS: Mention requirement for Automake option 'subdir-objects'.
7251
7252 2010-05-24  Bruno Haible  <bruno@clisp.org>
7253
7254         Don't use conversion with transliteration in u{8,16,32}_strcoll.
7255         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
7256         iconveh_error argument.
7257         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
7258         U_STRCONV_TO_LOCALE.
7259         * lib/unistr/u16-strcoll.c: Likewise.
7260         * lib/unistr/u32-strcoll.c: Likewise.
7261         * modules/unistr/u8-strcoll (Depends-on): Add
7262         uniconv/u8-strconv-to-enc, localcharset. Remove
7263         uniconv/u8-strconv-to-locale.
7264         (configure.ac): Bump version number.
7265         * modules/unistr/u16-strcoll (Depends-on): Add
7266         uniconv/u16-strconv-to-enc, localcharset. Remove
7267         uniconv/u16-strconv-to-locale.
7268         (configure.ac): Bump version number.
7269         * modules/unistr/u32-strcoll (Depends-on): Add
7270         uniconv/u32-strconv-to-enc, localcharset. Remove
7271         uniconv/u32-strconv-to-locale.
7272         (configure.ac): Bump version number.
7273
7274 2010-05-24  Bruno Haible  <bruno@clisp.org>
7275
7276         Avoid a test failure on NetBSD 5.0.
7277         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
7278         an iconv() bug.
7279
7280 2010-05-24  Bruno Haible  <bruno@clisp.org>
7281
7282         Adjust #include directive style.
7283         * modules/regex (Includes): Recommend to write <regex.h>.
7284
7285 2010-05-24  Bruno Haible  <bruno@clisp.org>
7286
7287         regex: Don't require alloca.
7288         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
7289         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
7290         only inside if (0).
7291
7292 2010-05-23  Jim Meyering  <meyering@redhat.com>
7293
7294         test-renameat.c: include <sys/stat.h>
7295         * tests/test-renameat.c: Include <sys/stat.h>; required for
7296         definition of S_IS* macros.
7297
7298 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
7299
7300         Update maintainer documentation for 'relocatable-prog' module.
7301         * doc/relocatable-maint.texi: Update.
7302         Comments by Bruno Haible.
7303
7304 2010-05-23  Bruno Haible  <bruno@clisp.org>
7305
7306         git-merge-changelog: Enable --split-merged-entry by default.
7307         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
7308         (usage): Don't mention this option any more.
7309         Reported by Ralf Wildenhues.
7310
7311 2010-05-23  Jim Meyering  <meyering@redhat.com>
7312
7313         test-pwrite: do not leave behind a test file named "out"
7314         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
7315         The trivial-looking use of init.sh is really necessary.
7316         It ensures that the temporary file, "out", is created in
7317         a temporary directory, and removed upon termination.
7318         * tests/test-pwrite.sh: Re-add file.
7319         * modules/pwrite-tests: Reference it.
7320
7321 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7322
7323         Fix output redirection buglet in init.sh.
7324         * tests/init.sh: Fix redirection of stderr.
7325
7326 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7327
7328         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
7329
7330 2010-05-17  Simon Josefsson  <simon@josefsson.org>
7331
7332         * modules/valgrind-tests: New file.
7333         * m4/valgrind-tests.m4: New file.
7334         * doc/valgrind-tests.texi: New file.
7335         * doc/gnulib.texi (Running self-tests under valgrind): New
7336         section.
7337
7338 2010-05-19  Bruno Haible  <bruno@clisp.org>
7339
7340         Clean up dead code in recent commit.
7341         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
7342         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
7343         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
7344         Suggested by Paolo Bonzini.
7345
7346 2010-05-19  Bruno Haible  <bruno@clisp.org>
7347
7348         Avoid valgrind error reports from libunistring.
7349         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
7350         * modules/libunistring (Files): Add it.
7351         * modules/libunistring-optional (Files): Likewise.
7352
7353 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
7354             Bruno Haible  <bruno@clisp.org>
7355
7356         New module 'libunistring-optional'.
7357         * modules/libunistring-optional: New file.
7358         * m4/libunistring-base.m4: New file.
7359         * m4/libunistring-optional.m4: New file.
7360         * lib/unicase.in.h: Renamed from lib/unicase.h.
7361         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
7362         * lib/unictype.in.h: Renamed from lib/unictype.h.
7363         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
7364         * lib/uniname.in.h: Renamed from lib/uniname.h.
7365         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
7366         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
7367         * lib/unistr.in.h: Renamed from lib/unistr.h.
7368         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
7369         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
7370         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
7371         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
7372         gl_LIBUNISTRING. If the library was found, determine the installed
7373         version and set LIBUNISTRING_VERSION.
7374         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
7375         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
7376         handle a configuration option --with-included-libunistring.
7377         * modules/libunistring (Files): Add m4/absolute-header.m4.
7378         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
7379         Add m4/libunistring-base.m4.
7380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7381         (Makefile.am): Build unicase.h from unicase.in.h.
7382         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
7383         Add m4/libunistring-base.m4.
7384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7385         (Makefile.am): Build uniconv.h from uniconv.in.h.
7386         * modules/unictype/base (Files): Use unictype.in.h instead of
7387         unictype.h. Add m4/libunistring-base.m4.
7388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7389         (Makefile.am): Build unictype.h from unictype.in.h.
7390         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
7391         Add m4/libunistring-base.m4.
7392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7393         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
7394         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
7395         Add m4/libunistring-base.m4.
7396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7397         (Makefile.am): Build uniname.h from uniname.in.h.
7398         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
7399         Add m4/libunistring-base.m4.
7400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7401         (Makefile.am): Build uninorm.h from uninorm.in.h.
7402         * modules/unistdio/base (Files): Use unistdio.in.h instead of
7403         unistdio.h. Add m4/libunistring-base.m4.
7404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7405         (Makefile.am): Build unistdio.h from unistdio.in.h.
7406         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
7407         Add m4/libunistring-base.m4.
7408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7409         (Makefile.am): Build unistr.h from unistr.in.h.
7410         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7411         Add m4/libunistring-base.m4.
7412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7413         (Makefile.am): Build unitypes.h from unitypes.in.h.
7414         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7415         Add m4/libunistring-base.m4.
7416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7417         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7418         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7419         uniwidth.h. Add m4/libunistring-base.m4.
7420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7421         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7422         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7423         instead of augmenting lib_SOURCES.
7424         * modules/unicase/empty-suffix-context: Likewise.
7425         * modules/unicase/locale-language: Likewise.
7426         * modules/unicase/tolower: Likewise.
7427         * modules/unicase/totitle: Likewise.
7428         * modules/unicase/toupper: Likewise.
7429         * modules/unicase/u8-casecmp: Likewise.
7430         * modules/unicase/u8-casecoll: Likewise.
7431         * modules/unicase/u8-casefold: Likewise.
7432         * modules/unicase/u8-casexfrm: Likewise.
7433         * modules/unicase/u8-ct-casefold: Likewise.
7434         * modules/unicase/u8-ct-tolower: Likewise.
7435         * modules/unicase/u8-ct-totitle: Likewise.
7436         * modules/unicase/u8-ct-toupper: Likewise.
7437         * modules/unicase/u8-is-cased: Likewise.
7438         * modules/unicase/u8-is-casefolded: Likewise.
7439         * modules/unicase/u8-is-lowercase: Likewise.
7440         * modules/unicase/u8-is-titlecase: Likewise.
7441         * modules/unicase/u8-is-uppercase: Likewise.
7442         * modules/unicase/u8-prefix-context: Likewise.
7443         * modules/unicase/u8-suffix-context: Likewise.
7444         * modules/unicase/u8-tolower: Likewise.
7445         * modules/unicase/u8-totitle: Likewise.
7446         * modules/unicase/u8-toupper: Likewise.
7447         * modules/unicase/u16-casecmp: Likewise.
7448         * modules/unicase/u16-casecoll: Likewise.
7449         * modules/unicase/u16-casefold: Likewise.
7450         * modules/unicase/u16-casexfrm: Likewise.
7451         * modules/unicase/u16-ct-casefold: Likewise.
7452         * modules/unicase/u16-ct-tolower: Likewise.
7453         * modules/unicase/u16-ct-totitle: Likewise.
7454         * modules/unicase/u16-ct-toupper: Likewise.
7455         * modules/unicase/u16-is-cased: Likewise.
7456         * modules/unicase/u16-is-casefolded: Likewise.
7457         * modules/unicase/u16-is-lowercase: Likewise.
7458         * modules/unicase/u16-is-titlecase: Likewise.
7459         * modules/unicase/u16-is-uppercase: Likewise.
7460         * modules/unicase/u16-prefix-context: Likewise.
7461         * modules/unicase/u16-suffix-context: Likewise.
7462         * modules/unicase/u16-tolower: Likewise.
7463         * modules/unicase/u16-totitle: Likewise.
7464         * modules/unicase/u16-toupper: Likewise.
7465         * modules/unicase/u32-casecmp: Likewise.
7466         * modules/unicase/u32-casecoll: Likewise.
7467         * modules/unicase/u32-casefold: Likewise.
7468         * modules/unicase/u32-casexfrm: Likewise.
7469         * modules/unicase/u32-ct-casefold: Likewise.
7470         * modules/unicase/u32-ct-tolower: Likewise.
7471         * modules/unicase/u32-ct-totitle: Likewise.
7472         * modules/unicase/u32-ct-toupper: Likewise.
7473         * modules/unicase/u32-is-cased: Likewise.
7474         * modules/unicase/u32-is-casefolded: Likewise.
7475         * modules/unicase/u32-is-lowercase: Likewise.
7476         * modules/unicase/u32-is-titlecase: Likewise.
7477         * modules/unicase/u32-is-uppercase: Likewise.
7478         * modules/unicase/u32-prefix-context: Likewise.
7479         * modules/unicase/u32-suffix-context: Likewise.
7480         * modules/unicase/u32-tolower: Likewise.
7481         * modules/unicase/u32-totitle: Likewise.
7482         * modules/unicase/u32-toupper: Likewise.
7483         * modules/unicase/ulc-casecmp: Likewise.
7484         * modules/unicase/ulc-casecoll: Likewise.
7485         * modules/unicase/ulc-casexfrm: Likewise.
7486         * modules/uniconv/u8-conv-from-enc: Likewise.
7487         * modules/uniconv/u8-conv-to-enc: Likewise.
7488         * modules/uniconv/u8-strconv-from-enc: Likewise.
7489         * modules/uniconv/u8-strconv-from-locale: Likewise.
7490         * modules/uniconv/u8-strconv-to-enc: Likewise.
7491         * modules/uniconv/u8-strconv-to-locale: Likewise.
7492         * modules/uniconv/u16-conv-from-enc: Likewise.
7493         * modules/uniconv/u16-conv-to-enc: Likewise.
7494         * modules/uniconv/u16-strconv-from-enc: Likewise.
7495         * modules/uniconv/u16-strconv-from-locale: Likewise.
7496         * modules/uniconv/u16-strconv-to-enc: Likewise.
7497         * modules/uniconv/u16-strconv-to-locale: Likewise.
7498         * modules/uniconv/u32-conv-from-enc: Likewise.
7499         * modules/uniconv/u32-conv-to-enc: Likewise.
7500         * modules/uniconv/u32-strconv-from-enc: Likewise.
7501         * modules/uniconv/u32-strconv-from-locale: Likewise.
7502         * modules/uniconv/u32-strconv-to-enc: Likewise.
7503         * modules/uniconv/u32-strconv-to-locale: Likewise.
7504         * modules/unictype/bidicategory-byname: Likewise.
7505         * modules/unictype/bidicategory-name: Likewise.
7506         * modules/unictype/bidicategory-of: Likewise.
7507         * modules/unictype/bidicategory-test: Likewise.
7508         * modules/unictype/block-list: Likewise.
7509         * modules/unictype/block-test: Likewise.
7510         * modules/unictype/category-C: Likewise.
7511         * modules/unictype/category-Cc: Likewise.
7512         * modules/unictype/category-Cf: Likewise.
7513         * modules/unictype/category-Cn: Likewise.
7514         * modules/unictype/category-Co: Likewise.
7515         * modules/unictype/category-Cs: Likewise.
7516         * modules/unictype/category-L: Likewise.
7517         * modules/unictype/category-Ll: Likewise.
7518         * modules/unictype/category-Lm: Likewise.
7519         * modules/unictype/category-Lo: Likewise.
7520         * modules/unictype/category-Lt: Likewise.
7521         * modules/unictype/category-Lu: Likewise.
7522         * modules/unictype/category-M: Likewise.
7523         * modules/unictype/category-Mc: Likewise.
7524         * modules/unictype/category-Me: Likewise.
7525         * modules/unictype/category-Mn: Likewise.
7526         * modules/unictype/category-N: Likewise.
7527         * modules/unictype/category-Nd: Likewise.
7528         * modules/unictype/category-Nl: Likewise.
7529         * modules/unictype/category-No: Likewise.
7530         * modules/unictype/category-P: Likewise.
7531         * modules/unictype/category-Pc: Likewise.
7532         * modules/unictype/category-Pd: Likewise.
7533         * modules/unictype/category-Pe: Likewise.
7534         * modules/unictype/category-Pf: Likewise.
7535         * modules/unictype/category-Pi: Likewise.
7536         * modules/unictype/category-Po: Likewise.
7537         * modules/unictype/category-Ps: Likewise.
7538         * modules/unictype/category-S: Likewise.
7539         * modules/unictype/category-Sc: Likewise.
7540         * modules/unictype/category-Sk: Likewise.
7541         * modules/unictype/category-Sm: Likewise.
7542         * modules/unictype/category-So: Likewise.
7543         * modules/unictype/category-Z: Likewise.
7544         * modules/unictype/category-Zl: Likewise.
7545         * modules/unictype/category-Zp: Likewise.
7546         * modules/unictype/category-Zs: Likewise.
7547         * modules/unictype/category-and: Likewise.
7548         * modules/unictype/category-and-not: Likewise.
7549         * modules/unictype/category-byname: Likewise.
7550         * modules/unictype/category-name: Likewise.
7551         * modules/unictype/category-none: Likewise.
7552         * modules/unictype/category-of: Likewise.
7553         * modules/unictype/category-or: Likewise.
7554         * modules/unictype/category-test: Likewise.
7555         * modules/unictype/combining-class: Likewise.
7556         * modules/unictype/ctype-alnum: Likewise.
7557         * modules/unictype/ctype-alpha: Likewise.
7558         * modules/unictype/ctype-blank: Likewise.
7559         * modules/unictype/ctype-cntrl: Likewise.
7560         * modules/unictype/ctype-digit: Likewise.
7561         * modules/unictype/ctype-graph: Likewise.
7562         * modules/unictype/ctype-lower: Likewise.
7563         * modules/unictype/ctype-print: Likewise.
7564         * modules/unictype/ctype-punct: Likewise.
7565         * modules/unictype/ctype-space: Likewise.
7566         * modules/unictype/ctype-upper: Likewise.
7567         * modules/unictype/ctype-xdigit: Likewise.
7568         * modules/unictype/decimal-digit: Likewise.
7569         * modules/unictype/digit: Likewise.
7570         * modules/unictype/mirror: Likewise.
7571         * modules/unictype/numeric: Likewise.
7572         * modules/unictype/property-alphabetic: Likewise.
7573         * modules/unictype/property-ascii-hex-digit: Likewise.
7574         * modules/unictype/property-bidi-arabic-digit: Likewise.
7575         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7576         * modules/unictype/property-bidi-block-separator: Likewise.
7577         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7578         * modules/unictype/property-bidi-common-separator: Likewise.
7579         * modules/unictype/property-bidi-control: Likewise.
7580         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7581         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7582         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7583         * modules/unictype/property-bidi-european-digit: Likewise.
7584         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7585         * modules/unictype/property-bidi-left-to-right: Likewise.
7586         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7587         * modules/unictype/property-bidi-other-neutral: Likewise.
7588         * modules/unictype/property-bidi-pdf: Likewise.
7589         * modules/unictype/property-bidi-segment-separator: Likewise.
7590         * modules/unictype/property-bidi-whitespace: Likewise.
7591         * modules/unictype/property-byname: Likewise.
7592         * modules/unictype/property-combining: Likewise.
7593         * modules/unictype/property-composite: Likewise.
7594         * modules/unictype/property-currency-symbol: Likewise.
7595         * modules/unictype/property-dash: Likewise.
7596         * modules/unictype/property-decimal-digit: Likewise.
7597         * modules/unictype/property-default-ignorable-code-point: Likewise.
7598         * modules/unictype/property-deprecated: Likewise.
7599         * modules/unictype/property-diacritic: Likewise.
7600         * modules/unictype/property-extender: Likewise.
7601         * modules/unictype/property-format-control: Likewise.
7602         * modules/unictype/property-grapheme-base: Likewise.
7603         * modules/unictype/property-grapheme-extend: Likewise.
7604         * modules/unictype/property-grapheme-link: Likewise.
7605         * modules/unictype/property-hex-digit: Likewise.
7606         * modules/unictype/property-hyphen: Likewise.
7607         * modules/unictype/property-id-continue: Likewise.
7608         * modules/unictype/property-id-start: Likewise.
7609         * modules/unictype/property-ideographic: Likewise.
7610         * modules/unictype/property-ids-binary-operator: Likewise.
7611         * modules/unictype/property-ids-trinary-operator: Likewise.
7612         * modules/unictype/property-ignorable-control: Likewise.
7613         * modules/unictype/property-iso-control: Likewise.
7614         * modules/unictype/property-join-control: Likewise.
7615         * modules/unictype/property-left-of-pair: Likewise.
7616         * modules/unictype/property-line-separator: Likewise.
7617         * modules/unictype/property-logical-order-exception: Likewise.
7618         * modules/unictype/property-lowercase: Likewise.
7619         * modules/unictype/property-math: Likewise.
7620         * modules/unictype/property-non-break: Likewise.
7621         * modules/unictype/property-not-a-character: Likewise.
7622         * modules/unictype/property-numeric: Likewise.
7623         * modules/unictype/property-other-alphabetic: Likewise.
7624         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7625         * modules/unictype/property-other-grapheme-extend: Likewise.
7626         * modules/unictype/property-other-id-continue: Likewise.
7627         * modules/unictype/property-other-id-start: Likewise.
7628         * modules/unictype/property-other-lowercase: Likewise.
7629         * modules/unictype/property-other-math: Likewise.
7630         * modules/unictype/property-other-uppercase: Likewise.
7631         * modules/unictype/property-paired-punctuation: Likewise.
7632         * modules/unictype/property-paragraph-separator: Likewise.
7633         * modules/unictype/property-pattern-syntax: Likewise.
7634         * modules/unictype/property-pattern-white-space: Likewise.
7635         * modules/unictype/property-private-use: Likewise.
7636         * modules/unictype/property-punctuation: Likewise.
7637         * modules/unictype/property-quotation-mark: Likewise.
7638         * modules/unictype/property-radical: Likewise.
7639         * modules/unictype/property-sentence-terminal: Likewise.
7640         * modules/unictype/property-soft-dotted: Likewise.
7641         * modules/unictype/property-space: Likewise.
7642         * modules/unictype/property-terminal-punctuation: Likewise.
7643         * modules/unictype/property-test: Likewise.
7644         * modules/unictype/property-titlecase: Likewise.
7645         * modules/unictype/property-unassigned-code-value: Likewise.
7646         * modules/unictype/property-unified-ideograph: Likewise.
7647         * modules/unictype/property-uppercase: Likewise.
7648         * modules/unictype/property-variation-selector: Likewise.
7649         * modules/unictype/property-white-space: Likewise.
7650         * modules/unictype/property-xid-continue: Likewise.
7651         * modules/unictype/property-xid-start: Likewise.
7652         * modules/unictype/property-zero-width: Likewise.
7653         * modules/unictype/scripts: Likewise.
7654         * modules/unictype/syntax-c-ident: Likewise.
7655         * modules/unictype/syntax-c-whitespace: Likewise.
7656         * modules/unictype/syntax-java-ident: Likewise.
7657         * modules/unictype/syntax-java-whitespace: Likewise.
7658         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7659         * modules/unilbrk/u8-width-linebreaks: Likewise.
7660         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7661         * modules/unilbrk/u16-width-linebreaks: Likewise.
7662         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7663         * modules/unilbrk/u32-width-linebreaks: Likewise.
7664         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7665         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7666         * modules/uniname/uniname: Likewise.
7667         * modules/uninorm/canonical-decomposition: Likewise.
7668         * modules/uninorm/composition: Likewise.
7669         * modules/uninorm/decomposing-form: Likewise.
7670         * modules/uninorm/decomposition: Likewise.
7671         * modules/uninorm/filter: Likewise.
7672         * modules/uninorm/nfc: Likewise.
7673         * modules/uninorm/nfd: Likewise.
7674         * modules/uninorm/nfkc: Likewise.
7675         * modules/uninorm/nfkd: Likewise.
7676         * modules/uninorm/u8-normalize: Likewise.
7677         * modules/uninorm/u8-normcmp: Likewise.
7678         * modules/uninorm/u8-normcoll: Likewise.
7679         * modules/uninorm/u8-normxfrm: Likewise.
7680         * modules/uninorm/u16-normalize: Likewise.
7681         * modules/uninorm/u16-normcmp: Likewise.
7682         * modules/uninorm/u16-normcoll: Likewise.
7683         * modules/uninorm/u16-normxfrm: Likewise.
7684         * modules/uninorm/u32-normalize: Likewise.
7685         * modules/uninorm/u32-normcmp: Likewise.
7686         * modules/uninorm/u32-normcoll: Likewise.
7687         * modules/uninorm/u32-normxfrm: Likewise.
7688         * modules/unistdio/u8-asnprintf: Likewise.
7689         * modules/unistdio/u8-asprintf: Likewise.
7690         * modules/unistdio/u8-snprintf: Likewise.
7691         * modules/unistdio/u8-sprintf: Likewise.
7692         * modules/unistdio/u8-u8-asnprintf: Likewise.
7693         * modules/unistdio/u8-u8-asprintf: Likewise.
7694         * modules/unistdio/u8-u8-snprintf: Likewise.
7695         * modules/unistdio/u8-u8-sprintf: Likewise.
7696         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7697         * modules/unistdio/u8-u8-vasprintf: Likewise.
7698         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7699         * modules/unistdio/u8-u8-vsprintf: Likewise.
7700         * modules/unistdio/u8-vasnprintf: Likewise.
7701         * modules/unistdio/u8-vasprintf: Likewise.
7702         * modules/unistdio/u8-vsnprintf: Likewise.
7703         * modules/unistdio/u8-vsprintf: Likewise.
7704         * modules/unistdio/u16-asnprintf: Likewise.
7705         * modules/unistdio/u16-asprintf: Likewise.
7706         * modules/unistdio/u16-snprintf: Likewise.
7707         * modules/unistdio/u16-sprintf: Likewise.
7708         * modules/unistdio/u16-u16-asnprintf: Likewise.
7709         * modules/unistdio/u16-u16-asprintf: Likewise.
7710         * modules/unistdio/u16-u16-snprintf: Likewise.
7711         * modules/unistdio/u16-u16-sprintf: Likewise.
7712         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7713         * modules/unistdio/u16-u16-vasprintf: Likewise.
7714         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7715         * modules/unistdio/u16-u16-vsprintf: Likewise.
7716         * modules/unistdio/u16-vasnprintf: Likewise.
7717         * modules/unistdio/u16-vasprintf: Likewise.
7718         * modules/unistdio/u16-vsnprintf: Likewise.
7719         * modules/unistdio/u16-vsprintf: Likewise.
7720         * modules/unistdio/u32-asnprintf: Likewise.
7721         * modules/unistdio/u32-asprintf: Likewise.
7722         * modules/unistdio/u32-snprintf: Likewise.
7723         * modules/unistdio/u32-sprintf: Likewise.
7724         * modules/unistdio/u32-u32-asnprintf: Likewise.
7725         * modules/unistdio/u32-u32-asprintf: Likewise.
7726         * modules/unistdio/u32-u32-snprintf: Likewise.
7727         * modules/unistdio/u32-u32-sprintf: Likewise.
7728         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7729         * modules/unistdio/u32-u32-vasprintf: Likewise.
7730         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7731         * modules/unistdio/u32-u32-vsprintf: Likewise.
7732         * modules/unistdio/u32-vasnprintf: Likewise.
7733         * modules/unistdio/u32-vasprintf: Likewise.
7734         * modules/unistdio/u32-vsnprintf: Likewise.
7735         * modules/unistdio/u32-vsprintf: Likewise.
7736         * modules/unistdio/ulc-asnprintf: Likewise.
7737         * modules/unistdio/ulc-asprintf: Likewise.
7738         * modules/unistdio/ulc-fprintf: Likewise.
7739         * modules/unistdio/ulc-snprintf: Likewise.
7740         * modules/unistdio/ulc-sprintf: Likewise.
7741         * modules/unistdio/ulc-vasnprintf: Likewise.
7742         * modules/unistdio/ulc-vasprintf: Likewise.
7743         * modules/unistdio/ulc-vfprintf: Likewise.
7744         * modules/unistdio/ulc-vsnprintf: Likewise.
7745         * modules/unistdio/ulc-vsprintf: Likewise.
7746         * modules/unistr/u8-check: Likewise.
7747         * modules/unistr/u8-chr: Likewise.
7748         * modules/unistr/u8-cmp: Likewise.
7749         * modules/unistr/u8-cmp2: Likewise.
7750         * modules/unistr/u8-cpy: Likewise.
7751         * modules/unistr/u8-cpy-alloc: Likewise.
7752         * modules/unistr/u8-endswith: Likewise.
7753         * modules/unistr/u8-mblen: Likewise.
7754         * modules/unistr/u8-mbsnlen: Likewise.
7755         * modules/unistr/u8-mbtouc: Likewise.
7756         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7757         * modules/unistr/u8-mbtoucr: Likewise.
7758         * modules/unistr/u8-move: Likewise.
7759         * modules/unistr/u8-next: Likewise.
7760         * modules/unistr/u8-prev: Likewise.
7761         * modules/unistr/u8-set: Likewise.
7762         * modules/unistr/u8-startswith: Likewise.
7763         * modules/unistr/u8-stpcpy: Likewise.
7764         * modules/unistr/u8-stpncpy: Likewise.
7765         * modules/unistr/u8-strcat: Likewise.
7766         * modules/unistr/u8-strchr: Likewise.
7767         * modules/unistr/u8-strcmp: Likewise.
7768         * modules/unistr/u8-strcoll: Likewise.
7769         * modules/unistr/u8-strcpy: Likewise.
7770         * modules/unistr/u8-strcspn: Likewise.
7771         * modules/unistr/u8-strdup: Likewise.
7772         * modules/unistr/u8-strlen: Likewise.
7773         * modules/unistr/u8-strmblen: Likewise.
7774         * modules/unistr/u8-strmbtouc: Likewise.
7775         * modules/unistr/u8-strncat: Likewise.
7776         * modules/unistr/u8-strncmp: Likewise.
7777         * modules/unistr/u8-strncpy: Likewise.
7778         * modules/unistr/u8-strnlen: Likewise.
7779         * modules/unistr/u8-strpbrk: Likewise.
7780         * modules/unistr/u8-strrchr: Likewise.
7781         * modules/unistr/u8-strspn: Likewise.
7782         * modules/unistr/u8-strstr: Likewise.
7783         * modules/unistr/u8-strtok: Likewise.
7784         * modules/unistr/u8-to-u16: Likewise.
7785         * modules/unistr/u8-to-u32: Likewise.
7786         * modules/unistr/u8-uctomb: Likewise.
7787         * modules/unistr/u16-check: Likewise.
7788         * modules/unistr/u16-chr: Likewise.
7789         * modules/unistr/u16-cmp: Likewise.
7790         * modules/unistr/u16-cmp2: Likewise.
7791         * modules/unistr/u16-cpy: Likewise.
7792         * modules/unistr/u16-cpy-alloc: Likewise.
7793         * modules/unistr/u16-endswith: Likewise.
7794         * modules/unistr/u16-mblen: Likewise.
7795         * modules/unistr/u16-mbsnlen: Likewise.
7796         * modules/unistr/u16-mbtouc: Likewise.
7797         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7798         * modules/unistr/u16-mbtoucr: Likewise.
7799         * modules/unistr/u16-move: Likewise.
7800         * modules/unistr/u16-next: Likewise.
7801         * modules/unistr/u16-prev: Likewise.
7802         * modules/unistr/u16-set: Likewise.
7803         * modules/unistr/u16-startswith: Likewise.
7804         * modules/unistr/u16-stpcpy: Likewise.
7805         * modules/unistr/u16-stpncpy: Likewise.
7806         * modules/unistr/u16-strcat: Likewise.
7807         * modules/unistr/u16-strchr: Likewise.
7808         * modules/unistr/u16-strcmp: Likewise.
7809         * modules/unistr/u16-strcoll: Likewise.
7810         * modules/unistr/u16-strcpy: Likewise.
7811         * modules/unistr/u16-strcspn: Likewise.
7812         * modules/unistr/u16-strdup: Likewise.
7813         * modules/unistr/u16-strlen: Likewise.
7814         * modules/unistr/u16-strmblen: Likewise.
7815         * modules/unistr/u16-strmbtouc: Likewise.
7816         * modules/unistr/u16-strncat: Likewise.
7817         * modules/unistr/u16-strncmp: Likewise.
7818         * modules/unistr/u16-strncpy: Likewise.
7819         * modules/unistr/u16-strnlen: Likewise.
7820         * modules/unistr/u16-strpbrk: Likewise.
7821         * modules/unistr/u16-strrchr: Likewise.
7822         * modules/unistr/u16-strspn: Likewise.
7823         * modules/unistr/u16-strstr: Likewise.
7824         * modules/unistr/u16-strtok: Likewise.
7825         * modules/unistr/u16-to-u32: Likewise.
7826         * modules/unistr/u16-to-u8: Likewise.
7827         * modules/unistr/u16-uctomb: Likewise.
7828         * modules/unistr/u32-check: Likewise.
7829         * modules/unistr/u32-chr: Likewise.
7830         * modules/unistr/u32-cmp: Likewise.
7831         * modules/unistr/u32-cmp2: Likewise.
7832         * modules/unistr/u32-cpy: Likewise.
7833         * modules/unistr/u32-cpy-alloc: Likewise.
7834         * modules/unistr/u32-endswith: Likewise.
7835         * modules/unistr/u32-mblen: Likewise.
7836         * modules/unistr/u32-mbsnlen: Likewise.
7837         * modules/unistr/u32-mbtouc: Likewise.
7838         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7839         * modules/unistr/u32-mbtoucr: Likewise.
7840         * modules/unistr/u32-move: Likewise.
7841         * modules/unistr/u32-next: Likewise.
7842         * modules/unistr/u32-prev: Likewise.
7843         * modules/unistr/u32-set: Likewise.
7844         * modules/unistr/u32-startswith: Likewise.
7845         * modules/unistr/u32-stpcpy: Likewise.
7846         * modules/unistr/u32-stpncpy: Likewise.
7847         * modules/unistr/u32-strcat: Likewise.
7848         * modules/unistr/u32-strchr: Likewise.
7849         * modules/unistr/u32-strcmp: Likewise.
7850         * modules/unistr/u32-strcoll: Likewise.
7851         * modules/unistr/u32-strcpy: Likewise.
7852         * modules/unistr/u32-strcspn: Likewise.
7853         * modules/unistr/u32-strdup: Likewise.
7854         * modules/unistr/u32-strlen: Likewise.
7855         * modules/unistr/u32-strmblen: Likewise.
7856         * modules/unistr/u32-strmbtouc: Likewise.
7857         * modules/unistr/u32-strncat: Likewise.
7858         * modules/unistr/u32-strncmp: Likewise.
7859         * modules/unistr/u32-strncpy: Likewise.
7860         * modules/unistr/u32-strnlen: Likewise.
7861         * modules/unistr/u32-strpbrk: Likewise.
7862         * modules/unistr/u32-strrchr: Likewise.
7863         * modules/unistr/u32-strspn: Likewise.
7864         * modules/unistr/u32-strstr: Likewise.
7865         * modules/unistr/u32-strtok: Likewise.
7866         * modules/unistr/u32-to-u16: Likewise.
7867         * modules/unistr/u32-to-u8: Likewise.
7868         * modules/unistr/u32-uctomb: Likewise.
7869         * modules/uniwbrk/u8-wordbreaks: Likewise.
7870         * modules/uniwbrk/u16-wordbreaks: Likewise.
7871         * modules/uniwbrk/u32-wordbreaks: Likewise.
7872         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7873         * modules/uniwbrk/wordbreak-property: Likewise.
7874         * modules/uniwidth/u8-strwidth: Likewise.
7875         * modules/uniwidth/u8-width: Likewise.
7876         * modules/uniwidth/u16-strwidth: Likewise.
7877         * modules/uniwidth/u16-width: Likewise.
7878         * modules/uniwidth/u32-strwidth: Likewise.
7879         * modules/uniwidth/u32-width: Likewise.
7880         * modules/uniwidth/width: Likewise.
7881         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7882         with $(LIBUNISTRING).
7883         * modules/unicase/ignorable-tests: Likewise.
7884         * modules/unicase/locale-language-tests: Likewise.
7885         * modules/unicase/tolower-tests: Likewise.
7886         * modules/unicase/totitle-tests: Likewise.
7887         * modules/unicase/toupper-tests: Likewise.
7888         * modules/unicase/u8-casecmp-tests: Likewise.
7889         * modules/unicase/u8-casecoll-tests: Likewise.
7890         * modules/unicase/u8-casefold-tests: Likewise.
7891         * modules/unicase/u8-is-cased-tests: Likewise.
7892         * modules/unicase/u8-is-casefolded-tests: Likewise.
7893         * modules/unicase/u8-is-lowercase-tests: Likewise.
7894         * modules/unicase/u8-is-titlecase-tests: Likewise.
7895         * modules/unicase/u8-is-uppercase-tests: Likewise.
7896         * modules/unicase/u8-tolower-tests: Likewise.
7897         * modules/unicase/u8-totitle-tests: Likewise.
7898         * modules/unicase/u8-toupper-tests: Likewise.
7899         * modules/unicase/u16-casecmp-tests: Likewise.
7900         * modules/unicase/u16-casecoll-tests: Likewise.
7901         * modules/unicase/u16-casefold-tests: Likewise.
7902         * modules/unicase/u16-is-cased-tests: Likewise.
7903         * modules/unicase/u16-is-casefolded-tests: Likewise.
7904         * modules/unicase/u16-is-lowercase-tests: Likewise.
7905         * modules/unicase/u16-is-titlecase-tests: Likewise.
7906         * modules/unicase/u16-is-uppercase-tests: Likewise.
7907         * modules/unicase/u16-tolower-tests: Likewise.
7908         * modules/unicase/u16-totitle-tests: Likewise.
7909         * modules/unicase/u16-toupper-tests: Likewise.
7910         * modules/unicase/u32-casecmp-tests: Likewise.
7911         * modules/unicase/u32-casecoll-tests: Likewise.
7912         * modules/unicase/u32-casefold-tests: Likewise.
7913         * modules/unicase/u32-is-cased-tests: Likewise.
7914         * modules/unicase/u32-is-casefolded-tests: Likewise.
7915         * modules/unicase/u32-is-lowercase-tests: Likewise.
7916         * modules/unicase/u32-is-titlecase-tests: Likewise.
7917         * modules/unicase/u32-is-uppercase-tests: Likewise.
7918         * modules/unicase/u32-tolower-tests: Likewise.
7919         * modules/unicase/u32-totitle-tests: Likewise.
7920         * modules/unicase/u32-toupper-tests: Likewise.
7921         * modules/unicase/ulc-casecmp-tests: Likewise.
7922         * modules/unicase/ulc-casecoll-tests: Likewise.
7923         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7924         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7925         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7926         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7927         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7928         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7929         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7930         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7931         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7932         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7933         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7934         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7935         * modules/unictype/bidicategory-byname-tests: Likewise.
7936         * modules/unictype/bidicategory-name-tests: Likewise.
7937         * modules/unictype/bidicategory-of-tests: Likewise.
7938         * modules/unictype/bidicategory-test-tests: Likewise.
7939         * modules/unictype/block-list-tests: Likewise.
7940         * modules/unictype/block-of-tests: Likewise.
7941         * modules/unictype/block-test-tests: Likewise.
7942         * modules/unictype/category-C-tests: Likewise.
7943         * modules/unictype/category-Cc-tests: Likewise.
7944         * modules/unictype/category-Cf-tests: Likewise.
7945         * modules/unictype/category-Cn-tests: Likewise.
7946         * modules/unictype/category-Co-tests: Likewise.
7947         * modules/unictype/category-Cs-tests: Likewise.
7948         * modules/unictype/category-L-tests: Likewise.
7949         * modules/unictype/category-Ll-tests: Likewise.
7950         * modules/unictype/category-Lm-tests: Likewise.
7951         * modules/unictype/category-Lo-tests: Likewise.
7952         * modules/unictype/category-Lt-tests: Likewise.
7953         * modules/unictype/category-Lu-tests: Likewise.
7954         * modules/unictype/category-M-tests: Likewise.
7955         * modules/unictype/category-Mc-tests: Likewise.
7956         * modules/unictype/category-Me-tests: Likewise.
7957         * modules/unictype/category-Mn-tests: Likewise.
7958         * modules/unictype/category-N-tests: Likewise.
7959         * modules/unictype/category-Nd-tests: Likewise.
7960         * modules/unictype/category-Nl-tests: Likewise.
7961         * modules/unictype/category-No-tests: Likewise.
7962         * modules/unictype/category-P-tests: Likewise.
7963         * modules/unictype/category-Pc-tests: Likewise.
7964         * modules/unictype/category-Pd-tests: Likewise.
7965         * modules/unictype/category-Pe-tests: Likewise.
7966         * modules/unictype/category-Pf-tests: Likewise.
7967         * modules/unictype/category-Pi-tests: Likewise.
7968         * modules/unictype/category-Po-tests: Likewise.
7969         * modules/unictype/category-Ps-tests: Likewise.
7970         * modules/unictype/category-S-tests: Likewise.
7971         * modules/unictype/category-Sc-tests: Likewise.
7972         * modules/unictype/category-Sk-tests: Likewise.
7973         * modules/unictype/category-Sm-tests: Likewise.
7974         * modules/unictype/category-So-tests: Likewise.
7975         * modules/unictype/category-Z-tests: Likewise.
7976         * modules/unictype/category-Zl-tests: Likewise.
7977         * modules/unictype/category-Zp-tests: Likewise.
7978         * modules/unictype/category-Zs-tests: Likewise.
7979         * modules/unictype/category-and-not-tests: Likewise.
7980         * modules/unictype/category-and-tests: Likewise.
7981         * modules/unictype/category-byname-tests: Likewise.
7982         * modules/unictype/category-name-tests: Likewise.
7983         * modules/unictype/category-none-tests: Likewise.
7984         * modules/unictype/category-of-tests: Likewise.
7985         * modules/unictype/category-or-tests: Likewise.
7986         * modules/unictype/category-test-withtable-tests: Likewise.
7987         * modules/unictype/combining-class-tests: Likewise.
7988         * modules/unictype/ctype-alnum-tests: Likewise.
7989         * modules/unictype/ctype-alpha-tests: Likewise.
7990         * modules/unictype/ctype-blank-tests: Likewise.
7991         * modules/unictype/ctype-cntrl-tests: Likewise.
7992         * modules/unictype/ctype-digit-tests: Likewise.
7993         * modules/unictype/ctype-graph-tests: Likewise.
7994         * modules/unictype/ctype-lower-tests: Likewise.
7995         * modules/unictype/ctype-print-tests: Likewise.
7996         * modules/unictype/ctype-punct-tests: Likewise.
7997         * modules/unictype/ctype-space-tests: Likewise.
7998         * modules/unictype/ctype-upper-tests: Likewise.
7999         * modules/unictype/ctype-xdigit-tests: Likewise.
8000         * modules/unictype/decimal-digit-tests: Likewise.
8001         * modules/unictype/digit-tests: Likewise.
8002         * modules/unictype/mirror-tests: Likewise.
8003         * modules/unictype/numeric-tests: Likewise.
8004         * modules/unictype/property-alphabetic-tests: Likewise.
8005         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
8006         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
8007         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
8008         * modules/unictype/property-bidi-block-separator-tests: Likewise.
8009         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
8010         * modules/unictype/property-bidi-common-separator-tests: Likewise.
8011         * modules/unictype/property-bidi-control-tests: Likewise.
8012         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
8013         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
8014         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
8015         * modules/unictype/property-bidi-european-digit-tests: Likewise.
8016         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
8017         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
8018         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
8019         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
8020         * modules/unictype/property-bidi-pdf-tests: Likewise.
8021         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
8022         * modules/unictype/property-bidi-whitespace-tests: Likewise.
8023         * modules/unictype/property-byname-tests: Likewise.
8024         * modules/unictype/property-combining-tests: Likewise.
8025         * modules/unictype/property-composite-tests: Likewise.
8026         * modules/unictype/property-currency-symbol-tests: Likewise.
8027         * modules/unictype/property-dash-tests: Likewise.
8028         * modules/unictype/property-decimal-digit-tests: Likewise.
8029         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
8030         * modules/unictype/property-deprecated-tests: Likewise.
8031         * modules/unictype/property-diacritic-tests: Likewise.
8032         * modules/unictype/property-extender-tests: Likewise.
8033         * modules/unictype/property-format-control-tests: Likewise.
8034         * modules/unictype/property-grapheme-base-tests: Likewise.
8035         * modules/unictype/property-grapheme-extend-tests: Likewise.
8036         * modules/unictype/property-grapheme-link-tests: Likewise.
8037         * modules/unictype/property-hex-digit-tests: Likewise.
8038         * modules/unictype/property-hyphen-tests: Likewise.
8039         * modules/unictype/property-id-continue-tests: Likewise.
8040         * modules/unictype/property-id-start-tests: Likewise.
8041         * modules/unictype/property-ideographic-tests: Likewise.
8042         * modules/unictype/property-ids-binary-operator-tests: Likewise.
8043         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
8044         * modules/unictype/property-ignorable-control-tests: Likewise.
8045         * modules/unictype/property-iso-control-tests: Likewise.
8046         * modules/unictype/property-join-control-tests: Likewise.
8047         * modules/unictype/property-left-of-pair-tests: Likewise.
8048         * modules/unictype/property-line-separator-tests: Likewise.
8049         * modules/unictype/property-logical-order-exception-tests: Likewise.
8050         * modules/unictype/property-lowercase-tests: Likewise.
8051         * modules/unictype/property-math-tests: Likewise.
8052         * modules/unictype/property-non-break-tests: Likewise.
8053         * modules/unictype/property-not-a-character-tests: Likewise.
8054         * modules/unictype/property-numeric-tests: Likewise.
8055         * modules/unictype/property-other-alphabetic-tests: Likewise.
8056         * modules/unictype/property-other-default-ignorable-code-point-tests:
8057         Likewise.
8058         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
8059         * modules/unictype/property-other-id-continue-tests: Likewise.
8060         * modules/unictype/property-other-id-start-tests: Likewise.
8061         * modules/unictype/property-other-lowercase-tests: Likewise.
8062         * modules/unictype/property-other-math-tests: Likewise.
8063         * modules/unictype/property-other-uppercase-tests: Likewise.
8064         * modules/unictype/property-paired-punctuation-tests: Likewise.
8065         * modules/unictype/property-paragraph-separator-tests: Likewise.
8066         * modules/unictype/property-pattern-syntax-tests: Likewise.
8067         * modules/unictype/property-pattern-white-space-tests: Likewise.
8068         * modules/unictype/property-private-use-tests: Likewise.
8069         * modules/unictype/property-punctuation-tests: Likewise.
8070         * modules/unictype/property-quotation-mark-tests: Likewise.
8071         * modules/unictype/property-radical-tests: Likewise.
8072         * modules/unictype/property-sentence-terminal-tests: Likewise.
8073         * modules/unictype/property-soft-dotted-tests: Likewise.
8074         * modules/unictype/property-space-tests: Likewise.
8075         * modules/unictype/property-terminal-punctuation-tests: Likewise.
8076         * modules/unictype/property-test-tests: Likewise.
8077         * modules/unictype/property-titlecase-tests: Likewise.
8078         * modules/unictype/property-unassigned-code-value-tests: Likewise.
8079         * modules/unictype/property-unified-ideograph-tests: Likewise.
8080         * modules/unictype/property-uppercase-tests: Likewise.
8081         * modules/unictype/property-variation-selector-tests: Likewise.
8082         * modules/unictype/property-white-space-tests: Likewise.
8083         * modules/unictype/property-xid-continue-tests: Likewise.
8084         * modules/unictype/property-xid-start-tests: Likewise.
8085         * modules/unictype/property-zero-width-tests: Likewise.
8086         * modules/unictype/scripts-tests: Likewise.
8087         * modules/unictype/syntax-c-ident-tests: Likewise.
8088         * modules/unictype/syntax-c-whitespace-tests: Likewise.
8089         * modules/unictype/syntax-java-ident-tests: Likewise.
8090         * modules/unictype/syntax-java-whitespace-tests: Likewise.
8091         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
8092         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
8093         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
8094         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
8095         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
8096         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
8097         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
8098         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
8099         * modules/uniname/uniname-tests: Likewise.
8100         * modules/uninorm/canonical-decomposition-tests: Likewise.
8101         * modules/uninorm/compat-decomposition-tests: Likewise.
8102         * modules/uninorm/composition-tests: Likewise.
8103         * modules/uninorm/decomposing-form-tests: Likewise.
8104         * modules/uninorm/decomposition-tests: Likewise.
8105         * modules/uninorm/filter-tests: Likewise.
8106         * modules/uninorm/nfc-tests: Likewise.
8107         * modules/uninorm/nfd-tests: Likewise.
8108         * modules/uninorm/nfkc-tests: Likewise.
8109         * modules/uninorm/nfkd-tests: Likewise.
8110         * modules/uninorm/u8-normcmp-tests: Likewise.
8111         * modules/uninorm/u8-normcoll-tests: Likewise.
8112         * modules/uninorm/u16-normcmp-tests: Likewise.
8113         * modules/uninorm/u16-normcoll-tests: Likewise.
8114         * modules/uninorm/u32-normcmp-tests: Likewise.
8115         * modules/uninorm/u32-normcoll-tests: Likewise.
8116         * modules/unistdio/u8-asnprintf-tests: Likewise.
8117         * modules/unistdio/u8-vasnprintf-tests: Likewise.
8118         * modules/unistdio/u8-vasprintf-tests: Likewise.
8119         * modules/unistdio/u8-vsnprintf-tests: Likewise.
8120         * modules/unistdio/u8-vsprintf-tests: Likewise.
8121         * modules/unistdio/u16-asnprintf-tests: Likewise.
8122         * modules/unistdio/u16-vasnprintf-tests: Likewise.
8123         * modules/unistdio/u16-vasprintf-tests: Likewise.
8124         * modules/unistdio/u16-vsnprintf-tests: Likewise.
8125         * modules/unistdio/u16-vsprintf-tests: Likewise.
8126         * modules/unistdio/u32-asnprintf-tests: Likewise.
8127         * modules/unistdio/u32-vasnprintf-tests: Likewise.
8128         * modules/unistdio/u32-vasprintf-tests: Likewise.
8129         * modules/unistdio/u32-vsnprintf-tests: Likewise.
8130         * modules/unistdio/u32-vsprintf-tests: Likewise.
8131         * modules/unistdio/ulc-asnprintf-tests: Likewise.
8132         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
8133         * modules/unistdio/ulc-vasprintf-tests: Likewise.
8134         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
8135         * modules/unistdio/ulc-vsprintf-tests: Likewise.
8136         * modules/unistr/u8-check-tests: Likewise.
8137         * modules/unistr/u8-chr-tests: Likewise.
8138         * modules/unistr/u8-cmp-tests: Likewise.
8139         * modules/unistr/u8-cmp2-tests: Likewise.
8140         * modules/unistr/u8-cpy-alloc-tests: Likewise.
8141         * modules/unistr/u8-cpy-tests: Likewise.
8142         * modules/unistr/u8-mblen-tests: Likewise.
8143         * modules/unistr/u8-mbsnlen-tests: Likewise.
8144         * modules/unistr/u8-mbtouc-tests: Likewise.
8145         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
8146         * modules/unistr/u8-mbtoucr-tests: Likewise.
8147         * modules/unistr/u8-move-tests: Likewise.
8148         * modules/unistr/u8-next-tests: Likewise.
8149         * modules/unistr/u8-prev-tests: Likewise.
8150         * modules/unistr/u8-set-tests: Likewise.
8151         * modules/unistr/u8-stpcpy-tests: Likewise.
8152         * modules/unistr/u8-stpncpy-tests: Likewise.
8153         * modules/unistr/u8-strcat-tests: Likewise.
8154         * modules/unistr/u8-strcmp-tests: Likewise.
8155         * modules/unistr/u8-strcoll-tests: Likewise.
8156         * modules/unistr/u8-strcpy-tests: Likewise.
8157         * modules/unistr/u8-strdup-tests: Likewise.
8158         * modules/unistr/u8-strlen-tests: Likewise.
8159         * modules/unistr/u8-strmblen-tests: Likewise.
8160         * modules/unistr/u8-strmbtouc-tests: Likewise.
8161         * modules/unistr/u8-strncat-tests: Likewise.
8162         * modules/unistr/u8-strncmp-tests: Likewise.
8163         * modules/unistr/u8-strncpy-tests: Likewise.
8164         * modules/unistr/u8-strnlen-tests: Likewise.
8165         * modules/unistr/u8-to-u16-tests: Likewise.
8166         * modules/unistr/u8-to-u32-tests: Likewise.
8167         * modules/unistr/u8-uctomb-tests: Likewise.
8168         * modules/unistr/u16-check-tests: Likewise.
8169         * modules/unistr/u16-chr-tests: Likewise.
8170         * modules/unistr/u16-cmp-tests: Likewise.
8171         * modules/unistr/u16-cmp2-tests: Likewise.
8172         * modules/unistr/u16-cpy-alloc-tests: Likewise.
8173         * modules/unistr/u16-cpy-tests: Likewise.
8174         * modules/unistr/u16-mblen-tests: Likewise.
8175         * modules/unistr/u16-mbsnlen-tests: Likewise.
8176         * modules/unistr/u16-mbtouc-tests: Likewise.
8177         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
8178         * modules/unistr/u16-mbtoucr-tests: Likewise.
8179         * modules/unistr/u16-move-tests: Likewise.
8180         * modules/unistr/u16-next-tests: Likewise.
8181         * modules/unistr/u16-prev-tests: Likewise.
8182         * modules/unistr/u16-set-tests: Likewise.
8183         * modules/unistr/u16-stpcpy-tests: Likewise.
8184         * modules/unistr/u16-stpncpy-tests: Likewise.
8185         * modules/unistr/u16-strcat-tests: Likewise.
8186         * modules/unistr/u16-strcmp-tests: Likewise.
8187         * modules/unistr/u16-strcoll-tests: Likewise.
8188         * modules/unistr/u16-strcpy-tests: Likewise.
8189         * modules/unistr/u16-strdup-tests: Likewise.
8190         * modules/unistr/u16-strlen-tests: Likewise.
8191         * modules/unistr/u16-strmblen-tests: Likewise.
8192         * modules/unistr/u16-strmbtouc-tests: Likewise.
8193         * modules/unistr/u16-strncat-tests: Likewise.
8194         * modules/unistr/u16-strncmp-tests: Likewise.
8195         * modules/unistr/u16-strncpy-tests: Likewise.
8196         * modules/unistr/u16-strnlen-tests: Likewise.
8197         * modules/unistr/u16-to-u32-tests: Likewise.
8198         * modules/unistr/u16-to-u8-tests: Likewise.
8199         * modules/unistr/u16-uctomb-tests: Likewise.
8200         * modules/unistr/u32-check-tests: Likewise.
8201         * modules/unistr/u32-chr-tests: Likewise.
8202         * modules/unistr/u32-cmp-tests: Likewise.
8203         * modules/unistr/u32-cmp2-tests: Likewise.
8204         * modules/unistr/u32-cpy-alloc-tests: Likewise.
8205         * modules/unistr/u32-cpy-tests: Likewise.
8206         * modules/unistr/u32-mblen-tests: Likewise.
8207         * modules/unistr/u32-mbsnlen-tests: Likewise.
8208         * modules/unistr/u32-mbtouc-tests: Likewise.
8209         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
8210         * modules/unistr/u32-mbtoucr-tests: Likewise.
8211         * modules/unistr/u32-move-tests: Likewise.
8212         * modules/unistr/u32-next-tests: Likewise.
8213         * modules/unistr/u32-prev-tests: Likewise.
8214         * modules/unistr/u32-set-tests: Likewise.
8215         * modules/unistr/u32-stpcpy-tests: Likewise.
8216         * modules/unistr/u32-stpncpy-tests: Likewise.
8217         * modules/unistr/u32-strcat-tests: Likewise.
8218         * modules/unistr/u32-strcmp-tests: Likewise.
8219         * modules/unistr/u32-strcoll-tests: Likewise.
8220         * modules/unistr/u32-strcpy-tests: Likewise.
8221         * modules/unistr/u32-strdup-tests: Likewise.
8222         * modules/unistr/u32-strlen-tests: Likewise.
8223         * modules/unistr/u32-strmblen-tests: Likewise.
8224         * modules/unistr/u32-strmbtouc-tests: Likewise.
8225         * modules/unistr/u32-strncat-tests: Likewise.
8226         * modules/unistr/u32-strncmp-tests: Likewise.
8227         * modules/unistr/u32-strncpy-tests: Likewise.
8228         * modules/unistr/u32-strnlen-tests: Likewise.
8229         * modules/unistr/u32-to-u16-tests: Likewise.
8230         * modules/unistr/u32-to-u8-tests: Likewise.
8231         * modules/unistr/u32-uctomb-tests: Likewise.
8232         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
8233         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
8234         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
8235         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
8236         * modules/uniwidth/u8-strwidth-tests: Likewise.
8237         * modules/uniwidth/u8-width-tests: Likewise.
8238         * modules/uniwidth/u16-strwidth-tests: Likewise.
8239         * modules/uniwidth/u16-width-tests: Likewise.
8240         * modules/uniwidth/u32-strwidth-tests: Likewise.
8241         * modules/uniwidth/u32-width-tests: Likewise.
8242         * modules/uniwidth/width-tests: Likewise.
8243
8244 2010-05-18  Richard Jones  <rjones@redhat.com>
8245
8246         doc: users.txt: list hivex
8247         * users.txt: Add hivex.
8248
8249 2010-05-18  Richard Jones  <rjones@redhat.com>
8250
8251         doc: users.txt: list febootstrap
8252         * users.txt: Add febootstrap.
8253
8254 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
8255
8256         bootstrap: fix an error when gnulib is not used as a git submodule
8257         * build-aux/bootstrap (gnulib_path): If its length is zero then
8258         assign "gnulib" to it.
8259         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
8260
8261 2010-05-16  Bruno Haible  <bruno@clisp.org>
8262
8263         Avoid autoconf warnings about AM_ICONV.
8264         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
8265         2.64.
8266
8267 2010-05-16  Bruno Haible  <bruno@clisp.org>
8268
8269         absolute-header: Make the macro usable in more situations.
8270         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
8271         from gl_ABSOLUTE_HEADER.
8272         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
8273
8274 2010-05-16  James Youngman  <jay@gnu.org>
8275
8276         doc: update users.txt
8277         * users.txt: Add CSSC.
8278
8279 2010-05-16  Jim Meyering  <meyering@redhat.com>
8280
8281         init.sh: fix an error in the previous change; add more comments
8282         * tests/init.sh: Compare exit code in loop against 9, not 2.
8283         Patch by Bruno Haible.
8284         Make the two tests more similar by adding an empty "then" clause.
8285         Add comments.
8286
8287         init.sh: avoid unnecessary shell re-exec
8288         * tests/init.sh: Improve the re-exec-required check to first test the
8289         current shell.  If it passes the test, do not search for a shell that
8290         does pass, and do not re-exec.  This test is particularly contorted to
8291         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
8292         of $(...) evokes a syntax error and causes immediate shell exit with
8293         status 2.  Bruno Haible reported that the re-exec made it impossible
8294         to single-step through any init.sh-using script.
8295
8296 2010-05-16  Bruno Haible  <bruno@clisp.org>
8297
8298         Fix collision between gnulib's and libintl's printf replacements.
8299         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
8300         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
8301         (printf): When using GNU C, map the __printf__ function to rpl_printf
8302         via __asm__. When not using GNU C, define rpl_printf instead of
8303         __printf__.
8304         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
8305         commit.
8306         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
8307         commit.
8308         * m4/asm-underscore.m4: New file.
8309         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
8310         * modules/stdio (Files): Add m4/asm-underscore.m4.
8311         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
8312         Reported by Ben Pfaff.
8313
8314 2010-05-16  Bruno Haible  <bruno@clisp.org>
8315
8316         verify: Avoid skipping the test on openSUSE 11.0.
8317         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
8318
8319 2010-05-13  Bruno Haible  <bruno@clisp.org>
8320
8321         Avoid useless warnings from G++.
8322         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
8323         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
8324         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8325
8326 2010-05-11  Jim Meyering  <meyering@redhat.com>
8327
8328         maint.mk: tweak preceding change
8329         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
8330         regexps tighter by anchoring at EOL, and make the new group "shy"
8331         for slightly decreased overhead.
8332
8333 2010-05-11  Eric Blake  <eblake@redhat.com>
8334
8335         maint.mk: gnulib doesn't guarantee NSIG
8336         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
8337
8338 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8339
8340         test-pwrite.c: Remove unused variable declaration.
8341         * tests/test-pwrite.c (main): Remove read_buf declaration.
8342
8343         Remove useless test-pwrite.sh file.
8344         * tests/test-pwrite.sh: Delete file.
8345         * modules/pwrite-tests: Remove references.
8346         Reported by Bruno Haible.
8347
8348 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8349
8350         init.sh: fix a typo
8351         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
8352
8353 2010-05-10  Jim Meyering  <meyering@redhat.com>
8354
8355         maint.mk: avoid using a temporary file in the always-defined-macros check
8356         * top/maint.mk (.re-defmac): Remove rule.
8357         (gl_trap_): Remove definition.
8358         (sc_prohibit_always-defined_macros): Rewrite not to create and
8359         depend on a temporary file.  Instead, depend on GNU grep's ability
8360         to read a list of regular expressions from stdin when given "-f -".
8361
8362 2010-05-09  Bruno Haible  <bruno@clisp.org>
8363
8364         Update to GNU gettext 0.18, part 1.
8365         * m4/gettext.m4: Update to GNU gettext 0.18.
8366         * m4/intl.m4: Likewise.
8367         * m4/po.m4: Likewise.
8368         * modules/gettext (Files): Add m4/fcntl-o.m4.
8369         (configure.ac): Require gettext infrastructure from version 0.18.
8370
8371 2010-05-09  Jim Meyering  <meyering@redhat.com>
8372
8373         init.sh: enable MALLOC_PERTURB_
8374         * tests/init.sh: Enable glibc's malloc-perturbing option.
8375
8376         maint.mk: improve sc_cross_check_PATH_usage_in_tests
8377         With my recent change in init.sh from the two-line form:
8378             -#   : ${srcdir=.}
8379             -#   . "$srcdir/init.sh"; path_prepend_ .
8380             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
8381         I noticed that using the one-line form would cause this test
8382         to fail with a false-positive, or to stop working altogether,
8383         depending on whether help-version changed or all the tests did.
8384         * top/maint.mk (_hv_regex): Remove this definition.
8385         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
8386         (_hv_regex_strong): Use a stronger regex to check for conformance.
8387         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
8388         Give a separate diagnostic for lack of conforming use.
8389
8390         maint.mk: prohibit definition of symbols defined by gnulib
8391         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
8392         definition of symbols defined by gnulib.
8393
8394 2010-05-09  Bruno Haible  <bruno@clisp.org>
8395
8396         acl: Avoid test failure on Cygwin-hosted mingw.
8397         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
8398
8399 2010-05-09  Bruno Haible  <bruno@clisp.org>
8400
8401         error: Use system's fcntl function.
8402         * lib/error.c (fcntl): Undefine.
8403
8404 2010-05-09  Jim Meyering  <meyering@redhat.com>
8405
8406         verify: adjust formatting to be more consistent
8407         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8408         argument-list '('s, and after one comma.
8409
8410 2010-05-09  Bruno Haible  <bruno@clisp.org>
8411
8412         error: More reliable output on mingw.
8413         * lib/error.c: Include <windows.h>.
8414         (is_open): New function.
8415         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8416         defined.
8417
8418 2010-05-09  Bruno Haible  <bruno@clisp.org>
8419
8420         vasnprintf: Fix syntax errors in libintl build on mingw.
8421         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8422         pad_ourselves and prec_ourselves after use.
8423
8424 2010-05-08  Bruno Haible  <bruno@clisp.org>
8425
8426         * lib/config.charset: Update comments for Cygwin 1.7.
8427         * lib/localcharset.c: Likewise.
8428
8429 2010-05-07  Jim Meyering  <meyering@redhat.com>
8430
8431         init.sh: improve comments
8432         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8433         . "${srcdir=.}/init.sh"; path_prepend_ .
8434         Add a note about path_prepend_ and the alternative of using
8435         TESTS_ENVIRONMENT.
8436
8437 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8438
8439         exclude: Unescape hashed patterns in wildcard mode.
8440         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8441         to the hash list.
8442         * tests/test-exclude8.sh: New test case.
8443         * modules/exclude-tests: Add new test.
8444
8445 2010-05-05  Eric Blake  <eblake@redhat.com>
8446
8447         verify: automate tests
8448         * modules/verify-tests: New module.
8449         * tests/test-verify.sh: New file.
8450         * tests/test-verify.c: Guard each negative test with a unique id.
8451         Also avoid warning about unused left hand of comma expressions.
8452
8453 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8454
8455         Further improvements to verify.h, suggested by Eric Blake.
8456         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
8457         the GL_* versions, to avoid collision with OpenGL.
8458         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
8459         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8460         than testing merely whether it's defined.
8461
8462         Modify verify.h to pacify gcc -Wredundant_decls.
8463         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8464         These use the prefix "GL_" since they're likely to be useful elsewhere.
8465         We may need to break them out into a different .h file.
8466         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8467         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8468         of verify_function__.
8469
8470 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8471
8472         Tests for module pwrite.
8473         * modules/pwrite-tests: New file.
8474         * tests/test-pwrite.sh: New file.
8475         * tests/test-pwrite.c: New file.
8476
8477         New module pwrite.
8478         * lib/unistd.in.h (pwrite): New declaration.
8479         * lib/pwrite.c: New file, from glibc with modifications.
8480         * m4/pwrite.m4: New file.
8481         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8482         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8483         REPLACE_PWRITE.
8484         * modules/pwrite: New file.
8485         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8486         REPLACE_PWRITE.
8487         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8488         * doc/posix-functions/pwrite.texi: Mention the new module.
8489
8490 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8491
8492         pread: Update documentation.
8493         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8494
8495 2010-05-04  Eric Blake  <eblake@redhat.com>
8496
8497         docs: update cygwin progress
8498         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8499         this bug.
8500         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8501         Added in cygwin 1.7.2.
8502         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8503         Likewise.
8504         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8505         Likewise.
8506         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8507         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8508         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8509         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8510         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8511         Mention nproc module.
8512         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8513         bug in cygwin 1.7.5 addition.
8514         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8515         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8516         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8517         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8518         1.7.5.
8519         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8520         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8521         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8522         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8523         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8524         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8525         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8526         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8527         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8528         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8529         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8530         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8531         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8532         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8533         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8534         Likewise.
8535         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8536         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8537         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8538         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8539         Likewise.
8540         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8541         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8542         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8543         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8544         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8545         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8546         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8547         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8548         Likewise.
8549         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8550         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8551         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8552         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8553         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8554         Likewise.
8555         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8556         Likewise.
8557         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8558         Likewise.
8559         * doc/glibc-functions/xdrrec_endofrecord.texi
8560         (xdrrec_endofrecord): Likewise.
8561         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8562         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8563         Likewise.
8564         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8565         Likewise.
8566
8567 2010-05-04  Jim Meyering  <meyering@redhat.com>
8568
8569         gendocs.sh: make its "-s FILE" option more useful
8570         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8571         $PACKAGE to reflect the probably-different basename of "FILE".
8572
8573 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8574
8575         bootstrap: don't ignore download_po_files failure
8576         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8577         failure.
8578
8579 2010-05-03  Jim Meyering  <meyering@redhat.com>
8580
8581         maint.mk: allow to pass options to gendocs.sh
8582         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8583         (gendocs_options_): New overridable variable.
8584
8585         gnu-web-doc-update: don't ignore configure or build failure
8586         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8587
8588         announce-gen: backslash-escape '@'s in --help output
8589         * build-aux/announce-gen: Fix syntax errors.
8590
8591         maint.mk, announce-gen: allow project-specific announcement mail headers
8592         * top/maint.mk (translation_project_): Define default.
8593         (announcement_Cc_, announcement_mail_headers_): Likewise.
8594         (announcement): Invoke announce-gen with new --mail-headers option.
8595         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8596
8597         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8598         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8599         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8600         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8601         line in the "err2" output file when running "make check" in verbose
8602         mode (i.e., with set -x enabled).
8603
8604 2010-05-03  Bruno Haible  <bruno@clisp.org>
8605
8606         wctob: Fix for weird platforms.
8607         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8608         argument value.
8609
8610 2010-05-03  Jim Meyering  <meyering@redhat.com>
8611
8612         maint.mk: prohibit unwarranted use of <strings.h>
8613         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8614         strings.h in a file that does not also use strcasecmp, strncasecmp,
8615         ffs or ffsll.
8616
8617         maint.mk: remove obsolete comments
8618         * top/maint.mk: Remove stale, commented-out rules.
8619
8620 2010-05-02  Bruno Haible  <bruno@clisp.org>
8621
8622         wcwidth: Declare also when it's aliased.
8623         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8624         macro.
8625
8626 2010-05-02  Bruno Haible  <bruno@clisp.org>
8627
8628         Fix regression from 2010-04-25.
8629         * gnulib-tool (func_modules_transitive_closure): Check the status of
8630         all modules, not only of the tests that are of the form foo-tests where
8631         foo is a module.
8632
8633 2010-05-02  Bruno Haible  <bruno@clisp.org>
8634
8635         wctob: Work around nasty Cygwin 1.7.2 bug.
8636         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8637         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8638
8639 2010-05-01  Bruno Haible  <bruno@clisp.org>
8640
8641         fpurge: Sharper test.
8642         * tests/test-fpurge.c (main): Add one more ftell check.
8643         * modules/fpurge-tests (Depends-on): Add ftell.
8644         Suggested by Eric Blake.
8645
8646 2010-05-01  Bruno Haible  <bruno@clisp.org>
8647
8648         ftello: Another test.
8649         * tests/test-ftello3.c: New file.
8650         * modules/ftello-tests (Files): Add it.
8651         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8652         MOSTLYCLEANFILES.
8653
8654         ftell: Another test.
8655         * tests/test-ftell3.c: New file.
8656         * modules/ftell-tests (Files): Add it.
8657         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8658         MOSTLYCLEANFILES.
8659
8660 2010-05-01  Bruno Haible  <bruno@clisp.org>
8661
8662         ftell, ftello: Work around Solaris bug.
8663         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8664         * lib/ftello.c: Include stdio-impl.h.
8665         (ftello): On Solaris, when _IOWRT is set, compute the result without
8666         looking at _IOREAD.
8667         * modules/ftello (Files): Add lib/stdio-impl.h.
8668         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8669         * doc/posix-functions/ftello.texi: Likewise.
8670         Reported by Eric Blake.
8671
8672 2010-05-01  Bruno Haible  <bruno@clisp.org>
8673
8674         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8675         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8676         the _IOWRT flag is also set.
8677
8678 2010-05-01  Bruno Haible  <bruno@clisp.org>
8679
8680         Fix doc about a HP-UX stdio bug.
8681         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8682         * doc/posix-functions/ftello.texi: Likewise.
8683
8684 2010-05-01  Bruno Haible  <bruno@clisp.org>
8685
8686         lseek test: Fix failure on Solaris.
8687         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8688         output.
8689
8690 2010-04-30  Jim Meyering  <meyering@redhat.com>
8691
8692         bootstrap: don't ignore failure to generate po*/Makevars
8693         * build-aux/bootstrap (with_gettext): Don't ignore failure
8694         to create po/Makevars or runtime-po/Makevars.
8695
8696 2010-04-29  Eric Blake  <eblake@redhat.com>
8697
8698         headers: relax license to LGPLv2+
8699         * modules/fcntl-h (License): Relax license.
8700         * modules/getopt-posix (License): Likewise.
8701         * modules/locale (License): Likewise.
8702         * modules/math (License): Likewise.
8703         * modules/pty (License): Likewise.
8704         * modules/sched (License): Likewise.
8705         * modules/search (License): Likewise.
8706         * modules/spawn (License): Likewise.
8707         * modules/stdarg (License): Likewise.
8708         * modules/sysexits (License): Likewise.
8709
8710 2010-04-29  Jim Meyering  <meyering@redhat.com>
8711
8712         inttypes: relax license to LGPLv2+
8713         * modules/inttypes (License): Relax license.
8714
8715 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8716
8717         * top/maint.mk (indent): Run twice to produce idempotent results.
8718
8719 2010-04-28  Bruno Haible  <bruno@clisp.org>
8720
8721         getdate: Generate getdate.c in the source directory.
8722         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8723         MOSTLYCLEANFILES.
8724         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8725
8726 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8727
8728         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8729         is not declared as a const *; avoid warnings in that case.
8730
8731 2010-04-28  Eric Blake  <eblake@redhat.com>
8732
8733         canonicalize-lgpl: avoid compiler warning
8734         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8735         declaration' / 'extraneous semicolon' warning with some compilers.
8736         Reported by Andreas Gruenbacher.
8737
8738 2010-04-28  Jim Meyering  <meyering@redhat.com>
8739
8740         init.sh: ensure a more reliable exit status when exiting via trap
8741         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8742         Inspired by patches from Dmitry V. Levin.
8743         Also trap on signal 3 (SIGQUIT).
8744
8745 2010-04-27  Bruno Haible  <bruno@clisp.org>
8746
8747         Update doc about utimes().
8748         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8749         'utimens' module.
8750         Reported by Andreas Gruenbacher <agruen@suse.de>.
8751
8752 2010-04-27  Eric Blake  <eblake@redhat.com>
8753
8754         full-read, full-write: relax license
8755         * modules/full-read (License): Drop to LGPLv2+.
8756         * modules/full-write (License): Likewise.
8757         * modules/safe-read (License): Likewise.
8758         * modules/safe-write (License): Likewise.
8759
8760         pthread: mention library for linking
8761         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8762
8763 2010-04-27  Jim Meyering  <meyering@redhat.com>
8764
8765         maint.mk: fix a bug introduced in last change
8766         * top/maint.mk (gl_assured_headers_): Now that all names are on
8767         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8768         is not anchored to end of word, it should be adequate.
8769
8770         maint.mk: avoid side-effect in latest syntax-check
8771         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8772         to run commands via $(shell...), and hence to incur cost only when
8773         the new rule is actually run.
8774
8775         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8776         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8777         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8778         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8779         (gl_assured_headers_, az_, AZ_): Define.
8780         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8781
8782 2010-04-26  Jim Meyering  <jim@meyering.net>
8783             Bruno Haible  <bruno@clisp.org>
8784
8785         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8786         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8787         Prompted by an exchange with Gilles Espinasse.
8788
8789 2010-04-26  Jim Meyering  <meyering@redhat.com>
8790
8791         git-version-gen: aesthetic tweak
8792         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8793         so that the command remains on a single line.
8794
8795 2010-04-26  Eric Blake  <eblake@redhat.com>
8796
8797         git-version-gen: allow use on EBCDIC hosts
8798         * build-aux/git-version-gen (dirty): Use literal rather than tying
8799         ourselves to ascii.
8800         Reported by Steve Goetze.
8801
8802 2010-04-25  Bruno Haible  <bruno@clisp.org>
8803
8804         netdb: Add support for GNULIB_POSIXCHECK.
8805         * lib/netdb.in.h: Include warn-on-use.h.
8806         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8807         functions are used when GNULIB_POSIXCHECK is defined and the
8808         getaddrinfo module is not in use.
8809         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8810         freeaddrinfo, gai_strerror, getnameinfo are declared.
8811         * modules/netdb (Depends-on): Add warn-on-use.
8812         (Makefile.am): Include warn-on-use.h in netdb.h.
8813
8814 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8815
8816         build: avoid "make check" failure without .git/ directory
8817         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8818         there is no .git/ directory.
8819
8820 2010-04-25  Bruno Haible  <bruno@clisp.org>
8821
8822         ptsname: Fix misuse of ttyname_r.
8823         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8824         of errno.
8825
8826 2010-04-25  Bruno Haible  <bruno@clisp.org>
8827
8828         ttyname_r: Make it work on Solaris 10.
8829         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8830         if the system function has the POSIX declaration. Test whether the
8831         function fails if the buffer is less than 128 bytes large.
8832         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8833         system's ttyname_r function. Provide a reasonably large buffer.
8834         * modules/ttyname_r (Depends-on): Add extensions.
8835         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8836
8837 2010-04-25  Bruno Haible  <bruno@clisp.org>
8838
8839         Use the 'extensions' module for some more functions on Solaris.
8840         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8841         module.
8842         * doc/posix-functions/ctime_r.texi: Likewise.
8843         * doc/posix-functions/getgrgid_r.texi: Likewise.
8844         * doc/posix-functions/getgrnam_r.texi: Likewise.
8845         * doc/posix-functions/getpwnam_r.texi: Likewise.
8846         * doc/posix-functions/getpwuid_r.texi: Likewise.
8847         * doc/posix-functions/readdir_r.texi: Likewise.
8848         * doc/posix-functions/sigwait.texi: Likewise.
8849         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8850         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8851
8852 2010-04-25  Bruno Haible  <bruno@clisp.org>
8853
8854         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8855         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8856         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8857         * lib/ttyname_r.c: Include <limits.h>.
8858         (ttyname_r): Define using the system's ttyname_r function, if it exists
8859         and not on Solaris.
8860         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8861         set.
8862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8863         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8864         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8865         Reported by Simon Josefsson.
8866
8867 2010-04-25  Bruno Haible  <bruno@clisp.org>
8868
8869         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8870         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8871         * doc/posix-functions/ctime_r.texi: Likewise.
8872         * doc/posix-functions/getgrgid_r.texi: Likewise.
8873         * doc/posix-functions/getgrnam_r.texi: Likewise.
8874         * doc/posix-functions/getlogin_r.texi: Likewise.
8875         * doc/posix-functions/getpwnam_r.texi: Likewise.
8876         * doc/posix-functions/getpwuid_r.texi: Likewise.
8877         * doc/posix-functions/readdir_r.texi: Likewise.
8878         * doc/posix-functions/sigwait.texi: Likewise.
8879         * doc/posix-functions/ttyname_r.texi: Likewise.
8880         Reported by Simon Josefsson.
8881
8882 2010-04-25  Bruno Haible  <bruno@clisp.org>
8883
8884         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8885         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8886         also to --create-testdir.
8887         (func_acceptable): Don't consider the status of *-tests modules here.
8888         (func_modules_transitive_closure): Consider it here, before including a
8889         test module.
8890         (func_import, func_create_testdir): Set inc_all_direct_tests,
8891         inc_all_indirect_tests.
8892         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8893         --create-testdir and --create-megatestdir.
8894
8895 2010-04-25  Bruno Haible  <bruno@clisp.org>
8896
8897         gnulib-tool: Add --without-*-tests options.
8898         * gnulib-tool (func_usage): Document the --without-*-tests options.
8899         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8900         excl_unportable_tests): New variables.
8901         Fail if they are specified with --import or --update.
8902         (func_acceptable): Respect the excl_*_tests variables.
8903         (func_import): Set the excl_*_tests variables to empty.
8904
8905 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8906             Bruno Haible  <bruno@clisp.org>
8907
8908         Work around a MacOS X 10.4 bug with openpty.
8909         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8910         * tests/test-openpty.c (main): Close the master side explicitly.
8911
8912 2010-04-25  Bruno Haible  <bruno@clisp.org>
8913
8914         strnlen: Fix a C++ test error on MacOS X and Solaris.
8915         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8916         the function is not declared.
8917         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8918         Simon Josefsson.
8919
8920 2010-04-24  Bruno Haible  <bruno@clisp.org>
8921
8922         Avoid a gcc warning.
8923         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8924         of correct type for %08lx directive.
8925         Reported by Eric Blake.
8926
8927 2010-04-24  Bruno Haible  <bruno@clisp.org>
8928
8929         vasnprintf: Correct errno value in case of out-of-memory.
8930         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8931         or sprintf. Use the errno value from SNPRINTF or sprintf.
8932         Reported by Ian Beckwith <ianb@erislabs.net>.
8933
8934 2010-04-24  Bruno Haible  <bruno@clisp.org>
8935
8936         ansi-c++-opt: Find correct compiler when cross-compiling.
8937         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8938         AC_CHECK_PROGS.
8939         Reported by Simon Josefsson.
8940
8941 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8942
8943         vc-list-files: Add support for subversion
8944         * build-aux/vc-list-files: Use "svn list" to generate the list of
8945         files controlled by subversion.
8946
8947 2010-04-23  Jim Meyering  <meyering@redhat.com>
8948
8949         vc-list-files tests: convert to use init.sh
8950         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8951         path_prepend_.
8952         Use Exit, not exit.
8953         Use skip_ rather than open coding it.
8954         Remove trap set-up and compare definitions.
8955         * tests/test-vc-list-files-git.sh: Likewise.
8956         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8957
8958 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8959
8960         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8961         backup files.
8962
8963 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8964
8965         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8966
8967 2010-04-20  Eric Blake  <eblake@redhat.com>
8968
8969         tests: be robust to ignored SIGPIPE
8970         * tests/test-select-in.sh: Consume all output.
8971         * tests/test-lseek.sh: Check correct exit status, while avoiding
8972         EPIPE.
8973
8974 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8975             Bruno Haible  <bruno@clisp.org>
8976
8977         visibility: Don't use -fvisibility if it leads to a warning.
8978         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8979         yes, don't pretend that visibility works if it leads to a warning.
8980         Reported by Mike Gran <spk121@yahoo.com>.
8981
8982 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8983
8984         * build-aux/bootstrap: Use "git -h" for testing for supported options
8985         instead of "git --help".  The short-form option only shows a summary,
8986         and doesn't layout the full man page.  Grep for the full option name
8987         in the summary, too.
8988
8989 2010-04-19  Bruno Haible  <bruno@clisp.org>
8990
8991         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8992         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8993         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8994         mention of RELOCATABLE_STRIP.
8995         Reported by Sylvain Beucler <beuc@beuc.net>.
8996
8997 2010-04-19  Bruno Haible  <bruno@clisp.org>
8998
8999         * lib/diffseq.h: Fix typo in comment.
9000         Reported by Eric Blake.
9001
9002 2010-04-19  Bruno Haible  <bruno@clisp.org>
9003
9004         ioctl: Move autoconf macro to a .m4 file.
9005         * m4/ioctl.m4: New file, extracted from modules/ioctl.
9006         * modules/ioctl (Files): Add it.
9007         (configure.ac): Simply invoke gl_FUNC_IOCTL.
9008         Reported by Ian Beckwith <ianb@erislabs.net>.
9009
9010 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
9011             Bruno Haible  <bruno@clisp.org>
9012
9013         diffseq: Accommodate use-case with abstract arrays.
9014         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
9015         is not defined.
9016         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
9017         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
9018
9019 2010-04-18  Bruno Haible  <bruno@clisp.org>
9020
9021         * doc/posix-headers/stdbool.texi: More precise wording.
9022
9023 2010-04-17  Jim Meyering  <meyering@redhat.com>
9024
9025         maint.mk: use gnu-style indentation in an embedded perl script
9026         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
9027         Rename variable: s/two/last_two_bytes/
9028
9029 2010-04-16  Eric Blake  <eblake@redhat.com>
9030
9031         test-stdbool: skip test that fails with Solaris CC
9032         * tests/test-stdbool.c (f): Skip test that causes compilation
9033         error under buggy C++ compiler.
9034         * lib/stdbool.in.h: Document the limitation.
9035         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
9036
9037         setenv: allow compilation with C++
9038         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
9039         register keyword.
9040
9041         stdint: allow test to pass with C++
9042         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
9043
9044         getopt: allow compilation with C++
9045         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
9046         struct.
9047         * lib/getopt.c (_getopt_internal_r): Use correct type.
9048         Reported by Dagobert Michelson, via Joel E. Denny.
9049
9050 2010-04-16  Bruno Haible  <bruno@clisp.org>
9051
9052         Override netdb.h always.
9053         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
9054         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
9055         Reported by Ludovic Courtès <ludo@gnu.org>.
9056
9057 2010-04-15  Bruno Haible  <bruno@clisp.org>
9058
9059         openpty: Fix mistake from 2010-03-21.
9060         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
9061         Reported by Simon Josefsson.
9062
9063 2010-04-15  Eric Blake  <eblake@redhat.com>
9064
9065         test-forkpty: fix expected signature
9066         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
9067         Reported by Simon Josefsson.
9068
9069 2010-04-15  Jim Meyering  <meyering@redhat.com>
9070
9071         maint.mk: texinfo_suffix_re_: correct the default regexp
9072         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
9073
9074         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
9075         make it configurable via texinfo_suffix_re_.
9076
9077 2010-04-14  Eric Blake  <eblake@redhat.com>
9078
9079         strtok_r: relax license to LGPLv2+
9080         * modules/strtok_r (License): Relax license.
9081         Reported by Matthias Bolte.
9082
9083 2010-04-14  Simon Josefsson  <simon@josefsson.org>
9084
9085         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
9086         version 1.4.4 by default instead of requiring the libgcrypt
9087         version used during build.  This makes it possible to use the
9088         application with older but still binary compatible libgcrypt
9089         versions.
9090
9091 2010-04-13  Eric Blake  <eblake@redhat.com>
9092
9093         getopt-gnu: match recent glibc fixes and posix ruling
9094         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
9095         '+' handling, when requesting extensions.
9096         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
9097         'W;' handling.
9098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
9099         * doc/posix-functions/getopt.texi (getopt): Document this.
9100         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9101         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9102         Likewise.
9103
9104         getopt: merge bug fixes from glibc
9105         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
9106         diagnostics.  Honor '+:' correctly.  Reject ';'.
9107
9108         getopt-posix: detect MacOS bug
9109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
9110         optind when missing a required argument.
9111         * doc/posix-functions/getopt.texi (getopt): Document the bug.
9112         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9113         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9114         Likewise.
9115
9116         getopt-posix: avoid spurious failure on Solaris
9117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
9118         an indicator that setting optind=1 is sufficient for reset.
9119
9120         getopt-posix: avoid spurious failure on FreeBSD
9121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
9122         in POSIX mode, since the m4 test uses it.
9123
9124         gnulib-tool: silence warning on BSD sh
9125         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
9126
9127 2010-04-13  Jim Meyering  <meyering@redhat.com>
9128
9129         doc: users.txt: GNU patch now uses gnulib
9130         * users.txt: Add patch.
9131
9132 2010-04-12  Jim Meyering  <meyering@redhat.com>
9133
9134         maint.mk: generate more concise timing data for syntax-check rules
9135         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
9136         " done" from each line that reports a syntax-check test duration.
9137
9138 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
9139
9140         git-version-gen: use "git update-index..." rather than "git status"
9141         * build-aux/git-version-gen: Use git update-index --refresh, not
9142         "git status".  With some versions of git, "git status" would fail
9143         to update the index and result in an unwarranted "-dirty" suffix.
9144
9145 2010-04-11  Jim Meyering  <meyering@redhat.com>
9146
9147         openat: correct formatting (no semantic change)
9148         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
9149         Suggested by Bruno Haible.
9150
9151 2010-04-11  Bruno Haible  <bruno@clisp.org>
9152
9153         Stricter declaration checking in testdirs.
9154         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9155         If for_tests is true, augment AM_CPPFLAGS to define
9156         GNULIB_STRICT_CHECKING.
9157         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
9158         GNULIB_STRICT_CHECKING is defined, verify that the function is
9159         declared.
9160
9161 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
9162             Bruno Haible  <bruno@clisp.org>
9163
9164         libunistring: Improve configure output.
9165         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
9166         Don't say "consider installing GNU libunistring" when checking again
9167         with libiconv.
9168
9169 2010-04-11  Bruno Haible  <bruno@clisp.org>
9170
9171         libunistring: Correct value of $LTLIBUNISTRING.
9172         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
9173         correct the value of $LTLIBUNISTRING.
9174
9175 2010-04-11  Bruno Haible  <bruno@clisp.org>
9176
9177         havelib: Add static libraries to LIBS in the right order.
9178         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
9179         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
9180
9181 2010-04-11  Bruno Haible  <bruno@clisp.org>
9182
9183         libunistring: Detect libunistring also when it depends on libiconv.
9184         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
9185         the second AC_LIB_HAVE_LINKFLAGS invocation.
9186
9187 2010-04-11  James Youngman  <jay@gnu.org>
9188
9189         close-stream: declare local scalars to be "const"
9190         * lib/close-stream.c (close_stream): Make boolean variables const
9191         to document the fact that we set but do not change them.
9192
9193 2010-04-11  Bruno Haible  <bruno@clisp.org>
9194
9195         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
9196
9197 2010-04-11  Jim Meyering  <meyering@redhat.com>
9198
9199         maint.mk: don't include dist-check.mk
9200         * top/maint.mk: Remove bogus include directive.
9201
9202         maint.mk: improve empty-line-at-EOF check
9203         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
9204         solution, rather than tail+Perl-based one.  The latter would read
9205         a few kilobytes from the end of each file, and did not handle empty
9206         files properly.
9207
9208         maint.mk: print the elapsed time for each syntax-check rule
9209         * top/maint.mk (sc_m_rules_): Save start time in a file.
9210         (sc_z_rules_): New rules: remove temp file and print elapsed time.
9211         (local-check): Interpose the .z rules
9212
9213 2010-04-11  Jim Meyering  <meyering@redhat.com>
9214
9215         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
9216         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
9217         empty file with one that ends in an empty line.
9218
9219 2010-04-10  Bruno Haible  <bruno@clisp.org>
9220
9221         mkdir: Make it work on mingw64.
9222         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
9223         * lib/mkdir.c: Update comment.
9224         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
9225
9226 2010-04-10  Bruno Haible  <bruno@clisp.org>
9227
9228         Don't override improved macro from newer autoconf.
9229         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
9230         autoconf >= 2.62.
9231         Reported by Joel E. Denny <jdenny@clemson.edu>.
9232
9233 2010-04-10  Jim Meyering  <meyering@redhat.com>
9234
9235         maint.mk: new syntax-check rule: prohibit empty lines at end of file
9236         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
9237
9238         maint.mk: correct a diagnostic
9239         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
9240         in diagnostic; now use $prohibit.
9241
9242 2010-04-10  Bruno Haible  <address@hidden>
9243
9244         fchownat: Fix a C++ test error on Solaris 8.
9245         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
9246         the function does not exist.
9247
9248 2010-04-10  Bruno Haible  <bruno@clisp.org>
9249
9250         vasnprintf: Add more tests.
9251         * tests/test-vasnprintf-posix.c: Include <errno.h>.
9252         (test_function): Test converting an invalid wide string.
9253
9254         vasnprintf: Correct handling of unconvertible wide string arguments.
9255         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
9256         VASNPRINTF.
9257         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
9258         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
9259         smaller than the expected maximum need for the directive. Set errno to
9260         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
9261         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
9262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
9263         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
9264         * modules/vasnprintf (Files): Add m4/printf.m4.
9265         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9266
9267 2010-04-10  Bruno Haible  <bruno@clisp.org>
9268
9269         vasnprintf: Fix crash in %ls directive.
9270         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
9271         string is passed as argument to %ls, with no precision and no width.
9272         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9273
9274 2010-04-10  Bruno Haible  <bruno@clisp.org>
9275
9276         vasnprintf: Fix multiple test failures on mingw.
9277         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
9278         _snprintf, or snwprintf, not _snwprintf.
9279
9280 2010-04-10  Bruno Haible  <bruno@clisp.org>
9281
9282         write: Fix a C++ test error on mingw.
9283         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
9284
9285 2010-04-10  Bruno Haible  <bruno@clisp.org>
9286
9287         vasnprintf test: Reduce code duplication.
9288         * tests/test-vasnprintf.c (test_function): New function, extracted from
9289         test_vasnprintf.
9290         (test_vasnprintf, test_asnprintf): Invoke it.
9291
9292 2010-04-10  Bruno Haible  <bruno@clisp.org>
9293
9294         strnlen: Fix warning in C++ mode on MacOS X.
9295         * lib/string.in.h (strnlen): Use the modern idiom.
9296         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
9297         defining strnlen as a macro already in <config.h>.
9298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9299         REPLACE_STRNLEN.
9300         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
9301         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9302
9303 2010-04-08  James Youngman  <jay@gnu.org>
9304
9305         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
9306         the example.
9307
9308 2010-04-09  Jim Meyering  <meyering@redhat.com>
9309
9310         maint.mk: print better diagnostic when there is no $(_hv_file)
9311         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
9312         announce that when $(_hv_file) (aka help-version) does not exist.
9313
9314         init.sh: run tr in the "C" locale to avoid multibyte interpretation
9315         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9316         not try to interpret its random input bytes.  Jarno Rajahalme reported
9317         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
9318         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
9319         (mktempd_): Likewise, just in case.
9320
9321         ftruncate: add two years to projected module removal date: 2012
9322         * m4/ftruncate.m4: Adjust comments.
9323
9324         ftruncate: mark module as obsolete; even MinGW provides it, now
9325         * modules/ftruncate (Status): Obsolete.
9326         (Notice): Say that.
9327         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
9328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
9329
9330 2010-04-08  Bruno Haible  <bruno@clisp.org>
9331
9332         Fix side effects from tests-related modules.
9333         * modules/dprintf-posix (Comment): New section.
9334         * modules/fprintf-posix (Comment): Likewise.
9335         * modules/obstack-printf-posix (Comment): Likewise.
9336         * modules/printf-posix (Comment): Likewise.
9337         * modules/snprintf-posix (Comment): Likewise.
9338         * modules/sprintf-posix (Comment): Likewise.
9339         * modules/vasnprintf-posix (Comment): Likewise.
9340         * modules/vasprintf-posix (Comment): Likewise.
9341         * modules/vdprintf-posix (Comment): Likewise.
9342         * modules/vfprintf-posix (Comment): Likewise.
9343         * modules/vprintf-posix (Comment): Likewise.
9344         * modules/vsnprintf-posix (Comment): Likewise.
9345         * modules/vsprintf-posix (Comment): Likewise.
9346         * modules/xprintf-posix (Comment): Likewise.
9347         * modules/xvasprintf-posix (Comment): Likewise.
9348         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
9349         * modules/floorf-tests (Depends-on): Likewise.
9350         * modules/round-tests (Depends-on): Likewise.
9351         * modules/roundf-tests (Depends-on): Likewise.
9352         * modules/trunc-tests (Depends-on): Likewise.
9353         * modules/truncf-tests (Depends-on): Likewise.
9354         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
9355         'fprintf-posix' module is not present.
9356         * tests/test-floorf2.c (check): Likewise.
9357         * tests/test-trunc2.c (check): Likewise.
9358         * tests/test-truncf2.c (check): Likewise.
9359         * tests/test-round2.c (equal): Likewise.
9360         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9361
9362 2010-04-07  Karl Berry  <karl@gnu.org>
9363
9364         * config/srclist.txt,
9365         * config/srclistvars.sh,
9366         * config/srclist-update: doc fixes.
9367
9368 2010-04-07  Jim Meyering  <meyering@redhat.com>
9369
9370         maint.mk: add a PATH crosschecking syntax-check rule
9371         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
9372         Useful if you use a test like the one in help-version (coreutils,
9373         diffutils, grep, gzip) that ensures $(VERSION) matches what is
9374         printed by prog --version.
9375
9376 2010-04-06  Bruno Haible  <bruno@clisp.org>
9377
9378         Fix link error on mingw.
9379         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
9380         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
9381
9382 2010-04-06  Bruno Haible  <bruno@clisp.org>
9383
9384         Assume rmdir exists.
9385         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
9386
9387 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
9388
9389         doc: update users.txt
9390         * users.txt: Add gcal.
9391
9392 2010-04-06  Jim Meyering  <meyering@redhat.com>
9393
9394         init.sh: simply unset TMPDIR rather than risking env -i
9395         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
9396         although it probably works fine on all Unix-based systems, some
9397         systems (Cygwin?) cannot tolerate a totally cleared environment.
9398         Suggestion from Eric Blake.
9399
9400 2010-04-06  Jim Meyering  <meyering@redhat.com>
9401
9402         init.sh: portability fix: use env's POSIX-specified -i option not -u
9403         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
9404         than unportable env -u.  Solaris 5.11's env lacks support for -u.
9405
9406 2010-04-05  Bruno Haible  <bruno@clisp.org>
9407
9408         btowc: Work around Cygwin 1.7.2 bug.
9409         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9410         does not map NUL to 0.
9411         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9412
9413 2010-04-05  Bruno Haible  <bruno@clisp.org>
9414
9415         Make the multithread modules work on Cygwin 1.7.2.
9416         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9417         imported symbols can be declared weak, so that it returns "no" on
9418         Cygwin 1.7.2.
9419
9420 2010-04-05  Bruno Haible  <bruno@clisp.org>
9421
9422         Use the module 'strncat'.
9423         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9424
9425         Tests for module 'strncat'.
9426         * modules/strncat-tests: New file.
9427         * tests/test-strncat.c: New file.
9428
9429         New module 'strncat'.
9430         * lib/string.in.h (strncat): New declaration.
9431         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9432         * m4/strncat.m4: New file, based on m4/memchr.m4.
9433         * modules/strncat: New file.
9434         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9435         is declared.
9436         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9437         REPLACE_STRNCAT.
9438         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9439         REPLACE_STRNCAT.
9440         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9441         module.
9442         * tests/test-string-c++.cc: Check signature of strncat.
9443
9444 2010-04-05  Jim Meyering  <meyering@redhat.com>
9445
9446         xstrtoumax-tests: convert to use init.sh
9447         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9448         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9449         Use Exit, not exit.
9450         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9451
9452         xstrtoimax-tests: convert to use init.sh
9453         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
9454         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9455         Use Exit, not exit.
9456         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9457
9458 2010-04-05  Bruno Haible  <bruno@clisp.org>
9459
9460         sys_socket: Avoid #define replacements in C++ mode.
9461         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9462         warning to the function if possible, rather than #defining the symbol
9463         to a dysfunctional alias.
9464
9465 2010-04-05  Bruno Haible  <bruno@clisp.org>
9466
9467         fseeko: Fix C++ test error on mingw.
9468         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9469         gl_FUNC_FSEEKO.
9470         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9471         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9472         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9473         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9474
9475 2010-04-05  Bruno Haible  <bruno@clisp.org>
9476
9477         duplocale: Improve test output.
9478         * tests/test-duplocale.c (main): Print reason for skipped test.
9479
9480 2010-04-05  Bruno Haible  <bruno@clisp.org>
9481
9482         Assume rmdir exists.
9483         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9484         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9485
9486 2010-04-05  Bruno Haible  <bruno@clisp.org>
9487
9488         Fix link error on Solaris 8 with cc.
9489         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9490
9491 2010-04-05  Bruno Haible  <bruno@clisp.org>
9492
9493         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9494         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9495
9496 2010-04-05  Bruno Haible  <bruno@clisp.org>
9497
9498         vasprintf: Update documentation.
9499         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9500
9501 2010-04-05  Bruno Haible  <bruno@clisp.org>
9502
9503         ptsname: Improve test.
9504         * tests/test-ptsname.c (main): Also try the various master names of BSD
9505         systems.
9506
9507 2010-04-05  Bruno Haible  <bruno@clisp.org>
9508
9509         memchr: Avoid a possible C++ test error.
9510         * lib/string.in.h (memchr): Provide declaration if function is missing.
9511         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9512         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9514         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9515
9516 2010-04-05  Bruno Haible  <bruno@clisp.org>
9517
9518         strtok_r: Improve idiom.
9519         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9520         AC_LIBOBJ is used.
9521
9522 2010-04-05  Bruno Haible  <bruno@clisp.org>
9523
9524         strdup: Improve idiom.
9525         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9526         AC_LIBOBJ is used.
9527         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9528         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9529         when AC_LIBOBJ is used.
9530
9531 2010-04-05  Bruno Haible  <bruno@clisp.org>
9532
9533         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9534         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9535         don't set REPLACE_MBSINIT to 1.
9536         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9537         don't set REPLACE_MBRTOWC to 1.
9538         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9539         exist, don't set REPLACE_MBSRTOWCS to 1.
9540         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9541         exist, don't set REPLACE_MBSNRTOWCS to 1.
9542         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9543         don't set REPLACE_WCRTOMB to 1.
9544         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9545         exist, don't set REPLACE_WCSRTOMBS to 1.
9546         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9547         exist, don't set REPLACE_WCSNRTOMBS to 1.
9548
9549 2010-04-05  Bruno Haible  <bruno@clisp.org>
9550
9551         ldexpl: Improve idiom.
9552         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9553         make sure to set HAVE_DECL_LDEXPL to 0.
9554
9555 2010-04-05  Jim Meyering  <meyering@redhat.com>
9556
9557         xstrtol-tests: convert to use init.sh
9558         * modules/xstrtol-tests (Files): Add tests/init.sh.
9559         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9560         Use Exit, not exit.
9561         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9562
9563         atexit-tests: convert to use init.sh
9564         * modules/atexit-tests (Files): Add tests/init.sh.
9565         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9566         Use Exit, not exit.
9567         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9568
9569         init.sh: fix typo
9570         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9571
9572         init.sh: make it easier for a test script to write to the tty, ...
9573         when using automake's parallel-tests mode.
9574         * tests/init.sh (stderr_fileno_): Define overridable variable.
9575         (warn_): New function, to use it.
9576         (fail_, skip_, framework_failure_): Use warn_.
9577
9578 2010-04-04  Bruno Haible  <bruno@clisp.org>
9579
9580         btowc: Avoid warning.
9581         * lib/btowc.c: Include <stdlib.h>.
9582         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9583
9584 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9585             Bruno Haible  <bruno@clisp.org>
9586
9587         wchar: Port to NetBSD 1.5.
9588         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9589         * lib/wctype.in.h (WEOF): Likewise.
9590
9591 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9592             Bruno Haible  <bruno@clisp.org>
9593
9594         Port extended stdio to NetBSD 1.5.
9595         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9596         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9597         older.
9598
9599 2010-04-04  Bruno Haible  <bruno@clisp.org>
9600
9601         string: Remove unused substitution.
9602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9603         HAVE_DECL_STRERROR.
9604         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9605
9606 2010-04-04  Bruno Haible  <bruno@clisp.org>
9607
9608         strtod: Avoid a possible C++ test error.
9609         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9610         set REPLACE_STRTOD.
9611
9612 2010-04-04  Bruno Haible  <bruno@clisp.org>
9613
9614         strerror: Update documentation.
9615         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9616
9617 2010-04-04  Bruno Haible  <bruno@clisp.org>
9618
9619         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9620         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9621         _GL_CXXALIAS_SYS_CAST.
9622
9623 2010-04-04  Bruno Haible  <bruno@clisp.org>
9624
9625         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9626         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9627         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9628         REPLACE_FREXPL to 1.
9629         * doc/posix-functions/frexpl.texi: Update documentation.
9630
9631 2010-04-04  Bruno Haible  <bruno@clisp.org>
9632
9633         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9634         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9635
9636 2010-04-04  Bruno Haible  <bruno@clisp.org>
9637
9638         Implement nanosleep for native Windows.
9639         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9640
9641 2010-04-04  Bruno Haible  <bruno@clisp.org>
9642
9643         math: Fix some C++ test errors on Solaris 8.
9644         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9645
9646 2010-04-04  Bruno Haible  <bruno@clisp.org>
9647
9648         math: Fix some C++ test errors on Cygwin.
9649         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9650         truncl): Provide declaration if the system does not have it.
9651         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9652         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9653         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9654         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9655         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9656         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9657         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9658         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9659         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9660         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9661         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9662         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9663         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9664         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9665         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9666         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9668         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9669         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9670         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9671         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9672         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9673
9674 2010-04-04  Bruno Haible  <bruno@clisp.org>
9675
9676         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9677         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9678         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9679         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9680         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9681         * m4/isinf.m4 (gl_ISINF): Likewise.
9682         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9683
9684 2010-04-04  Bruno Haible  <bruno@clisp.org>
9685
9686         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9687         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9688
9689 2010-04-04  Bruno Haible  <bruno@clisp.org>
9690
9691         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9692         * modules/tmpfile (configure.ac): Update.
9693
9694         tmpfile: Fix C++ test error on mingw.
9695         * lib/stdio.in.h (tmpfile): New declaration.
9696         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9697         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9698         * modules/tmpfile (Depends-on): Add stdio.
9699         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9700         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9701         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9702         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9703         REPLACE_TMPFILE.
9704         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9705
9706 2010-04-04  Bruno Haible  <bruno@clisp.org>
9707
9708         ioctl: Fix C++ test error on mingw.
9709         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9710         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9711         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9712
9713 2010-04-03  Bruno Haible  <bruno@clisp.org>
9714
9715         wcwidth: Fix C++ test error on mingw.
9716         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9718         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9719
9720 2010-04-03  Bruno Haible  <bruno@clisp.org>
9721
9722         nanosleep: Fix C++ test error on mingw.
9723         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9724         * lib/time.in.h (nanosleep): Use modern idiom.
9725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9726         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9727         REPLACE_NANOSLEEP to 1.
9728         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9729         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9730
9731 2010-04-03  Bruno Haible  <bruno@clisp.org>
9732
9733         strptime: Fix C++ test error on mingw.
9734         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9735         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9736         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9737         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9738         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9739         not REPLACE_STRPTIME.
9740         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9741         REPLACE_STRPTIME.
9742
9743 2010-04-03  Bruno Haible  <bruno@clisp.org>
9744
9745         timegm: Fix C++ test error on mingw.
9746         * lib/time.in.h (timegm): Use modern idiom.
9747         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9748         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9749         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9750         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9751
9752 2010-04-03  Bruno Haible  <bruno@clisp.org>
9753
9754         timegm: Assume declaration if function exists.
9755         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9756         if it exists. Don't clobber ac_cv_func_timegm.
9757
9758 2010-04-03  Bruno Haible  <bruno@clisp.org>
9759
9760         time_r: Fix C++ test error on mingw.
9761         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9762         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9763         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9764         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9765         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9766
9767 2010-04-03  Bruno Haible  <bruno@clisp.org>
9768
9769         time_r: Minor updates.
9770         * modules/time_r (Description): Mention the provided functions.
9771         * lib/time_r.c: Don't include <string.h>.
9772         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9773         * doc/posix-functions/localtime_r.texi: Likewise.
9774
9775 2010-04-03  Bruno Haible  <bruno@clisp.org>
9776
9777         time: Fix regression introduced on 2010-03-08.
9778         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9779         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9780
9781 2010-04-03  Jim Meyering  <meyering@redhat.com>
9782
9783         maint.mk: don't silently disable project-specific syntax-check rules
9784         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9785         that they need to convert their project-specific syntax-check rules
9786         to use the new _sc_search_regexp.
9787
9788 2010-04-03  Bruno Haible  <bruno@clisp.org>
9789
9790         fchdir: Fix regression introduced on 2010-03-08.
9791         * lib/unistd.in.h (fchdir): Fix declaration.
9792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9794         REPLACE_FCHDIR.
9795         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9796         REPLACE_FCHDIR.
9797
9798 2010-04-03  Bruno Haible  <bruno@clisp.org>
9799
9800         getpagesize: Fix C++ test error on mingw.
9801         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9802         system does not declare the function.
9803         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9804         declared.
9805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9806         HAVE_DECL_GETPAGESIZE.
9807         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9808
9809 2010-04-03  Bruno Haible  <bruno@clisp.org>
9810
9811         stdio: Make C++ tests work on mingw.
9812         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9813         does not declare the function.
9814
9815 2010-04-03  Bruno Haible  <bruno@clisp.org>
9816
9817         ftello: Fix C++ test error on mingw.
9818         * lib/stdio.in.h (ftello): Use modern idiom.
9819         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9820         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9821         is missing and that it needs to be replaced.
9822         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9824         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9825
9826 2010-04-03  Bruno Haible  <bruno@clisp.org>
9827
9828         fseeko: Fix C++ test error on mingw.
9829         * lib/stdio.in.h (fseeko): Use modern idiom.
9830         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9831         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9832         is missing and that it needs to be replaced.
9833         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9835         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9836
9837 2010-04-03  Bruno Haible  <bruno@clisp.org>
9838
9839         mkstemp: Fix C++ test error on mingw.
9840         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9842         function is missing and that it needs to be replaced.
9843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9844         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9845
9846 2010-04-03  Bruno Haible  <bruno@clisp.org>
9847
9848         stpncpy: Fix C++ test error on mingw.
9849         * lib/string.in.h (stpncpy): Use modern idiom.
9850         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9851         function is missing and that it needs to be replaced.
9852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9853         REPLACE_STPNCPY.
9854         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9855
9856 2010-04-03  Bruno Haible  <bruno@clisp.org>
9857
9858         sys_stat: Fix C++ test error on mingw.
9859         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9860         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9861
9862 2010-04-03  Bruno Haible  <bruno@clisp.org>
9863
9864         pty: Update doc.
9865         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9866
9867 2010-04-03  Bruno Haible  <bruno@clisp.org>
9868
9869         unistd: Fix C++ test error on mingw.
9870         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9871
9872 2010-04-03  Bruno Haible  <bruno@clisp.org>
9873
9874         Update doc regarding mingw.
9875         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9876         * doc/glibc-functions/login_tty.texi: Likewise.
9877         * doc/glibc-functions/forkpty.texi: Likewise.
9878
9879 2010-04-03  Bruno Haible  <bruno@clisp.org>
9880
9881         stdlib: Avoid compilation failure of c-strtold on mingw.
9882         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9883
9884 2010-04-03  Bruno Haible  <bruno@clisp.org>
9885
9886         locale: Make C++ tests work on Cygwin and mingw.
9887         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9888         cannot provide the function.
9889         Reported by Simon Josefsson.
9890
9891 2010-04-03  Bruno Haible  <bruno@clisp.org>
9892
9893         localename: Port to MacOS X 10.6.
9894         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9895         memory layout of the locales in MacOS X 10.6 as well.
9896         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9897
9898 2010-04-02  Bruno Haible  <bruno@clisp.org>
9899
9900         gnulib-tool: Ensure that long-running tests are executed last.
9901         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9902         running tests after the one for the other tests.
9903
9904 2010-04-02  Bruno Haible  <bruno@clisp.org>
9905
9906         gnulib-tool: Ensure the tests in the main directory are executed first.
9907         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9908         start with the current directory.
9909
9910 2010-04-02  Bruno Haible  <bruno@clisp.org>
9911
9912         Tests for module 'havelib', moved here from GNU gettext.
9913         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9914         modifications.
9915         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9916         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9917         with modifications.
9918         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9919         modifications.
9920         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9921         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9922         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9923         with modifications.
9924         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9925         with modifications.
9926         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9927         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9928         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9929         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9930         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9931         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9932         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9933         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9934         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9935         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9936         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9937         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9938         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9939         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9940         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9941         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9942         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9943         with modifications.
9944         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9945         with modifications.
9946         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9947         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9948         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9949         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9950         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9951         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9952         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9953         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9954         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9955         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9956         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9957         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9958         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9959         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9960         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9961         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9962         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9963         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9964         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9965         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9966         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9967         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9968         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9969         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9970         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9971         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9972         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9973         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9974         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9975         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9976         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9977         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9978         * tests/havelib/rpathx/rpathx.c: New file, from
9979         gettext/autoconf-lib-link.
9980         * tests/havelib/rpathx/Makefile.am: New file, from
9981         gettext/autoconf-lib-link.
9982         * tests/havelib/rpathx/configure.ac: New file, from
9983         gettext/autoconf-lib-link with modifications.
9984         * tests/havelib/rpathy/rpathy.c: New file, from
9985         gettext/autoconf-lib-link.
9986         * tests/havelib/rpathy/Makefile.am: New file, from
9987         gettext/autoconf-lib-link.
9988         * tests/havelib/rpathy/configure.ac: New file, from
9989         gettext/autoconf-lib-link with modifications.
9990         * tests/havelib/rpathz/rpathz.c: New file, from
9991         gettext/autoconf-lib-link.
9992         * tests/havelib/rpathz/Makefile.am: New file, from
9993         gettext/autoconf-lib-link.
9994         * tests/havelib/rpathz/configure.ac: New file, from
9995         gettext/autoconf-lib-link with modifications.
9996         * tests/havelib/rpathlx/usex.c: New file, from
9997         gettext/autoconf-lib-link.
9998         * tests/havelib/rpathlx/Makefile.am: New file, from
9999         gettext/autoconf-lib-link.
10000         * tests/havelib/rpathlx/configure.ac: New file, from
10001         gettext/autoconf-lib-link with modifications.
10002         * tests/havelib/rpathly/usey.c: New file, from
10003         gettext/autoconf-lib-link.
10004         * tests/havelib/rpathly/Makefile.am: New file, from
10005         gettext/autoconf-lib-link.
10006         * tests/havelib/rpathly/configure.ac: New file, from
10007         gettext/autoconf-lib-link with modifications.
10008         * tests/havelib/rpathlz/usez.c: New file, from
10009         gettext/autoconf-lib-link.
10010         * tests/havelib/rpathlz/Makefile.am: New file, from
10011         gettext/autoconf-lib-link.
10012         * tests/havelib/rpathlz/configure.ac: New file, from
10013         gettext/autoconf-lib-link with modifications.
10014         * tests/havelib/rpathlyx/usey.c: New file, from
10015         gettext/autoconf-lib-link.
10016         * tests/havelib/rpathlyx/Makefile.am: New file, from
10017         gettext/autoconf-lib-link.
10018         * tests/havelib/rpathlyx/configure.ac: New file, from
10019         gettext/autoconf-lib-link with modifications.
10020         * tests/havelib/rpathlzyx/usez.c: New file, from
10021         gettext/autoconf-lib-link.
10022         * tests/havelib/rpathlzyx/Makefile.am: New file, from
10023         gettext/autoconf-lib-link.
10024         * tests/havelib/rpathlzyx/configure.ac: New file, from
10025         gettext/autoconf-lib-link with modifications.
10026         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
10027         with modifications.
10028
10029 2010-04-02  Bruno Haible  <bruno@clisp.org>
10030
10031         gnulib-tool: Create distributed built sources also for the tests.
10032         * gnulib-tool (func_create_testdir): Also generate distributed built
10033         sources in the tests directory.
10034
10035 2010-04-02  Bruno Haible  <bruno@clisp.org>
10036
10037         gnulib-tool: Obey user's environment variables.
10038         * gnulib-tool (func_create_testdir): When creating built sources,
10039         respect the environment variables for autoconf, automake, etc. given by
10040         the user.
10041
10042 2010-04-02  Bruno Haible  <bruno@clisp.org>
10043
10044         gnulib-tool: Provide the value of --m4-base to modules.
10045         * gnulib-tool (func_import, func_create_testdir): Emit a definition
10046         of gl_m4_base.
10047
10048 2010-04-02  Eric Blake  <eblake@redhat.com>
10049
10050         maint.mk: fix some fallout
10051         * NEWS: Document the incompatible change, and its effect on cfg.mk.
10052         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
10053
10054 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10055
10056         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
10057         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
10058         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
10059         (sc_cast_of_x_alloc_return_value): Likewise.
10060         (sc_cast_of_alloca_return_value): Likewise.
10061         (sc_space_tab): Likewise.
10062         (sc_prohibit_atoi_atof): Likewise.
10063         (sc_prohibit_magic_number_exit): Likewise.
10064         (sc_error_exit_success): Likewise.
10065         (sc_file_system): Likewise.
10066         (sc_prohibit_have_config_h): Likewise.
10067         (sc_require_config_h): Likewise.
10068         (sc_prohibit_HAVE_MBRTOWC): Likewise.
10069         (sc_obsolete_symbols): Likewise.
10070         (sc_changelog): Likewise.
10071         (sc_program_name): Likewise.
10072         (sc_the_the): Likewise.
10073         (sc_trailing_blank): Likewise.
10074         (sc_two_space_separator_in_usage): Likewise.
10075         (sc_useless_cpp_parens): Likewise.
10076         (sc_GPL_version): Likewise.
10077         (sc_GFDL_version): Likewise.
10078         (sc_texinfo_acronym): Likewise.
10079         (sc_prohibit_cvs_keyword): Likewise.
10080         (sc_prohibit_stat_st_blocks): Likewise.
10081         (sc_prohibit_S_IS_definition): Likewise.
10082         (sc_redundant_const): Likewise.
10083         (sc_makefile_TAB_only_indentation): Likewise.
10084         (sc_m4_quote_check): Likewise.
10085         (sc_makefile_path_separator_check): Likewise.
10086         (sc_copyright_check): Likewise.
10087         (sc_Wundef_boolean): Likewise.
10088         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10089
10090         maint.mk: match 0 or more whitespace-before-function-call '('
10091         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
10092         that have zero or two-and-more spaces between the function name
10093         and the open parenthesis.
10094         (sc_error_message_warn_fatal): Likewise.
10095         (sc_error_message_uppercase): Likewise.
10096         (sc_error_message_period): Likewise.
10097
10098 2010-03-31  Eric Blake  <eblake@redhat.com>
10099
10100         maint.mk: check for [ as well as test
10101         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
10102         Based on a libvirt report by Matthias Bolte.
10103
10104         gnumakefile: don't squelch _version output
10105         * top/GNUmakefile (_version): Create one-shot dependency rather
10106         than using $(shell) when version must be regenerated.
10107         (_autoreconf): Run verbosely, by default.
10108
10109         sys_time: avoid compiler warnings
10110         * lib/sys_time.in.h (includes): Ensure gcc pragma is
10111         unconditional, fixing regression from 2010-03-29.
10112         Reported by Simon Josefsson.
10113
10114 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10115
10116         maint.mk: s/_header_without_use/_sc_header_without_use/
10117         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
10118         (sc_prohibit_assert_without_use): Use the new name.
10119         (sc_prohibit_close_stream_without_use): Likewise.
10120         (sc_prohibit_getopt_without_use): Likewise.
10121         (sc_prohibit_quotearg_without_use): Likewise.
10122         (sc_prohibit_quote_without_use): Likewise.
10123         (sc_prohibit_long_options_without_use): Likewise.
10124         (sc_prohibit_inttostr_without_use): Likewise.
10125         (sc_prohibit_ignore_value_without_use): Likewise.
10126         (sc_prohibit_error_without_use): Likewise.
10127         (sc_prohibit_xalloc_without_use): Likewise.
10128         (sc_prohibit_hash_without_use): Likewise.
10129         (sc_prohibit_hash_pjw_without_use): Likewise.
10130         (sc_prohibit_safe_read_without_use): Likewise.
10131         (sc_prohibit_argmatch_without_use): Likewise.
10132         (sc_prohibit_canonicalize_without_use): Likewise.
10133         (sc_prohibit_root_dev_ino_without_use): Likewise.
10134         (sc_prohibit_openat_without_use): Likewise.
10135         (sc_prohibit_c_ctype_without_use): Likewise.
10136         (sc_prohibit_signal_without_use): Likewise.
10137         (sc_prohibit_intprops_without_use): Likewise.
10138
10139 2010-03-30  Eric Blake  <eblake@redhat.com>
10140
10141         maint: improve module indicators
10142         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
10143         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
10144         columns, and avoid extra macro expansion.
10145
10146         fdopendir: work around FreeBSD bug
10147         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10148         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
10149         * modules/dirent (Makefile.am): Substitute it.
10150         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
10151         declaration.
10152         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
10153         fix.
10154         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10155
10156 2010-03-29  Bruno Haible  <bruno@clisp.org>
10157
10158         Emit #pragma system_header after the inclusion guard, not before.
10159         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
10160         guard that spans the entire file, not before. This enables an
10161         optimization in GCC's preprocessor.
10162         * lib/ctype.in.h: Likewise.
10163         * lib/dirent.in.h: Likewise.
10164         * lib/errno.in.h: Likewise.
10165         * lib/float.in.h: Likewise.
10166         * lib/getopt.in.h: Likewise.
10167         * lib/iconv.in.h: Likewise.
10168         * lib/langinfo.in.h: Likewise.
10169         * lib/locale.in.h: Likewise.
10170         * lib/math.in.h: Likewise.
10171         * lib/netdb.in.h: Likewise.
10172         * lib/netinet_in.in.h: Likewise.
10173         * lib/pty.in.h: Likewise.
10174         * lib/sched.in.h: Likewise.
10175         * lib/se-selinux.in.h: Likewise.
10176         * lib/search.in.h: Likewise.
10177         * lib/spawn.in.h: Likewise.
10178         * lib/stdarg.in.h: Likewise.
10179         * lib/stdint.in.h: Likewise.
10180         * lib/string.in.h: Likewise.
10181         * lib/strings.in.h: Likewise.
10182         * lib/sys_file.in.h: Likewise.
10183         * lib/sys_ioctl.in.h: Likewise.
10184         * lib/sys_time.in.h: Likewise.
10185         * lib/sys_times.in.h: Likewise.
10186         * lib/sys_utsname.in.h: Likewise.
10187         * lib/sys_wait.in.h: Likewise.
10188         * lib/sysexits.in.h: Likewise.
10189         * lib/wctype.in.h: Likewise.
10190
10191 2010-03-28  James Youngman  <jay@gnu.org>
10192
10193         save-cwd: don't leak a file descriptor when the caller execs.
10194         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
10195         saved file descriptor.
10196         * modules/save-cwd (Depends-on): Depend on cloexec.
10197
10198 2010-03-29  Bruno Haible  <bruno@clisp.org>
10199
10200         Remove vestiges of fts-lgpl module.
10201         * lib/fts_.h: Assume GNULIB_FTS is 1.
10202         * lib/fts.c: Likewise.
10203         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10204
10205 2010-03-28  Bruno Haible  <bruno@clisp.org>
10206
10207         Fix definition of tests witness macro.
10208         * gnulib-tool (func_import): Fix definition of witness macro.
10209
10210 2010-03-28  Bruno Haible  <bruno@clisp.org>
10211
10212         Fix ioctl's protoype on glibc systems.
10213         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
10214         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
10215         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
10216         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
10217         signature. If not, arrange to replace the ioctl function.
10218         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10219         REPLACE_IOCTL.
10220         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
10221         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
10222         Reported by Ludovic Courtès <ludo@gnu.org>.
10223
10224 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
10225
10226         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
10227         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
10228         made it so grep -r --include=GLOB* ... did not work.
10229
10230 2010-03-26  Jim Meyering  <meyering@redhat.com>
10231             Eric Blake  <eblake@redhat.com>
10232
10233         maint.mk: prohibit use of test's -o and -a operators
10234         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
10235
10236 2010-03-28  Bruno Haible  <bruno@clisp.org>
10237
10238         Remove unused GNULIB_XYZ macro definitions.
10239         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
10240         invocation.
10241
10242 2010-03-28  Bruno Haible  <bruno@clisp.org>
10243
10244         Mark privileged tests modules.
10245         * modules/idpriv-drop-tests (Status): New section.
10246         * modules/idpriv-droptemp-tests (Status): New section.
10247
10248 2010-03-28  Bruno Haible  <bruno@clisp.org>
10249
10250         Split C++ tests into separate tests modules.
10251         * modules/dirent-c++-tests: New file, extracted from
10252         modules/dirent-tests.
10253         * modules/dirent-tests: Depend on it.
10254         * modules/fcntl-h-c++-tests: New file, extracted from
10255         modules/fcntl-h-tests.
10256         * modules/fcntl-h-tests: Depend on it.
10257         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
10258         * modules/glob-tests: Depend on it.
10259         * modules/iconv-h-c++-tests: New file, extracted from
10260         modules/iconv-h-tests.
10261         * modules/iconv-h-tests: Depend on it.
10262         * modules/langinfo-c++-tests: New file, extracted from
10263         modules/langinfo-tests.
10264         * modules/langinfo-tests: Depend on it.
10265         * modules/locale-c++-tests: New file, extracted from
10266         modules/locale-tests.
10267         * modules/locale-tests: Depend on it.
10268         * modules/math-c++-tests: New file, extracted from modules/math-tests.
10269         * modules/math-tests: Depend on it.
10270         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
10271         * modules/pty-tests: Depend on it.
10272         * modules/search-c++-tests: New file, extracted from
10273         modules/search-tests.
10274         * modules/search-tests: Depend on it.
10275         * modules/signal-c++-tests: New file, extracted from
10276         modules/signal-tests.
10277         * modules/signal-tests: Depend on it.
10278         * modules/spawn-c++-tests: New file, extracted from
10279         modules/spawn-tests.
10280         * modules/spawn-tests: Depend on it.
10281         * modules/stdio-c++-tests: New file, extracted from
10282         modules/stdio-tests.
10283         * modules/stdio-tests: Depend on it.
10284         * modules/stdlib-c++-tests: New file, extracted from
10285         modules/stdlib-tests.
10286         * modules/stdlib-tests: Depend on it.
10287         * modules/string-c++-tests: New file, extracted from
10288         modules/string-tests.
10289         * modules/string-tests: Depend on it.
10290         * modules/sys_ioctl-c++-tests: New file, extracted from
10291         modules/sys_ioctl-tests.
10292         * modules/sys_ioctl-tests: Depend on it.
10293         * modules/sys_select-c++-tests: New file, extracted from
10294         modules/sys_select-tests.
10295         * modules/sys_select-tests: Depend on it.
10296         * modules/sys_socket-c++-tests: New file, extracted from
10297         modules/sys_socket-tests.
10298         * modules/sys_socket-tests: Depend on it.
10299         * modules/sys_stat-c++-tests: New file, extracted from
10300         modules/sys_stat-tests.
10301         * modules/sys_stat-tests: Depend on it.
10302         * modules/sys_time-c++-tests: New file, extracted from
10303         modules/sys_time-tests.
10304         * modules/sys_time-tests: Depend on it.
10305         * modules/time-c++-tests: New file, extracted from modules/time-tests.
10306         * modules/time-tests: Depend on it.
10307         * modules/unistd-c++-tests: New file, extracted from
10308         modules/unistd-tests.
10309         * modules/unistd-tests: Depend on it.
10310         * modules/wchar-c++-tests: New file, extracted from
10311         modules/wchar-tests.
10312         * modules/wchar-tests: Depend on it.
10313         * modules/wctype-c++-tests: New file, extracted from
10314         modules/wctype-tests.
10315         * modules/wctype-tests: Depend on it.
10316         Reported by Simon Josefsson.
10317
10318 2010-03-28  Bruno Haible  <bruno@clisp.org>
10319
10320         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
10321         * gnulib-tool (func_exists_module): New function, extracted from
10322         func_verify_module.
10323         (func_verify_module): Use it.
10324         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
10325         'foo' only if 'foo' exists.
10326         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10327         module.
10328
10329 2010-03-28  Bruno Haible  <bruno@clisp.org>
10330
10331         gnulib-tool: Add support for special categories of tests.
10332         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
10333         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
10334         (func_usage): Document them.
10335         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
10336         inc_unportable_tests, inc_all_tests): New variables.
10337         (func_acceptable): Consider these variables.
10338         (func_modules_transitive_closure): Make it work when the 'Status' field
10339         consists of multiple words.
10340         (func_import): Store and restore the values of inc_cxx_tests,
10341         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
10342         inc_all_tests in gnulib-comp.m4.
10343         (func_create_testdir): Set inc_all_tests to true.
10344         * doc/gnulib.texi (Extra tests modules): New section.
10345         Suggested by Jim Meyering.
10346
10347 2010-03-28  Bruno Haible  <bruno@clisp.org>
10348
10349         ansi-c++-opt: Allow turning off the C++ build by default.
10350         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
10351         gl_CXX_CHOICE_DEFAULT_NO is defined.
10352         Requested by Eric Blake.
10353
10354 2010-03-28  Bruno Haible  <bruno@clisp.org>
10355
10356         unistd: Avoid #define replacements in C++ mode.
10357         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10358         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10359         setsockopt, shutdown, select): In C++, attach a warning to the function
10360         if possible, rather than #defining the symbol to a dysfunctional alias.
10361         Reported by John W. Eaton <jwe@gnu.org>.
10362
10363 2010-03-28  Bruno Haible  <bruno@clisp.org>
10364
10365         Fix link errors on mingw.
10366         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
10367         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
10368         $(LIBSOCKET).
10369         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
10370         $(LIBSOCKET).
10371
10372 2010-03-28  Bruno Haible  <bruno@clisp.org>
10373             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10374
10375         lib-ignore: Determine different options for different compilers.
10376         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
10377         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
10378         Add comments.
10379         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
10380         * NEWS: Mention the change.
10381
10382 2010-03-27  Bruno Haible  <bruno@clisp.org>
10383
10384         Remove unused GNULIB_XYZ macro definitions.
10385         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10386         * modules/fseek (configure.ac): Likewise.
10387         * modules/ioctl (configure.ac): Likewise.
10388         * modules/open (configure.ac): Likewise.
10389         * modules/stdlib-safer (configure.ac): Likewise.
10390
10391 2010-03-27  Bruno Haible  <bruno@clisp.org>
10392
10393         Add a remark about certain modules.
10394         * modules/malloc (Comment): New section.
10395         * modules/realloc (Comment): Likewise.
10396         * modules/sigpipe (Comment): Likewise.
10397
10398 2010-03-27  Bruno Haible  <bruno@clisp.org>
10399
10400         Resolve conflict between the two kinds of module indicators.
10401         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
10402         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
10403         * modules/canonicalize (configure.ac): Invoke
10404         gl_MODULE_INDICATOR_FOR_TESTS.
10405         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
10406         GNULIB_XYZ.
10407         * tests/test-dirent-c++.cc: Likewise.
10408         * tests/test-dirent-safer.c: Likewise.
10409         * tests/test-dup2.c: Likewise.
10410         * tests/test-fchdir.c: Likewise.
10411         * tests/test-fcntl-h-c++.cc: Likewise.
10412         * tests/test-getopt.c: Likewise.
10413         * tests/test-getopt.h: Likewise.
10414         * tests/test-langinfo-c++.cc: Likewise.
10415         * tests/test-locale-c++.cc: Likewise.
10416         * tests/test-math-c++.cc: Likewise.
10417         * tests/test-pty-c++.cc: Likewise.
10418         * tests/test-search-c++.cc: Likewise.
10419         * tests/test-signal-c++.cc: Likewise.
10420         * tests/test-spawn-c++.cc: Likewise.
10421         * tests/test-stdio-c++.cc: Likewise.
10422         * tests/test-stdlib-c++.cc: Likewise.
10423         * tests/test-string-c++.cc: Likewise.
10424         * tests/test-sys_ioctl-c++.cc: Likewise.
10425         * tests/test-sys_select-c++.cc: Likewise.
10426         * tests/test-sys_socket-c++.cc: Likewise.
10427         * tests/test-sys_stat-c++.cc: Likewise.
10428         * tests/test-sys_time-c++.cc: Likewise.
10429         * tests/test-time-c++.cc: Likewise.
10430         * tests/test-unistd-c++.cc: Likewise.
10431         * tests/test-wchar-c++.cc: Likewise.
10432         * tests/uninorm/test-u8-nfc.c: Likewise.
10433         * tests/uninorm/test-u8-nfd.c: Likewise.
10434         * tests/uninorm/test-u8-nfkc.c: Likewise.
10435         * tests/uninorm/test-u8-nfkd.c: Likewise.
10436         * tests/uninorm/test-u16-nfc.c: Likewise.
10437         * tests/uninorm/test-u16-nfd.c: Likewise.
10438         * tests/uninorm/test-u16-nfkc.c: Likewise.
10439         * tests/uninorm/test-u16-nfkd.c: Likewise.
10440         * tests/uninorm/test-u32-nfc.c: Likewise.
10441         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10442         * tests/uninorm/test-u32-nfd.c: Likewise.
10443         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10444         * tests/uninorm/test-u32-nfkc.c: Likewise.
10445         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10446         * tests/uninorm/test-u32-nfkd.c: Likewise.
10447         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10448         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10449
10450 2010-03-27  Bruno Haible  <bruno@clisp.org>
10451
10452         Distinguish two kinds of module indicators.
10453         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
10454         gl_MODULE_INDICATOR.
10455         (gl_MODULE_INDICATOR): New macro.
10456         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10457         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
10458         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10459         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10460         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10461         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10462         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10463         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10464         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10465         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10466         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10467         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10468         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10469         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10470         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10472         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10473         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10474         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10475         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10476         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10477         * modules/cloexec (configure.ac): Likewise.
10478         * modules/getopt-gnu (configure.ac): Likewise.
10479         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10480         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10481         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10482         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10483
10484 2010-03-27  Bruno Haible  <bruno@clisp.org>
10485
10486         New module description field 'Comment'.
10487         * gnulib-tool: New option --extract-comment.
10488         (func_usage): Document it.
10489         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10490         (func_get_comment): New function.
10491         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10492
10493 2010-03-27  Bruno Haible  <bruno@clisp.org>
10494
10495         Addendum to 2010-02-07 commit.
10496         * gnulib-tool (func_usage): Document --extract-applicability option.
10497
10498 2010-03-27  Bruno Haible  <bruno@clisp.org>
10499
10500         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10501         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10502         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10503         rather than link errors.
10504
10505 2010-03-27  Bruno Haible  <bruno@clisp.org>
10506
10507         Avoid side effects from tests-related modules on the compilation of lib.
10508         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10509         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10510         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10511         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10512         macro.
10513         (func_import): Define a witness macro. Assign it a value that depends
10514         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10515         tests-related modules.
10516         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10517         Reported by Jim Meyering.
10518
10519 2010-03-27  Bruno Haible  <bruno@clisp.org>
10520
10521         Factorize common .m4 code.
10522         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10523         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10524         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10525         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10526         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10527         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10528         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10529         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10530         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10531         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10532         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10533         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10534         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10535         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10536         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10537         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10538         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10539         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10541         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10542         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10543         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10544         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10545         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10546         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10547         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10548         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10549         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10550         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10551         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10552         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10553         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10554
10555 2010-03-27  Bruno Haible  <bruno@clisp.org>
10556
10557         Fix a compilation error on Cygwin with g++ >= 4.3.
10558         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10559         if it is undefined or if we alias it to chmod.
10560         (lstat): Don't warn about the use of this function if it is undefined
10561         or if we alias it to stat.
10562         Reported by Simon Josefsson.
10563
10564 2010-03-27  Bruno Haible  <bruno@clisp.org>
10565
10566         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10567         * modules/getlogin (configure.ac): Update.
10568
10569         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10570         * modules/getlogin_r (configure.ac): Update.
10571
10572         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10574         * modules/inet_ntop (configure.ac): Update.
10575
10576         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10577         * modules/inet_pton (configure.ac): Update.
10578
10579         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10580         * modules/mbslen (configure.ac): Update.
10581
10582         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10583         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10584         * modules/forkpty (configure.ac): Update.
10585         * modules/openpty (configure.ac): Update.
10586
10587 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10588
10589         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10590         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10591
10592 2010-03-25  Eric Blake  <eblake@redhat.com>
10593
10594         maint: use pragma consistently across replacement headers
10595         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10596         * lib/dirent.in.h (system_header): Likewise.
10597         * lib/errno.in.h (system_header): Likewise.
10598         * lib/float.in.h (system_header): Likewise.
10599         * lib/getopt.in.h (system_header): Likewise.
10600         * lib/iconv.in.h (system_header): Likewise.
10601         * lib/inttypes.in.h (system_header): Likewise.
10602         * lib/langinfo.in.h (system_header): Likewise.
10603         * lib/locale.in.h (system_header): Likewise.
10604         * lib/math.in.h (system_header): Likewise.
10605         * lib/netdb.in.h (system_header): Likewise.
10606         * lib/netinet_in.in.h (system_header): Likewise.
10607         * lib/pty.in.h (system_header): Likewise.
10608         * lib/sched.in.h (system_header): Likewise.
10609         * lib/se-selinux.in.h (system_header): Likewise.
10610         * lib/search.in.h (system_header): Likewise.
10611         * lib/spawn.in.h (system_header): Likewise.
10612         * lib/stdarg.in.h (system_header): Likewise.
10613         * lib/stdint.in.h (system_header): Likewise.
10614         * lib/string.in.h (system_header): Likewise.
10615         * lib/strings.in.h (system_header): Likewise.
10616         * lib/sys_file.in.h (system_header): Likewise.
10617         * lib/sys_ioctl.in.h (system_header): Likewise.
10618         * lib/sys_socket.in.h (system_header): Likewise.
10619         * lib/sys_times.in.h (system_header): Likewise.
10620         * lib/sys_utsname.in.h (system_header): Likewise.
10621         * lib/sys_wait.in.h (system_header): Likewise.
10622         * lib/sysexits.in.h (system_header): Likewise.
10623         * lib/unistd.in.h (system_header): Likewise.
10624         * lib/wctype.in.h (system_header): Likewise.
10625
10626         arpa/inet: fix mingw compilation warning
10627         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10628         Reported by Matthew Bolte.
10629
10630 2010-03-25  Bruno Haible  <bruno@clisp.org>
10631
10632         Avoid collision between gnulib wrapper and libintl wrapper.
10633         * lib/printf.c (printf): Don't define if a printf wrapper is already
10634         defined in intl/printf.c.
10635         Reported by Michel Boaventura <michel@michelboaventura.com>.
10636
10637 2010-03-25  Bruno Haible  <bruno@clisp.org>
10638
10639         Use ANSI C.
10640         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10641
10642 2010-03-25  Bruno Haible  <bruno@clisp.org>
10643
10644         Minor formatting changes.
10645         * lib/acosl.c: Insert space before function argument list.
10646         * lib/argz.c: Likewise.
10647         * lib/asinl.c: Likewise.
10648         * lib/expl.c: Likewise.
10649         * lib/gen-uni-tables.c: Likewise.
10650         * lib/gettext.h: Likewise.
10651         * lib/glthread/lock.h: Likewise.
10652         * lib/tanl.c: Likewise.
10653         * lib/uniname/uniname.c: Likewise.
10654         * tests/test-idpriv-drop.c: Likewise.
10655         * tests/test-idpriv-droptemp.c: Likewise.
10656         * tests/test-lock.c: Likewise.
10657         * tests/test-tls.c: Likewise.
10658         * lib/argp-help.c: Insert space before function-like macro argument
10659         list.
10660         * lib/memcmp.c: Likewise.
10661         * tests/test-base64.c: Likewise.
10662         * lib/localename.c: Insert space before sizeof's argument list.
10663         * lib/safe-alloc.h: Likewise.
10664         * lib/file-set.h: Insert space before macro argument list.
10665         * tests/test-argp.c: Likewise.
10666         * lib/argp-namefrob.h: Insert space before function parameter list.
10667         * lib/getaddrinfo.c: Likewise.
10668         * lib/netdb.in.h: Likewise.
10669         * lib/parse-duration.h: Likewise.
10670         * lib/parse-duration.c: Likewise.
10671         * lib/poll.c: Likewise.
10672         * lib/select.c: Likewise.
10673         * lib/trim.h: Likewise.
10674         * tests/test-usleep.c: Likewise.
10675         * lib/ldexpl.c: Insert space before function parameter list and before
10676         function argument list.
10677         * lib/logl.c: Likewise.
10678         * lib/sqrtl.c: Likewise.
10679         * lib/trim.c: Likewise.
10680         * lib/cosl.c: Use GNU style indentation. Insert space before function
10681         argument list.
10682         * lib/sinl.c: Likewise.
10683         * lib/tsearch.c: Insert space after 'for'.
10684         Reported by Jim Meyering.
10685
10686 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10687
10688         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10689         config header before grepping, as it's not present before
10690         autoreconf/configure are run.  Reported by Simon Josefsson.
10691
10692 2010-03-23  Bruno Haible  <bruno@clisp.org>
10693
10694         pt_chown: Make it work with automake < 1.11.
10695         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10696         Reported by Simon Josefsson.
10697
10698 2010-03-23  Bruno Haible  <bruno@clisp.org>
10699
10700         pt_chown: Don't depend on GPLed modules.
10701         * lib/pt_chown.c: Don't include idpriv.h.
10702         (main): Don't drop privileges.
10703         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10704         Reported by Simon Josefsson.
10705
10706 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10707
10708         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10709         suggestions from karl@freefriends.org (Karl Berry).
10710
10711 2010-03-22  Eric Blake  <eblake@redhat.com>
10712
10713         gethostname: further tweaks
10714         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10715         are overriding gethostname.
10716         Suggested by Bruno Haible.
10717
10718 2010-03-21  Bruno Haible  <bruno@clisp.org>
10719
10720         Fix comments.
10721         * lib/forkpty.c (rpl_forkpty): Fix comment.
10722         * lib/openpty.c (rpl_openpty): Likewise.
10723         Reported by Eric Blake.
10724
10725 2010-03-22  Eric Blake  <eblake@redhat.com>
10726
10727         gethostname: fix build on mingw
10728         * lib/unistd.in.h (includes): Work around fact that mingw
10729         <winsock2.h> re-includes <unistd.h>, by avoiding any
10730         redeclarations if we are being included by <winsock2.h>.
10731         Reported by Matthias Bolte.
10732
10733 2010-03-21  Bruno Haible  <bruno@clisp.org>
10734
10735         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10736         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10737         modifications.
10738         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10739         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10740         provide the replacement.
10741         * modules/forkpty (Depends-on): Add openpty, login_tty.
10742         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10743         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10744         * doc/glibc-functions/forkpty.texi: More supported platforms.
10745         * config/srclist.txt: Add forkpty.c (commented).
10746
10747 2010-03-21  Bruno Haible  <bruno@clisp.org>
10748
10749         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10750         (Makefile.am): Verify that PTY_LIB is defined.
10751
10752         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10753
10754 2010-03-21  Bruno Haible  <bruno@clisp.org>
10755
10756         Tests for module 'login_tty'.
10757         * modules/login_tty-tests: New file.
10758         * tests/test-login_tty.c: New file.
10759
10760         New module 'login_tty'.
10761         * lib/login_tty.c: New file.
10762         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10763         * modules/login_tty: New file.
10764         * doc/glibc-functions/login_tty.texi: Mention the new module.
10765
10766 2010-03-21  Bruno Haible  <bruno@clisp.org>
10767
10768         login_tty: Documentation.
10769         * doc/glibc-functions/login_tty.texi: New file.
10770         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10771
10772 2010-03-21  Bruno Haible  <bruno@clisp.org>
10773
10774         pty: Consistent macro naming.
10775         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10776         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10777         * modules/pty (configure.ac): Update.
10778
10779 2010-03-21  Bruno Haible  <bruno@clisp.org>
10780
10781         Tests for openpty: Make stricter.
10782         * tests/test-openpty.c (main): Add test of canonical processing and
10783         erase.
10784         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10785
10786         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10787         * lib/openpty.c (openpty): New replacement function.
10788         * lib/pty.in.h: Include <termios.h>.
10789         (openpty): Update declaration. Add comments.
10790         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10791         is not declared, arrange to provide the replacement. Check for _getpty
10792         and posix_openpt.
10793         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10794         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10795         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10796         * modules/pty-tests (test_pty_c___LDADD): New variable.
10797         * doc/glibc-functions/openpty.texi: More supported platforms.
10798
10799 2010-03-21  Bruno Haible  <bruno@clisp.org>
10800
10801         setenv: Tweaks.
10802         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10803         the test program.
10804         * doc/posix-functions/setenv.texi: Update platforms list.
10805
10806 2010-03-21  Bruno Haible  <bruno@clisp.org>
10807
10808         New module 'unlockpt'.
10809         * lib/unlockpt.c: New file, from glibc with modifications.
10810         * m4/unlockpt.m4: New file.
10811         * modules/unlockpt: New file.
10812         * lib/stdlib.in.h (unlockpt): New declaration.
10813         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10814         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10815         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10816         HAVE_UNLOCKPT.
10817         * doc/posix-functions/unlockpt.texi: Mention the new module.
10818         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10819         * config/srclist.txt: Add unlockpt.c (commented).
10820
10821 2010-03-21  Jim Meyering  <meyering@redhat.com>
10822
10823         maint.mk: prohibit inclusion of "intprops.h" without use
10824         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10825
10826 2010-03-21  Bruno Haible  <bruno@clisp.org>
10827
10828         New module 'grantpt'.
10829         * lib/grantpt.c: New file, from glibc with modifications.
10830         * m4/grantpt.m4: New file.
10831         * modules/grantpt: New file.
10832         * lib/stdlib.in.h (grantpt): New declaration.
10833         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10834         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10835         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10836         HAVE_GRANTPT.
10837         * doc/posix-functions/grantpt.texi: Mention the new module.
10838         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10839         * config/srclist.txt: Add grantpt.c (commented).
10840
10841 2010-03-21  Bruno Haible  <bruno@clisp.org>
10842
10843         New module 'pt_chown'.
10844         * lib/pt_chown.c: New file, from glibc with modifications.
10845         * lib/pty-private.h: New file, from glibc with modifications.
10846         * modules/pt_chown: New file.
10847         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10848
10849 2010-03-21  Bruno Haible  <bruno@clisp.org>
10850
10851         Tests for module 'ptsname'.
10852         * modules/ptsname-tests: New file.
10853         * tests/test-ptsname.c: New file.
10854
10855         New module 'ptsname'.
10856         * lib/ptsname.c: New file, from glibc with modifications.
10857         * m4/ptsname.m4: New file.
10858         * modules/ptsname: New file.
10859         * lib/stdlib.in.h (ptsname): New declaration.
10860         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10861         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10862         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10863         HAVE_PTSNAME.
10864         * doc/posix-functions/ptsname.texi: Mention the new module.
10865         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10866         * config/srclist.txt: Add ptsname.c (commented).
10867
10868 2010-03-21  Bruno Haible  <bruno@clisp.org>
10869
10870         Tests for module 'ttyname_r'.
10871         * modules/ttyname_r-tests: New file.
10872         * tests/test-ttyname_r.c: New file.
10873
10874         New module 'ttyname_r'.
10875         * lib/ttyname_r.c: New file.
10876         * m4/ttyname_r.m4: New file.
10877         * modules/ttyname_r: New file.
10878         * lib/unistd.in.h (ttyname_r): New declaration.
10879         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10880         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10881         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10882         HAVE_TTYNAME_R.
10883         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10884         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10885
10886 2010-03-20  Bruno Haible  <bruno@clisp.org>
10887
10888         signal: Undefine macro definitions in C++ mode.
10889         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10890         sigfillset): Undefine macro definitions from the system header in C++
10891         mode.
10892         Reported by John W. Eaton <jwe@gnu.org>.
10893
10894 2010-03-20  Bruno Haible  <bruno@clisp.org>
10895
10896         Ensure no #include statements inside extern "C" { ... }.
10897         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10898         contain #include statements.
10899         * lib/time.in.h: Likewise.
10900
10901 2010-03-20  Bruno Haible  <bruno@clisp.org>
10902
10903         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10904         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10905         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10906         Reported by John W. Eaton <jwe@gnu.org>.
10907
10908 2010-03-20  Bruno Haible  <bruno@clisp.org>
10909
10910         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10911         Reported by Jim Meyering.
10912
10913 2010-03-20  Bruno Haible  <bruno@clisp.org>
10914
10915         pipe: Set errno upon failure.
10916         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10917         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10918         errno value in error message.
10919
10920 2010-03-20  Bruno Haible  <bruno@clisp.org>
10921             Jim Meyering  <meyering@redhat.com>
10922
10923         lchown: Avoid "unused variable" warning.
10924         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10925
10926 2010-03-20  Bruno Haible  <bruno@clisp.org>
10927
10928         Work around unlink() bug on MacOS X 10.5.6.
10929         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10930         attempting to unlink a parent directory.
10931         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10932         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10933         activate for the replacement function.
10934         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10935
10936 2010-03-20  Bruno Haible  <bruno@clisp.org>
10937
10938         Fix link errors on Solaris 8.
10939         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10940         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10941
10942 2010-03-19  Jim Meyering  <meyering@redhat.com>
10943
10944         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10945         The _LIBC implementation of build_range_exp correctly honors the
10946         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10947         However, the non-_LIBC implementation would ignore that syntax-bit
10948         flag and return REG_ERANGE unconditionally.
10949         This change makes it honor that flag.
10950         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10951         Make two pointer parameters "const".
10952         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10953         (parse_bracket_exp): Update caller.
10954
10955         regex.m4: correct the reversed range endpoint ([b-a]) test
10956         * m4/regex.m4: When requiring that [b-a] evoke failure,
10957         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10958         test pass once again for x86-based systems.
10959
10960 2010-03-19  Bruno Haible  <bruno@clisp.org>
10961
10962         scandir: Fix link error on Solaris 8.
10963         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10964         macros.
10965
10966 2010-03-19  Bruno Haible  <bruno@clisp.org>
10967
10968         getusershell: Fix documentation.
10969         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10970         module.
10971         * doc/glibc-functions/setusershell.texi: Likewise.
10972
10973         getusershell: Provide declaration, missing on Solaris 9.
10974         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10975         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10976         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10977         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10979         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10980         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10981         HAVE_GETUSERSHELL.
10982         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10983
10984 2010-03-19  Bruno Haible  <bruno@clisp.org>
10985
10986         wctype: Provide iswblank function.
10987         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10988         exists and is fine.
10989         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10990         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10991         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10992         * doc/posix-functions/iswblank.texi: Update.
10993
10994 2010-03-19  Bruno Haible  <bruno@clisp.org>
10995
10996         Tests of module 'pty' in C++ mode.
10997         * modules/pty-tests: New file.
10998         * tests/test-pty-c++.cc: New file.
10999         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11000
11001 2010-03-19  Eric Blake  <eblake@redhat.com>
11002
11003         logb: fix documentation
11004         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
11005         1.5 declaration bug.
11006
11007         forkpty, openpty: prefer glibc's const-safe prototype
11008         * lib/forkpty.c (rpl_forkpty): New file.
11009         * lib/openpty.c (rpl_openpty): Likewise.
11010         * modules/forkpty (Files): Distribute it.
11011         * modules/openpty (Files): Likewise.
11012         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
11013         check...
11014         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
11015         replacement for for non-const BSD signature.
11016         * modules/pty (Makefile.am): Substitute witnesses.
11017         * lib/pty.in.h (forkpty, openpty): Declare replacements.
11018         * tests/test-forkpty.c: Update signature check.
11019         * tests/test-openpty.c: Likewise.
11020         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
11021         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11022
11023         forkpty, openpty: split functions into new modules
11024         * modules/pty (Makefile.am): Substitute new witnesses.
11025         (Libraries): Move library detection...
11026         * modules/forkpty: ...into new module.
11027         * modules/openpty: Another new module.
11028         * modules/pty-tests: Rename and split...
11029         * modules/forkpty-tests: ...to this...
11030         * modules/openpty-tests: ...and this.
11031         * tests/test-pty.c: Rename and split...
11032         * tests/test-forkpty.c: ...to this...
11033         * tests/test-openpty.c: ...and this.
11034         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
11035         (gl_PTY): Split library searching...
11036         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
11037         (gl_FORKPTY, gl_OPENPTY): New macros.
11038         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
11039         * NEWS: Mention the split.
11040         * MODULES.html.sh (Misc): Document the modules.
11041         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
11042         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11043
11044         pty: improve replacement header
11045         * lib/pty.in.h: New file.
11046         * modules/pty (Files): Ship it.
11047         (Makefile.am): Always build replacement.
11048         * m4/pty.m4: Rename...
11049         * m4/pty_h.m4: ...to this.
11050         (gl_PTY): Modernize setting of witness macros; update check of
11051         forkpty to take proper advantage of cache.
11052         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
11053
11054         getopt: avoid compiler warning
11055         * lib/getopt.c (attribute_hidden): Remove unused macro.
11056
11057 2010-03-18  Bruno Haible  <bruno@clisp.org>
11058
11059         Fix link errors on Solaris 8.
11060         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
11061         * modules/search-tests (test_search_c___LDADD): Likewise.
11062         * modules/signal-tests (test_signal_c___LDADD): Likewise.
11063         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
11064         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
11065         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
11066         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
11067         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
11068         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
11069
11070 2010-03-18  Bruno Haible  <bruno@clisp.org>
11071
11072         Fix bug introduced on 2010-03-14.
11073         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
11074         (gl_SPAWN_H): Require it.
11075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
11076         Reported by Simon Josefsson.
11077
11078 2010-03-18  Bruno Haible  <bruno@clisp.org>
11079
11080         Fix typo introduced on 2009-12-31.
11081         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
11082         posix_spawn_file_actions_adddup2.
11083
11084 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
11085         and Eric Blake  <eblake@redhat.com>
11086
11087         test-vc-list-files-git: make more robust
11088         * tests/test-vc-list-files-git.sh: Unset problematic environment
11089         variables.  Chain commands together.
11090
11091 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
11092
11093         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
11094         `AC_CHECK_DECL' invocation.
11095
11096 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
11097
11098         * lib/inttostr.c (inttostr): Make sure the invocation of verify
11099         appears before executable statements. Suggested by Petr Sumbera
11100         <Petr.Sumbera@Sun.COM>.
11101
11102 2010-03-14  Bruno Haible  <bruno@clisp.org>
11103
11104         * tests/test-flock.c (test_exclusive): Comment out a test that causes
11105         portability problems. Instead use a simpler test.
11106         (main): Check that invalid arguments are rejected only on Linux.
11107
11108 2010-03-14  Bruno Haible  <bruno@clisp.org>
11109
11110         Fix bug introduced on 2009-12-31.
11111         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11112         gl_PREREQ_SYS_H_WINSOCK2 always.
11113         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
11114         SYS_SOCKET_H variable.
11115         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
11116         Update comments.
11117         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
11118         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11119         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11120         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11121         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11122
11123 2010-03-14  Bruno Haible  <bruno@clisp.org>
11124
11125         Fix values returned by sinl, cosl.
11126         * lib/trigl.h: Add specification comments.
11127         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
11128         that combines the values from the precomputed table with the values of
11129         the Chebyshev polynomials.
11130
11131 2010-03-14  Bruno Haible  <bruno@clisp.org>
11132
11133         Fix compilation error when modules 'posix_spawn[p]' are not used.
11134         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
11135         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
11136
11137 2010-03-14  Bruno Haible  <bruno@clisp.org>
11138
11139         Fix compilation error on mingw when module 'time_r' is not used.
11140         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
11141         is 1.
11142         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
11143         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11144         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
11145         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
11146
11147 2010-03-14  Bruno Haible  <bruno@clisp.org>
11148
11149         Fix compilation error with Sun C.
11150         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
11151         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
11152         instead of GCC specific ULONG_LONG_MAX.
11153         * lib/xstrtoll.c: Likewise.
11154         * lib/xstrtoull.c: Likewise.
11155
11156 2010-03-13  Bruno Haible  <bruno@clisp.org>
11157
11158         Allow the user to disable C++ code and tests.
11159         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
11160         (gl_PROG_ANSI_CXX): Require it.
11161
11162 2010-03-13  Bruno Haible  <bruno@clisp.org>
11163
11164         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
11165         cases.
11166
11167 2010-03-13  Bruno Haible  <bruno@clisp.org>
11168
11169         Test that gnulib does not break the standard C++ headers.
11170         * tests/test-locale-c++2.cc: New file.
11171         * modules/locale-tests (Files): Add it.
11172         (Makefile.am): Compile it for test-locale-c++.
11173         * tests/test-math-c++2.cc: New file.
11174         * modules/math-tests (Files): Add it.
11175         (Makefile.am): Compile it for test-math-c++.
11176         * tests/test-signal-c++2.cc: New file.
11177         * modules/signal-tests (Files): Add it.
11178         (Makefile.am): Compile it for test-signal-c++.
11179         * tests/test-stdio-c++2.cc: New file.
11180         * modules/stdio-tests (Files): Add it.
11181         (Makefile.am): Compile it for test-stdio-c++.
11182         * tests/test-stdlib-c++2.cc: New file.
11183         * modules/stdlib-tests (Files): Add it.
11184         (Makefile.am): Compile it for test-stdlib-c++.
11185         * tests/test-string-c++2.cc: New file.
11186         * modules/string-tests (Files): Add it.
11187         (Makefile.am): Compile it for test-string-c++.
11188         * tests/test-time-c++2.cc: New file.
11189         * modules/time-tests (Files): Add it.
11190         (Makefile.am): Compile it for test-time-c++.
11191         Reported by John W. Eaton <jwe@gnu.org>.
11192
11193 2010-03-13  Bruno Haible  <bruno@clisp.org>
11194
11195         * gnulib-tool (func_usage): Clarify which options are available for
11196         --create-testdir and --create-megatestdir.
11197
11198 2010-03-13  Bruno Haible  <bruno@clisp.org>
11199
11200         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
11201         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
11202         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
11203         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11204         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
11205         when appropriate.
11206         Reported by Jim Meyering.
11207
11208 2010-03-12  Simon Josefsson  <simon@josefsson.org>
11209
11210         * gnulib-tool (func_import): Explain origin of code.
11211
11212 2010-03-12  Bruno Haible  <bruno@clisp.org>
11213
11214         Fix problem with automake's definition of CXXLINK.
11215         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
11216         Reported by Simon Josefsson and Ludovic Courtès.
11217
11218 2010-03-12  Bruno Haible  <bruno@clisp.org>
11219
11220         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
11221         stable releases.
11222
11223 2010-03-11  Bruno Haible  <bruno@clisp.org>
11224
11225         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
11226         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
11227         whether the system provides one variant or multiple variants of the
11228         function.
11229         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
11230         C++ compilers.
11231         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
11232         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
11233         Reported by Jim Meyering.
11234
11235 2010-03-09  Simon Josefsson  <simon@josefsson.org>
11236
11237         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
11238
11239 2010-03-08  Bruno Haible  <bruno@clisp.org>
11240
11241         gnulib-tool: Add support for --libtool in --create-testdir.
11242         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
11243         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
11244
11245 2010-03-08  Eric Blake  <eblake@redhat.com>
11246
11247         gnulib-tool.texi: mention possibility of git submodule
11248         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
11249         submodules.
11250         * doc/.gitignore: Ignore another generated file.
11251
11252 2010-03-08  Karl Berry  <karl@gnu.org>
11253
11254         * doc/gnulib-tool.texi (VCS Issues): Mention third option
11255         of committing gnulib files while skipping others.
11256
11257 2010-03-07  Bruno Haible  <bruno@clisp.org>
11258
11259         Tests of module 'wctype' in C++ mode.
11260         * tests/test-wctype-c++.cc: New file.
11261         * modules/wctype-tests (Files): Add it and tests/signature.h.
11262         (Depends-on): Add ansi-c++-opt.
11263         (Makefile.am): Arrange to compile and run test-wctype-c++.
11264
11265         Tests of module 'wchar' in C++ mode.
11266         * tests/test-wchar-c++.cc: New file.
11267         * modules/wchar-tests (Files): Add it and tests/signature.h.
11268         (Depends-on): Add ansi-c++-opt.
11269         (Makefile.am): Arrange to compile and run test-wchar-c++.
11270         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
11271         gl_MODULE_INDICATOR.
11272
11273         Tests of module 'unistd' in C++ mode.
11274         * tests/test-unistd-c++.cc: New file.
11275         * modules/unistd-tests (Files): Add it and tests/signature.h.
11276         (Depends-on): Add ansi-c++-opt.
11277         (Makefile.am): Arrange to compile and run test-unistd-c++.
11278         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
11279         gl_MODULE_INDICATOR.
11280
11281         Tests of module 'time' in C++ mode.
11282         * tests/test-time-c++.cc: New file.
11283         * modules/time-tests (Files): Add it and tests/signature.h.
11284         (Depends-on): Add ansi-c++-opt.
11285         (Makefile.am): Arrange to compile and run test-time-c++.
11286         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11287
11288         Tests of module 'sys_time' in C++ mode.
11289         * tests/test-sys_time-c++.cc: New file.
11290         * modules/sys_time-tests (Files): Add it and tests/signature.h.
11291         (Depends-on): Add ansi-c++-opt.
11292         (Makefile.am): Arrange to compile and run test-sys_time-c++.
11293         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
11294         gl_MODULE_INDICATOR.
11295
11296         Tests of module 'sys_stat' in C++ mode.
11297         * tests/test-sys_stat-c++.cc: New file.
11298         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
11299         (Depends-on): Add ansi-c++-opt.
11300         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
11301         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
11302         gl_MODULE_INDICATOR.
11303
11304         Tests of module 'sys_socket' in C++ mode.
11305         * tests/test-sys_socket-c++.cc: New file.
11306         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
11307         (Depends-on): Add ansi-c++-opt.
11308         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
11309         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
11310         gl_MODULE_INDICATOR.
11311
11312         Tests of module 'sys_select' in C++ mode.
11313         * tests/test-sys_select-c++.cc: New file.
11314         * modules/sys_select-tests (Files): Add it and tests/signature.h.
11315         (Depends-on): Add ansi-c++-opt.
11316         (Makefile.am): Arrange to compile and run test-sys_select-c++.
11317         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
11318         gl_MODULE_INDICATOR.
11319
11320         Tests of module 'sys_ioctl' in C++ mode.
11321         * tests/test-sys_ioctl-c++.cc: New file.
11322         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
11323         (Depends-on): Add ansi-c++-opt.
11324         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
11325         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11326         gl_MODULE_INDICATOR.
11327
11328         Tests of module 'string' in C++ mode.
11329         * tests/test-string-c++.cc: New file.
11330         * modules/string-tests (Files): Add it and tests/signature.h.
11331         (Depends-on): Add ansi-c++-opt.
11332         (Makefile.am): Arrange to compile and run test-string-c++.
11333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
11334         gl_MODULE_INDICATOR.
11335
11336         Tests of module 'stdlib' in C++ mode.
11337         * tests/test-stdlib-c++.cc: New file.
11338         * modules/stdlib-tests (Files): Add it and tests/signature.h.
11339         (Depends-on): Add ansi-c++-opt.
11340         (Makefile.am): Arrange to compile and run test-stdlib-c++.
11341         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
11342         gl_MODULE_INDICATOR.
11343
11344         Tests of module 'stdio' in C++ mode.
11345         * tests/test-stdio-c++.cc: New file.
11346         * modules/stdio-tests (Files): Add it and tests/signature.h.
11347         (Depends-on): Add ansi-c++-opt.
11348         (Makefile.am): Arrange to compile and run test-stdio-c++.
11349         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
11350         gl_MODULE_INDICATOR.
11351
11352         Tests of module 'spawn' in C++ mode.
11353         * tests/test-spawn-c++.cc: New file.
11354         * modules/spawn-tests (Files): Add it and tests/signature.h.
11355         (Depends-on): Add ansi-c++-opt.
11356         (Makefile.am): Arrange to compile and run test-spawn-c++.
11357         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
11358         gl_MODULE_INDICATOR.
11359
11360         Tests of module 'signal' in C++ mode.
11361         * tests/test-signal-c++.cc: New file.
11362         * modules/signal-tests (Files): Add it and tests/signature.h.
11363         (Depends-on): Add ansi-c++-opt.
11364         (Makefile.am): Arrange to compile and run test-signal-c++.
11365         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
11366         gl_MODULE_INDICATOR.
11367
11368         Tests of module 'search' in C++ mode.
11369         * tests/test-search-c++.cc: New file.
11370         * modules/search-tests (Files): Add it and tests/signature.h.
11371         (Depends-on): Add ansi-c++-opt.
11372         (Makefile.am): Arrange to compile and run test-search-c++.
11373         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
11374         gl_MODULE_INDICATOR.
11375
11376         Tests of module 'math' in C++ mode.
11377         * tests/test-math-c++.cc: New file.
11378         * modules/math-tests (Files): Add it and tests/signature.h.
11379         (Depends-on): Add ansi-c++-opt.
11380         (Makefile.am): Arrange to compile and run test-math-c++.
11381         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11382
11383         Tests of module 'locale' in C++ mode.
11384         * tests/test-locale-c++.cc: New file.
11385         * modules/locale-tests (Files): Add it and tests/signature.h.
11386         (Depends-on): Add ansi-c++-opt.
11387         (Makefile.am): Arrange to compile and run test-locale-c++.
11388         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
11389         gl_MODULE_INDICATOR.
11390
11391         Tests of module 'langinfo' in C++ mode.
11392         * tests/test-langinfo-c++.cc: New file.
11393         * modules/langinfo-tests (Files): Add it and tests/signature.h.
11394         (Depends-on): Add ansi-c++-opt.
11395         (Makefile.am): Arrange to compile and run test-langinfo-c++.
11396         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
11397         gl_MODULE_INDICATOR.
11398
11399         Tests of module 'iconv-h' in C++ mode.
11400         * tests/test-iconv-h-c++.cc: New file.
11401         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
11402         (Depends-on): Add ansi-c++-opt.
11403         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
11404
11405         Tests of module 'glob' in C++ mode.
11406         * tests/test-glob-c++.cc: New file.
11407         * modules/glob-tests (Files): Add it.
11408         (Depends-on): Add ansi-c++-opt.
11409         (Makefile.am): Arrange to compile and run test-glob-c++.
11410
11411         Tests of module 'fcntl-h' in C++ mode.
11412         * tests/test-fcntl-h-c++.cc: New file.
11413         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11414         (Depends-on): Add ansi-c++-opt.
11415         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11416         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11417         gl_MODULE_INDICATOR.
11418
11419         Tests of module 'dirent' in C++ mode.
11420         * tests/test-dirent-c++.cc: New file.
11421         * modules/dirent-tests (Files): Add it and tests/signature.h.
11422         (Depends-on): Add ansi-c++-opt.
11423         (Makefile.am): Arrange to compile and run test-dirent-c++.
11424         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11425         gl_MODULE_INDICATOR.
11426
11427         New module 'ansi-c++-opt'.
11428         * modules/ansi-c++-opt: New file.
11429         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11430
11431         Document C++ namespace mode.
11432         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11433
11434         wctype: Avoid #define replacements in C++ mode.
11435         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11436         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11437         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11438         In C++, define a namespaced alias symbol.
11439         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11440         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11441         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11442         rule.
11443
11444         wchar: Avoid #define replacements in C++ mode.
11445         * lib/wchar.in.h: Include c++defs.h.
11446         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11447         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11448         symbol.
11449         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
11450         * modules/wchar (Depends-on): Add c++defs.
11451         (Makefile.am): Update wchar.h rule.
11452
11453         unistd: Avoid #define replacements in C++ mode.
11454         * lib/unistd.in.h: Include c++defs.h.
11455         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
11456         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
11457         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
11458         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
11459         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11460         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11461         symbol.
11462         (environ): Update.
11463         * modules/unistd (Depends-on): Add c++defs.
11464         (Makefile.am): Update unistd.h rule.
11465
11466         time: Avoid #define replacements in C++ mode.
11467         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11468         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11469         define a namespaced alias symbol.
11470         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11471         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11472         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11473         * modules/time (Depends-on): Add c++defs, warn-on-use.
11474         (Makefile.am): Update time.h rule.
11475         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11476         * modules/nanosleep (configure.ac): Likewise.
11477         * modules/strptime (configure.ac): Likewise.
11478         * modules/timegm (configure.ac): Likewise.
11479
11480         sys_time: Avoid #define replacements in C++ mode.
11481         * lib/sys_time.in.h: Include c++defs.h.
11482         (gettimeofday): In C++, define a namespaced alias symbol.
11483         * modules/sys_time (Depends-on): Add c++defs.
11484         (Makefile.am): Update sys/time.h rule.
11485
11486         sys_stat: Avoid #define replacements in C++ mode.
11487         * lib/sys_stat.in.h: Include c++defs.h.
11488         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11489         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11490         namespaced alias symbol.
11491         In C++, define a namespaced alias symbol.
11492         * modules/sys_stat (Depends-on): Add c++defs.
11493         (Makefile.am): Update sys/stat.h rule.
11494
11495         sys_socket: Avoid #define replacements in C++ mode.
11496         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11497         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11498         definitions also when the system has a <sys/socket.h>.
11499         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11500         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11501         In C++, define a namespaced alias symbol.
11502         * modules/sys_socket (Depends-on): Add c++defs.
11503         (Makefile.am): Update sys/socket.h rule.
11504
11505         sys_select: Avoid #define replacements in C++ mode.
11506         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11507         definitions also when the system has a <sys/select.h>.
11508         (select): In C++, define a namespaced alias symbol.
11509         * modules/sys_select (Depends-on): Add c++defs.
11510         (Makefile.am): Update sys/select.h rule.
11511
11512         sys_ioctl: Avoid #define replacements in C++ mode.
11513         * lib/sys_ioctl.in.h: Include c++defs.h.
11514         (ioctl): In C++, define a namespaced alias symbol.
11515         * modules/sys_ioctl (Depends-on): Add c++defs.
11516         (Makefile.am): Update sys/ioctl.h rule.
11517
11518         string: Avoid #define replacements in C++ mode.
11519         * lib/string.in.h: Include c++defs.h.
11520         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11521         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11522         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11523         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11524         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11525         * modules/string (Depends-on): Add c++defs.
11526         (Makefile.am): Update string.h rule.
11527
11528         stdlib: Avoid #define replacements in C++ mode.
11529         * lib/stdlib.in.h: Include c++defs.h.
11530         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11531         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11532         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11533         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11534         symbol.
11535         * modules/stdlib (Depends-on): Add c++defs.
11536         (Makefile.am): Update stdlib.h rule.
11537
11538         stdio: Avoid #define replacements in C++ mode.
11539         * lib/stdio.in.h: Include c++defs.h.
11540         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11541         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11542         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11543         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11544         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11545         namespaced alias symbol.
11546         * modules/stdio (Depends-on): Add c++defs.
11547         (Makefile.am): Update stdio.h rule.
11548
11549         spawn: Avoid #define replacements in C++ mode.
11550         * lib/spawn.in.h: Include c++defs.h.
11551         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11552         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11553         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11554         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11555         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11556         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11557         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11558         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11559         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11560         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11561         In C++, define a namespaced alias symbol.
11562         * modules/spawn (Depends-on): Add c++defs.
11563         (Makefile.am): Update spawn.h rule.
11564
11565         signal: Avoid #define replacements in C++ mode.
11566         * lib/signal.in.h: Include c++defs.h.
11567         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11568         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11569         namespaced alias symbol.
11570         * modules/signal (Depends-on): Add c++defs.
11571         (Makefile.am): Update signal.h rule.
11572
11573         search: Avoid #define replacements in C++ mode.
11574         * lib/search.in.h: Include c++defs.h.
11575         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11576         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11577         symbol.
11578         * modules/search (Depends-on): Add c++defs.
11579         (Makefile.am): Update search.h rule.
11580
11581         math: Avoid #define replacements in C++ mode.
11582         * lib/math.in.h: Include c++defs.h.
11583         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11584         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11585         trunc, truncl): In C++, define a namespaced alias symbol.
11586         * modules/math (Depends-on): Add c++defs.
11587         (Makefile.am): Update math.h rule.
11588
11589         locale: Avoid #define replacements in C++ mode.
11590         * lib/locale.in.h: Include c++defs.h.
11591         (duplocale): In C++, define a namespaced alias symbol.
11592         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11593         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11594         * modules/locale (Depends-on): Add c++defs.
11595         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11596
11597         langinfo: Avoid #define replacements in C++ mode.
11598         * lib/langinfo.in.h: Include c++defs.h.
11599         (nl_langinfo): In C++, define a namespaced alias symbol.
11600         * modules/langinfo (Depends-on): Add c++defs.
11601         (Makefile.am): Update langinfo.h rule.
11602
11603         iconv-h: Avoid #define replacements in C++ mode.
11604         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11605         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11606         symbol.
11607         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11608         whenever iconv is present.
11609         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11610         (Makefile.am): Update iconv.h rule.
11611
11612         glob: Avoid #define replacements in C++ mode.
11613         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11614         (_gl_glob_errfunc_fn): New type.
11615         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11616         symbol.
11617         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11618         (Makefile.am): Update glob.h rule.
11619
11620         fcntl-h: Avoid #define replacements in C++ mode.
11621         * lib/fcntl.in.h: Include c++defs.h.
11622         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11623         * modules/fcntl-h (Depends-on): Add c++defs.
11624         (Makefile.am): Update fcntl.h rule.
11625
11626         dirent: Avoid #define replacements in C++ mode.
11627         * lib/dirent.in.h: Include c++defs.h.
11628         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11629         namespaced alias symbol.
11630         (dirfd): Update declaration.
11631         * modules/dirent (Depends-on): Add c++defs.
11632         (Makefile.am): Update dirent.h rule.
11633
11634         ctype: Make it usable in C++ code.
11635         * lib/ctype.in.h: Include c++defs.h.
11636         (isblank): Declare as extern "C".
11637         * modules/ctype (Depends-on): Add c++defs.
11638         (Makefile.am): Update ctype.h rule.
11639
11640         New module 'c++defs'.
11641         * modules/c++defs: New file.
11642         * build-aux/c++defs.h: New file.
11643         Reported by John W. Eaton <jwe@gnu.org>.
11644
11645 2010-03-07  Bruno Haible  <bruno@clisp.org>
11646
11647         logb: Provide missing declaration for Cygwin.
11648         * lib/math.in.h (logb): New declaration.
11649         * m4/logb.m4: New file.
11650         * modules/logb (Files): Add m4/logb.m4.
11651         (Depends-on): Add math.
11652         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11653         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11655         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11656         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11657
11658 2010-03-07  Bruno Haible  <bruno@clisp.org>
11659
11660         Fix test-cond link error.
11661         * tests/test-cond.c: Include <stdio.h>.
11662
11663 2010-03-07  Bruno Haible  <bruno@clisp.org>
11664
11665         Fix test-dirent-safer link error.
11666         * modules/dirent-safer-tests (Makefile.am): Define
11667         test_dirent_safer_LDADD.
11668
11669 2010-03-07  Bruno Haible  <bruno@clisp.org>
11670
11671         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11672         among default module list.
11673
11674 2010-03-07  Bruno Haible  <bruno@clisp.org>
11675
11676         Fix link error on platforms with GNU libiconv.
11677         * modules/unistr/u8-strcoll-tests (Makefile): Define
11678         test_u8_strcoll_LDADD.
11679         * modules/unistr/u16-strcoll-tests (Makefile): Define
11680         test_u16_strcoll_LDADD.
11681         * modules/unistr/u32-strcoll-tests (Makefile): Define
11682         test_u32_strcoll_LDADD.
11683
11684 2010-03-07  Bruno Haible  <bruno@clisp.org>
11685
11686         Use POSIX declarations for socket functions.
11687         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11688         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11689         rpl_sendto): Change declaration to match POSIX.
11690         * lib/connect.c (rpl_connect): Likewise.
11691         * lib/accept.c (rpl_accept): Likewise.
11692         * lib/bind.c (rpl_bind): Likewise.
11693         * lib/getpeername.c (rpl_getpeername): Likewise.
11694         * lib/getsockname.c (rpl_getsockname): Likewise.
11695         * lib/recv.c (rpl_recv): Likewise.
11696         * lib/send.c (rpl_send): Likewise.
11697         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11698         * lib/sendto.c (rpl_sendto): Likewise.
11699
11700 2010-03-06  Bruno Haible  <bruno@clisp.org>
11701
11702         Clarify access, euidaccess, faccessat.
11703         * doc/posix-functions/faccessat.texi: Mention security problem under
11704         "Other problems", not "Portability problems".
11705         * doc/posix-functions/access.texi: Likewise. Mention a related security
11706         problem.
11707         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11708         * lib/euidaccess.c: Add comments about platforms.
11709         * lib/unistd.in.h (access, euidaccess): Add warnings.
11710
11711 2010-03-07  Bruno Haible  <bruno@clisp.org>
11712
11713         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11714         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11715         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11716         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11717         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11718         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11719         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11720         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11721         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11722         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11723         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11724         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11725         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11726         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11727         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11728         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11729         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11730         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11731         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11732         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11733         Likewise.
11734         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11735         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11736         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11737         Likewise.
11738         * tests/test-spawn.c (main): Make it work when
11739         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11740
11741 2010-03-07  Bruno Haible  <bruno@clisp.org>
11742
11743         Fix incorrect Makefile.am generation in German locale.
11744         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11745         Execute sed command with character range in C locale.
11746
11747 2010-03-06  Bruno Haible  <bruno@clisp.org>
11748
11749         Tests for module 'iconv-h'.
11750         * modules/iconv-h-tests: New file.
11751         * tests/test-iconv-h.c: New file.
11752
11753         New module 'iconv-h'.
11754         * modules/iconv-h: New file.
11755         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11756         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11757         (configure.ac): Remove gl_ICONV_H.
11758         (Makefile.am): Remove rule for iconv.h.
11759
11760 2010-03-06  Bruno Haible  <bruno@clisp.org>
11761
11762         More consistent naming of *.m4 files.
11763         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11764         * modules/wctype (Files): Update.
11765
11766         More consistent naming of *.m4 files.
11767         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11768         * modules/wchar (Files): Update.
11769
11770 2010-03-06  Jim Meyering  <meyering@redhat.com>
11771
11772         euidaccess: relax license to LGPLv2+
11773         * modules/euidaccess (License): Relax to LGPLv2+.
11774
11775 2010-03-06  Bruno Haible  <bruno@clisp.org>
11776
11777         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11778         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11779         (Makefile.am): Augment lib_SOURCES instead.
11780
11781 2010-03-04  Jim Meyering  <meyering@redhat.com>
11782
11783         utime: remove obsolete module
11784         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11785         unnecessary for years, and has been marked as obsolete for 10 months.
11786         * modules/utime: Remove file.
11787         * lib/utime.c: Remove file.
11788         * m4/utime.m4: Remove file.
11789         * m4/utimes-null.m4: Remove file.
11790         * doc/posix-functions/utime.texi (utime): Remove reference to
11791         the module.  Move the sole "fixed by gnulib" item into the
11792         "problems not fixed by Gnulib" list.
11793         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11794
11795 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11796
11797         * modules/exit (License): Relax license to LGPLv2+.
11798         (Status): Mark as obsolete.
11799         * NEWS: Mention deprecated 'exit' module.
11800         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11801         of now obsolete 'exit'.
11802
11803 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11804
11805         fts-lgpl: remove unused module
11806         * modules/fts-lgpl: Remove.
11807         * MODULES.html.sh (func_all_modules): Adjust.
11808         * check-module (find_included_lib_files): Adjust.
11809         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11810
11811 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11812
11813         copy-acl: enhance Solaris ACL error handling
11814         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11815         * lib/set-mode-acl.c (qset_acl): Likewise.
11816
11817 2010-03-02  Bruno Haible  <bruno@clisp.org>
11818
11819         spawn: Don't override the system defined values on FreeBSD 8.
11820         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11821         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11822         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11823         if HAVE_POSIX_SPAWN is 1.
11824         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11825
11826 2010-03-01  Bruno Haible  <bruno@clisp.org>
11827
11828         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11829         regarding Automake.
11830
11831 2010-02-25  Bruno Haible  <bruno@clisp.org>
11832
11833         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11834         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11835         setting, not afterwards.
11836         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11837
11838 2010-02-24  Eric Blake  <eblake@redhat.com>
11839
11840         bootstrap, git-version-gen: use timestamp
11841         * build-aux/git-version-gen (scriptversion): Force UTC.
11842         * build-aux/bootstrap (scriptversion): New variable.
11843
11844         bootstrap: allow older git
11845         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11846         older than 1.6.4.  Requested by the libvirt project.
11847
11848 2010-02-23  Eric Blake  <eblake@redhat.com>
11849
11850         warn-on-use: work with old autoconf
11851         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11852         AS_VAR semantics of autoconf 2.60.
11853         Reported by Bruno Haible.
11854
11855         bootstrap: improve some comments
11856         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11857         clarification comments.
11858
11859         gettimeofday: provide correct function
11860         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11861         when replacement is declared, otherwise provide gettimeofday.
11862         Reported by Michael Goffioul.
11863
11864 2010-02-23  Jim Meyering  <meyering@redhat.com>
11865
11866         lib-ignore: relax license to "unlimited", not LGPLv2+
11867         * modules/lib-ignore (License): Relax to "unlimited".
11868
11869 2010-02-23  Jim Meyering  <meyering@redhat.com>
11870
11871         lib-ignore: relax license to LGPLv2+
11872         * modules/lib-ignore (License): Relax to LGPLv2+.
11873
11874 2010-02-22  Eric Blake  <eblake@redhat.com>
11875
11876         lseek: avoid bash 3.2 broken pipe bug
11877         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11878         warning from bash 3.2.
11879         Reported by Ben Pfaff, with analysis from Bruno Haible.
11880
11881         bootstrap: support non-FSF copyright holder
11882         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11883         bootstrap.conf override of COPYRIGHT_HOLDER.
11884         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11885
11886         bootstrap: interoperate with gettext 0.14.1
11887         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11888
11889         bootstrap: allow for alternate submodule location
11890         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11891         hardcoding submodule location.
11892         (gnulib_mk): Allow direct use of Makefile.am.
11893
11894         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11895         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11896         rather than reconfiguring where the submodule points.
11897
11898         gettimeofday: restore support for platforms that lack function
11899         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11900         replacement if function is missing.
11901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11902         * modules/sys_time (Makefile.am): Substitute it.
11903         * lib/sys_time.in.h (gettimeofday): Check it.
11904         Reported by Michael Goffioul.
11905
11906 2010-02-21  Bruno Haible  <bruno@clisp.org>
11907
11908         * lib/stdio.in.h (obstack_printf): Fix typo.
11909
11910 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11911
11912         vc-list-files: use bzr ls's -R option
11913         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11914         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11915
11916 2010-02-21  Jim Meyering  <meyering@redhat.com>
11917
11918         init.sh: fix EXEEXT shims to work also for names like test-prog
11919         * tests/init.sh: Re-exec a better shell, when needed.
11920         If the current shell lacks support for posix $(...), an init.sh-using
11921         test will now try to find a shell that supports that.  If EXEEXT is
11922         nonempty, we also require support for hyphen-in-alias-name and shell
11923         substitutions like ${var#glob}.  Failure to find such a shell results
11924         in a skipped test.
11925
11926 2010-02-21  Bruno Haible  <bruno@clisp.org>
11927
11928         Really work around around "broken pipe" error message from bash 3.2.
11929         * gnulib-tool (func_reset_sigpipe): Remove function.
11930         (echo): In bash 3.2, define to a function that uses printf.
11931         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11932
11933 2010-02-20  Bruno Haible  <bruno@clisp.org>
11934
11935         Restore support for automake 1.9.6 with autoconf 2.61.
11936         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11937         Reported by James Youngman <jay@gnu.org>.
11938
11939 2010-02-20  Bruno Haible  <bruno@clisp.org>
11940
11941         Improve *printf warning condition.
11942         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11943         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11944         and the function is overridden due to SIGPIPE emulation.
11945
11946 2010-02-20  Bruno Haible  <bruno@clisp.org>
11947
11948         * lib/stdio.in.h: Tweak comments.
11949
11950 2010-02-19  Bruno Haible  <bruno@clisp.org>
11951
11952         Make it easier to find modules. New gnulib-tool option '--find'.
11953         * gnulib-tool: New option --find.
11954         (func_usage): Document it.
11955         (func_sanitize_modulelist): New function, extracted from
11956         func_all_modules.
11957         (func_all_modules): Invoke it.
11958         * doc/gnulib-tool.texi (Which modules?): New node.
11959
11960 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11961
11962         * lib/sys_select.in.h: Provide select replacement even if
11963         sys/select.h exists on a system, for Interix.
11964
11965 2010-02-18  Jim Meyering  <meyering@redhat.com>
11966
11967         init.sh: don't use $(...) just yet
11968         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11969         to accommodate e.g., Solaris' /bin/sh.
11970
11971 2010-02-17  Bruno Haible  <bruno@clisp.org>
11972
11973         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11974         Reported by Ludovic Courtès <ludo@gnu.org>.
11975
11976 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11977
11978         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11979         linking with -lintl.
11980
11981 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11982
11983         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11984         if not provided by the system's netdb.h.  Reported by
11985         ludo@gnu.org (Ludovic Courtès).
11986
11987 2010-02-15  Jim Meyering  <meyering@redhat.com>
11988
11989         init.sh: improve portability and efficiency
11990         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11991         "dummy" in a for loop.
11992         Use '!', not '^' to select the complement of a character set used
11993         in a "case" statement.
11994         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11995         Suggestions from Eric Blake.
11996
11997         init.sh: automatically accommodate programs with the .exe suffix
11998         Automatically arrange for an invocation of "prog" to execute the
11999         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
12000         may use the simpler "prog", yet still work when built on a system
12001         that requires specifying the added suffix.
12002         Do this by constructing a function named "prog" that invokes
12003         "prog.exe" for each .exe file in selected directories.
12004         * tests/init.sh (find_exe_basenames_): New function.
12005         (create_exe_shim_functions_): New function.
12006         (path_prepend_): Use it.
12007
12008         maint.mk: mark syntax-check sc_*.m rules as .PHONY
12009         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
12010         "make -t syntax-check" doesn't create a ton of sc_*.m files.
12011
12012 2010-02-14  Jim Meyering  <meyering@redhat.com>
12013
12014         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
12015         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
12016         (sc_prohibit_hash_pjw_without_use): New rule.
12017
12018         maint.mk: allow the default upload destination dir to be overridden
12019         * top/maint.mk (upload_dest_dir_): Define with a default that
12020         preserves the status quo.
12021         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
12022         Reported by Peter Simons.
12023
12024         maint.mk: prohibit inclusion of "hash.h" without_use
12025         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
12026
12027 2010-02-10  Jim Meyering  <meyering@redhat.com>
12028
12029         maint.mk: prohibit inclusion of "ignore-value.h" without_use
12030         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
12031
12032 2010-02-09  Eric Blake  <ebb9@byu.net>
12033         and Bruno Haible  <bruno@clisp.org>
12034
12035         obstack-printf-posix: ensure declaration
12036         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
12037         extracted from gl_FUNC_OBSTACK_PRINTF.
12038         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
12039         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12040         Likewise.
12041         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
12042         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
12043         0.
12044
12045 2010-02-08  Bruno Haible  <bruno@clisp.org>
12046
12047         gnulib-tool: Fix typo in 2010-02-07 commit.
12048         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
12049         Reported by Eric Blake.
12050
12051 2010-02-07  Bruno Haible  <bruno@clisp.org>
12052
12053         gnulib-tool: Fix up caching patches.
12054         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
12055         option --no-cache. Use associative arrays when supported by the shell.
12056         (sed_comments): New variable.
12057         (modcache): Renamed from do_cache.
12058         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
12059         abbreviate unnecessarily.
12060         (have_associative): New variable.
12061         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
12062         way also for ksh and zsh.
12063         (func_init_sed_convert_to_cache_statements): New function, extracted
12064         from func_cache_lookup_module. Add support for associative arrays.
12065         Don't set the c_MODULE_cached variable here. Ignore all lines before
12066         the first field header. Remove only the final newline, not all trailing
12067         newlines. Support empty fields correctly. Limit the use of 'eval' to
12068         assignments.
12069         (func_get_description, func_get_status, func_get_notice,
12070         func_get_applicability, func_get_filelist, func_get_dependencies,
12071         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
12072         func_get_automake_snippet, func_get_include_directive,
12073         func_get_link_directive, func_get_license, func_get_maintainer):
12074         Update documentation. List the unoptimized code first. Add support for
12075         associative arrays. Limit the use of 'eval' to assignments.
12076         (func_get_applicability): Undo stylistic pessimisations.
12077         (func_get_automake_snippet, func_get_include_directive): Reduce code
12078         duplication.
12079         (func_modules_transitive_closure, func_modules_add_dummy,
12080         func_modules_notice, func_modules_to_filelist, func_add_file,
12081         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
12082         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
12083         func_create_testdir, func_create_megatestdir): Update documentation.
12084
12085 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12086
12087         * gnulib-tool (func_cache_lookup_module): Store the module name
12088         belonging to the cache variable; error out if two different
12089         module names map to the same cache variable name.
12090
12091 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12092
12093         gnulib-tool: Make caching optional.
12094         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
12095         Update matching short versions of --no-changelog.
12096         (func_usage): Update.
12097         (sed_extract_cache_prog): Renamed from ...
12098         (sed_extract_prog): ... this; revert to old extraction script.
12099         (func_get_description, func_get_status)
12100         (func_get_notice, func_get_applicability, func_get_filelist)
12101         (func_get_dependencies, func_get_autoconf_early_snippet)
12102         (func_get_autoconf_snippet, func_get_automake_snippet)
12103         (func_get_include_directive, func_get_link_directive)
12104         (func_get_license, func_get_maintainer): If $do_cache is false,
12105         use old, non-caching extraction scripts.
12106         Suggestion by Bruno Haible.
12107
12108 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12109
12110         gnulib-tool: cache module metainformation.
12111         * gnulib-tool (sed_extract_prog): Match newline before each
12112         header, and rewrite header to a shell variable suffix.
12113         (func_cache_var, func_cache_lookup_module): New functions,
12114         to turn a module name into a cache variable prefix, and to
12115         look up and cache module metainformation.
12116         (func_get_description, func_get_status)
12117         (func_get_notice, func_get_applicability, func_get_filelist)
12118         (func_get_dependencies, func_get_autoconf_early_snippet)
12119         (func_get_autoconf_snippet, func_get_automake_snippet)
12120         (func_get_include_directive, func_get_link_directive)
12121         (func_get_license, func_get_maintainer): Use
12122         func_cache_lookup_module.
12123
12124 2010-02-07  Bruno Haible  <bruno@clisp.org>
12125
12126         fnctl: Fix missing dependency.
12127         * modules/fcntl (Depends-on): Add getdtablesize.
12128         Reported by John W. Eaton <jwe@gnu.org>.
12129
12130 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12131
12132         Argp: fix recognition of short alias options.
12133
12134         * lib/argp-parse.c (convert_options): Fix improper use of
12135         `|' between character values.
12136         * tests/test-argp.c (group1_option): New alias option
12137         --read (-r).
12138         (group1_parser): Special handling for 'r'.
12139         (test15): New test case.
12140         (test_fun): Add test15.
12141         * tests/test-argp-2.sh: Update expected --help and --usage
12142         outputs.
12143
12144 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12145
12146         * tests/test-argp.c: Fix indentation.
12147
12148 2010-02-04  Eric Blake  <ebb9@byu.net>
12149
12150         gettimeofday: expose type of second argument
12151         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
12152         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
12153         * tests/test-gettimeofday.c: Use it to silence warning.
12154         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
12155         the issue.
12156
12157 2010-02-03  Jim Meyering  <meyering@redhat.com>
12158
12159         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
12160         * lib/regcomp.c (TYPE_SIGNED): Define.
12161         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
12162
12163         regcomp.c: avoid a new -Wshadow warning
12164         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
12165
12166 2010-02-01  Jim Meyering  <meyering@redhat.com>
12167
12168         removing useless parentheses in cpp #define directives
12169         For motivation, see commit c0221df4, "define STREQ(a,b)
12170         consistently, removing useless parentheses"
12171         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
12172         * lib/mountlist.c (MNT_IGNORE): Likewise.
12173         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
12174
12175 2010-02-01  Eric Blake  <ebb9@byu.net>
12176
12177         sys_time: use link-warning
12178         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
12179         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
12180         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
12181         * modules/sys_time (Depends-on): Add warn-on-use.
12182         (Makefile.am): Always build replacement.
12183         (configure.ac): Update substitutions.
12184         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
12185         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
12186         bother with SYS_TIME_H.
12187         * modules/gettimeofday (configure.ac): Declare indicator.
12188         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
12189         in use.
12190
12191         closein-tests: silence compiler warning
12192         * tests/test-closein.c (main): Ignore fread result.
12193         * modules/closein-tests (Depends-on): Add ignore-value.
12194
12195         tests: silence warning about system return
12196         * tests/test-areadlink-with-size.c (main): Ignore system result.
12197         * tests/test-areadlink.c (main): Likewise.
12198         * tests/test-areadlinkat-with-size.c (main): Likewise.
12199         * tests/test-areadlinkat.c (main): Likewise.
12200         * tests/test-canonicalize-lgpl.c (main): Likewise.
12201         * tests/test-canonicalize.c (main): Likewise.
12202         * tests/test-chown.c (main): Likewise.
12203         * tests/test-fchownat.c (main): Likewise.
12204         * tests/test-fdutimensat.c (main): Likewise.
12205         * tests/test-fstatat.c (main): Likewise.
12206         * tests/test-futimens.c (main): Likewise.
12207         * tests/test-lchown.c (main): Likewise.
12208         * tests/test-link.c (main): Likewise.
12209         * tests/test-linkat.c (main): Likewise.
12210         * tests/test-lstat.c (main): Likewise.
12211         * tests/test-mkdir.c (main): Likewise.
12212         * tests/test-mkdirat.c (main): Likewise.
12213         * tests/test-mkfifo.c (main): Likewise.
12214         * tests/test-mkfifoat.c (main): Likewise.
12215         * tests/test-mknod.c (main): Likewise.
12216         * tests/test-readlink.c (main): Likewise.
12217         * tests/test-remove.c (main): Likewise.
12218         * tests/test-rename.c (main): Likewise.
12219         * tests/test-renameat.c (main): Likewise.
12220         * tests/test-rmdir.c (main): Likewise.
12221         * tests/test-symlink.c (main): Likewise.
12222         * tests/test-symlinkat.c (main): Likewise.
12223         * tests/test-unlink.c (main): Likewise.
12224         * tests/test-unlinkat.c (main): Likewise.
12225         * tests/test-utimens.c (main): Likewise.
12226         * tests/test-utimensat.c (main): Likewise.
12227         * modules/areadlink-tests (Depends-on): Add ignore-value.
12228         * modules/areadlink-with-size-tests (Depends-on): Likewise.
12229         * modules/areadlinkat-tests (Depends-on): Likewise.
12230         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
12231         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12232         * modules/canonicalize-tests (Depends-on): Likewise.
12233         * modules/chown-tests (Depends-on): Likewise.
12234         * modules/fdutimensat-tests (Depends-on): Likewise.
12235         * modules/futimens-tests (Depends-on): Likewise.
12236         * modules/lchown-tests (Depends-on): Likewise.
12237         * modules/link-tests (Depends-on): Likewise.
12238         * modules/linkat-tests (Depends-on): Likewise.
12239         * modules/lstat-tests (Depends-on): Likewise.
12240         * modules/mkdir-tests (Depends-on): Likewise.
12241         * modules/mkfifo-tests (Depends-on): Likewise.
12242         * modules/mkfifoat-tests (Depends-on): Likewise.
12243         * modules/mknod-tests (Depends-on): Likewise.
12244         * modules/openat-tests (Depends-on): Likewise.
12245         * modules/readlink-tests (Depends-on): Likewise.
12246         * modules/remove-tests (Depends-on): Likewise.
12247         * modules/rename-tests (Depends-on): Likewise.
12248         * modules/renameat-tests (Depends-on): Likewise.
12249         * modules/rmdir-tests (Depends-on): Likewise.
12250         * modules/symlink-tests (Depends-on): Likewise.
12251         * modules/symlinkat-tests (Depends-on): Likewise.
12252         * modules/unlink-tests (Depends-on): Likewise.
12253         * modules/utimens-tests (Depends-on): Likewise.
12254         * modules/utimensat-tests (Depends-on): Likewise.
12255
12256 2010-01-31  Bruno Haible  <bruno@clisp.org>
12257
12258         Perform the same test for many <math.h> functions.
12259         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
12260         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
12261         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
12262         of gl_MATHFUNC.
12263         * modules/acos (configure.ac): Likewise.
12264         * modules/asin (configure.ac): Likewise.
12265         * modules/atan (configure.ac): Likewise.
12266         * modules/atan2 (configure.ac): Likewise.
12267         * modules/cbrt (configure.ac): Likewise.
12268         * modules/copysign (configure.ac): Likewise.
12269         * modules/cos (configure.ac): Likewise.
12270         * modules/cosh (configure.ac): Likewise.
12271         * modules/erf (configure.ac): Likewise.
12272         * modules/erfc (configure.ac): Likewise.
12273         * modules/exp (configure.ac): Likewise.
12274         * modules/fmod (configure.ac): Likewise.
12275         * modules/hypot (configure.ac): Likewise.
12276         * modules/j0 (configure.ac): Likewise.
12277         * modules/j1 (configure.ac): Likewise.
12278         * modules/jn (configure.ac): Likewise.
12279         * modules/lgamma (configure.ac): Likewise.
12280         * modules/log (configure.ac): Likewise.
12281         * modules/log10 (configure.ac): Likewise.
12282         * modules/log1p (configure.ac): Likewise.
12283         * modules/pow (configure.ac): Likewise.
12284         * modules/remainder (configure.ac): Likewise.
12285         * modules/sin (configure.ac): Likewise.
12286         * modules/sinh (configure.ac): Likewise.
12287         * modules/tan (configure.ac): Likewise.
12288         * modules/tanh (configure.ac): Likewise.
12289         * modules/y0 (configure.ac): Likewise.
12290         * modules/y1 (configure.ac): Likewise.
12291         * modules/yn (configure.ac): Likewise.
12292         Suggested by Paolo Bonzini.
12293
12294 2010-01-31  Bruno Haible  <bruno@clisp.org>
12295
12296         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
12297
12298 2010-01-31  Bruno Haible  <bruno@clisp.org>
12299
12300         Work around getdelim() bug on FreeBSD 8.0.
12301         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
12302         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
12303         not work.
12304         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
12305         is 1.
12306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
12307         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
12308         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
12309         a non-zero size.
12310         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
12311
12312 2010-01-31  Bruno Haible  <bruno@clisp.org>
12313
12314         Work around getline() bug on FreeBSD 8.0.
12315         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
12316         and a non-zero size.
12317         * tests/test-getline.c (main): Likewise.
12318         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
12319         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
12320
12321 2010-01-28  Eric Blake  <ebb9@byu.net>
12322
12323         regex: fix build failure
12324         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
12325         platforms.
12326
12327 2010-01-28  Jim Meyering  <meyering@redhat.com>
12328
12329         regex: do not ignore memory allocation failure
12330         * lib/regex_internal.c (create_cd_newstate): Detect
12331         re_node_set_init_copy failure.   Extracted from glibc commit
12332         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12333
12334         regex: sync more white-space changes from libc
12335         * lib/regex_internal.c: White-space only changes.
12336         * lib/regexec.c: Likewise.
12337
12338         regex: add many uses of __attribute_warn_unused_result__
12339         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
12340         * lib/regexec.c: Likewise.
12341         Extracted from a messy glibc commit.
12342
12343         regcomp.c: spelling and merge-artifact from glibc
12344         * lib/regcomp.c: Merge remainder of glibc's
12345         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12346
12347         regcomp.c: sync white-space changes from glibc
12348         * lib/regcomp.c: Merge to accommodate white space
12349         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12350
12351         regcomp.c: do not ignore internal return values
12352         * lib/regcomp.c: Do not ignore internal return values.
12353         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
12354         but without its white-space changes and spelling fixes.
12355
12356         regex_internal.h: define __attribute_warn_unused_result__
12357         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
12358
12359         maint: add a syntax-check rule to check for vulnerable Makefile.in
12360         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
12361
12362 2010-01-27  Jim Meyering  <meyering@redhat.com>
12363
12364         ncftpput-ftp: clean up spaces
12365         * build-aux/ncftpput-ftp: Make Copyright line consistent.
12366         Remove trailing blanks.
12367
12368 2010-01-27  Simon Josefsson  <simon@josefsson.org>
12369
12370         * build-aux/git-version-gen: Fix copyright statement.
12371         * build-aux/gnupload: Likewise.
12372         * tests/test-arcfour.c: Likewise.
12373         * tests/test-arctwo.c: Likewise.
12374         * tests/test-count-one-bits.c: Likewise.
12375         * tests/test-crc.c: Likewise.
12376         * tests/test-des.c: Likewise.
12377         * tests/test-gc-arcfour.c: Likewise.
12378         * tests/test-gc-arctwo.c: Likewise.
12379         * tests/test-gc-des.c: Likewise.
12380         * tests/test-gc-hmac-md5.c: Likewise.
12381         * tests/test-gc-hmac-sha1.c: Likewise.
12382         * tests/test-gc-md2.c: Likewise.
12383         * tests/test-gc-md4.c: Likewise.
12384         * tests/test-gc-md5.c: Likewise.
12385         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12386         * tests/test-gc-rijndael.c: Likewise.
12387         * tests/test-gc-sha1.c: Likewise.
12388         * tests/test-gc.c: Likewise.
12389         * tests/test-gethostname.c: Likewise.
12390         * tests/test-gettimeofday.c: Likewise.
12391         * tests/test-hash.c: Likewise.
12392         * tests/test-hmac-md5.c: Likewise.
12393         * tests/test-hmac-sha1.c: Likewise.
12394         * tests/test-md2.c: Likewise.
12395         * tests/test-md4.c: Likewise.
12396         * tests/test-md5.c: Likewise.
12397         * tests/test-memchr.c: Likewise.
12398         * tests/test-memchr2.c: Likewise.
12399         * tests/test-memcmp.c: Likewise.
12400         * tests/test-memmem.c: Likewise.
12401         * tests/test-memrchr.c: Likewise.
12402         * tests/test-rawmemchr.c: Likewise.
12403         * tests/test-read-file.c: Likewise.
12404         * tests/test-rijndael.c: Likewise.
12405         * tests/test-sockets.c: Likewise.
12406         * tests/test-strchrnul.c: Likewise.
12407         * tests/test-strstr.c: Likewise.
12408         * tests/test-strtod.c: Likewise.
12409         * build-aux/ncftpput-ftp: Likewise.
12410
12411 2010-01-26  Eric Blake  <ebb9@byu.net>
12412
12413         ignore-value: update recommended header name
12414         * modules/ignore-value (Include): Only use <> for headers that
12415         exist in glibc.
12416
12417 2010-01-26  Jim Meyering  <meyering@redhat.com>
12418
12419         test-userspec.c: avoid compiler warnings
12420         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12421         and "initialization discards qualifiers..." warnings.
12422         Put the first "uid" in its own scope, and make char* members "const".
12423
12424 2010-01-25  Bruno Haible  <bruno@clisp.org>
12425
12426         gnulib-tool: Make warning diagnostics consistent.
12427         * gnulib-tool (func_warning): New function.
12428         Use it everywhere where gnulib-tool produces output to stderr and it is
12429         not a fatal error.
12430
12431 2010-01-25  Bruno Haible  <bruno@clisp.org>
12432
12433         Fix test dependencies.
12434         * modules/xstrtol-tests (Depends-on): Add inttypes.
12435         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12436
12437 2010-01-25 Pádraig Brady <P@draigBrady.com>
12438
12439         syntax-check: detect incorrect boolean macro values in config.h
12440         * modules/maintainer-makefile (configure.ac): Parameterize the location
12441         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12442         The logic is from Eric Blake and the location indicated by Jim Meyering.
12443         Note the more natural CONFIG_HEADER name is prohibited by automake
12444         for backwards compatibility reasons.
12445         * top/maint.mk (sc_Wundef_boolean): New rule.
12446
12447 2010-01-25  Jim Meyering  <meyering@redhat.com>
12448
12449         bootstrap: detect MacOS 10.6's shasum, too
12450         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
12451         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
12452
12453 2010-01-23  Jim Meyering  <meyering@redhat.com>
12454
12455         xstrtoll: new module
12456         * modules/xstrtoll: New file.
12457         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
12458         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
12459         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12460         ./configure fails if you use this module and lack "long long".
12461         * modules/xstrtoll-tests: New module.
12462         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12463         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12464         new init.sh-based test framework.
12465
12466 2010-01-24  Bruno Haible  <bruno@clisp.org>
12467
12468         Tests for module 'yn'.
12469         * modules/yn-tests: New file.
12470         * tests/test-yn.c: New file.
12471
12472         Tests for module 'y1'.
12473         * modules/y1-tests: New file.
12474         * tests/test-y1.c: New file.
12475
12476         Tests for module 'y0'.
12477         * modules/y0-tests: New file.
12478         * tests/test-y0.c: New file.
12479
12480         Tests for module 'tanh'.
12481         * modules/tanh-tests: New file.
12482         * tests/test-tanh.c: New file.
12483
12484         Tests for module 'tan'.
12485         * modules/tan-tests: New file.
12486         * tests/test-tan.c: New file.
12487
12488         Tests for module 'sqrt'.
12489         * modules/sqrt-tests: New file.
12490         * tests/test-sqrt.c: New file.
12491
12492         Tests for module 'sinh'.
12493         * modules/sinh-tests: New file.
12494         * tests/test-sinh.c: New file.
12495
12496         Tests for module 'sin'.
12497         * modules/sin-tests: New file.
12498         * tests/test-sin.c: New file.
12499
12500         Tests for module 'rint'.
12501         * modules/rint-tests: New file.
12502         * tests/test-rint.c: New file.
12503
12504         Tests for module 'remainder'.
12505         * modules/remainder-tests: New file.
12506         * tests/test-remainder.c: New file.
12507
12508         Tests for module 'pow'.
12509         * modules/pow-tests: New file.
12510         * tests/test-pow.c: New file.
12511
12512         Tests for module 'nextafter'.
12513         * modules/nextafter-tests: New file.
12514         * tests/test-nextafter.c: New file.
12515
12516         Tests for module 'modf'.
12517         * modules/modf-tests: New file.
12518         * tests/test-modf.c: New file.
12519
12520         Tests for module 'logb'.
12521         * modules/logb-tests: New file.
12522         * tests/test-logb.c: New file.
12523
12524         Tests for module 'log1p'.
12525         * modules/log1p-tests: New file.
12526         * tests/test-log1p.c: New file.
12527
12528         Tests for module 'log10'.
12529         * modules/log10-tests: New file.
12530         * tests/test-log10.c: New file.
12531
12532         Tests for module 'log'.
12533         * modules/log-tests: New file.
12534         * tests/test-log.c: New file.
12535
12536         Tests for module 'lgamma'.
12537         * modules/lgamma-tests: New file.
12538         * tests/test-lgamma.c: New file.
12539
12540         Tests for module 'ldexp'.
12541         * modules/ldexp-tests: New file.
12542         * tests/test-ldexp.c: New file.
12543
12544         Tests for module 'jn'.
12545         * modules/jn-tests: New file.
12546         * tests/test-jn.c: New file.
12547
12548         Tests for module 'j1'.
12549         * modules/j1-tests: New file.
12550         * tests/test-j1.c: New file.
12551
12552         Tests for module 'j0'.
12553         * modules/j0-tests: New file.
12554         * tests/test-j0.c: New file.
12555
12556         Tests for module 'hypot'.
12557         * modules/hypot-tests: New file.
12558         * tests/test-hypot.c: New file.
12559
12560         Tests for module 'fmod'.
12561         * modules/fmod-tests: New file.
12562         * tests/test-fmod.c: New file.
12563
12564         Tests for module 'fabs'.
12565         * modules/fabs-tests: New file.
12566         * tests/test-fabs.c: New file.
12567
12568         Tests for module 'exp'.
12569         * modules/exp-tests: New file.
12570         * tests/test-exp.c: New file.
12571
12572         Tests for module 'erfc'.
12573         * modules/erfc-tests: New file.
12574         * tests/test-erfc.c: New file.
12575
12576         Tests for module 'erf'.
12577         * modules/erf-tests: New file.
12578         * tests/test-erf.c: New file.
12579
12580         Tests for module 'cosh'.
12581         * modules/cosh-tests: New file.
12582         * tests/test-cosh.c: New file.
12583
12584         Tests for module 'cos'.
12585         * modules/cos-tests: New file.
12586         * tests/test-cos.c: New file.
12587
12588         Tests for module 'copysign'.
12589         * modules/copysign-tests: New file.
12590         * tests/test-copysign.c: New file.
12591
12592         Tests for module 'cbrt'.
12593         * modules/cbrt-tests: New file.
12594         * tests/test-cbrt.c: New file.
12595
12596         Tests for module 'atan2'.
12597         * modules/atan2-tests: New file.
12598         * tests/test-atan2.c: New file.
12599
12600         Tests for module 'atan'.
12601         * modules/atan-tests: New file.
12602         * tests/test-atan.c: New file.
12603
12604         Tests for module 'asin'.
12605         * modules/asin-tests: New file.
12606         * tests/test-asin.c: New file.
12607
12608         Tests for module 'acos'.
12609         * modules/acos-tests: New file.
12610         * tests/test-acos.c: New file.
12611
12612 2010-01-24  Bruno Haible  <bruno@clisp.org>
12613
12614         Fix tests for common <math.h> functions.
12615         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12616         code snippet that references the function pointer, rather than merely
12617         calling the function. Substitute the FUNC_LIBM variable.
12618         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12619         * modules/acos (configure.ac): Likewise.
12620         * modules/asin (configure.ac): Likewise.
12621         * modules/atan (configure.ac): Likewise.
12622         * modules/atan2 (configure.ac): Likewise.
12623         * modules/cbrt (configure.ac): Likewise.
12624         * modules/copysign (configure.ac): Likewise.
12625         * modules/cos (configure.ac): Likewise.
12626         * modules/cosh (configure.ac): Likewise.
12627         * modules/erf (configure.ac): Likewise.
12628         * modules/erfc (configure.ac): Likewise.
12629         * modules/exp (configure.ac): Likewise.
12630         * modules/fabs (configure.ac): Likewise.
12631         * modules/fmod (configure.ac): Likewise.
12632         * modules/hypot (configure.ac): Likewise.
12633         * modules/j0 (configure.ac): Likewise.
12634         * modules/j1 (configure.ac): Likewise.
12635         * modules/jn (configure.ac): Likewise.
12636         * modules/ldexp (configure.ac): Likewise.
12637         * modules/lgamma (configure.ac): Likewise.
12638         * modules/log (configure.ac): Likewise.
12639         * modules/log10 (configure.ac): Likewise.
12640         * modules/log1p (configure.ac): Likewise.
12641         * modules/logb (configure.ac): Likewise.
12642         * modules/modf (configure.ac): Likewise.
12643         * modules/nextafter (configure.ac): Likewise.
12644         * modules/pow (configure.ac): Likewise.
12645         * modules/remainder (configure.ac): Likewise.
12646         * modules/rint (configure.ac): Likewise.
12647         * modules/sin (configure.ac): Likewise.
12648         * modules/sinh (configure.ac): Likewise.
12649         * modules/tan (configure.ac): Likewise.
12650         * modules/tanh (configure.ac): Likewise.
12651         * modules/y0 (configure.ac): Likewise.
12652         * modules/y1 (configure.ac): Likewise.
12653         * modules/yn (configure.ac): Likewise.
12654
12655 2010-01-24  Bruno Haible  <bruno@clisp.org>
12656
12657         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12658         * tests/test-acosl.c (x): New variable.
12659         (main): Store argument in x and fetch it from x.
12660         * tests/test-asinl.c (x): New variable.
12661         (main): Store argument in x and fetch it from x.
12662         * tests/test-atanl.c (x): New variable.
12663         (main): Store argument in x and fetch it from x.
12664         * tests/test-cosl.c (x): New variable.
12665         (main): Store argument in x and fetch it from x.
12666         * tests/test-expl.c (x): New variable.
12667         (main): Store argument in x and fetch it from x.
12668         * tests/test-logl.c (x): New variable.
12669         (main): Store argument in x and fetch it from x.
12670         * tests/test-sinl.c (x): New variable.
12671         (main): Store argument in x and fetch it from x.
12672         * tests/test-sqrtl.c (x): New variable.
12673         (main): Store argument in x and fetch it from x.
12674         * tests/test-tanl.c (x): New variable.
12675         (main): Store argument in x and fetch it from x.
12676
12677 2010-01-24  Bruno Haible  <bruno@clisp.org>
12678
12679         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12680         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12681         assignments to the initial TESTS_ENVIRONMENT.
12682         * doc/gnulib.texi (Unit test modules): Document it.
12683         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12684         TESTS_ENVIRONMENT.
12685         * modules/btowc-tests (Makefile.am): Likewise.
12686         * modules/c-stack-tests (Makefile.am): Likewise.
12687         * modules/c-strcase-tests (Makefile.am): Likewise.
12688         * modules/copy-file-tests (Makefile.am): Likewise.
12689         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12690         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12691         * modules/mbrtowc-tests (Makefile.am): Likewise.
12692         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12693         * modules/mbscasestr-tests (Makefile.am): Likewise.
12694         * modules/mbschr-tests (Makefile.am): Likewise.
12695         * modules/mbscspn-tests (Makefile.am): Likewise.
12696         * modules/mbsinit-tests (Makefile.am): Likewise.
12697         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12698         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12699         * modules/mbspbrk-tests (Makefile.am): Likewise.
12700         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12701         * modules/mbsrchr-tests (Makefile.am): Likewise.
12702         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12703         * modules/mbsspn-tests (Makefile.am): Likewise.
12704         * modules/mbsstr-tests (Makefile.am): Likewise.
12705         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12706         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12707         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12708         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12709         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12710         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12711         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12712         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12713         * modules/wcrtomb-tests (Makefile.am): Likewise.
12714         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12715         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12716         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12717         assignments from TESTS_ENVIRONMENT.
12718         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12719         augmentation.
12720         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12721         * modules/atexit-tests (Makefile.am): Likewise.
12722         * modules/binary-io-tests (Makefile.am): Likewise.
12723         * modules/closein-tests (Makefile.am): Likewise.
12724         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12725         * modules/exclude-tests (Makefile.am): Likewise.
12726         * modules/fflush-tests (Makefile.am): Likewise.
12727         * modules/fpending-tests (Makefile.am): Likewise.
12728         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12729         * modules/freadahead-tests (Makefile.am): Likewise.
12730         * modules/freadptr-tests (Makefile.am): Likewise.
12731         * modules/freadseek-tests (Makefile.am): Likewise.
12732         * modules/fseek-tests (Makefile.am): Likewise.
12733         * modules/fseeko-tests (Makefile.am): Likewise.
12734         * modules/ftell-tests (Makefile.am): Likewise.
12735         * modules/ftello-tests (Makefile.am): Likewise.
12736         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12737         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12738         * modules/lseek-tests (Makefile.am): Likewise.
12739         * modules/parse-duration-tests (Makefile.am): Likewise.
12740         * modules/perror-tests (Makefile.am): Likewise.
12741         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12742         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12743         * modules/pipe-tests (Makefile.am): Likewise.
12744         * modules/pread-tests (Makefile.am): Likewise.
12745         * modules/printf-posix-tests (Makefile.am): Likewise.
12746         * modules/select-tests (Makefile.am): Likewise.
12747         * modules/sigpipe-tests (Makefile.am): Likewise.
12748         * modules/tsearch-tests (Makefile.am): Likewise.
12749         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12750         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12751         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12752         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12753         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12754         * modules/version-etc-tests (Makefile.am): Likewise.
12755         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12756         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12757         * modules/xalloc-die-tests (Makefile.am): Likewise.
12758         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12759         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12760         * modules/xstrtol-tests (Makefile.am): Likewise.
12761         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12762         * modules/yesno-tests (Makefile.am): Likewise.
12763         Suggested by Jim Meyering.
12764
12765 2010-01-24  Bruno Haible  <bruno@clisp.org>
12766
12767         More documentation.
12768         * doc/gnulib.texi (Writing modules): New chapter.
12769         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12770         the new chapter.
12771
12772 2010-01-24  Jim Meyering  <meyering@redhat.com>
12773
12774         maint.mk: do not prepend "./" after filtering
12775         * top/maint.mk (_prepend_srcdir_prefix): New variable
12776         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12777         "./" when $(srcdir) is ".".
12778
12779         define STREQ(a,b) consistently, removing useless parentheses
12780         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12781         since the only risk is that "a" or "b" contains an unparenthesized
12782         comma, but if either did that, STREQ would have 3 or more arguments.
12783         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12784         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12785         * lib/hash-triple.c (STREQ): Likewise.
12786         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12787         * lib/getugroups.c (STREQ): Likewise.
12788
12789 2010-01-23  Jim Meyering  <meyering@redhat.com>
12790
12791         maint.mk: fix syntax-check in a non-srcdir build directory
12792         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12793         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12794
12795 2010-01-22  Jim Meyering  <meyering@redhat.com>
12796
12797         userspec: add unit tests
12798         * tests/test-userspec.c: New file.
12799         * modules/userspec-tests: Likewise.
12800
12801 2010-01-21  Jim Meyering  <meyering@redhat.com>
12802
12803         maint.mk: handle source file names containing "." robustly
12804         * top/maint.mk (_dot_escaped_srcdir): Define.
12805         (VC_LIST): Use it in LHS of sed substitution.
12806
12807 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12808
12809         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12810         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12811         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12812         from a non-srcdir build.
12813
12814 2010-01-20  Eric Blake  <ebb9@byu.net>
12815
12816         warn-on-use: use instead of link-warning
12817         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12818         * modules/unistd (Depends-on, Makefile.am): Likewise.
12819         * modules/arpa_inet (Depends-on): Replace link-warning with
12820         warn-on-use.
12821         (Makefile.am): Update rules accordingly.
12822         * modules/ctype (Depends-on, Makefile.am): Likewise.
12823         * modules/dirent (Depends-on, Makefile.am): Likewise.
12824         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12825         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12826         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12827         * modules/locale (Depends-on, Makefile.am): Likewise.
12828         * modules/math (Depends-on, Makefile.am): Likewise.
12829         * modules/search (Depends-on, Makefile.am): Likewise.
12830         * modules/signal (Depends-on, Makefile.am): Likewise.
12831         * modules/spawn (Depends-on, Makefile.am): Likewise.
12832         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12833         * modules/string (Depends-on, Makefile.am): Likewise.
12834         * modules/strings (Depends-on, Makefile.am): Likewise.
12835         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12836         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12837         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12838         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12839         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12840         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12841         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12842         * modules/wchar (Depends-on, Makefile.am): Likewise.
12843         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12844         should be poisoned.
12845         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12846         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12847         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12848         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12849         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12850         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12851         * m4/math_h.m4 (gl_MATH_H): Likewise.
12852         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12853         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12854         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12855         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12856         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12857         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12858         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12859         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12860         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12861         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12862         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12863         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12864         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12865         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12866         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12867         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12868         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12869         GL_LINK_WARNING.
12870         * lib/ctype.in.h: Likewise.
12871         * lib/dirent.in.h: Likewise.
12872         * lib/fcntl.in.h: Likewise.
12873         * lib/inttypes.in.h: Likewise.
12874         * lib/langinfo.in.h: Likewise.
12875         * lib/locale.in.h: Likewise.
12876         * lib/math.in.h: Likewise.
12877         * lib/search.in.h: Likewise.
12878         * lib/signal.in.h: Likewise.
12879         * lib/spawn.in.h: Likewise.
12880         * lib/stdio.in.h: Likewise.
12881         * lib/stdlib.in.h: Likewise.
12882         * lib/string.in.h: Likewise.
12883         * lib/strings.in.h: Likewise.
12884         * lib/sys_file.in.h: Likewise.
12885         * lib/sys_ioctl.in.h: Likewise.
12886         * lib/sys_select.in.h: Likewise.
12887         * lib/sys_socket.in.h: Likewise.
12888         * lib/sys_stat.in.h: Likewise.
12889         * lib/sys_times.in.h: Likewise.
12890         * lib/sys_utsname.in.h: Likewise.
12891         * lib/unistd.in.h: Likewise.
12892         * lib/wchar.in.h: Likewise.
12893
12894 2010-01-20  Bruno Haible  <bruno@clisp.org>
12895
12896         Avoid duplicate -lm.
12897         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12898         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12899         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12900         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12901         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12902         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12903         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12904         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12905         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12906         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12907         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12908         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12909         Reported by Paolo Bonzini.
12910
12911 2010-01-19  Bruno Haible  <bruno@clisp.org>
12912
12913         langinfo, nl_langinfo: Relicense under LGPLv2+.
12914         * modules/langinfo (License): Change to LGPLv2+.
12915         * modules/nl_langinfo (License): Likewise.
12916         Patch by David Lutterkort <lutter@redhat.com>.
12917
12918 2010-01-19  Bruno Haible  <bruno@clisp.org>
12919
12920         Avoid compilation error with cc on OSF/1 5.1.
12921         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12922         statement, not before.
12923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12924
12925 2010-01-18  Bruno Haible  <bruno@clisp.org>
12926
12927         Avoid a link error due to the __printf__ symbol.
12928         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12929         and 2.6.x.
12930         (__format__, __printf__): Remove definitions.
12931         * lib/argp-fmtstream.h: Likewise.
12932         * lib/argp.h: Likewise.
12933         * lib/error.h: Likewise.
12934         * lib/vasnprintf.h: Likewise.
12935         * lib/xprintf.h: Likewise.
12936         * lib/xvasprintf.h: Likewise.
12937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12938
12939 2010-01-18  Bruno Haible  <bruno@clisp.org>
12940
12941         Tests for module 'tanl'.
12942         * modules/tanl-tests: New file.
12943         * tests/test-tanl.c: New file.
12944
12945         Tests for module 'sqrtl'.
12946         * modules/sqrtl-tests: New file.
12947         * tests/test-sqrtl.c: New file.
12948
12949         Tests for module 'sinl'.
12950         * modules/sinl-tests: New file.
12951         * tests/test-sinl.c: New file.
12952
12953         Tests for module 'logl'.
12954         * modules/logl-tests: New file.
12955         * tests/test-logl.c: New file.
12956
12957         Tests for module 'expl'.
12958         * modules/expl-tests: New file.
12959         * tests/test-expl.c: New file.
12960
12961         Tests for module 'cosl'.
12962         * modules/cosl-tests: New file.
12963         * tests/test-cosl.c: New file.
12964
12965         Tests for module 'atanl'.
12966         * modules/atanl-tests: New file.
12967         * tests/test-atanl.c: New file.
12968
12969         Tests for module 'asinl'.
12970         * modules/asinl-tests: New file.
12971         * tests/test-asinl.c: New file.
12972
12973         Tests for module 'acosl'.
12974         * modules/acosl-tests: New file.
12975         * tests/test-acosl.c: New file.
12976
12977         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12978         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12979         tanl): Use the standard gnulib idiom.
12980         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12981         * lib/sinl.c: Likewise.
12982         * lib/tanl.c: Don't include trigl.c.
12983         (kernel_tanl): Make static.
12984         * lib/sincosl.c: Include trigl.h first.
12985         * lib/trigl.c: Likewise.
12986         * m4/acosl.m4: New file.
12987         * m4/asinl.m4: New file.
12988         * m4/atanl.m4: New file.
12989         * m4/cosl.m4: New file.
12990         * m4/expl.m4: New file.
12991         * m4/logl.m4: New file.
12992         * m4/sinl.m4: New file.
12993         * m4/sqrtl.m4: New file.
12994         * m4/tanl.m4: New file.
12995         * m4/mathl.m4: Remove file.
12996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12997         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12998         Don't initialize GNULIB_MATHL.
12999         * modules/acosl: New file.
13000         * modules/asinl: New file.
13001         * modules/atanl: New file.
13002         * modules/cosl: New file.
13003         * modules/expl: New file.
13004         * modules/logl: New file.
13005         * modules/sinl: New file.
13006         * modules/sqrtl: New file.
13007         * modules/tanl: New file.
13008         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
13009         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
13010         substitute GNULIB_MATHL.
13011         * modules/mathl: Rewritten.
13012         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
13013         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
13014         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
13015         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
13016         * doc/posix-functions/expl.texi: Mention the 'expl' module.
13017         * doc/posix-functions/logl.texi: Mention the 'logl' module.
13018         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
13019         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
13020         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
13021
13022 2010-01-18  Bruno Haible  <bruno@clisp.org>
13023
13024         sqrt: Make gl_FUNC_SQRT requirable.
13025         * m4/sqrt.m4: New file.
13026         * modules/sqrt (Files): Add it.
13027         (configure.ac): Invoke gl_FUNC_SQRT.
13028
13029 2010-01-18  Bruno Haible  <bruno@clisp.org>
13030
13031         New modules for common <math.h> functions.
13032         * m4/mathfunc.m4: New file.
13033         * modules/acos: New file.
13034         * modules/asin: New file.
13035         * modules/atan: New file.
13036         * modules/atan2: New file.
13037         * modules/cbrt: New file.
13038         * modules/copysign: New file.
13039         * modules/cos: New file.
13040         * modules/cosh: New file.
13041         * modules/erf: New file.
13042         * modules/erfc: New file.
13043         * modules/exp: New file.
13044         * modules/fabs: New file.
13045         * modules/fmod: New file.
13046         * modules/hypot: New file.
13047         * modules/j0: New file.
13048         * modules/j1: New file.
13049         * modules/jn: New file.
13050         * modules/ldexp: New file.
13051         * modules/lgamma: New file.
13052         * modules/log: New file.
13053         * modules/log10: New file.
13054         * modules/log1p: New file.
13055         * modules/logb: New file.
13056         * modules/modf: New file.
13057         * modules/nextafter: New file.
13058         * modules/pow: New file.
13059         * modules/remainder: New file.
13060         * modules/rint: New file.
13061         * modules/sin: New file.
13062         * modules/sinh: New file.
13063         * modules/sqrt: New file.
13064         * modules/tan: New file.
13065         * modules/tanh: New file.
13066         * modules/y0: New file.
13067         * modules/y1: New file.
13068         * modules/yn: New file.
13069         * doc/posix-functions/acos.texi: Mention the 'acos' module.
13070         * doc/posix-functions/asin.texi: Mention the 'asin' module.
13071         * doc/posix-functions/atan.texi: Mention the 'atan' module.
13072         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
13073         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
13074         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
13075         * doc/posix-functions/cos.texi: Mention the 'cos' module.
13076         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
13077         * doc/posix-functions/erf.texi: Mention the 'erf' module.
13078         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
13079         * doc/posix-functions/exp.texi: Mention the 'exp' module.
13080         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
13081         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
13082         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
13083         * doc/posix-functions/j0.texi: Mention the 'j0' module.
13084         * doc/posix-functions/j1.texi: Mention the 'j1' module.
13085         * doc/posix-functions/jn.texi: Mention the 'jn' module.
13086         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
13087         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
13088         * doc/posix-functions/log.texi: Mention the 'log' module.
13089         * doc/posix-functions/log10.texi: Mention the 'log10' module.
13090         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
13091         * doc/posix-functions/logb.texi: Mention the 'logb' module.
13092         * doc/posix-functions/modf.texi: Mention the 'modf' module.
13093         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
13094         * doc/posix-functions/pow.texi: Mention the 'pow' module.
13095         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
13096         * doc/posix-functions/rint.texi: Mention the 'rint' module.
13097         * doc/posix-functions/sin.texi: Mention the 'sin' module.
13098         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
13099         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
13100         * doc/posix-functions/tan.texi: Mention the 'tan' module.
13101         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
13102         * doc/posix-functions/y0.texi: Mention the 'y0' module.
13103         * doc/posix-functions/y1.texi: Mention the 'y1' module.
13104         * doc/posix-functions/yn.texi: Mention the 'yn' module.
13105
13106 2010-01-18  Jim Meyering  <meyering@redhat.com>
13107
13108         ignore-value: relax license to LGPLv2+
13109         * modules/ignore-value (License): Relax to LGPLv2+.
13110
13111         getdate: don't leak when TZ contains two or more '"'s
13112         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
13113         double quote in TZ after the first one.
13114
13115         readtokens: do not leak internal token_lengths buffer
13116         * lib/readtokens.c (readtokens): Free the local, lengths,
13117         when the supplied "token_lengths" parameter is NULL.
13118
13119 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13120
13121         Fix a couple of missing LIBTHREAD link failures on AIX.
13122         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
13123         $(LIBTHREAD).
13124         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
13125
13126         Link test-poll against INET_PTON_LIB.
13127         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
13128         for inet_pton on Solaris 10.
13129
13130 2010-01-17  Bruno Haible  <bruno@clisp.org>
13131
13132         unistdio/*-sprintf: Fix typo in module description.
13133         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
13134         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
13135         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
13136         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
13137         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
13138         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
13139         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
13140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13141
13142 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13143
13144         gnulib-tool: fix filelist for AIX, HP-UX ksh.
13145         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
13146         variables in shell case patterns, for AIX and HP-UX ksh.
13147
13148         Split large sed scripts, for HP-UX sed.
13149         * modules/stdio: Split sed scripts around 50 sed commands,
13150         to avoid HP-UX limit of 99 commands, in the near future.
13151         * modules/string: Likewise.
13152         * modules/unistd: Likewise.
13153
13154         gnulib-tool: avoid writing in the current directory.
13155         * gnulib-tool (func_emit_lib_Makefile_am)
13156         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
13157         not in the current directory, so concurrent gnulib-tool
13158         instances do not interfere.
13159
13160 2010-01-16  Jim Meyering  <meyering@redhat.com>
13161
13162         doc: update users.txt
13163         * users.txt: Add grep.
13164         (diffutils, gzip): Update URLs.
13165
13166 2010-01-12  Bruno Haible  <bruno@clisp.org>
13167
13168         posix_spawn: Avoid test failure on Cygwin.
13169         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
13170         characters.
13171         Reported by Simon Josefsson.
13172
13173 2010-01-12  Bruno Haible  <bruno@clisp.org>
13174
13175         * tests/test-cond.c (main): When skipping the test, show the reason.
13176
13177 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13178
13179         * lib/striconv.c (str_cd_iconv): Avoid if before free.
13180
13181 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13182
13183         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
13184         VC_LIST_ALWAYS_EXCLUDE_REGEX.
13185
13186 2010-01-12  Eric Blake  <ebb9@byu.net>
13187
13188         build: guarantee AS_VAR_IF
13189         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
13190         (gl_AS_VAR_IF): Move...
13191         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
13192         Reported by Simon Josefsson.
13193
13194 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13195
13196         * lib/stdio.in.h: Fix typo.
13197
13198 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13199
13200         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
13201         libgpg-error.
13202
13203 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13204
13205         * tests/test-xalloc-die.sh: Use $EXEEXT.
13206
13207 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13208             Bruno Haible  <bruno@clisp.org>
13209
13210         getlogin, getlogin_r: Avoid test failure.
13211         * tests/test-getlogin.c: Include <stdio.h>.
13212         (main): Skip the test when the function fails because stdin is not a
13213         tty.
13214         * tests/test-getlogin_r.c: Include <stdio.h>.
13215         (main): Skip the test when the function fails because stdin is not a
13216         tty.
13217
13218 2010-01-11  Eric Blake  <ebb9@byu.net>
13219
13220         tests: avoid more large file warnings
13221         * tests/test-fflush.c: Avoid warning about ftell use.
13222         * tests/test-fseek.c: Avoid warning about fseek use.
13223
13224 2010-01-10  Bruno Haible  <bruno@clisp.org>
13225
13226         nproc: Work better on Linux when /proc and /sys are not mounted.
13227         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
13228         as lower bound when, on glibc/Linux systems,
13229         sysconf (_SC_NPROCESSORS_CONF) returns 1.
13230         Suggested by Pádraig Brady <P@draigbrady.com>.
13231         Reported by Dmitry V. Levin <ldv@altlinux.org>.
13232
13233         nproc: Refactor.
13234         * lib/nproc.c (num_processors_via_affinity_mask): New function,
13235         extracted from num_processors.
13236         (num_processors): Call it.
13237
13238 2010-01-11  Jim Meyering  <meyering@redhat.com>
13239
13240         utimecmp: avoid new warning from upcoming gcc-4.5.0
13241         * lib/utimecmp.c (BILLION): Define using #define rather than an
13242         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
13243
13244 2010-01-11  Eric Blake  <ebb9@byu.net>
13245
13246         math: add portability warnings for classification macros
13247         * modules/math (Depends-on): Add warn-on-use.
13248         (Makefile.am): Provide new substitutions.
13249         * m4/math_h.m4 (gl_MATH_H): Require inline.
13250         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
13251         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
13252         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
13253         implement warnings.
13254
13255         unistd: warn on use of environ without module
13256         * modules/unistd (Depends-on): Add warn-on-use.
13257         (Makefile.am): Provide new substitutions.
13258         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
13259         * lib/unistd.in.h (environ): Wrap with a warning helper function.
13260
13261         stdio: warn on suspicious uses
13262         * modules/stdio (Depends-on): Add warn-on-use.
13263         (Makefile.am): Provide new substitutions.
13264         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
13265         fseeko.
13266         * lib/stdio.in.h (gets): Always warn on use.
13267         (fseek, ftell): Adjust when warnings are issued, and honor
13268         _GL_NO_LARGE_FILES as a way to silence the warning.
13269         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
13270         any warning about large file offsets.
13271         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
13272         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
13273         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
13274         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
13275         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
13276         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
13277         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
13278         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
13279
13280         warn-on-use: new module
13281         * modules/warn-on-use: New file.
13282         * build-aux/warn-on-use.h: Likewise.
13283         * m4/warn-on-use.m4: Likewise.
13284         * MODULES.html.sh (Support for building): Mention it.
13285
13286 2010-01-10  Bruno Haible  <bruno@clisp.org>
13287
13288         Tests for module 'unistr/u32-strdup'.
13289         * modules/unistr/u32-strdup-tests: New file.
13290         * tests/unistr/test-u32-strdup.c: New file.
13291
13292         Tests for module 'unistr/u16-strdup'.
13293         * modules/unistr/u16-strdup-tests: New file.
13294         * tests/unistr/test-u16-strdup.c: New file.
13295
13296         Tests for module 'unistr/u8-strdup'.
13297         * modules/unistr/u8-strdup-tests: New file.
13298         * tests/unistr/test-u8-strdup.c: New file.
13299         * tests/unistr/test-strdup.h: New file.
13300
13301         Tests for module 'unistr/u32-strncmp'.
13302         * modules/unistr/u32-strncmp-tests: New file.
13303         * tests/unistr/test-u32-strncmp.c: New file.
13304
13305         Tests for module 'unistr/u16-strncmp'.
13306         * modules/unistr/u16-strncmp-tests: New file.
13307         * tests/unistr/test-u16-strncmp.c: New file.
13308
13309         Tests for module 'unistr/u8-strncmp'.
13310         * modules/unistr/u8-strncmp-tests: New file.
13311         * tests/unistr/test-u8-strncmp.c: New file.
13312         * tests/unistr/test-strncmp.h: New file.
13313
13314         Tests for module 'unistr/u32-strcoll'.
13315         * modules/unistr/u32-strcoll-tests: New file.
13316         * tests/unistr/test-u32-strcoll.c: New file.
13317
13318         Tests for module 'unistr/u16-strcoll'.
13319         * modules/unistr/u16-strcoll-tests: New file.
13320         * tests/unistr/test-u16-strcoll.c: New file.
13321
13322         Tests for module 'unistr/u8-strcoll'.
13323         * modules/unistr/u8-strcoll-tests: New file.
13324         * tests/unistr/test-u8-strcoll.c: New file.
13325
13326         Tests for module 'unistr/u32-strcmp'.
13327         * modules/unistr/u32-strcmp-tests: New file.
13328         * tests/unistr/test-u32-strcmp.c: New file.
13329         * tests/unistr/test-u32-strcmp.h: New file.
13330
13331         Tests for module 'unistr/u16-strcmp'.
13332         * modules/unistr/u16-strcmp-tests: New file.
13333         * tests/unistr/test-u16-strcmp.c: New file.
13334         * tests/unistr/test-u16-strcmp.h: New file.
13335
13336         Tests for module 'unistr/u8-strcmp'.
13337         * modules/unistr/u8-strcmp-tests: New file.
13338         * tests/unistr/test-u8-strcmp.c: New file.
13339         * tests/unistr/test-u8-strcmp.h: New file.
13340         * tests/unistr/test-strcmp.h: New file.
13341
13342         Tests for module 'unistr/u32-strncat'.
13343         * modules/unistr/u32-strncat-tests: New file.
13344         * tests/unistr/test-u32-strncat.c: New file.
13345
13346         Tests for module 'unistr/u16-strncat'.
13347         * modules/unistr/u16-strncat-tests: New file.
13348         * tests/unistr/test-u16-strncat.c: New file.
13349
13350         Tests for module 'unistr/u8-strncat'.
13351         * modules/unistr/u8-strncat-tests: New file.
13352         * tests/unistr/test-u8-strncat.c: New file.
13353         * tests/unistr/test-strncat.h: New file.
13354
13355         Tests for module 'unistr/u32-strcat'.
13356         * modules/unistr/u32-strcat-tests: New file.
13357         * tests/unistr/test-u32-strcat.c: New file.
13358
13359         Tests for module 'unistr/u16-strcat'.
13360         * modules/unistr/u16-strcat-tests: New file.
13361         * tests/unistr/test-u16-strcat.c: New file.
13362
13363         Tests for module 'unistr/u8-strcat'.
13364         * modules/unistr/u8-strcat-tests: New file.
13365         * tests/unistr/test-u8-strcat.c: New file.
13366         * tests/unistr/test-strcat.h: New file.
13367
13368         Tests for module 'unistr/u32-stpncpy'.
13369         * modules/unistr/u32-stpncpy-tests: New file.
13370         * tests/unistr/test-u32-stpncpy.c: New file.
13371
13372         Tests for module 'unistr/u16-stpncpy'.
13373         * modules/unistr/u16-stpncpy-tests: New file.
13374         * tests/unistr/test-u16-stpncpy.c: New file.
13375
13376         Tests for module 'unistr/u8-stpncpy'.
13377         * modules/unistr/u8-stpncpy-tests: New file.
13378         * tests/unistr/test-u8-stpncpy.c: New file.
13379         * tests/unistr/test-stpncpy.h: New file.
13380
13381         Tests for module 'unistr/u32-strncpy'.
13382         * modules/unistr/u32-strncpy-tests: New file.
13383         * tests/unistr/test-u32-strncpy.c: New file.
13384
13385         Tests for module 'unistr/u16-strncpy'.
13386         * modules/unistr/u16-strncpy-tests: New file.
13387         * tests/unistr/test-u16-strncpy.c: New file.
13388
13389         Tests for module 'unistr/u8-strncpy'.
13390         * modules/unistr/u8-strncpy-tests: New file.
13391         * tests/unistr/test-u8-strncpy.c: New file.
13392         * tests/unistr/test-strncpy.h: New file.
13393
13394         Tests for module 'unistr/u32-stpcpy'.
13395         * modules/unistr/u32-stpcpy-tests: New file.
13396         * tests/unistr/test-u32-stpcpy.c: New file.
13397
13398         Tests for module 'unistr/u16-stpcpy'.
13399         * modules/unistr/u16-stpcpy-tests: New file.
13400         * tests/unistr/test-u16-stpcpy.c: New file.
13401
13402         Tests for module 'unistr/u8-stpcpy'.
13403         * modules/unistr/u8-stpcpy-tests: New file.
13404         * tests/unistr/test-u8-stpcpy.c: New file.
13405         * tests/unistr/test-stpcpy.h: New file.
13406
13407         Tests for module 'unistr/u32-strcpy'.
13408         * modules/unistr/u32-strcpy-tests: New file.
13409         * tests/unistr/test-u32-strcpy.c: New file.
13410
13411         Tests for module 'unistr/u16-strcpy'.
13412         * modules/unistr/u16-strcpy-tests: New file.
13413         * tests/unistr/test-u16-strcpy.c: New file.
13414
13415         Tests for module 'unistr/u8-strcpy'.
13416         * modules/unistr/u8-strcpy-tests: New file.
13417         * tests/unistr/test-u8-strcpy.c: New file.
13418         * tests/unistr/test-strcpy.h: New file.
13419
13420         Tests for module 'unistr/u32-strnlen'.
13421         * modules/unistr/u32-strnlen-tests: New file.
13422         * tests/unistr/test-u32-strnlen.c: New file.
13423
13424         Tests for module 'unistr/u16-strnlen'.
13425         * modules/unistr/u16-strnlen-tests: New file.
13426         * tests/unistr/test-u16-strnlen.c: New file.
13427
13428         Tests for module 'unistr/u8-strnlen'.
13429         * modules/unistr/u8-strnlen-tests: New file.
13430         * tests/unistr/test-u8-strnlen.c: New file.
13431         * tests/unistr/test-strnlen.h: New file.
13432
13433         Tests for module 'unistr/u32-strlen'.
13434         * modules/unistr/u32-strlen-tests: New file.
13435         * tests/unistr/test-u32-strlen.c: New file.
13436
13437         Tests for module 'unistr/u16-strlen'.
13438         * modules/unistr/u16-strlen-tests: New file.
13439         * tests/unistr/test-u16-strlen.c: New file.
13440
13441         Tests for module 'unistr/u8-strlen'.
13442         * modules/unistr/u8-strlen-tests: New file.
13443         * tests/unistr/test-u8-strlen.c: New file.
13444
13445         Tests for module 'unistr/u32-prev'.
13446         * modules/unistr/u32-prev-tests: New file.
13447         * tests/unistr/test-u32-prev.c: New file.
13448
13449         Tests for module 'unistr/u16-prev'.
13450         * modules/unistr/u16-prev-tests: New file.
13451         * tests/unistr/test-u16-prev.c: New file.
13452
13453         Tests for module 'unistr/u8-prev'.
13454         * modules/unistr/u8-prev-tests: New file.
13455         * tests/unistr/test-u8-prev.c: New file.
13456
13457         Tests for module 'unistr/u32-next'.
13458         * modules/unistr/u32-next-tests: New file.
13459         * tests/unistr/test-u32-next.c: New file.
13460
13461         Tests for module 'unistr/u16-next'.
13462         * modules/unistr/u16-next-tests: New file.
13463         * tests/unistr/test-u16-next.c: New file.
13464
13465         Tests for module 'unistr/u8-next'.
13466         * modules/unistr/u8-next-tests: New file.
13467         * tests/unistr/test-u8-next.c: New file.
13468
13469         Tests for module 'unistr/u32-strmbtouc'.
13470         * modules/unistr/u32-strmbtouc-tests: New file.
13471         * tests/unistr/test-u32-strmbtouc.c: New file.
13472
13473         Tests for module 'unistr/u16-strmbtouc'.
13474         * modules/unistr/u16-strmbtouc-tests: New file.
13475         * tests/unistr/test-u16-strmbtouc.c: New file.
13476
13477         Tests for module 'unistr/u8-strmbtouc'.
13478         * modules/unistr/u8-strmbtouc-tests: New file.
13479         * tests/unistr/test-u8-strmbtouc.c: New file.
13480
13481         Tests for module 'unistr/u32-strmblen'.
13482         * modules/unistr/u32-strmblen-tests: New file.
13483         * tests/unistr/test-u32-strmblen.c: New file.
13484
13485         Tests for module 'unistr/u16-strmblen'.
13486         * modules/unistr/u16-strmblen-tests: New file.
13487         * tests/unistr/test-u16-strmblen.c: New file.
13488
13489         Tests for module 'unistr/u8-strmblen'.
13490         * modules/unistr/u8-strmblen-tests: New file.
13491         * tests/unistr/test-u8-strmblen.c: New file.
13492
13493         Tests for module 'unistr/u32-cpy-alloc'.
13494         * modules/unistr/u32-cpy-alloc-tests: New file.
13495         * tests/unistr/test-u32-cpy-alloc.c: New file.
13496
13497         Tests for module 'unistr/u16-cpy-alloc'.
13498         * modules/unistr/u16-cpy-alloc-tests: New file.
13499         * tests/unistr/test-u16-cpy-alloc.c: New file.
13500
13501         Tests for module 'unistr/u8-cpy-alloc'.
13502         * modules/unistr/u8-cpy-alloc-tests: New file.
13503         * tests/unistr/test-u8-cpy-alloc.c: New file.
13504         * tests/unistr/test-cpy-alloc.h: New file.
13505
13506         Tests for module 'unistr/u32-mbsnlen'.
13507         * modules/unistr/u32-mbsnlen-tests: New file.
13508         * tests/unistr/test-u32-mbsnlen.c: New file.
13509
13510         Tests for module 'unistr/u16-mbsnlen'.
13511         * modules/unistr/u16-mbsnlen-tests: New file.
13512         * tests/unistr/test-u16-mbsnlen.c: New file.
13513
13514         Tests for module 'unistr/u8-mbsnlen'.
13515         * modules/unistr/u8-mbsnlen-tests: New file.
13516         * tests/unistr/test-u8-mbsnlen.c: New file.
13517
13518         Tests for module 'unistr/u32-chr'.
13519         * modules/unistr/u32-chr-tests: New file.
13520         * tests/unistr/test-u32-chr.c: New file.
13521
13522         Tests for module 'unistr/u16-chr'.
13523         * modules/unistr/u16-chr-tests: New file.
13524         * tests/unistr/test-u16-chr.c: New file.
13525
13526         Tests for module 'unistr/u8-chr'.
13527         * modules/unistr/u8-chr-tests: New file.
13528         * tests/unistr/test-u8-chr.c: New file.
13529         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13530
13531         Tests for module 'unistr/u32-cmp2'.
13532         * modules/unistr/u32-cmp2-tests: New file.
13533         * tests/unistr/test-u32-cmp2.c: New file.
13534
13535         Tests for module 'unistr/u16-cmp2'.
13536         * modules/unistr/u16-cmp2-tests: New file.
13537         * tests/unistr/test-u16-cmp2.c: New file.
13538
13539         Tests for module 'unistr/u8-cmp2'.
13540         * modules/unistr/u8-cmp2-tests: New file.
13541         * tests/unistr/test-u8-cmp2.c: New file.
13542         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13543
13544         Tests for module 'unistr/u32-cmp'.
13545         * modules/unistr/u32-cmp-tests: New file.
13546         * tests/unistr/test-u32-cmp.c: New file.
13547
13548         Tests for module 'unistr/u16-cmp'.
13549         * modules/unistr/u16-cmp-tests: New file.
13550         * tests/unistr/test-u16-cmp.c: New file.
13551
13552         Tests for module 'unistr/u8-cmp'.
13553         * modules/unistr/u8-cmp-tests: New file.
13554         * tests/unistr/test-u8-cmp.c: New file.
13555         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13556
13557         Tests for module 'unistr/u32-set'.
13558         * modules/unistr/u32-set-tests: New file.
13559         * tests/unistr/test-u32-set.c: New file.
13560
13561         Tests for module 'unistr/u16-set'.
13562         * modules/unistr/u16-set-tests: New file.
13563         * tests/unistr/test-u16-set.c: New file.
13564
13565         Tests for module 'unistr/u8-set'.
13566         * modules/unistr/u8-set-tests: New file.
13567         * tests/unistr/test-u8-set.c: New file.
13568         * tests/unistr/test-set.h: New file.
13569
13570         Tests for module 'unistr/u32-move'.
13571         * modules/unistr/u32-move-tests: New file.
13572         * tests/unistr/test-u32-move.c: New file.
13573
13574         Tests for module 'unistr/u16-move'.
13575         * modules/unistr/u16-move-tests: New file.
13576         * tests/unistr/test-u16-move.c: New file.
13577
13578         Tests for module 'unistr/u8-move'.
13579         * modules/unistr/u8-move-tests: New file.
13580         * tests/unistr/test-u8-move.c: New file.
13581         * tests/unistr/test-move.h: New file.
13582
13583         Tests for module 'unistr/u32-cpy'.
13584         * modules/unistr/u32-cpy-tests: New file.
13585         * tests/unistr/test-u32-cpy.c: New file.
13586
13587         Tests for module 'unistr/u16-cpy'.
13588         * modules/unistr/u16-cpy-tests: New file.
13589         * tests/unistr/test-u16-cpy.c: New file.
13590
13591         Tests for module 'unistr/u8-cpy'.
13592         * modules/unistr/u8-cpy-tests: New file.
13593         * tests/unistr/test-u8-cpy.c: New file.
13594         * tests/unistr/test-cpy.h: New file.
13595
13596 2010-01-09  Bruno Haible  <bruno@clisp.org>
13597
13598         Tests for module 'unistr/u32-uctomb'.
13599         * modules/unistr/u32-uctomb-tests: New file.
13600         * tests/unistr/test-u32-uctomb.c: New file.
13601
13602         Tests for module 'unistr/u16-uctomb'.
13603         * modules/unistr/u16-uctomb-tests: New file.
13604         * tests/unistr/test-u16-uctomb.c: New file.
13605
13606         Tests for module 'unistr/u8-uctomb'.
13607         * modules/unistr/u8-uctomb-tests: New file.
13608         * tests/unistr/test-u8-uctomb.c: New file.
13609
13610         Tests for module 'unistr/u32-mbtoucr'.
13611         * modules/unistr/u32-mbtoucr-tests: New file.
13612         * tests/unistr/test-u32-mbtoucr.c: New file.
13613
13614         Tests for module 'unistr/u16-mbtoucr'.
13615         * modules/unistr/u16-mbtoucr-tests: New file.
13616         * tests/unistr/test-u16-mbtoucr.c: New file.
13617
13618         Tests for module 'unistr/u8-mbtoucr'.
13619         * modules/unistr/u8-mbtoucr-tests: New file.
13620         * tests/unistr/test-u8-mbtoucr.c: New file.
13621
13622         Tests for module 'unistr/u32-mbtouc'.
13623         * modules/unistr/u32-mbtouc-tests: New file.
13624         * tests/unistr/test-u32-mbtouc.c: New file.
13625
13626         Tests for module 'unistr/u16-mbtouc'.
13627         * modules/unistr/u16-mbtouc-tests: New file.
13628         * tests/unistr/test-u16-mbtouc.c: New file.
13629
13630         Tests for module 'unistr/u8-mbtouc'.
13631         * modules/unistr/u8-mbtouc-tests: New file.
13632         * tests/unistr/test-u8-mbtouc.c: New file.
13633
13634         Tests for module 'unistr/u32-mbtouc-unsafe'.
13635         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13636         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13637         * tests/unistr/test-u32-mbtouc.h: New file.
13638
13639         Tests for module 'unistr/u16-mbtouc-unsafe'.
13640         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13641         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13642         * tests/unistr/test-u16-mbtouc.h: New file.
13643
13644         Tests for module 'unistr/u8-mbtouc-unsafe'.
13645         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13646         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13647         * tests/unistr/test-u8-mbtouc.h: New file.
13648
13649         Tests for module 'unistr/u32-mblen'.
13650         * modules/unistr/u32-mblen-tests: New file.
13651         * tests/unistr/test-u32-mblen.c: New file.
13652
13653         Tests for module 'unistr/u16-mblen'.
13654         * modules/unistr/u16-mblen-tests: New file.
13655         * tests/unistr/test-u16-mblen.c: New file.
13656
13657         Tests for module 'unistr/u8-mblen'.
13658         * modules/unistr/u8-mblen-tests: New file.
13659         * tests/unistr/test-u8-mblen.c: New file.
13660
13661         Tests for module 'unistr/u32-to-u16'.
13662         * modules/unistr/u32-to-u16-tests: New file.
13663         * tests/unistr/test-u32-to-u16.c: New file.
13664
13665         Tests for module 'unistr/u32-to-u8'.
13666         * modules/unistr/u32-to-u8-tests: New file.
13667         * tests/unistr/test-u32-to-u8.c: New file.
13668
13669         Tests for module 'unistr/u16-to-u32'.
13670         * modules/unistr/u16-to-u32-tests: New file.
13671         * tests/unistr/test-u16-to-u32.c: New file.
13672
13673         Tests for module 'unistr/u16-to-u8'.
13674         * modules/unistr/u16-to-u8-tests: New file.
13675         * tests/unistr/test-u16-to-u8.c: New file.
13676
13677         Tests for module 'unistr/u8-to-u32'.
13678         * modules/unistr/u8-to-u32-tests: New file.
13679         * tests/unistr/test-u8-to-u32.c: New file.
13680
13681         Tests for module 'unistr/u8-to-u16'.
13682         * modules/unistr/u8-to-u16-tests: New file.
13683         * tests/unistr/test-u8-to-u16.c: New file.
13684
13685         Tests for module 'unistr/u32-check'.
13686         * modules/unistr/u32-check-tests: New file.
13687         * tests/unistr/test-u32-check.c: New file.
13688
13689         Tests for module 'unistr/u16-check'.
13690         * modules/unistr/u16-check-tests: New file.
13691         * tests/unistr/test-u16-check.c: New file.
13692
13693         Tests for module 'unistr/u8-check'.
13694         * modules/unistr/u8-check-tests: New file.
13695         * tests/unistr/test-u8-check.c: New file.
13696
13697         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13698         (category_equals): New function.
13699         (main): Add more tests.
13700         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13701
13702         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13703
13704 2010-01-10  Bruno Haible  <bruno@clisp.org>
13705
13706         unistr/u*-strcoll: Try harder to distinguish different strings.
13707         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13708         compare s1 and s2 to see if they are different.
13709
13710 2010-01-10  Bruno Haible  <bruno@clisp.org>
13711
13712         unistr/u*-stpncpy: Fix the return value.
13713         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13714         description of the return value consistent with stpncpy in glibc.
13715         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13716         written non-NUL unit.
13717
13718 2010-01-10  Bruno Haible  <bruno@clisp.org>
13719
13720         unistr/u*-next: Add missing dependencies.
13721         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13722         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13723         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13724
13725 2010-01-10  Bruno Haible  <bruno@clisp.org>
13726
13727         unistr/u8-mbsnlen: Fix return value for incomplete character.
13728         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13729         u8_mblen.
13730         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13731         Remove unistr/u8-mblen.
13732         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13733         u16_mblen.
13734         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13735         Remove unistr/u16-mblen.
13736
13737 2010-01-10  Bruno Haible  <bruno@clisp.org>
13738
13739         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13740         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13741         Reported by Brian Gough <bjg@gnu.org> and
13742         Chris Clayton <chris2553@googlemail.com> via
13743         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13744
13745 2010-01-09  Bruno Haible  <bruno@clisp.org>
13746
13747         unistr/u16-to-u32: Reject invalid input.
13748         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13749         u16_mbtouc.
13750         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13751         Remove unistr/u16-mbtouc.
13752
13753         unistr/u16-to-u8: Reject invalid input.
13754         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13755         u16_mbtouc.
13756         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13757         Remove unistr/u16-mbtouc.
13758
13759         unistr/u8-to-u32: Reject invalid input.
13760         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13761         u8_mbtouc.
13762         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13763         Remove unistr/u8-mbtouc.
13764
13765         unistr/u8-to-u16: Reject invalid input.
13766         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13767         u8_mbtouc.
13768         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13769         Remove unistr/u8-mbtouc.
13770
13771 2010-01-09  Bruno Haible  <bruno@clisp.org>
13772
13773         Tests for module 'getlogin'.
13774         * modules/getlogin-tests: New file.
13775         * tests/test-getlogin.c: New file.
13776
13777         New module 'getlogin'.
13778         * lib/unistd.in.h (getlogin): New declaration.
13779         * lib/getlogin.c: New file.
13780         * m4/getlogin.m4: New file.
13781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13782         HAVE_GETLOGIN.
13783         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13784         HAVE_GETLOGIN.
13785         * modules/getlogin: New file.
13786         * doc/posix-functions/getlogin.texi: Mention the new module.
13787         Reported by John W. Eaton <jwe@gnu.org>.
13788
13789 2010-01-09  Bruno Haible  <bruno@clisp.org>
13790
13791         getlogin_r: Support for native Windows.
13792         * lib/getlogin_r.c: Include <windows.h>
13793         (getlogin_r): Implement for native Windows.
13794         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13795         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13796         via John W. Eaton <jwe@gnu.org>.
13797
13798 2010-01-09  Bruno Haible  <bruno@clisp.org>
13799
13800         getlogin_r: Small fixes.
13801         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13802         succeeds.
13803         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13804         before testing whether getlogin_r is declared. No need to set
13805         HAVE_DECL_GETLOGIN_R to 1.
13806         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13807
13808 2010-01-09  Bruno Haible  <bruno@clisp.org>
13809
13810         * lib/unistd.in.h (getlogin_r): Add comment.
13811
13812 2010-01-09  Bruno Haible  <bruno@clisp.org>
13813
13814         Tests for module 'getlogin_r'.
13815         * modules/getlogin_r-tests: New file.
13816         * tests/test-getlogin_r.c: New file.
13817
13818 2010-01-09  Jim Meyering  <meyering@redhat.com>
13819
13820         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13821         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13822         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13823
13824 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13825
13826         * lib/dup2.c (rpl_dup2): Improve comment.
13827
13828 2010-01-08  Eric Blake  <ebb9@byu.net>
13829
13830         maint.mk: allow packages to add makefile @@ exceptions
13831         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13832         (sc_makefile_check): Rename...
13833         (sc_makefile_at_at_check): ...to this, and use hook.
13834
13835         dup2: work around mingw bug
13836         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13837         Reported by Simon Josefsson.
13838
13839 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13840
13841         glob: Fix C++ compilation.
13842         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13843         C++.
13844
13845 2010-01-07  Bruno Haible  <bruno@clisp.org>
13846
13847         Fix indentation of wctype.in.h, broken since 2007-01-06.
13848         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13849
13850 2010-01-07  Bruno Haible  <bruno@clisp.org>
13851
13852         mbslen: Avoid collision with system function.
13853         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13854         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13855         * m4/mbslen.m4: New file.
13856         * modules/mbslen (Files): Add it.
13857         (configure.ac): Invoke gl_MBSLEN.
13858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13859         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13860         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13861         via Ian Beckwith <ianb@erislabs.net>.
13862
13863 2010-01-07  Bruno Haible  <bruno@clisp.org>
13864
13865         dirent: Document the last fix.
13866         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13867
13868 2010-01-07  Bruno Haible  <bruno@clisp.org>
13869
13870         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13871         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13872         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13873         va_list are defined.
13874         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13875         Reported by Eric Blake.
13876
13877 2010-01-07  Bruno Haible  <bruno@clisp.org>
13878
13879         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13880         * modules/xlist (Depends-on): Add 'list',
13881         * modules/xoset (Depends-on): Add 'oset'.
13882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13883
13884 2010-01-07  Bruno Haible  <bruno@clisp.org>
13885
13886         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13887         * doc/posix-functions/strncasecmp.texi: Likewise.
13888
13889 2010-01-07  Bruno Haible  <bruno@clisp.org>
13890
13891         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13892
13893 2010-01-07  John W. Eaton  <jwe@octave.org>
13894
13895         wctype: allow C++ use
13896         * lib/wctype.in.h: Add extern "C" block for C++.
13897
13898 2010-01-06  Eric Blake  <ebb9@byu.net>
13899
13900         maint.mk: detect incorrect GFDL usage
13901         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13902
13903 2010-01-06  Jim Meyering  <meyering@redhat.com>
13904         and Eric Blake  <ebb9@byu.net>
13905
13906         maint.mk: ignore multi-line copyright in NEWS
13907         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13908
13909 2010-01-06  Eric Blake  <ebb9@byu.net>
13910
13911         select: add missing dependency
13912         * modules/select-tests (Depends-on): Move sockets dependency...
13913         * modules/select (Depends-on): ...here.
13914         Reported by Ian Beckwith.
13915
13916         doc: regenerate INSTALL
13917         * doc/INSTALL: Reflect recent autoconf update.
13918         * doc/INSTALL.ISO: Likewise.
13919         * doc/INSTALL.UTF-8: Likewise.
13920
13921         pread: fix compilation on glibc
13922         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13923         Reported by Ralf Wildenhues.
13924
13925         dirent: fix test failure
13926         * lib/dirent.in.h (includes): Guarantee ino_t.
13927         Reported by Ralf Wildenhues.
13928
13929 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13930
13931         linkat, renameat: avoid bad free
13932         * lib/at-func2.c (at_func2): Fix typo.
13933         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13934
13935 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13936
13937         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13938         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13939         to avoid failure of symlink test later.
13940
13941 2010-01-06  Eric Blake  <ebb9@byu.net>
13942
13943         stdio, unistd: guarantee ssize_t
13944         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13945         2008 are exposed when needed.
13946         * lib/stdio.in.h (includes): Likewise.
13947         Reported by Ralf Wildenhues.
13948
13949 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13950
13951         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13952         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13953         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13954
13955 2010-01-06  Jim Meyering  <meyering@redhat.com>
13956
13957         readtokens: this module *does* require xalloc.h
13958         It uses only functions that were omitted by the old syntax-check rule.
13959         * lib/readtokens.c: Include "xalloc.h" once again.
13960         * modules/readtokens (Depends-on): Add xalloc.
13961         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13962
13963 2010-01-05  Eric Blake  <ebb9@byu.net>
13964
13965         maint: support 'make announcement' from a VPATH build
13966         * top/maint.mk (announcement): Look for correct NEWS file.
13967
13968 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13969
13970         utimens (fdutimens): ignore a negative FD, per contract
13971         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13972         when we have a valid file descriptor.  Otherwise, using a brand
13973         new glibc (with just-patched futimens that now fails with EBADF)
13974         would cause this function to fail with ENOSYS.
13975         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13976         See also http://bugzilla.redhat.com/552320.
13977
13978 2010-01-05  Eric Blake  <ebb9@byu.net>
13979
13980         strcase: document what it provides
13981         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13982         gnulib module.
13983         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13984         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13985
13986 2010-01-05  Jim Meyering  <meyering@redhat.com>
13987
13988         maint: remove useless inclusions of "xalloc.h"
13989         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13990         * lib/readtokens.c: Likewise.
13991         * lib/same.c: Likewise.
13992         * modules/getloadavg (Depends-on): Remove xalloc.
13993         * modules/readtokens: Likewise.
13994         * modules/same: Likewise.
13995
13996         maint.mk: include 4 more function names in alloca.h-checking regexp
13997         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13998         regexp.  Before, we would give a false-positive (saying alloca.h
13999         is included unnecessarily) when the only uses involved omitted symbols.
14000
14001         xalloc.h: use consistent formatting
14002         * lib/xalloc.h: Move declarations to start in the first column.
14003
14004 2010-01-05  Eric Blake  <ebb9@byu.net>
14005
14006         mkdir: avoid xalloc
14007         * lib/mkdir.c (includes): Drop unused header.
14008         Reported by John W. Eaton.
14009
14010 2010-01-04  Jim Meyering  <meyering@redhat.com>
14011
14012         nl_langinfo: avoid configure-time syntax error
14013         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
14014         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
14015         the empty string.  Don't let that provoke a shell syntax error.
14016
14017         regcomp, regexec, fnmatch: avoid array bounds read error
14018         * lib/regcomp.c (build_equiv_class): From glibc:
14019         Use only the low 24 bits of a findidx return value as an index
14020         into the weights array.  Patch by Ulrich Drepper:
14021         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
14022         * lib/regexec.c (check_node_accept_bytes): Likewise.
14023         * lib/fnmatch_loop.c (FCT): Likewise.
14024
14025         regcomp: skip collseq lookup when there are no rules
14026         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
14027         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
14028
14029         regcomp: recognize ill-formed { } expressions
14030         * lib/regcomp.c (parse_dup_op): From glibc:
14031         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
14032
14033         regcomp: fix typo in comment
14034         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
14035         s/satisfy/satisfies/.
14036
14037         regcomp: sync from glibc: remove dead store
14038         * lib/regcomp.c (duplicate_node_closure): Remove useless
14039         search_duplicated_node call and dead store.
14040
14041         regcomp: sync from glibc; always use nl_langinfo
14042         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
14043         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
14044         * modules/regex (Depends-on): Add nl_langinfo.
14045
14046 2010-01-04  Eric Blake  <ebb9@byu.net>
14047
14048         fdopendir: fix configure test
14049         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
14050
14051 2010-01-01  Bruno Haible  <bruno@clisp.org>
14052
14053         wchar: Remove unused configure check.
14054         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
14055
14056 2010-01-01  Eric Blake  <ebb9@byu.net>
14057
14058         headers: make check of system header explicit
14059         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
14060         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
14061         ourselves.
14062         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14063         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14064         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14065         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
14066         internals.
14067         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
14068         missing.
14069         Suggested by Bruno Haible.
14070
14071 2010-01-01  Jim Meyering  <meyering@redhat.com>
14072
14073         ChangeLog: tweak to eliminate unnecessary copyright line
14074         * ChangeLog: Remove a copyright line that was mistakenly updated
14075         by today's update-copyright run.  Reported by Eric Blake.
14076
14077         test-update-copyright: don't let envvar setting cause test failure
14078         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14079
14080 2010-01-01  Bruno Haible  <bruno@clisp.org>
14081
14082         localename: Avoid gcc warning.
14083         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
14084         function if it is not used.
14085
14086 2010-01-01  Jim Meyering  <meyering@redhat.com>
14087
14088         update nearly all FSF copyright year lists to include 2010
14089         Use the same procedure as for 2009, outlined in
14090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
14091
14092         version-etc: set COPYRIGHT_YEAR to 2010
14093         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
14094
14095 2009-12-31  Eric Blake  <ebb9@byu.net>
14096
14097         doc: correct availability of cygwin 1.5.x getopt
14098         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
14099         variables.
14100         * doc/posix-functions/opterr.texi (opterr): Likewise.
14101         * doc/posix-functions/optind.texi (optind): Likewise.
14102         * doc/posix-functions/optopt.texi (optopt): Likewise.
14103         * doc/posix-functions/tzname.texi (tzname): Likewise.
14104
14105         openat: update maintainer
14106         * modules/openat (Maintainer): Add myself.
14107
14108         utimens: avoid shadowing warning
14109         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
14110         buffers into one, to avoid shadowing, as well as avoiding a
14111         redundant stat.
14112         Reported by Jim Meyering.
14113
14114         test-dup2: avoid compiler warning
14115         * tests/test-dup2.c (is_inheritable): Only define if used.
14116
14117 2010-01-01  Bruno Haible  <bruno@clisp.org>
14118
14119         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
14120         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
14121         defined, use wctomb instead of wcrtomb.
14122
14123 2010-01-01  Bruno Haible  <bruno@clisp.org>
14124
14125         iconv: Reject native Solaris iconv.
14126         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
14127         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
14128
14129 2009-12-31  Bruno Haible  <bruno@clisp.org>
14130
14131         * tests/test-signal.c (main): Remove test of 'SIG'.
14132
14133 2009-12-31  Bruno Haible  <bruno@clisp.org>
14134
14135         spawn: Fix incomplete fix.
14136         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14137         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14138         warnings for GNULIB_POSIXCHECK again.
14139         Reported by Eric Blake.
14140
14141 2009-12-31  Bruno Haible  <bruno@clisp.org>
14142
14143         Avoid namespace pollution on glibc systems.
14144         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
14145         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
14146         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
14147         glibc systems.
14148
14149 2009-12-31  Bruno Haible  <bruno@clisp.org>
14150
14151         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
14152         (gl_REPLACE_WCHAR_H): Turn into a no-op.
14153         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
14154         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14155         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14156         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14157         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14158
14159 2009-12-31  Bruno Haible  <bruno@clisp.org>
14160
14161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14162         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
14163         afterwards.
14164
14165 2009-12-31  Bruno Haible  <bruno@clisp.org>
14166
14167         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
14168         SYS_UTSNAME_H.
14169
14170 2009-12-31  Bruno Haible  <bruno@clisp.org>
14171
14172         spawn: Fix misapplied patch.
14173         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14174         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14175         warnings for GNULIB_POSIXCHECK.
14176
14177 2009-12-31  Bruno Haible  <bruno@clisp.org>
14178
14179         times: Update after sys_times changed.
14180         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
14181         * modules/times (Files): Add it.
14182         (configure.ac): Invoke gl_FUNC_TIMES.
14183
14184 2009-12-31  Bruno Haible  <bruno@clisp.org>
14185
14186         Use AC_C_INLINE where necessary.
14187         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
14188         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14189         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14190         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14191         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14192         * m4/mbiter.m4 (gl_MBITER): Likewise.
14193         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14194         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14195         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
14196         * modules/u64 (configure.ac): Likewise.
14197
14198 2009-12-31  Bruno Haible  <bruno@clisp.org>
14199
14200         Use AC_C_INLINE instead of module 'inline' where possible.
14201         * modules/inline (Description): Clarify purpose.
14202         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
14203         * modules/count-one-bits (Depends-on): Remove inline.
14204         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
14205         * modules/openat (Depends-on): Remove inline.
14206         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
14207         instead of depending on module 'inline'.
14208         * modules/filevercmp (Depends-on, configure.ac): Likewise.
14209         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
14210         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
14211         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
14212         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
14213         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
14214         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
14215         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
14216         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
14217         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
14218         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
14219         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
14220         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
14221         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
14222         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
14223         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
14224         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
14225         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
14226         Likewise.
14227         * modules/unictype/property-ascii-hex-digit (Depends-on,
14228         configure.ac): Likewise.
14229         * modules/unictype/property-bidi-arabic-digit (Depends-on,
14230         configure.ac): Likewise.
14231         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
14232         configure.ac): Likewise.
14233         * modules/unictype/property-bidi-block-separator (Depends-on,
14234         configure.ac): Likewise.
14235         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
14236         configure.ac): Likewise.
14237         * modules/unictype/property-bidi-common-separator (Depends-on,
14238         configure.ac): Likewise.
14239         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
14240         Likewise.
14241         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
14242         configure.ac): Likewise.
14243         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
14244         configure.ac): Likewise.
14245         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
14246         configure.ac): Likewise.
14247         * modules/unictype/property-bidi-european-digit (Depends-on,
14248         configure.ac): Likewise.
14249         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
14250         configure.ac): Likewise.
14251         * modules/unictype/property-bidi-left-to-right (Depends-on,
14252         configure.ac): Likewise.
14253         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
14254         configure.ac): Likewise.
14255         * modules/unictype/property-bidi-other-neutral (Depends-on,
14256         configure.ac): Likewise.
14257         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
14258         Likewise.
14259         * modules/unictype/property-bidi-segment-separator (Depends-on,
14260         configure.ac): Likewise.
14261         * modules/unictype/property-bidi-whitespace (Depends-on,
14262         configure.ac): Likewise.
14263         * modules/unictype/property-combining (Depends-on, configure.ac):
14264         Likewise.
14265         * modules/unictype/property-composite (Depends-on, configure.ac):
14266         Likewise.
14267         * modules/unictype/property-currency-symbol (Depends-on,
14268         configure.ac): Likewise.
14269         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
14270         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
14271         Likewise.
14272         * modules/unictype/property-default-ignorable-code-point (Depends-on,
14273         configure.ac): Likewise.
14274         * modules/unictype/property-deprecated (Depends-on, configure.ac):
14275         Likewise.
14276         * modules/unictype/property-diacritic (Depends-on, configure.ac):
14277         Likewise.
14278         * modules/unictype/property-extender (Depends-on, configure.ac):
14279         Likewise.
14280         * modules/unictype/property-format-control (Depends-on, configure.ac):
14281         Likewise.
14282         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
14283         Likewise.
14284         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
14285         Likewise.
14286         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
14287         Likewise.
14288         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
14289         Likewise.
14290         * modules/unictype/property-hyphen (Depends-on, configure.ac):
14291         Likewise.
14292         * modules/unictype/property-id-continue (Depends-on, configure.ac):
14293         Likewise.
14294         * modules/unictype/property-id-start (Depends-on, configure.ac):
14295         Likewise.
14296         * modules/unictype/property-ideographic (Depends-on, configure.ac):
14297         Likewise.
14298         * modules/unictype/property-ids-binary-operator (Depends-on,
14299         configure.ac): Likewise.
14300         * modules/unictype/property-ids-trinary-operator (Depends-on,
14301         configure.ac): Likewise.
14302         * modules/unictype/property-ignorable-control (Depends-on,
14303         configure.ac): Likewise.
14304         * modules/unictype/property-iso-control (Depends-on, configure.ac):
14305         Likewise.
14306         * modules/unictype/property-join-control (Depends-on, configure.ac):
14307         Likewise.
14308         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
14309         Likewise.
14310         * modules/unictype/property-line-separator (Depends-on, configure.ac):
14311         Likewise.
14312         * modules/unictype/property-logical-order-exception (Depends-on,
14313         configure.ac): Likewise.
14314         * modules/unictype/property-lowercase (Depends-on, configure.ac):
14315         Likewise.
14316         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
14317         * modules/unictype/property-non-break (Depends-on, configure.ac):
14318         Likewise.
14319         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
14320         Likewise.
14321         * modules/unictype/property-numeric (Depends-on, configure.ac):
14322         Likewise.
14323         * modules/unictype/property-other-alphabetic (Depends-on,
14324         configure.ac): Likewise.
14325         * modules/unictype/property-other-default-ignorable-code-point
14326         (Depends-on, configure.ac): Likewise.
14327         * modules/unictype/property-other-grapheme-extend (Depends-on,
14328         configure.ac): Likewise.
14329         * modules/unictype/property-other-id-continue (Depends-on,
14330         configure.ac): Likewise.
14331         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
14332         Likewise.
14333         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
14334         Likewise.
14335         * modules/unictype/property-other-math (Depends-on, configure.ac):
14336         Likewise.
14337         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
14338         Likewise.
14339         * modules/unictype/property-paired-punctuation (Depends-on,
14340         configure.ac): Likewise.
14341         * modules/unictype/property-paragraph-separator (Depends-on,
14342         configure.ac): Likewise.
14343         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
14344         Likewise.
14345         * modules/unictype/property-pattern-white-space (Depends-on,
14346         configure.ac): Likewise.
14347         * modules/unictype/property-private-use (Depends-on, configure.ac):
14348         Likewise.
14349         * modules/unictype/property-punctuation (Depends-on, configure.ac):
14350         Likewise.
14351         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
14352         Likewise.
14353         * modules/unictype/property-radical (Depends-on, configure.ac):
14354         Likewise.
14355         * modules/unictype/property-sentence-terminal (Depends-on,
14356         configure.ac): Likewise.
14357         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
14358         Likewise.
14359         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
14360         * modules/unictype/property-terminal-punctuation (Depends-on,
14361         configure.ac): Likewise.
14362         * modules/unictype/property-titlecase (Depends-on, configure.ac):
14363         Likewise.
14364         * modules/unictype/property-unassigned-code-value (Depends-on,
14365         configure.ac): Likewise.
14366         * modules/unictype/property-unified-ideograph (Depends-on,
14367         configure.ac): Likewise.
14368         * modules/unictype/property-uppercase (Depends-on, configure.ac):
14369         Likewise.
14370         * modules/unictype/property-variation-selector (Depends-on,
14371         configure.ac): Likewise.
14372         * modules/unictype/property-white-space (Depends-on, configure.ac):
14373         Likewise.
14374         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
14375         Likewise.
14376         * modules/unictype/property-xid-start (Depends-on, configure.ac):
14377         Likewise.
14378         * modules/unictype/property-zero-width (Depends-on, configure.ac):
14379         Likewise.
14380         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
14381         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
14382         Likewise.
14383
14384 2009-12-31  Bruno Haible  <bruno@clisp.org>
14385
14386         Remove unnecessary AC_C_INLINE invocation.
14387         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
14388         since 2009-08-21.
14389
14390 2009-12-31  Jim Meyering  <meyering@redhat.com>
14391
14392         maint.mk: don't require explicit gpg_key_ID in cfg.mk
14393         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
14394         With this change, we can all remove the gpg_key_ID = ... definition
14395         from our respective cfg.mk files.
14396
14397         maint.mk: create announcement template in ~/, not in /tmp
14398         * top/maint.mk (emit_upload_commands): Adjust.
14399         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
14400         Remove temporary file, .ci-msg.
14401
14402 2009-12-31  Eric Blake  <ebb9@byu.net>
14403
14404         link-warning: always build headers with link warnings
14405         * modules/arpa_inet (Makefile.am): Always build replacement
14406         header.
14407         * modules/ctype (Makefile.am): Likewise.
14408         * modules/dirent (Makefile.am): Likewise.
14409         * modules/inttypes (Makefile.am): Likewise.
14410         * modules/langinfo (Makefile.am): Likewise.
14411         * modules/locale (Makefile.am): Likewise.
14412         * modules/spawn (Makefile.am): Likewise.
14413         * modules/sys_file (Makefile.am): Likewise.
14414         * modules/sys_ioctl (Makefile.am): Likewise.
14415         * modules/sys_select (Makefile.am): Likewise.
14416         * modules/sys_socket (Makefile.am): Likewise.
14417         * modules/sys_times (Makefile.am): Likewise.
14418         * modules/sys_utsname (Makefile.am): Likewise.
14419         * modules/sys_wait (Makefile.am): Likewise.
14420         * modules/wchar (Makefile.am): Likewise.
14421         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14422         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14423         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14424         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14425         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14426         Likewise.
14427         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14428         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14429         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14430         Likewise.
14431         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14432         Likewise.
14433         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14434         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14435         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14437         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14438         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14439         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14440         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14441         (gl_WCHAR_H_DEFAULTS): Likewise.
14442
14443 2009-12-31  Eric Blake  <ebb9@byu.net>
14444
14445         signal, spawn: use link warnings
14446         * lib/signal.in.h (sigset_t): Make unconditional.
14447         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14448         (sigpending, sigprocmask, sigaction): Add link warnings.
14449         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
14450         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
14451         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
14452         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
14453         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
14454         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
14455         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
14456         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
14457         (posix_spawn_file_actions_destroy)
14458         (posix_spawn_file_actions_addopen)
14459         (posix_spawn_file_actions_addclose)
14460         (posix_spawn_file_actions_adddup2): Likewise.
14461         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14462         * tests/test-signal.c (main): Enhance test.
14463
14464         spawn: improve wrapper support
14465         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14466         (gl_SPAWN_H_DEFAULTS): New defaults.
14467         * modules/spawn (Makefile.am): Substitute them.
14468         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14469         Only declare if missing or broken.
14470
14471         sys_times, sys_utsname: use include_next
14472         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14473         header.
14474         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14475         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14476         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14477         * modules/sys_times (Depends-on): Add include_next.
14478         (Makefile.am): Substitute additional values.
14479         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14480         * lib/sys_times.in.h (includes): Include native header, if
14481         available.
14482         * lib/sys_utsname.in.h (includes): Likewise.
14483         * tests/test-sys_times.c (main): Enhance test.
14484
14485         fdutimensat: revert prior patch
14486         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14487         utimens.h.
14488         Reported by Bruno Haible.
14489
14490 2009-12-30  Eric Blake  <ebb9@byu.net>
14491
14492         sys_wait: drop link-warning dependency
14493         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14494         link-warning efforts.
14495         * lib/sys_wait.in.h: Likewise.
14496
14497         fdutimensat: remove bogus dependency
14498         * modules/fdutimensat (Depends-on): Drop inline.
14499
14500         unistd: fix typo
14501         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14502
14503 2009-12-30  Bruno Haible  <bruno@clisp.org>
14504
14505         Fix compilation error with Solaris cc.
14506         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14507         * lib/unicase/u16-is-invariant.c: Likewise.
14508         * lib/unicase/u32-is-invariant.c: Likewise.
14509         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14510
14511 2009-12-30  Bruno Haible  <bruno@clisp.org>
14512
14513         Fix test crash.
14514         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14515         locales.
14516         Reported by Simon Josefsson <simon@josefsson.org>.
14517
14518 2009-12-30  Bruno Haible  <bruno@clisp.org>
14519
14520         Fix compilation error on most platforms.
14521         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14522         Reported by Simon Josefsson <simon@josefsson.org>
14523         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14524
14525 2009-12-30  Eric Blake  <ebb9@byu.net>
14526
14527         futimens, utimensat: work around ntfs-3g bug
14528         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14529         a ctime bug is present, and expand workaround to cover ntfs-3g.
14530         * lib/utimens.c (fdutimens, lutimens): Likewise.
14531         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14532         (validate_timespec): Adjust return value.
14533         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14534         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14535         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14536
14537 2009-12-29  Eric Blake  <ebb9@byu.net>
14538
14539         link-warning: make usage consistent
14540         * modules/ctype (Depends-on): Add link-warning.
14541         (Makefile.am): Update rules accordingly.
14542         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14543         * modules/locale (Depends-on, Makefile.am): Likewise.
14544         * modules/sys_file (Makefile.am): Likewise.
14545         * modules/getopt-posix (Makefile.am): Delete unused link warning
14546         efforts.
14547         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14548         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14549         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14550         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14551
14552         stdio: remove unused variables
14553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14555         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14556
14557         tests: test more substitute headers
14558         * modules/ctype-tests: New file.
14559         * modules/dirent-tests: Likewise.
14560         * modules/spawn-tests: Likewise.
14561         * modules/sys_file-tests: Likewise.
14562         * modules/sys_ioctl-tests: Likewise.
14563         * modules/sys_wait-tests: Likewise.
14564         * tests/test-ctype.c: Likewise.
14565         * tests/test-dirent.c: Likewise.
14566         * tests/test-spawn.c: Likewise.
14567         * tests/test-sys_file.c: Likewise.
14568         * tests/test-sys_ioctl.c: Likewise.
14569         * tests/test-sys_wait.c: Likewise.
14570         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14571         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14572         whether or not flock is in use.
14573
14574         tests: remove License section from module
14575         * modules/arpa_inet-tests: Remove unneeded section.
14576         * modules/byteswap-tests: Likewise.
14577         * modules/ceilf-tests: Likewise.
14578         * modules/ceill-tests: Likewise.
14579         * modules/crypto/des-tests: Likewise.
14580         * modules/crypto/gc-arcfour-tests: Likewise.
14581         * modules/crypto/gc-arctwo-tests: Likewise.
14582         * modules/crypto/gc-des-tests: Likewise.
14583         * modules/crypto/gc-hmac-md5-tests: Likewise.
14584         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14585         * modules/crypto/gc-md2-tests: Likewise.
14586         * modules/crypto/gc-md4-tests: Likewise.
14587         * modules/crypto/gc-md5-tests: Likewise.
14588         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14589         * modules/crypto/gc-rijndael-tests: Likewise.
14590         * modules/crypto/gc-sha1-tests: Likewise.
14591         * modules/crypto/gc-tests: Likewise.
14592         * modules/crypto/md2-tests: Likewise.
14593         * modules/crypto/md4-tests: Likewise.
14594         * modules/fcntl-h-tests: Likewise.
14595         * modules/floorf-tests: Likewise.
14596         * modules/floorl-tests: Likewise.
14597         * modules/frexp-nolibm-tests: Likewise.
14598         * modules/frexp-tests: Likewise.
14599         * modules/frexpl-nolibm-tests: Likewise.
14600         * modules/frexpl-tests: Likewise.
14601         * modules/getaddrinfo-tests: Likewise.
14602         * modules/inttypes-tests: Likewise.
14603         * modules/isfinite-tests: Likewise.
14604         * modules/isinf-tests: Likewise.
14605         * modules/ldexpl-tests: Likewise.
14606         * modules/locale-tests: Likewise.
14607         * modules/math-tests: Likewise.
14608         * modules/netdb-tests: Likewise.
14609         * modules/netinet_in-tests: Likewise.
14610         * modules/printf-frexp-tests: Likewise.
14611         * modules/printf-frexpl-tests: Likewise.
14612         * modules/priv-set-tests: Likewise.
14613         * modules/random_r-tests: Likewise.
14614         * modules/round-tests: Likewise.
14615         * modules/roundf-tests: Likewise.
14616         * modules/roundl-tests: Likewise.
14617         * modules/search-tests: Likewise.
14618         * modules/select-tests: Likewise.
14619         * modules/signal-tests: Likewise.
14620         * modules/stdbool-tests: Likewise.
14621         * modules/stddef-tests: Likewise.
14622         * modules/stdint-tests: Likewise.
14623         * modules/stdio-tests: Likewise.
14624         * modules/stdlib-tests: Likewise.
14625         * modules/string-tests: Likewise.
14626         * modules/strings-tests: Likewise.
14627         * modules/sys_select-tests: Likewise.
14628         * modules/sys_socket-tests: Likewise.
14629         * modules/sys_stat-tests: Likewise.
14630         * modules/sys_time-tests: Likewise.
14631         * modules/sys_utsname-tests: Likewise.
14632         * modules/sysexits-tests: Likewise.
14633         * modules/time-tests: Likewise.
14634         * modules/trunc-tests: Likewise.
14635         * modules/truncf-tests: Likewise.
14636         * modules/truncl-tests: Likewise.
14637         * modules/tsearch-tests: Likewise.
14638         * modules/unistd-tests: Likewise.
14639         * modules/wchar-tests: Likewise.
14640         * modules/wctype-tests: Likewise.
14641
14642         tests: fix license on several tests
14643         * tests/test-des.c: Update to GPLv3+.
14644         * tests/test-flock.c: Likewise.
14645         * tests/test-fsync.c: Likewise.
14646         * tests/test-futimens.h: Likewise.
14647         * tests/test-gc-arcfour.c: Likewise.
14648         * tests/test-gc-arctwo.c: Likewise.
14649         * tests/test-gc-des.c: Likewise.
14650         * tests/test-gc-hmac-md5.c: Likewise.
14651         * tests/test-gc-hmac-sha1.c: Likewise.
14652         * tests/test-gc-md2.c: Likewise.
14653         * tests/test-gc-md4.c: Likewise.
14654         * tests/test-gc-md5.c: Likewise.
14655         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14656         * tests/test-gc-rijndael.c: Likewise.
14657         * tests/test-gc-sha1.c: Likewise.
14658         * tests/test-gc.c: Likewise.
14659         * tests/test-getcwd.c: Likewise.
14660         * tests/test-link.c: Likewise.
14661         * tests/test-link.h: Likewise.
14662         * tests/test-lutimens.h: Likewise.
14663         * tests/test-md2.c: Likewise.
14664         * tests/test-md4.c: Likewise.
14665         * tests/test-mkdir.h: Likewise.
14666         * tests/test-rename.c: Likewise.
14667         * tests/test-rename.h: Likewise.
14668         * tests/test-safe-alloc.c: Likewise.
14669         * tests/test-utimens-common.h: Likewise.
14670         * tests/test-utimens.h: Likewise.
14671
14672         maint: sync license texts
14673         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14674         * doc/gpl-3.0.texi: Revert copyright year update.
14675         * doc/lgpl-3.0.texi: Likewise.
14676
14677 2009-12-29  Jim Meyering  <meyering@redhat.com>
14678
14679         update nearly all FSF copyright year lists to include 2009
14680         The files named by the following are exempted:
14681             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14682               test -f "$dst" && { echo "$dst"; continue; }
14683               test -d "$dst" || continue
14684               echo "$dst"/$(basename "$src")
14685             done > exempt
14686             git ls-files tests/unictype >> exempt
14687         In the remaining files, convert to all-interval notation if
14688         - there is already at least one year interval like 2000-2003
14689         - the file is maintained by me
14690         - the file is in lib/uni*/, where that style already prevails
14691         Otherwise, use update-copyright's default.
14692
14693 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14694         and Eric Blake  <ebb9@byu.net>
14695
14696         tests: don't require debug system() to pass
14697         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14698         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14699         * tests/test-unlink.h (test_unlink_func): Likewise.
14700         * tests/test-fstatat.c (main): ...into callers.
14701         * tests/test-lstat.c (main): Likewise.
14702         * tests/test-rmdir.c (main): Likewise.
14703         * tests/test-unlink.c (main): Likewise.
14704         * tests/test-unlinkat.c (main): Likewise.
14705         * tests/test-areadlink-with-size.c (main): Don't require a
14706         debug-only system call to pass, aiding cross-testing to mingw.
14707         * tests/test-areadlink.c (main): Likewise.
14708         * tests/test-areadlinkat-with-size.c (main): Likewise.
14709         * tests/test-areadlinkat.c (main): Likewise.
14710         * tests/test-canonicalize-lgpl.c (main): Likewise.
14711         * tests/test-canonicalize.c (main): Likewise.
14712         * tests/test-chown.c (main): Likewise.
14713         * tests/test-fchownat.c (main): Likewise.
14714         * tests/test-lchown.c (main): Likewise.
14715         * tests/test-fdutimensat.c (main): Likewise.
14716         * tests/test-futimens.c (main): Likewise.
14717         * tests/test-link.c (main): Likewise.
14718         * tests/test-linkat.c (main): Likewise.
14719         * tests/test-mkdir.c (main): Likewise.
14720         * tests/test-mkdirat.c (main): Likewise.
14721         * tests/test-mkfifo.c (main): Likewise.
14722         * tests/test-mkfifoat.c (main): Likewise.
14723         * tests/test-mknod.c (main): Likewise.
14724         * tests/test-readlink.c (main): Likewise.
14725         * tests/test-remove.c (main): Likewise.
14726         * tests/test-rename.c (main): Likewise.
14727         * tests/test-renameat.c (main): Likewise.
14728         * tests/test-symlink.c (main): Likewise.
14729         * tests/test-symlinkat.c (main): Likewise.
14730         * tests/test-utimens.c (main): Likewise.
14731         * tests/test-utimensat.c (main): Likewise.
14732
14733 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14734
14735         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14736         on $(UNUSED_PARAMETER_H) to avoid build failure.
14737
14738 2009-12-28  Jim Meyering  <meyering@redhat.com>
14739
14740         update-copyright: you may specify a max. line length other than 72
14741         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14742
14743         maint: use consistent FSF copyright line syntax
14744         * lib/posixtm.c: Add missing comma in FSF copyright line.
14745         * lib/posixtm.h: Likewise.
14746         * lib/getugroups.c: Add missing ", Inc.".
14747
14748         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14749         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14750         FSF copyright line.  Remove trailing blanks.
14751
14752 2009-12-28  Eric Blake  <ebb9@byu.net>
14753
14754         test-dup2: reduce dependencies
14755         * modules/cloexec (Configure.ac): Set witness.
14756         * modules/dup2-tests (Depends-on): Drop cloexec.
14757         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14758         not present.
14759         Suggested by Bruno Haible.
14760
14761 2009-12-26  Bruno Haible  <bruno@clisp.org>
14762
14763         Remove an unneeded dependency.
14764         * modules/fseterr (Depends-on): Remove dup2.
14765
14766 2009-12-26  Eric Blake  <ebb9@byu.net>
14767
14768         tests: use macros.h in more places
14769         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14770         (ASSERT_STREAM): Provide default of stderr.
14771         * tests/test-dirent-safer.c: Include macros.h, using alternate
14772         stream for assertions.
14773         * tests/test-dup-safer.c: Likewise.
14774         * tests/test-freopen-safer.c: Likewise.
14775         * tests/test-getopt.c: Likewise.
14776         * tests/test-openat-safer.c: Likewise.
14777         * tests/test-pipe.c: Likewise.
14778         * tests/test-popen-safer.c: Likewise.
14779         * modules/dirent-safer-tests (Files): Include macros.h.
14780         * modules/unistd-safer-tests (Files): Likewise.
14781         * modules/freopen-safer-tests (Files): Likewise.
14782         * modules/getopt-posix-tests (Files): Likewise.
14783         * modules/openat-safer-tests (Files): Likewise.
14784         * modules/pipe-tests (Files): Likewise.
14785
14786 2009-12-26  Bruno Haible  <bruno@clisp.org>
14787
14788         javacomp: Portability fix.
14789         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14790         that it also works on Solaris.
14791
14792 2009-12-26  Bruno Haible  <bruno@clisp.org>
14793
14794         localename: Fix storage allocation of gl_locale_name_thread's result.
14795         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14796         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14797         all platforms that have 'uselocale'.
14798         (gl_locale_name_thread_unsafe): New function, extracted from
14799         gl_locale_name_thread.
14800         (gl_locale_name_thread): Call struniq on all platforms that have
14801         'uselocale'.
14802         * tests/test-localename.c (test_locale_name_thread): Check that the
14803         resulting strings are permanently allocated.
14804         * modules/localename-tests (Depends-on): Add strdup.
14805
14806 2009-12-26  Bruno Haible  <bruno@clisp.org>
14807
14808         * tests/test-localename.c (categories): Fill in the strings.
14809
14810 2009-12-26  Jim Meyering  <meyering@redhat.com>
14811
14812         isdir: complete the removal of m4/isdir.m4
14813         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14814
14815         isdir: clean up, since at least grep still uses it
14816         * lib/isdir.c: Include "isdir.h".
14817         (S_ISDIR): Remove now-unneeded definition.
14818         * modules/isdir (Files): Add lib/isdir.h.
14819         * lib/isdir.h: New file, with declaration.
14820         * m4/isdir.m4: Remove file -- unneeded.
14821
14822 2009-12-25  Bruno Haible  <bruno@clisp.org>
14823
14824         selinux-h: Make generated .h files standalone.
14825         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14826         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14827         * lib/se-selinux.in.h: Likewise.
14828         * modules/selinux-h (Depends-on): Add unused-parameter.
14829         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14830         selinux/selinux.h and selinux/context.h.
14831         Suggested by Eric Blake.
14832
14833 2009-12-25  Bruno Haible  <bruno@clisp.org>
14834
14835         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14836         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14837         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14838         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14839         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14840
14841 2009-12-24  Bruno Haible  <bruno@clisp.org>
14842
14843         openat: Fix warning.
14844         * lib/openat-proc.c: Include <unistd.h>.
14845
14846 2009-12-24  Bruno Haible  <bruno@clisp.org>
14847
14848         New module 'unused-parameter'.
14849         * build-aux/unused-parameter.h: New file, extracted from earlier
14850         gnulib-common.m4.
14851         * modules/unused-parameter: New file.
14852         * lib/unistr.h: Include unused-parameter.h.
14853         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14854         _GL_UNUSED.
14855         * modules/unistr/base (Depends-on): Add unused-parameter.
14856
14857 2009-12-24  Bruno Haible  <bruno@clisp.org>
14858
14859         Add missing dependencies to 'extensions' module.
14860         * m4/extensions.m4: Add comment.
14861         * modules/accept4 (Depends-on): Add extensions.
14862         * modules/dup3 (Depends-on): Likewise.
14863         * modules/fcntl (Depends-on): Likewise.
14864         * modules/futimens (Depends-on): Likewise.
14865         * modules/mknod (Depends-on): Likewise.
14866         * modules/pipe2 (Depends-on): Likewise.
14867         * modules/stat-time (Depends-on): Likewise.
14868         * modules/strcasestr-simple (Depends-on): Likewise.
14869         * modules/strsignal (Depends-on): Likewise.
14870         * modules/utimensat (Depends-on): Likewise.
14871         * modules/localcharset (Depends-on): Likewise. Needed because of
14872         gl_FCNTL_O_FLAGS.
14873         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14874         AC_TYPE_MBSTATE_T.
14875         * modules/wcsnrtombs (Depends-on): Likewise.
14876         * modules/wcsrtombs (Depends-on): Likewise.
14877
14878 2009-12-24  Bruno Haible  <bruno@clisp.org>
14879
14880         binary-io: Avoid gcc warning due to SET_BINARY.
14881         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14882         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14883
14884 2009-12-24  Bruno Haible  <bruno@clisp.org>
14885
14886         Avoid future namespace pollution on glibc systems.
14887         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14888         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14889         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14890         glibc systems.
14891
14892 2009-12-24  Bruno Haible  <bruno@clisp.org>
14893
14894         Refactor common macros used in tests.
14895         * tests/macros.h: New file.
14896         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14897         and/or <stdlib.h>, if appropriate.
14898         (ASSERT, SIZEOF): Remove macros.
14899         * tests/test-areadlink-with-size.c: Likewise.
14900         * tests/test-areadlinkat.c: Likewise.
14901         * tests/test-areadlinkat-with-size.c: Likewise.
14902         * tests/test-argmatch.c: Likewise.
14903         * tests/test-argv-iter.c: Likewise.
14904         * tests/test-array-mergesort.c: Likewise.
14905         * tests/test-array_list.c: Likewise.
14906         * tests/test-array_oset.c: Likewise.
14907         * tests/test-avltree_list.c: Likewise.
14908         * tests/test-avltree_oset.c: Likewise.
14909         * tests/test-avltreehash_list.c: Likewise.
14910         * tests/test-base64.c: Likewise.
14911         * tests/test-binary-io.c: Likewise.
14912         * tests/test-bitrotate.c: Likewise.
14913         * tests/test-btowc.c: Likewise.
14914         * tests/test-byteswap.c: Likewise.
14915         * tests/test-c-ctype.c: Likewise.
14916         * tests/test-c-stack.c: Likewise.
14917         * tests/test-c-strcasecmp.c: Likewise.
14918         * tests/test-c-strcasestr.c: Likewise.
14919         * tests/test-c-strncasecmp.c: Likewise.
14920         * tests/test-c-strstr.c: Likewise.
14921         * tests/test-canonicalize-lgpl.c: Likewise.
14922         * tests/test-canonicalize.c: Likewise.
14923         * tests/test-carray_list.c: Likewise.
14924         * tests/test-ceilf1.c: Likewise.
14925         * tests/test-ceilf2.c: Likewise.
14926         * tests/test-ceill.c: Likewise.
14927         * tests/test-chown.c: Likewise.
14928         * tests/test-cloexec.c: Likewise.
14929         * tests/test-copy-acl.c: Likewise.
14930         * tests/test-copy-file.c: Likewise.
14931         * tests/test-count-one-bits.c: Likewise.
14932         * tests/test-dprintf-posix.c: Likewise.
14933         * tests/test-dup2.c: Likewise.
14934         * tests/test-dup3.c: Likewise.
14935         * tests/test-duplocale.c: Likewise.
14936         * tests/test-fbufmode.c: Likewise.
14937         * tests/test-fchdir.c: Likewise.
14938         * tests/test-fchownat.c: Likewise.
14939         * tests/test-fcntl-safer.c: Likewise.
14940         * tests/test-fcntl.c: Likewise.
14941         * tests/test-fdopendir.c: Likewise.
14942         * tests/test-fdutimensat.c: Likewise.
14943         * tests/test-fflush2.c: Likewise.
14944         * tests/test-file-has-acl.c: Likewise.
14945         * tests/test-filevercmp.c: Likewise.
14946         * tests/test-flock.c: Likewise.
14947         * tests/test-floorf1.c: Likewise.
14948         * tests/test-floorf2.c: Likewise.
14949         * tests/test-floorl.c: Likewise.
14950         * tests/test-fnmatch.c: Likewise.
14951         * tests/test-fopen.h: Likewise.
14952         * tests/test-fpending.c: Likewise.
14953         * tests/test-fprintf-posix.c: Likewise.
14954         * tests/test-fpurge.c: Likewise.
14955         * tests/test-freadable.c: Likewise.
14956         * tests/test-freadahead.c: Likewise.
14957         * tests/test-freading.c: Likewise.
14958         * tests/test-freadptr.c: Likewise.
14959         * tests/test-freadptr2.c: Likewise.
14960         * tests/test-freadseek.c: Likewise.
14961         * tests/test-freopen.c: Likewise.
14962         * tests/test-frexp.c: Likewise.
14963         * tests/test-frexpl.c: Likewise.
14964         * tests/test-fseek.c: Likewise.
14965         * tests/test-fseeko.c: Likewise.
14966         * tests/test-fstatat.c: Likewise.
14967         * tests/test-fstrcmp.c: Likewise.
14968         * tests/test-fsync.c: Likewise.
14969         * tests/test-ftell.c: Likewise.
14970         * tests/test-ftello.c: Likewise.
14971         * tests/test-func.c: Likewise.
14972         * tests/test-futimens.c: Likewise.
14973         * tests/test-fwritable.c: Likewise.
14974         * tests/test-fwriting.c: Likewise.
14975         * tests/test-getcwd.c: Likewise.
14976         * tests/test-getdate.c: Likewise.
14977         * tests/test-getdelim.c: Likewise.
14978         * tests/test-getdtablesize.c: Likewise.
14979         * tests/test-getgroups.c: Likewise.
14980         * tests/test-getline.c: Likewise.
14981         * tests/test-getndelim2.c: Likewise.
14982         * tests/test-glob.c: Likewise.
14983         * tests/test-hash.c: Likewise.
14984         * tests/test-i-ring.c: Likewise.
14985         * tests/test-iconv-utf.c: Likewise.
14986         * tests/test-iconv.c: Likewise.
14987         * tests/test-idpriv-drop.c: Likewise.
14988         * tests/test-idpriv-droptemp.c: Likewise.
14989         * tests/test-inet_ntop.c: Likewise.
14990         * tests/test-inet_pton.c: Likewise.
14991         * tests/test-isblank.c: Likewise.
14992         * tests/test-isfinite.c: Likewise.
14993         * tests/test-isinf.c: Likewise.
14994         * tests/test-isnan.c: Likewise.
14995         * tests/test-isnand.h: Likewise.
14996         * tests/test-isnanf.h: Likewise.
14997         * tests/test-isnanl.h: Likewise.
14998         * tests/test-lchown.c: Likewise.
14999         * tests/test-ldexpl.c: Likewise.
15000         * tests/test-link.c: Likewise.
15001         * tests/test-linkat.c: Likewise.
15002         * tests/test-linked_list.c: Likewise.
15003         * tests/test-linkedhash_list.c: Likewise.
15004         * tests/test-localename.c: Likewise.
15005         * tests/test-lseek.c: Likewise.
15006         * tests/test-lstat.c: Likewise.
15007         * tests/test-mbmemcasecmp.c: Likewise.
15008         * tests/test-mbmemcasecoll.c: Likewise.
15009         * tests/test-mbrtowc.c: Likewise.
15010         * tests/test-mbscasecmp.c: Likewise.
15011         * tests/test-mbscasestr1.c: Likewise.
15012         * tests/test-mbscasestr2.c: Likewise.
15013         * tests/test-mbscasestr3.c: Likewise.
15014         * tests/test-mbscasestr4.c: Likewise.
15015         * tests/test-mbschr.c: Likewise.
15016         * tests/test-mbscspn.c: Likewise.
15017         * tests/test-mbsinit.c: Likewise.
15018         * tests/test-mbsncasecmp.c: Likewise.
15019         * tests/test-mbsnrtowcs.c: Likewise.
15020         * tests/test-mbspbrk.c: Likewise.
15021         * tests/test-mbspcasecmp.c: Likewise.
15022         * tests/test-mbsrchr.c: Likewise.
15023         * tests/test-mbsrtowcs.c: Likewise.
15024         * tests/test-mbsspn.c: Likewise.
15025         * tests/test-mbsstr1.c: Likewise.
15026         * tests/test-mbsstr2.c: Likewise.
15027         * tests/test-mbsstr3.c: Likewise.
15028         * tests/test-memchr.c: Likewise.
15029         * tests/test-memchr2.c: Likewise.
15030         * tests/test-memcmp.c: Likewise.
15031         * tests/test-memmem.c: Likewise.
15032         * tests/test-memrchr.c: Likewise.
15033         * tests/test-mkdir.c: Likewise.
15034         * tests/test-mkdirat.c: Likewise.
15035         * tests/test-mkfifo.c: Likewise.
15036         * tests/test-mkfifoat.c: Likewise.
15037         * tests/test-mknod.c: Likewise.
15038         * tests/test-nanosleep.c: Likewise.
15039         * tests/test-nl_langinfo.c: Likewise.
15040         * tests/test-obstack-printf.c: Likewise.
15041         * tests/test-open.c: Likewise.
15042         * tests/test-openat.c: Likewise.
15043         * tests/test-pipe-filter-gi1.c: Likewise.
15044         * tests/test-pipe-filter-gi2-main.c: Likewise.
15045         * tests/test-pipe-filter-ii1.c: Likewise.
15046         * tests/test-pipe-filter-ii2-main.c: Likewise.
15047         * tests/test-pipe2.c: Likewise.
15048         * tests/test-popen.h: Likewise.
15049         * tests/test-posixtm.c: Likewise.
15050         * tests/test-pread.c: Likewise.
15051         * tests/test-printf-frexp.c: Likewise.
15052         * tests/test-printf-frexpl.c: Likewise.
15053         * tests/test-printf-posix.c: Likewise.
15054         * tests/test-priv-set.c: Likewise.
15055         * tests/test-quotearg.c: Likewise.
15056         * tests/test-random_r.c: Likewise.
15057         * tests/test-rawmemchr.c: Likewise.
15058         * tests/test-rbtree_list.c: Likewise.
15059         * tests/test-rbtree_oset.c: Likewise.
15060         * tests/test-rbtreehash_list.c: Likewise.
15061         * tests/test-readlink.c: Likewise.
15062         * tests/test-remove.c: Likewise.
15063         * tests/test-rename.c: Likewise.
15064         * tests/test-renameat.c: Likewise.
15065         * tests/test-rmdir.c: Likewise.
15066         * tests/test-round1.c: Likewise.
15067         * tests/test-roundf1.c: Likewise.
15068         * tests/test-roundl.c: Likewise.
15069         * tests/test-safe-alloc.c: Likewise.
15070         * tests/test-sameacls.c: Likewise.
15071         * tests/test-set-mode-acl.c: Likewise.
15072         * tests/test-setenv.c: Likewise.
15073         * tests/test-sigaction.c: Likewise.
15074         * tests/test-signbit.c: Likewise.
15075         * tests/test-sleep.c: Likewise.
15076         * tests/test-snprintf-posix.c: Likewise.
15077         * tests/test-snprintf.c: Likewise.
15078         * tests/test-sprintf-posix.c: Likewise.
15079         * tests/test-stat-time.c: Likewise.
15080         * tests/test-stat.c: Likewise.
15081         * tests/test-strcasestr.c: Likewise.
15082         * tests/test-strchrnul.c: Likewise.
15083         * tests/test-strerror.c: Likewise.
15084         * tests/test-striconv.c: Likewise.
15085         * tests/test-striconveh.c: Likewise.
15086         * tests/test-striconveha.c: Likewise.
15087         * tests/test-strsignal.c: Likewise.
15088         * tests/test-strstr.c: Likewise.
15089         * tests/test-strtod.c: Likewise.
15090         * tests/test-strverscmp.c: Likewise.
15091         * tests/test-symlink.c: Likewise.
15092         * tests/test-symlinkat.c: Likewise.
15093         * tests/test-trunc1.c: Likewise.
15094         * tests/test-trunc2.c: Likewise.
15095         * tests/test-truncf1.c: Likewise.
15096         * tests/test-truncf2.c: Likewise.
15097         * tests/test-truncl.c: Likewise.
15098         * tests/test-uname.c: Likewise.
15099         * tests/test-unlink.c: Likewise.
15100         * tests/test-unlinkat.c: Likewise.
15101         * tests/test-unsetenv.c: Likewise.
15102         * tests/test-usleep.c: Likewise.
15103         * tests/test-utimens.c: Likewise.
15104         * tests/test-utimensat.c: Likewise.
15105         * tests/test-vasnprintf-posix.c: Likewise.
15106         * tests/test-vasnprintf-posix2.c: Likewise.
15107         * tests/test-vasnprintf.c: Likewise.
15108         * tests/test-vasprintf-posix.c: Likewise.
15109         * tests/test-vasprintf.c: Likewise.
15110         * tests/test-vdprintf-posix.c: Likewise.
15111         * tests/test-vfprintf-posix.c: Likewise.
15112         * tests/test-vprintf-posix.c: Likewise.
15113         * tests/test-vsnprintf-posix.c: Likewise.
15114         * tests/test-vsnprintf.c: Likewise.
15115         * tests/test-vsprintf-posix.c: Likewise.
15116         * tests/test-wcrtomb.c: Likewise.
15117         * tests/test-wcsnrtombs.c: Likewise.
15118         * tests/test-wcsrtombs.c: Likewise.
15119         * tests/test-wctype.c: Likewise.
15120         * tests/test-wcwidth.c: Likewise.
15121         * tests/test-xfprintf-posix.c: Likewise.
15122         * tests/test-xmemdup0.c: Likewise.
15123         * tests/test-xprintf-posix.c: Likewise.
15124         * tests/test-xvasprintf.c: Likewise.
15125         * tests/unicase/test-locale-language.c: Likewise.
15126         * tests/unicase/test-mapping-part1.h: Likewise.
15127         * tests/unicase/test-predicate-part1.h: Likewise.
15128         * tests/unicase/test-u8-casecmp.c: Likewise.
15129         * tests/unicase/test-u8-casecoll.c: Likewise.
15130         * tests/unicase/test-u8-casefold.c: Likewise.
15131         * tests/unicase/test-u8-is-cased.c: Likewise.
15132         * tests/unicase/test-u8-is-casefolded.c: Likewise.
15133         * tests/unicase/test-u8-is-lowercase.c: Likewise.
15134         * tests/unicase/test-u8-is-titlecase.c: Likewise.
15135         * tests/unicase/test-u8-is-uppercase.c: Likewise.
15136         * tests/unicase/test-u8-tolower.c: Likewise.
15137         * tests/unicase/test-u8-totitle.c: Likewise.
15138         * tests/unicase/test-u8-toupper.c: Likewise.
15139         * tests/unicase/test-u16-casecmp.c: Likewise.
15140         * tests/unicase/test-u16-casecoll.c: Likewise.
15141         * tests/unicase/test-u16-casefold.c: Likewise.
15142         * tests/unicase/test-u16-is-cased.c: Likewise.
15143         * tests/unicase/test-u16-is-casefolded.c: Likewise.
15144         * tests/unicase/test-u16-is-lowercase.c: Likewise.
15145         * tests/unicase/test-u16-is-titlecase.c: Likewise.
15146         * tests/unicase/test-u16-is-uppercase.c: Likewise.
15147         * tests/unicase/test-u16-tolower.c: Likewise.
15148         * tests/unicase/test-u16-totitle.c: Likewise.
15149         * tests/unicase/test-u16-toupper.c: Likewise.
15150         * tests/unicase/test-u32-casecmp.c: Likewise.
15151         * tests/unicase/test-u32-casecoll.c: Likewise.
15152         * tests/unicase/test-u32-casefold.c: Likewise.
15153         * tests/unicase/test-u32-is-cased.c: Likewise.
15154         * tests/unicase/test-u32-is-casefolded.c: Likewise.
15155         * tests/unicase/test-u32-is-lowercase.c: Likewise.
15156         * tests/unicase/test-u32-is-titlecase.c: Likewise.
15157         * tests/unicase/test-u32-is-uppercase.c: Likewise.
15158         * tests/unicase/test-u32-tolower.c: Likewise.
15159         * tests/unicase/test-u32-totitle.c: Likewise.
15160         * tests/unicase/test-u32-toupper.c: Likewise.
15161         * tests/unicase/test-ulc-casecmp.c: Likewise.
15162         * tests/unicase/test-ulc-casecoll.c: Likewise.
15163         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15164         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
15165         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15166         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15167         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
15168         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
15169         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15170         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15171         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15172         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
15173         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15174         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15175         * tests/unictype/test-bidi_byname.c: Likewise.
15176         * tests/unictype/test-bidi_name.c: Likewise.
15177         * tests/unictype/test-bidi_of.c: Likewise.
15178         * tests/unictype/test-bidi_test.c: Likewise.
15179         * tests/unictype/test-block_list.c: Likewise.
15180         * tests/unictype/test-block_of.c: Likewise.
15181         * tests/unictype/test-block_test.c: Likewise.
15182         * tests/unictype/test-categ_and.c: Likewise.
15183         * tests/unictype/test-categ_and_not.c: Likewise.
15184         * tests/unictype/test-categ_byname.c: Likewise.
15185         * tests/unictype/test-categ_name.c: Likewise.
15186         * tests/unictype/test-categ_none.c: Likewise.
15187         * tests/unictype/test-categ_of.c: Likewise.
15188         * tests/unictype/test-categ_or.c: Likewise.
15189         * tests/unictype/test-categ_test_withtable.c: Likewise.
15190         * tests/unictype/test-combining.c: Likewise.
15191         * tests/unictype/test-decdigit.c: Likewise.
15192         * tests/unictype/test-digit.c: Likewise.
15193         * tests/unictype/test-mirror.c: Likewise.
15194         * tests/unictype/test-numeric.c: Likewise.
15195         * tests/unictype/test-pr_byname.c: Likewise.
15196         * tests/unictype/test-pr_test.c: Likewise.
15197         * tests/unictype/test-predicate-part1.h: Likewise.
15198         * tests/unictype/test-scripts.c: Likewise.
15199         * tests/unictype/test-sy_c_ident.c: Likewise.
15200         * tests/unictype/test-sy_java_ident.c: Likewise.
15201         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
15202         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
15203         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
15204         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
15205         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
15206         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
15207         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
15208         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
15209         * tests/uninorm/test-canonical-decomposition.c: Likewise.
15210         * tests/uninorm/test-compat-decomposition.c: Likewise.
15211         * tests/uninorm/test-composition.c: Likewise.
15212         * tests/uninorm/test-decomposing-form.c: Likewise.
15213         * tests/uninorm/test-decomposition.c: Likewise.
15214         * tests/uninorm/test-u8-nfc.c: Likewise.
15215         * tests/uninorm/test-u8-nfd.c: Likewise.
15216         * tests/uninorm/test-u8-nfkc.c: Likewise.
15217         * tests/uninorm/test-u8-nfkd.c: Likewise.
15218         * tests/uninorm/test-u8-normcmp.c: Likewise.
15219         * tests/uninorm/test-u8-normcoll.c: Likewise.
15220         * tests/uninorm/test-u16-nfc.c: Likewise.
15221         * tests/uninorm/test-u16-nfd.c: Likewise.
15222         * tests/uninorm/test-u16-nfkc.c: Likewise.
15223         * tests/uninorm/test-u16-nfkd.c: Likewise.
15224         * tests/uninorm/test-u16-normcmp.c: Likewise.
15225         * tests/uninorm/test-u16-normcoll.c: Likewise.
15226         * tests/uninorm/test-u32-nfc.c: Likewise.
15227         * tests/uninorm/test-u32-nfd.c: Likewise.
15228         * tests/uninorm/test-u32-nfkc.c: Likewise.
15229         * tests/uninorm/test-u32-nfkd.c: Likewise.
15230         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15231         * tests/uninorm/test-u32-normcmp.c: Likewise.
15232         * tests/uninorm/test-u32-normcoll.c: Likewise.
15233         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
15234         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15235         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15236         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15237         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15238         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15239         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15240         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15241         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15242         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15243         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15244         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15245         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15246         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15247         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15248         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15249         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15250         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15251         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15252         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15253         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15254         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15255         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15256         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15257         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15258         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15259         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15260         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15261         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15262         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
15263         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
15264         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
15265         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
15266         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15267         * tests/uniwidth/test-u8-width.c: Likewise.
15268         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15269         * tests/uniwidth/test-u16-width.c: Likewise.
15270         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15271         * tests/uniwidth/test-u32-width.c: Likewise.
15272         * tests/uniwidth/test-uc_width.c: Likewise.
15273         * tests/uniwidth/test-uc_width2.c: Likewise.
15274         * modules/acl-tests (Files): Add tests/macros.h.
15275         * modules/areadlink-tests (Files): Likewise.
15276         * modules/areadlink-with-size-tests (Files): Likewise.
15277         * modules/areadlinkat-tests (Files): Likewise.
15278         * modules/areadlinkat-with-size-tests (Files): Likewise.
15279         * modules/argmatch-tests (Files): Likewise.
15280         * modules/argv-iter-tests (Files): Likewise.
15281         * modules/array-list-tests (Files): Likewise.
15282         * modules/array-mergesort-tests (Files): Likewise.
15283         * modules/array-oset-tests (Files): Likewise.
15284         * modules/avltree-list-tests (Files): Likewise.
15285         * modules/avltree-oset-tests (Files): Likewise.
15286         * modules/avltreehash-list-tests (Files): Likewise.
15287         * modules/base64-tests (Files): Likewise.
15288         * modules/binary-io-tests (Files): Likewise.
15289         * modules/bitrotate-tests (Files): Likewise.
15290         * modules/btowc-tests (Files): Likewise.
15291         * modules/byteswap-tests (Files): Likewise.
15292         * modules/c-ctype-tests (Files): Likewise.
15293         * modules/c-stack-tests (Files): Likewise.
15294         * modules/c-strcase-tests (Files): Likewise.
15295         * modules/c-strcasestr-tests (Files): Likewise.
15296         * modules/c-strstr-tests (Files): Likewise.
15297         * modules/canonicalize-lgpl-tests (Files): Likewise.
15298         * modules/canonicalize-tests (Files): Likewise.
15299         * modules/carray-list-tests (Files): Likewise.
15300         * modules/ceilf-tests (Files): Likewise.
15301         * modules/ceill-tests (Files): Likewise.
15302         * modules/chown-tests (Files): Likewise.
15303         * modules/cloexec-tests (Files): Likewise.
15304         * modules/copy-file-tests (Files): Likewise.
15305         * modules/count-one-bits-tests (Files): Likewise.
15306         * modules/dprintf-posix-tests (Files): Likewise.
15307         * modules/dup2-tests (Files): Likewise.
15308         * modules/dup3-tests (Files): Likewise.
15309         * modules/duplocale-tests (Files): Likewise.
15310         * modules/fbufmode-tests (Files): Likewise.
15311         * modules/fchdir-tests (Files): Likewise.
15312         * modules/fcntl-safer-tests (Files): Likewise.
15313         * modules/fcntl-tests (Files): Likewise.
15314         * modules/fdopendir-tests (Files): Likewise.
15315         * modules/fdutimensat-tests (Files): Likewise.
15316         * modules/fflush-tests (Files): Likewise.
15317         * modules/filevercmp-tests (Files): Likewise.
15318         * modules/flock-tests (Files): Likewise.
15319         * modules/floorf-tests (Files): Likewise.
15320         * modules/floorl-tests (Files): Likewise.
15321         * modules/fnmatch-tests (Files): Likewise.
15322         * modules/fopen-safer-tests (Files): Likewise.
15323         * modules/fopen-tests (Files): Likewise.
15324         * modules/fpending-tests (Files): Likewise.
15325         * modules/fprintf-posix-tests (Files): Likewise.
15326         * modules/fpurge-tests (Files): Likewise.
15327         * modules/freadable-tests (Files): Likewise.
15328         * modules/freadahead-tests (Files): Likewise.
15329         * modules/freading-tests (Files): Likewise.
15330         * modules/freadptr-tests (Files): Likewise.
15331         * modules/freadseek-tests (Files): Likewise.
15332         * modules/freopen-tests (Files): Likewise.
15333         * modules/frexp-nolibm-tests (Files): Likewise.
15334         * modules/frexp-tests (Files): Likewise.
15335         * modules/frexpl-nolibm-tests (Files): Likewise.
15336         * modules/frexpl-tests (Files): Likewise.
15337         * modules/fseek-tests (Files): Likewise.
15338         * modules/fseeko-tests (Files): Likewise.
15339         * modules/fstrcmp-tests (Files): Likewise.
15340         * modules/fsync-tests (Files): Likewise.
15341         * modules/ftell-tests (Files): Likewise.
15342         * modules/ftello-tests (Files): Likewise.
15343         * modules/func-tests (Files): Likewise.
15344         * modules/futimens-tests (Files): Likewise.
15345         * modules/fwritable-tests (Files): Likewise.
15346         * modules/fwriting-tests (Files): Likewise.
15347         * modules/getcwd-tests (Files): Likewise.
15348         * modules/getdate-tests (Files): Likewise.
15349         * modules/getdelim-tests (Files): Likewise.
15350         * modules/getdtablesize-tests (Files): Likewise.
15351         * modules/getgroups-tests (Files): Likewise.
15352         * modules/getline-tests (Files): Likewise.
15353         * modules/getndelim2-tests (Files): Likewise.
15354         * modules/glob-tests (Files): Likewise.
15355         * modules/hash-tests (Files): Likewise.
15356         * modules/i-ring-tests (Files): Likewise.
15357         * modules/iconv-tests (Files): Likewise.
15358         * modules/iconv_open-utf-tests (Files): Likewise.
15359         * modules/idpriv-drop-tests (Files): Likewise.
15360         * modules/idpriv-droptemp-tests (Files): Likewise.
15361         * modules/inet_ntop-tests (Files): Likewise.
15362         * modules/inet_pton-tests (Files): Likewise.
15363         * modules/isblank-tests (Files): Likewise.
15364         * modules/isfinite-tests (Files): Likewise.
15365         * modules/isinf-tests (Files): Likewise.
15366         * modules/isnan-tests (Files): Likewise.
15367         * modules/isnand-nolibm-tests (Files): Likewise.
15368         * modules/isnand-tests (Files): Likewise.
15369         * modules/isnanf-nolibm-tests (Files): Likewise.
15370         * modules/isnanf-tests (Files): Likewise.
15371         * modules/isnanl-nolibm-tests (Files): Likewise.
15372         * modules/isnanl-tests (Files): Likewise.
15373         * modules/lchown-tests (Files): Likewise.
15374         * modules/ldexpl-tests (Files): Likewise.
15375         * modules/link-tests (Files): Likewise.
15376         * modules/linkat-tests (Files): Likewise.
15377         * modules/linked-list-tests (Files): Likewise.
15378         * modules/linkedhash-list-tests (Files): Likewise.
15379         * modules/localename-tests (Files): Likewise.
15380         * modules/lseek-tests (Files): Likewise.
15381         * modules/lstat-tests (Files): Likewise.
15382         * modules/mbmemcasecmp-tests (Files): Likewise.
15383         * modules/mbmemcasecoll-tests (Files): Likewise.
15384         * modules/mbrtowc-tests (Files): Likewise.
15385         * modules/mbscasecmp-tests (Files): Likewise.
15386         * modules/mbscasestr-tests (Files): Likewise.
15387         * modules/mbschr-tests (Files): Likewise.
15388         * modules/mbscspn-tests (Files): Likewise.
15389         * modules/mbsinit-tests (Files): Likewise.
15390         * modules/mbsncasecmp-tests (Files): Likewise.
15391         * modules/mbsnrtowcs-tests (Files): Likewise.
15392         * modules/mbspbrk-tests (Files): Likewise.
15393         * modules/mbspcasecmp-tests (Files): Likewise.
15394         * modules/mbsrchr-tests (Files): Likewise.
15395         * modules/mbsrtowcs-tests (Files): Likewise.
15396         * modules/mbsspn-tests (Files): Likewise.
15397         * modules/mbsstr-tests (Files): Likewise.
15398         * modules/memchr-tests (Files): Likewise.
15399         * modules/memchr2-tests (Files): Likewise.
15400         * modules/memcmp-tests (Files): Likewise.
15401         * modules/memmem-tests (Files): Likewise.
15402         * modules/memrchr-tests (Files): Likewise.
15403         * modules/mkdir-tests (Files): Likewise.
15404         * modules/mkfifo-tests (Files): Likewise.
15405         * modules/mkfifoat-tests (Files): Likewise.
15406         * modules/mknod-tests (Files): Likewise.
15407         * modules/nanosleep-tests (Files): Likewise.
15408         * modules/nl_langinfo-tests (Files): Likewise.
15409         * modules/obstack-printf-tests (Files): Likewise.
15410         * modules/open-tests (Files): Likewise.
15411         * modules/openat-tests (Files): Likewise.
15412         * modules/pipe-filter-gi-tests (Files): Likewise.
15413         * modules/pipe-filter-ii-tests (Files): Likewise.
15414         * modules/pipe2-tests (Files): Likewise.
15415         * modules/popen-safer-tests (Files): Likewise.
15416         * modules/popen-tests (Files): Likewise.
15417         * modules/posixtm-tests (Files): Likewise.
15418         * modules/pread-tests (Files): Likewise.
15419         * modules/printf-frexp-tests (Files): Likewise.
15420         * modules/printf-frexpl-tests (Files): Likewise.
15421         * modules/printf-posix-tests (Files): Likewise.
15422         * modules/priv-set-tests (Files): Likewise.
15423         * modules/quotearg-tests (Files): Likewise.
15424         * modules/random_r-tests (Files): Likewise.
15425         * modules/rawmemchr-tests (Files): Likewise.
15426         * modules/rbtree-list-tests (Files): Likewise.
15427         * modules/rbtree-oset-tests (Files): Likewise.
15428         * modules/rbtreehash-list-tests (Files): Likewise.
15429         * modules/readlink-tests (Files): Likewise.
15430         * modules/remove-tests (Files): Likewise.
15431         * modules/rename-tests (Files): Likewise.
15432         * modules/renameat-tests (Files): Likewise.
15433         * modules/rmdir-tests (Files): Likewise.
15434         * modules/round-tests (Files): Likewise.
15435         * modules/roundf-tests (Files): Likewise.
15436         * modules/roundl-tests (Files): Likewise.
15437         * modules/safe-alloc-tests (Files): Likewise.
15438         * modules/setenv-tests (Files): Likewise.
15439         * modules/sigaction-tests (Files): Likewise.
15440         * modules/signbit-tests (Files): Likewise.
15441         * modules/sleep-tests (Files): Likewise.
15442         * modules/snprintf-posix-tests (Files): Likewise.
15443         * modules/snprintf-tests (Files): Likewise.
15444         * modules/sprintf-posix-tests (Files): Likewise.
15445         * modules/stat-tests (Files): Likewise.
15446         * modules/stat-time-tests (Files): Likewise.
15447         * modules/strcasestr-tests (Files): Likewise.
15448         * modules/strchrnul-tests (Files): Likewise.
15449         * modules/strerror-tests (Files): Likewise.
15450         * modules/striconv-tests (Files): Likewise.
15451         * modules/striconveh-tests (Files): Likewise.
15452         * modules/striconveha-tests (Files): Likewise.
15453         * modules/strsignal-tests (Files): Likewise.
15454         * modules/strstr-tests (Files): Likewise.
15455         * modules/strtod-tests (Files): Likewise.
15456         * modules/strverscmp-tests (Files): Likewise.
15457         * modules/symlink-tests (Files): Likewise.
15458         * modules/symlinkat-tests (Files): Likewise.
15459         * modules/trunc-tests (Files): Likewise.
15460         * modules/truncf-tests (Files): Likewise.
15461         * modules/truncl-tests (Files): Likewise.
15462         * modules/uname-tests (Files): Likewise.
15463         * modules/unicase/cased-tests (Files): Likewise.
15464         * modules/unicase/ignorable-tests (Files): Likewise.
15465         * modules/unicase/locale-language-tests (Files): Likewise.
15466         * modules/unicase/tolower-tests (Files): Likewise.
15467         * modules/unicase/totitle-tests (Files): Likewise.
15468         * modules/unicase/toupper-tests (Files): Likewise.
15469         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15470         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15471         * modules/unicase/u8-casefold-tests (Files): Likewise.
15472         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15473         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15474         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15475         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15476         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15477         * modules/unicase/u8-tolower-tests (Files): Likewise.
15478         * modules/unicase/u8-totitle-tests (Files): Likewise.
15479         * modules/unicase/u8-toupper-tests (Files): Likewise.
15480         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15481         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15482         * modules/unicase/u16-casefold-tests (Files): Likewise.
15483         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15484         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15485         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15486         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15487         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15488         * modules/unicase/u16-tolower-tests (Files): Likewise.
15489         * modules/unicase/u16-totitle-tests (Files): Likewise.
15490         * modules/unicase/u16-toupper-tests (Files): Likewise.
15491         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15492         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15493         * modules/unicase/u32-casefold-tests (Files): Likewise.
15494         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15495         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15496         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15497         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15498         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15499         * modules/unicase/u32-tolower-tests (Files): Likewise.
15500         * modules/unicase/u32-totitle-tests (Files): Likewise.
15501         * modules/unicase/u32-toupper-tests (Files): Likewise.
15502         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15503         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15504         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15505         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15506         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15507         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15508         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15509         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15510         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15511         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15512         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15513         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15514         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15515         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15516         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15517         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15518         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15519         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15520         * modules/unictype/block-list-tests (Files): Likewise.
15521         * modules/unictype/block-of-tests (Files): Likewise.
15522         * modules/unictype/block-test-tests (Files): Likewise.
15523         * modules/unictype/category-C-tests (Files): Likewise.
15524         * modules/unictype/category-Cc-tests (Files): Likewise.
15525         * modules/unictype/category-Cf-tests (Files): Likewise.
15526         * modules/unictype/category-Cn-tests (Files): Likewise.
15527         * modules/unictype/category-Co-tests (Files): Likewise.
15528         * modules/unictype/category-Cs-tests (Files): Likewise.
15529         * modules/unictype/category-L-tests (Files): Likewise.
15530         * modules/unictype/category-Ll-tests (Files): Likewise.
15531         * modules/unictype/category-Lm-tests (Files): Likewise.
15532         * modules/unictype/category-Lo-tests (Files): Likewise.
15533         * modules/unictype/category-Lt-tests (Files): Likewise.
15534         * modules/unictype/category-Lu-tests (Files): Likewise.
15535         * modules/unictype/category-M-tests (Files): Likewise.
15536         * modules/unictype/category-Mc-tests (Files): Likewise.
15537         * modules/unictype/category-Me-tests (Files): Likewise.
15538         * modules/unictype/category-Mn-tests (Files): Likewise.
15539         * modules/unictype/category-N-tests (Files): Likewise.
15540         * modules/unictype/category-Nd-tests (Files): Likewise.
15541         * modules/unictype/category-Nl-tests (Files): Likewise.
15542         * modules/unictype/category-No-tests (Files): Likewise.
15543         * modules/unictype/category-P-tests (Files): Likewise.
15544         * modules/unictype/category-Pc-tests (Files): Likewise.
15545         * modules/unictype/category-Pd-tests (Files): Likewise.
15546         * modules/unictype/category-Pe-tests (Files): Likewise.
15547         * modules/unictype/category-Pf-tests (Files): Likewise.
15548         * modules/unictype/category-Pi-tests (Files): Likewise.
15549         * modules/unictype/category-Po-tests (Files): Likewise.
15550         * modules/unictype/category-Ps-tests (Files): Likewise.
15551         * modules/unictype/category-S-tests (Files): Likewise.
15552         * modules/unictype/category-Sc-tests (Files): Likewise.
15553         * modules/unictype/category-Sk-tests (Files): Likewise.
15554         * modules/unictype/category-Sm-tests (Files): Likewise.
15555         * modules/unictype/category-So-tests (Files): Likewise.
15556         * modules/unictype/category-Z-tests (Files): Likewise.
15557         * modules/unictype/category-Zl-tests (Files): Likewise.
15558         * modules/unictype/category-Zp-tests (Files): Likewise.
15559         * modules/unictype/category-Zs-tests (Files): Likewise.
15560         * modules/unictype/category-and-not-tests (Files): Likewise.
15561         * modules/unictype/category-and-tests (Files): Likewise.
15562         * modules/unictype/category-byname-tests (Files): Likewise.
15563         * modules/unictype/category-name-tests (Files): Likewise.
15564         * modules/unictype/category-none-tests (Files): Likewise.
15565         * modules/unictype/category-of-tests (Files): Likewise.
15566         * modules/unictype/category-or-tests (Files): Likewise.
15567         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15568         * modules/unictype/combining-class-tests (Files): Likewise.
15569         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15570         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15571         * modules/unictype/ctype-blank-tests (Files): Likewise.
15572         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15573         * modules/unictype/ctype-digit-tests (Files): Likewise.
15574         * modules/unictype/ctype-graph-tests (Files): Likewise.
15575         * modules/unictype/ctype-lower-tests (Files): Likewise.
15576         * modules/unictype/ctype-print-tests (Files): Likewise.
15577         * modules/unictype/ctype-punct-tests (Files): Likewise.
15578         * modules/unictype/ctype-space-tests (Files): Likewise.
15579         * modules/unictype/ctype-upper-tests (Files): Likewise.
15580         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15581         * modules/unictype/decimal-digit-tests (Files): Likewise.
15582         * modules/unictype/digit-tests (Files): Likewise.
15583         * modules/unictype/mirror-tests (Files): Likewise.
15584         * modules/unictype/numeric-tests (Files): Likewise.
15585         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15586         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15587         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15588         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15589         Likewise.
15590         * modules/unictype/property-bidi-block-separator-tests (Files):
15591         Likewise.
15592         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15593         Likewise.
15594         * modules/unictype/property-bidi-common-separator-tests (Files):
15595         Likewise.
15596         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15597         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15598         Likewise.
15599         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15600         Likewise.
15601         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15602         Likewise.
15603         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15604         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15605         Likewise.
15606         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15607         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15608         Likewise.
15609         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15610         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15611         * modules/unictype/property-bidi-segment-separator-tests (Files):
15612         Likewise.
15613         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15614         * modules/unictype/property-byname-tests (Files): Likewise.
15615         * modules/unictype/property-combining-tests (Files): Likewise.
15616         * modules/unictype/property-composite-tests (Files): Likewise.
15617         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15618         * modules/unictype/property-dash-tests (Files): Likewise.
15619         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15620         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15621         Likewise.
15622         * modules/unictype/property-deprecated-tests (Files): Likewise.
15623         * modules/unictype/property-diacritic-tests (Files): Likewise.
15624         * modules/unictype/property-extender-tests (Files): Likewise.
15625         * modules/unictype/property-format-control-tests (Files): Likewise.
15626         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15627         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15628         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15629         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15630         * modules/unictype/property-hyphen-tests (Files): Likewise.
15631         * modules/unictype/property-id-continue-tests (Files): Likewise.
15632         * modules/unictype/property-id-start-tests (Files): Likewise.
15633         * modules/unictype/property-ideographic-tests (Files): Likewise.
15634         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15635         * modules/unictype/property-ids-trinary-operator-tests (Files):
15636         Likewise.
15637         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15638         * modules/unictype/property-iso-control-tests (Files): Likewise.
15639         * modules/unictype/property-join-control-tests (Files): Likewise.
15640         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15641         * modules/unictype/property-line-separator-tests (Files): Likewise.
15642         * modules/unictype/property-logical-order-exception-tests (Files):
15643         Likewise.
15644         * modules/unictype/property-lowercase-tests (Files): Likewise.
15645         * modules/unictype/property-math-tests (Files): Likewise.
15646         * modules/unictype/property-non-break-tests (Files): Likewise.
15647         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15648         * modules/unictype/property-numeric-tests (Files): Likewise.
15649         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15650         * modules/unictype/property-other-default-ignorable-code-point-tests
15651         (Files): Likewise.
15652         * modules/unictype/property-other-grapheme-extend-tests (Files):
15653         Likewise.
15654         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15655         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15656         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15657         * modules/unictype/property-other-math-tests (Files): Likewise.
15658         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15659         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15660         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15661         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15662         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15663         * modules/unictype/property-private-use-tests (Files): Likewise.
15664         * modules/unictype/property-punctuation-tests (Files): Likewise.
15665         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15666         * modules/unictype/property-radical-tests (Files): Likewise.
15667         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15668         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15669         * modules/unictype/property-space-tests (Files): Likewise.
15670         * modules/unictype/property-terminal-punctuation-tests (Files):
15671         Likewise.
15672         * modules/unictype/property-test-tests (Files): Likewise.
15673         * modules/unictype/property-titlecase-tests (Files): Likewise.
15674         * modules/unictype/property-unassigned-code-value-tests (Files):
15675         Likewise.
15676         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15677         * modules/unictype/property-uppercase-tests (Files): Likewise.
15678         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15679         * modules/unictype/property-white-space-tests (Files): Likewise.
15680         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15681         * modules/unictype/property-xid-start-tests (Files): Likewise.
15682         * modules/unictype/property-zero-width-tests (Files): Likewise.
15683         * modules/unictype/scripts-tests (Files): Likewise.
15684         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15685         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15686         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15687         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15688         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15689         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15690         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15691         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15692         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15693         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15694         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15695         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15696         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15697         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15698         * modules/uninorm/composition-tests (Files): Likewise.
15699         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15700         * modules/uninorm/decomposition-tests (Files): Likewise.
15701         * modules/uninorm/filter-tests (Files): Likewise.
15702         * modules/uninorm/nfc-tests (Files): Likewise.
15703         * modules/uninorm/nfd-tests (Files): Likewise.
15704         * modules/uninorm/nfkc-tests (Files): Likewise.
15705         * modules/uninorm/nfkd-tests (Files): Likewise.
15706         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15707         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15708         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15709         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15710         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15711         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15712         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15713         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15714         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15715         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15716         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15717         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15718         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15719         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15720         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15721         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15722         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15723         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15724         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15725         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15726         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15727         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15728         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15729         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15730         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15731         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15732         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15733         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15734         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15735         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15736         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15737         * modules/uniwidth/u8-width-tests (Files): Likewise.
15738         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15739         * modules/uniwidth/u16-width-tests (Files): Likewise.
15740         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15741         * modules/uniwidth/u32-width-tests (Files): Likewise.
15742         * modules/uniwidth/width-tests (Files): Likewise.
15743         * modules/unlink-tests (Files): Likewise.
15744         * modules/unsetenv-tests (Files): Likewise.
15745         * modules/usleep-tests (Files): Likewise.
15746         * modules/utimens-tests (Files): Likewise.
15747         * modules/utimensat-tests (Files): Likewise.
15748         * modules/vasnprintf-posix-tests (Files): Likewise.
15749         * modules/vasnprintf-tests (Files): Likewise.
15750         * modules/vasprintf-posix-tests (Files): Likewise.
15751         * modules/vasprintf-tests (Files): Likewise.
15752         * modules/vdprintf-posix-tests (Files): Likewise.
15753         * modules/vfprintf-posix-tests (Files): Likewise.
15754         * modules/vprintf-posix-tests (Files): Likewise.
15755         * modules/vsnprintf-posix-tests (Files): Likewise.
15756         * modules/vsnprintf-tests (Files): Likewise.
15757         * modules/vsprintf-posix-tests (Files): Likewise.
15758         * modules/wcrtomb-tests (Files): Likewise.
15759         * modules/wcsnrtombs-tests (Files): Likewise.
15760         * modules/wcsrtombs-tests (Files): Likewise.
15761         * modules/wctype-tests (Files): Likewise.
15762         * modules/wcwidth-tests (Files): Likewise.
15763         * modules/xmemdup0-tests (Files): Likewise.
15764         * modules/xprintf-posix-tests (Files): Likewise.
15765         * modules/xvasprintf-tests (Files): Likewise.
15766
15767 2009-12-24  Eric Blake  <ebb9@byu.net>
15768
15769         test-nanosleep: fix typo
15770         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15771         patch.
15772         Reported by Bruno Haible.
15773
15774 2009-12-24  Bruno Haible  <bruno@clisp.org>
15775
15776         Reduce namespace pollution on glibc systems.
15777         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15778         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15779         systems.
15780         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15781         <getopt.h> on glibc systems.
15782         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15783         systems.
15784         * lib/fcntl.c: Include <unistd.h> here instead.
15785
15786 2009-12-24  Bruno Haible  <bruno@clisp.org>
15787
15788         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15789
15790 2009-12-24  Eric Blake  <ebb9@byu.net>
15791
15792         tests: add signature checks
15793         * tests/signature.h (SIGNATURE_CHECK): New file.
15794         * modules/atexit-tests (Files): Use it.
15795         * modules/btowc-tests (Files): Likewise.
15796         * modules/canonicalize-lgpl-tests (Files): Likewise.
15797         * modules/ceilf-tests (Files): Likewise.
15798         * modules/ceill-tests (Files): Likewise.
15799         * modules/chown-tests (Files): Likewise.
15800         * modules/dprintf-posix-tests (Files): Likewise.
15801         * modules/dup2-tests (Files): Likewise.
15802         * modules/dup3-tests (Files): Likewise.
15803         * modules/duplocale-tests (Files): Likewise.
15804         * modules/fchdir-tests (Files): Likewise.
15805         * modules/fcntl-tests (Files): Likewise.
15806         * modules/fdopendir-tests (Files): Likewise.
15807         * modules/fflush-tests (Files): Likewise.
15808         * modules/flock-tests (Files): Likewise.
15809         * modules/floorf-tests (Files): Likewise.
15810         * modules/floorl-tests (Files): Likewise.
15811         * modules/fnmatch-tests (Files): Likewise.
15812         * modules/fopen-tests (Files): Likewise.
15813         * modules/fprintf-posix-tests (Files): Likewise.
15814         * modules/freopen-tests (Files): Likewise.
15815         * modules/frexp-nolibm-tests (Files): Likewise.
15816         * modules/frexp-tests (Files): Likewise.
15817         * modules/frexpl-nolibm-tests (Files): Likewise.
15818         * modules/frexpl-tests (Files): Likewise.
15819         * modules/fseek-tests (Files): Likewise.
15820         * modules/fseeko-tests (Files): Likewise.
15821         * modules/fsync-tests (Files): Likewise.
15822         * modules/ftell-tests (Files): Likewise.
15823         * modules/ftello-tests (Files): Likewise.
15824         * modules/futimens-tests (Files): Likewise.
15825         * modules/getaddrinfo-tests (Files): Likewise.
15826         * modules/getcwd-tests (Files): Likewise.
15827         * modules/getdelim-tests (Files): Likewise.
15828         * modules/getdtablesize-tests (Files): Likewise.
15829         * modules/getgroups-tests (Files): Likewise.
15830         * modules/gethostname-tests (Files): Likewise.
15831         * modules/getline-tests (Files): Likewise.
15832         * modules/getopt-posix-tests (Files): Likewise.
15833         * modules/gettimeofday-tests (Files): Likewise.
15834         * modules/glob-tests (Files): Likewise.
15835         * modules/iconv-tests (Files): Likewise.
15836         * modules/inet_ntop-tests (Files): Likewise.
15837         * modules/inet_pton-tests (Files): Likewise.
15838         * modules/isblank-tests (Files): Likewise.
15839         * modules/lchown-tests (Files): Likewise.
15840         * modules/ldexpl-tests (Files): Likewise.
15841         * modules/link-tests (Files): Likewise.
15842         * modules/linkat-tests (Files): Likewise.
15843         * modules/lseek-tests (Files): Likewise.
15844         * modules/lstat-tests (Files): Likewise.
15845         * modules/mbrtowc-tests (Files): Likewise.
15846         * modules/mbsinit-tests (Files): Likewise.
15847         * modules/mbsnrtowcs-tests (Files): Likewise.
15848         * modules/mbsrtowcs-tests (Files): Likewise.
15849         * modules/memchr-tests (Files): Likewise.
15850         * modules/memcmp-tests (Files): Likewise.
15851         * modules/memmem-tests (Files): Likewise.
15852         * modules/memrchr-tests (Files): Likewise.
15853         * modules/mkdir-tests (Files): Likewise.
15854         * modules/mkfifo-tests (Files): Likewise.
15855         * modules/mkfifoat-tests (Files): Likewise.
15856         * modules/mknod-tests (Files): Likewise.
15857         * modules/nanosleep-tests (Files): Likewise.
15858         * modules/nl_langinfo-tests (Files): Likewise.
15859         * modules/obstack-printf-tests (Files): Likewise.
15860         * modules/open-tests (Files): Likewise.
15861         * modules/openat-tests (Files): Likewise.
15862         * modules/perror-tests (Files): Likewise.
15863         * modules/pipe2-tests (Files): Likewise.
15864         * modules/poll-tests (Files): Likewise.
15865         * modules/popen-tests (Files): Likewise.
15866         * modules/posix_spawn-tests (Files): Likewise.
15867         * modules/posix_spawnp-tests (Files): Likewise.
15868         * modules/pread-tests (Files): Likewise.
15869         * modules/printf-posix-tests (Files): Likewise.
15870         * modules/pty-tests (Files): Likewise.
15871         * modules/random_r-tests (Files): Likewise.
15872         * modules/rawmemchr-tests (Files): Likewise.
15873         * modules/readlink-tests (Files): Likewise.
15874         * modules/remove-tests (Files): Likewise.
15875         * modules/rename-tests (Files): Likewise.
15876         * modules/renameat-tests (Files): Likewise.
15877         * modules/rmdir-tests (Files): Likewise.
15878         * modules/round-tests (Files): Likewise.
15879         * modules/roundf-tests (Files): Likewise.
15880         * modules/roundl-tests (Files): Likewise.
15881         * modules/select-tests (Files): Likewise.
15882         * modules/setenv-tests (Files): Likewise.
15883         * modules/sigaction-tests (Files): Likewise.
15884         * modules/sleep-tests (Files): Likewise.
15885         * modules/snprintf-posix-tests (Files): Likewise.
15886         * modules/snprintf-tests (Files): Likewise.
15887         * modules/sprintf-posix-tests (Files): Likewise.
15888         * modules/stat-tests (Files): Likewise.
15889         * modules/strcasestr-tests (Files): Likewise.
15890         * modules/strchrnul-tests (Files): Likewise.
15891         * modules/strerror-tests (Files): Likewise.
15892         * modules/strsignal-tests (Files): Likewise.
15893         * modules/strstr-tests (Files): Likewise.
15894         * modules/strtod-tests (Files): Likewise.
15895         * modules/strverscmp-tests (Files): Likewise.
15896         * modules/symlink-tests (Files): Likewise.
15897         * modules/symlinkat-tests (Files): Likewise.
15898         * modules/times-tests (Files): Likewise.
15899         * modules/trunc-tests (Files): Likewise.
15900         * modules/truncf-tests (Files): Likewise.
15901         * modules/truncl-tests (Files): Likewise.
15902         * modules/tsearch-tests (Files): Likewise.
15903         * modules/uname-tests (Files): Likewise.
15904         * modules/unlink-tests (Files): Likewise.
15905         * modules/unsetenv-tests (Files): Likewise.
15906         * modules/usleep-tests (Files): Likewise.
15907         * modules/utimensat-tests (Files): Likewise.
15908         * modules/vasprintf-tests (Files): Likewise.
15909         * modules/vdprintf-posix-tests (Files): Likewise.
15910         * modules/vfprintf-posix-tests (Files): Likewise.
15911         * modules/vprintf-posix-tests (Files): Likewise.
15912         * modules/vsnprintf-posix-tests (Files): Likewise.
15913         * modules/vsnprintf-tests (Files): Likewise.
15914         * modules/vsprintf-posix-tests (Files): Likewise.
15915         * modules/wcrtomb-tests (Files): Likewise.
15916         * modules/wcsnrtombs-tests (Files): Likewise.
15917         * modules/wcsrtombs-tests (Files): Likewise.
15918         * modules/wcwidth-tests (Files): Likewise.
15919         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15920         * tests/test-isinf.c (isinf): Likewise.
15921         * tests/test-isnan.c (isnan): Likewise.
15922         * tests/test-signbit.c (signbit): Likewise.
15923         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15924         declaration, either as macro or with correct signature.
15925         (select): Ensure function under test is declared with correct
15926         signature in correct header.
15927         * tests/test-atexit.c (atexit): Likewise.
15928         * tests/test-btowc.c (btowc): Likewise.
15929         * tests/test-canonicalize-lgpl.c (realpath)
15930         (canonicalize_file_name): Likewise.
15931         * tests/test-ceilf1.c (ceilf): Likewise.
15932         * tests/test-ceill.c (ceill): Likewise.
15933         * tests/test-chown.c (chown): Likewise.
15934         * tests/test-dprintf-posix.c (dprintf): Likewise.
15935         * tests/test-dup2.c (dup2): Likewise.
15936         * tests/test-dup3.c (dup3): Likewise.
15937         * tests/test-duplocale.c (duplocale): Likewise.
15938         * tests/test-fchdir.c (fchdir): Likewise.
15939         * tests/test-fchownat.c (fchownat): Likewise.
15940         * tests/test-fcntl.c (fcntl): Likewise.
15941         * tests/test-fdopendir.c (fdopendir): Likewise.
15942         * tests/test-fflush.c (fflush): Likewise.
15943         * tests/test-flock.c (flock): Likewise.
15944         * tests/test-floorf1.c (floorf): Likewise.
15945         * tests/test-floorl.c (floorl): Likewise.
15946         * tests/test-fnmatch.c (fnmatch): Likewise.
15947         * tests/test-fopen.c (fopen): Likewise.
15948         * tests/test-fprintf-posix.c (fprintf): Likewise.
15949         * tests/test-freopen.c (freopen): Likewise.
15950         * tests/test-frexp.c (frexp): Likewise.
15951         * tests/test-frexpl.c (frexpl): Likewise.
15952         * tests/test-fseek.c (fseek): Likewise.
15953         * tests/test-fseeko.c (fseeko): Likewise.
15954         * tests/test-fstatat.c (fstatat): Likewise.
15955         * tests/test-fsync.c (fsync): Likewise.
15956         * tests/test-ftell.c (ftell): Likewise.
15957         * tests/test-ftello.c (ftello): Likewise.
15958         * tests/test-futimens.c (futimens): Likewise.
15959         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15960         (gai_strerror): Likewise.
15961         * tests/test-getcwd.c (getcwd): Likewise.
15962         * tests/test-getdelim.c (getdelim): Likewise.
15963         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15964         * tests/test-getgroups.c (getgroups): Likewise.
15965         * tests/test-gethostname.c (gethostname): Likewise.
15966         * tests/test-getline.c (getline): Likewise.
15967         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15968         Likewise.
15969         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15970         * tests/test-glob.c (glob, globfree): Likewise.
15971         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15972         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15973         * tests/test-inet_pton.c (inet_pton): Likewise.
15974         * tests/test-isblank.c (isblank): Likewise.
15975         * tests/test-lchown.c (lchown): Likewise.
15976         * tests/test-ldexpl.c (ldexpl): Likewise.
15977         * tests/test-link.c (link): Likewise.
15978         * tests/test-linkat.c (linkat): Likewise.
15979         * tests/test-lseek.c (lseek): Likewise.
15980         * tests/test-lstat.c (lstat): Likewise.
15981         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15982         * tests/test-mbsinit.c (mbsinit): Likewise.
15983         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15984         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15985         * tests/test-memchr.c (memchr): Likewise.
15986         * tests/test-memcmp.c (memcmp): Likewise.
15987         * tests/test-memmem.c (memmem): Likewise.
15988         * tests/test-memrchr.c (memrchr): Likewise.
15989         * tests/test-mkdir.c (mkdir): Likewise.
15990         * tests/test-mkdirat.c (mkdirat): Likewise.
15991         * tests/test-mkfifo.c (mkfifo): Likewise.
15992         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15993         * tests/test-mknod.c (mknod): Likewise.
15994         * tests/test-nanosleep.c (nanosleep): Likewise.
15995         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15996         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15997         Likewise.
15998         * tests/test-open.c (open): Likewise.
15999         * tests/test-openat.c (openat): Likewise.
16000         * tests/test-perror.c (perror): Likewise.
16001         * tests/test-pipe2.c (pipe2): Likewise.
16002         * tests/test-poll.c (poll): Likewise.
16003         * tests/test-popen.c (popen, pclose): Likewise.
16004         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
16005         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
16006         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
16007         (posix_spawn_file_actions_destroy)
16008         (posix_spawn_file_actions_addclose)
16009         (posix_spawn_file_actions_addopen)
16010         (posix_spawn_file_actions_adddup2): Likewise.
16011         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
16012         * tests/test-pread.c (pread): Likewise.
16013         * tests/test-printf-posix.c (printf): Likewise.
16014         * tests/test-pty.c (openpty, forkpty): Likewise.
16015         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
16016         (random_r): Likewise.
16017         * tests/test-rawmemchr.c (rawmemchr): Likewise.
16018         * tests/test-readlink.c (readlink): Likewise.
16019         * tests/test-remove.c (remove): Likewise.
16020         * tests/test-rename.c (rename): Likewise.
16021         * tests/test-renameat.c (renameat): Likewise.
16022         * tests/test-rmdir.c (rmdir): Likewise.
16023         * tests/test-round1.c (round): Likewise.
16024         * tests/test-roundf1.c (roundf): Likewise.
16025         * tests/test-roundl.c (roundl): Likewise.
16026         * tests/test-setenv.c (setenv): Likewise.
16027         * tests/test-sigaction.c (sigaction): Likewise.
16028         * tests/test-sleep.c (sleep): Likewise.
16029         * tests/test-snprintf.c (snprintf): Likewise.
16030         * tests/test-sprintf-posix.c (sprintf): Likewise.
16031         * tests/test-stat.c (stat): Likewise.
16032         * tests/test-stpncpy.c (stpncpy): Likewise.
16033         * tests/test-strcasestr.c (strcasestr): Likewise.
16034         * tests/test-strchrnul.c (strchrnul): Likewise.
16035         * tests/test-strerror.c (strerror): Likewise.
16036         * tests/test-strsignal.c (strsignal): Likewise.
16037         * tests/test-strstr.c (strstr): Likewise.
16038         * tests/test-strtod.c (strtod): Likewise.
16039         * tests/test-strverscmp.c (strverscmp): Likewise.
16040         * tests/test-symlink.c (symlink): Likewise.
16041         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
16042         * tests/test-times.c (times): Likewise.
16043         * tests/test-trunc1.c (trunc): Likewise.
16044         * tests/test-truncf1.c (truncf): Likewise.
16045         * tests/test-truncl.c (truncl): Likewise.
16046         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
16047         Likewise.
16048         * tests/test-uname.c (uname): Likewise.
16049         * tests/test-unlink.c (unlink): Likewise.
16050         * tests/test-unlinkat.c (unlinkat): Likewise.
16051         * tests/test-unsetenv.c (unsetenv): Likewise.
16052         * tests/test-usleep.c (usleep): Likewise.
16053         * tests/test-utimensat.c (utimensat): Likewise.
16054         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
16055         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
16056         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
16057         * tests/test-vprintf-posix.c (vprintf): Likewise.
16058         * tests/test-vsnprintf.c (vsnprintf): Likewise.
16059         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
16060         * tests/test-wcrtomb.c (wcrtomb): Likewise.
16061         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
16062         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
16063         * tests/test-wcwidth.c (wcwidth): Likewise.
16064
16065         build: pull in conditional headers during GNULIB_POSIXCHECK
16066         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
16067         definitions from any conditionally-included headers.
16068         * lib/stdlib.in.h (includes): Likewise.
16069         * lib/unistd.in.h (includes): Likewise.
16070
16071 2009-12-24  Bruno Haible  <bruno@clisp.org>
16072
16073         * tests/test-argv-iter.c: Include header file being tested immediately
16074         after config.h.
16075         * tests/test-base64.c: Likewise.
16076         * tests/test-flock.c: Likewise.
16077         * tests/test-fsync.c: Likewise.
16078         * tests/test-getdate.c: Likewise.
16079         * tests/test-getndelim2.c: Likewise.
16080         * tests/test-isfinite.c: Likewise.
16081         * tests/test-isinf.c: Likewise.
16082         * tests/test-strerror.c: Likewise.
16083         * tests/test-strsignal.c: Likewise.
16084
16085 2009-12-23  Eric Blake  <ebb9@byu.net>
16086
16087         unistd: work around cygwin bug
16088         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
16089         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
16090         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16091
16092 2009-12-23  Bruno Haible  <bruno@clisp.org>
16093
16094         localename: More tests.
16095         * tests/test-localename.c (SIZEOF): New macro.
16096         (categories): New variable.
16097         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
16098         test_locale_name_default): Add test w.r.t. thread locale.
16099         (test_locale_name_thread): New function.
16100         (main): Invoke it.
16101
16102         localename: Make aware of thread locale.
16103         * lib/localename.h (gl_locale_name_thread): New declaration.
16104         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
16105         behaviour with respect to thread locale.
16106         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
16107         <langinfo.h>, glthread/lock.h.
16108         (SIZE_BITS): New macro.
16109         (string_hash): New function.
16110         (struct hash_node): New type.
16111         (HASH_TABLE_SIZE): New macro.
16112         (struniq_hash_table, struniq_lock): New variables.
16113         (struniq): New function.
16114         (gl_locale_name_thread): New function.
16115         (gl_locale_name): Invoke it.
16116         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
16117         * modules/localename (Depends-on): Add lock.
16118         Reported by Mike Gran <spk121@yahoo.com>.
16119
16120 2009-12-23  Eric Blake  <ebb9@byu.net>
16121
16122         va-args: new module
16123         * modules/va-args: New file.
16124         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
16125         * MODULES.html.sh (Core language properties): Mention it.
16126
16127         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
16128         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
16129         named alias for __attribute__((__unused__)).
16130         * lib/chown.c: Update client.
16131         * lib/fchmodat.c: Likewise.
16132         * lib/fts.c: Likewise.
16133         * lib/getdate.y: Likewise.
16134         * lib/getgroups.c: Likewise.
16135         * lib/getopt.c: Likewise.
16136         * lib/getugroups.c: Likewise.
16137         * lib/mkdir.c: Likewise.
16138         * lib/mkfifo.c: Likewise.
16139         * lib/mkfifoat.c: Likewise.
16140         * lib/mknod.c: Likewise.
16141         * lib/mknodat.c: Likewise.
16142         * lib/readlink.c: Likewise.
16143         * lib/se-context.in.h: Likewise.
16144         * lib/se-selinux.in.h: Likewise.
16145         * lib/sockets.c: Likewise.
16146         * lib/symlink.c: Likewise.
16147         * lib/symlinkat.c: Likewise.
16148         * lib/unicodeio.c: Likewise.
16149         * lib/unistr.h: Likewise.
16150         * tests/test-areadlink.c: Likewise.
16151         * tests/test-areadlinkat.c: Likewise.
16152         * tests/test-filenamecat.c: Likewise.
16153         * tests/test-fseeko.c: Likewise.
16154         * tests/test-ftello.c: Likewise.
16155         * tests/test-getdate.c: Likewise.
16156         * tests/test-getgroups.c: Likewise.
16157         * tests/test-gethostname.c: Likewise.
16158         * tests/test-quotearg.c: Likewise.
16159         * tests/test-version-etc.c: Likewise.
16160         * tests/test-xalloc-die.c: Likewise.
16161         * tests/test-xfprintf-posix.c: Likewise.
16162         * tests/test-xprintf-posix.c: Likewise.
16163         * tests/test-xvasprintf.c: Likewise.
16164
16165         tests: avoid compiler warnings
16166         * tests/test-fcntl.c (main): Delete unused parameters.
16167         * tests/test-freopen-safer.c (main): Likewise.
16168         * tests/test-xalloc-die.c (main): Mark unused parameters.
16169         * tests/test-fseeko.c (main): Likewise.
16170         * tests/test-ftello.c (main): Likewise.
16171         * tests/test-nanosleep.c (main): Avoid declaration warning.
16172         * tests/test-sleep.c (main): Likewise.
16173         * tests/test-unsetenv.c (main): Silence warning about string
16174         literal.
16175         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16176
16177 2009-12-23  Bruno Haible  <bruno@clisp.org>
16178
16179         * tests/test-localename.c (test_locale_name): New function, extracted
16180         from main. Also test mixed situations.
16181         (test_locale_name_posix, test_locale_name_environ,
16182         test_locale_name_default): New functions.
16183         (main): Invoke them all.
16184         * modules/localename-tests (configure.ac): Test for newlocale.
16185
16186 2009-12-23  Bruno Haible  <bruno@clisp.org>
16187
16188         unistd: Ensure getcwd gets declared before being overridden.
16189         * lib/unistd.in.h: Conditionally include <io.h>.
16190
16191 2009-12-22  Bruno Haible  <bruno@clisp.org>
16192
16193         wchar: Diagnose broken combination of glibc and gcc versions and flags.
16194         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
16195         (gl_WCHAR_H): Invoke it.
16196         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
16197         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
16198         Reported by Karl Berry <karl@freefriends.org>.
16199
16200 2009-12-22  Eric Blake  <ebb9@byu.net>
16201
16202         math, unistd: avoid redundant includes
16203         * lib/math.in.h (isnan): No need to re-include <math.h>.
16204         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
16205
16206         getsubopt: work around cygwin bug
16207         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
16208         avoid conflicting with system getsubopt.
16209         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
16210         bug.
16211
16212         getopt: synchronize from glibc
16213         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
16214         parameter order.  Adjust all callers.
16215         (_getopt_internal_r, main): Adjust quoting in error messages.
16216         Drop considerations for outdated POSIX 1003.2 error message.
16217         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
16218         callers.
16219         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
16220
16221         test-getopt: test stderr behavior
16222         * modules/getopt-posix-tests (Depends-on): Add dup2.
16223         * tests/test-getopt.c (ASSERT): Avoid stderr.
16224         (main): Move stderr to a temporary file.
16225         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
16226         Instead, add parameter to inform caller if output occurred.
16227         (test_getopt): Adjust all existing tests to expect silence, and
16228         add new tests of leading ":".
16229         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16230         glibc shortcomings with leading "-:" or "+:" in optstring.
16231         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16232         Likewise.
16233         * doc/posix-functions/getopt.texi (getopt): Likewise.
16234
16235         test-getopt: enhance test
16236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
16237         supports optind=0.
16238         * tests/test-getopt.c (OPTIND_MIN): Move...
16239         * tests/test-getopt.h (OPTIND_MIN): ...here.
16240         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
16241         Require that optind=0 works, since modern BSD supports it in
16242         addition to optreset, and since coreutils expects it.
16243         (test_getopt_long_only): New test.
16244         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16245         glibc shortcomings with 'W;', and enforcement of optind=0.
16246         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16247         Likewise.
16248
16249 2009-12-21  Bruno Haible  <bruno@clisp.org>
16250
16251         localename: Improvements for MacOS X and Cygwin.
16252         * lib/localename.h (gl_locale_name_environ): New declaration.
16253         * lib/localename.c (gl_locale_name_environ): New function, extracted from
16254         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
16255         (gl_locale_name_posix): Invoke it.
16256         (gl_locale_name_default): Add comments. Use Windows native API also on
16257         Cygwin.
16258
16259 2009-12-21  Bruno Haible  <bruno@clisp.org>
16260
16261         Update list of Win32 locale ids.
16262         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
16263         (LANG_SAMI): Renamed from LANG_SAAMI.
16264         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
16265         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
16266         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
16267         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
16268         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
16269         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
16270         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
16271         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
16272         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
16273         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
16274         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
16275         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
16276         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
16277         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
16278         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
16279         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
16280         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
16281         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
16282         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
16283         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
16284         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
16285         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
16286         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
16287         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
16288         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
16289         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
16290         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
16291         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
16292         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
16293         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
16294         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
16295         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
16296         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
16297         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
16298         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
16299         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
16300         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
16301         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
16302         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
16303         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
16304         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
16305         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
16306         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
16307         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
16308         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
16309         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
16310         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
16311         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
16312         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
16313         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
16314         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
16315         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
16316         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
16317         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
16318         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
16319         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
16320         Add more languages and countries for Sami, Sorbian. Add more countries
16321         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
16322         for Pashto. Change country for Syriac, Tswana.
16323
16324 2009-12-21  Eric Blake  <ebb9@byu.net>
16325
16326         test-utimens: avoid spurious failure
16327         * tests/test-chown.h (nap): Factor...
16328         * tests/nap.h: ...into new file.
16329         * tests/test-lchown.h (nap): Avoid duplication.
16330         * tests/test-utimens-common.h (nap): Use shared implementation,
16331         necessary on file systems with 1-second resolution.
16332         * modules/chown-tests (Files): Include new file.
16333         * modules/fdutimensat-tests (Files): Likewise.
16334         * modules/futimens-tests (Files): Likewise.
16335         * modules/lchown-tests (Files): Likewise.
16336         * modules/openat-tests (Files): Likewise.
16337         * modules/utimens-tests (Files): Likewise.
16338         * modules/utimensat-tests (Files): Likewise.
16339
16340 2009-12-19  Eric Blake  <ebb9@byu.net>
16341
16342         futimens, utimensat: work around Linux bug
16343         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
16344         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16345         * lib/utimensat.c (rpl_utimensat): Work around it.
16346         * lib/futimens.c (rpl_futimens): Adjust comment.
16347
16348         utimens: work around Linux ctime bug
16349         * lib/utimens.c (detect_ctime_bug): New helper function.
16350         (update_timespec): Differentiate between workaround needed for
16351         this bug vs. what is needed for systems that lack utimensat.
16352         (fdutimens, lutimens): Work around bug.
16353
16354         utimens: check for ctime update
16355         * tests/test-utimens-common.h (check_ctime): Define.
16356         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
16357         * tests/test-futimens.h (test_futimens): Likewise.
16358         * tests/test-lutimens.h (test_lutimens): Likewise.
16359         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16360         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16361
16362 2009-12-19  Bruno Haible  <bruno@clisp.org>
16363
16364         dprintf-posix: Check against memory leak fixed on 2009-12-15.
16365         * tests/test-dprintf-posix2.sh: New file.
16366         * tests/test-dprintf-posix2.c: New file.
16367         * modules/dprintf-posix-tests (Files): Add them.
16368         (configure.ac): Check for getrlimit and setrlimit.
16369         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16370
16371 2009-12-19  Bruno Haible  <bruno@clisp.org>
16372
16373         fprintf-posix: Check against memory leak fixed on 2009-12-15.
16374         * tests/test-fprintf-posix3.sh: New file.
16375         * tests/test-fprintf-posix3.c: New file.
16376         * modules/fprintf-posix-tests (Files): Add them.
16377         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16378
16379 2009-12-19  Eric Blake  <ebb9@byu.net>
16380
16381         dirfd: fix prototype
16382         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
16383         * lib/dirfd.c (dirfd): Likewise.
16384
16385         canonicalize: reduce memory usage
16386         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
16387         allocation to size.
16388         Reported by Solar Designer <solar@openwall.com>.
16389
16390 2009-12-19  Bruno Haible  <bruno@clisp.org>
16391
16392         New module attribute 'Applicability'.
16393         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
16394         * gnulib-tool: New option --extract-applicability.
16395         (func_usage): Document it.
16396         (sed_extract_prog): Recognize it.
16397         (func_get_applicability): New function.
16398         (func_import): Generalize handling of 'link-warning' module.
16399         * modules/link-warning (Applicability): New section.
16400         * modules/arg-nonnull (Applicability): New section.
16401         Repoted by Simon Josefsson <simon@josefsson.org>.
16402
16403 2009-12-19  Bruno Haible  <bruno@clisp.org>
16404
16405         fflush: tweak
16406         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
16407         * lib/fseeko.c (rpl_fseeko): Likewise.
16408
16409 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16410
16411         * lib/gl_list.h: Fix typo in comment.
16412
16413 2009-12-16  Eric Blake  <ebb9@byu.net>
16414
16415         fcntl: use to simplify other modules
16416         * modules/cloexec (Depends-on): Add fcntl.
16417         * modules/fchdir (Depends-on): Likewise.
16418         * modules/fd-safer-flag (Depends-on): Likewise.
16419         * modules/unistd-safer (Depends-on): Likewise.
16420         * modules/dup3 (configure.ac): Set module indicator.
16421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16422         missing.
16423         * lib/fchdir.c (_gl_register_dup): Fix comment.
16424         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16425         * lib/dup-safer.c (dup_safer): Likewise.
16426         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16427         * lib/dup3.c (dup3): Likewise.
16428         * tests/test-fchdir.c (main): Enhance test.
16429         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
16430
16431         fcntl: port portions of fcntl to mingw
16432         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16433         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16434         replacement for mingw.
16435         * modules/fcntl (Description): Update.
16436         (Depends-on): Add dup2.
16437         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16438         * modules/fcntl-h (Makefile.am): Substitute it.
16439         * lib/fcntl.in.h (fcntl): Update declaration.
16440         (F_DUPFD, F_GETFD): New macros, when needed.
16441         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16442         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16443         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16444         we now guarantee.
16445
16446         fcntl: work around cygwin bug in F_DUPFD
16447         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16448         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
16449         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
16450         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
16451         * doc/posix-functions/fcntl.texi (fcntl): Document it.
16452
16453         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
16454         * modules/fcntl (Files): List new files.
16455         (configure.ac): Run a test.
16456         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
16457         * lib/fcntl.c (rpl_fcntl): Likewise.
16458         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
16459         (gl_FCNTL_H): Always replace fcntl.h.
16460         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16461         * lib/fcntl.in.h (fcntl): Declare replacement.
16462         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16463         needed, plus a witness.
16464         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16465         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16466         * tests/test-fcntl.c: New file.
16467         * modules/fcntl-tests: Likewise.
16468
16469         binary-io: avoid potential compilation warning
16470         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16471         directives.
16472
16473         fflush: avoid compilation error on NetBSD
16474         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16475         between off_t and fpos_t, since the latter is sometimes a struct.
16476         * lib/fseeko.c (rpl_fseeko): Likewise.
16477         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16478
16479 2009-12-15  Eric Blake  <ebb9@byu.net>
16480
16481         fcntl-h, stdio, sys_ioctl: fix declarations
16482         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16483         function must not take arguments.
16484         * lib/sys_ioctl.in.h (ioctl): Likewise.
16485         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16486         (open): Add a link warning.
16487
16488 2009-12-15  Jim Meyering  <meyering@redhat.com>
16489
16490         areadlink, areadlink-with-size: relax license to LGPLv2+
16491         * modules/areadlink (License): Relax to LGPLv2+.
16492         * modules/areadlink-with-size (License): Likewise.
16493
16494 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16495             Bruno Haible  <bruno@clisp.org>
16496
16497         *printf: Fix memory leak.
16498         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16499         * lib/vfprintf.c (vfprintf): Likewise.
16500         * lib/dprintf.c (dprintf): Likewise.
16501         * lib/vdprintf.c (vdprintf): Likewise.
16502
16503 2009-12-14  Eric Blake  <ebb9@byu.net>
16504
16505         accept4: adjust module dependencies
16506         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16507
16508         utimens: one more try at avoiding compiler warning
16509         * lib/utimens.c (lutimens): Lower scope of result.
16510
16511 2009-12-13  Bruno Haible  <bruno@clisp.org>
16512
16513         Move the malloc checking from module 'list' to new module 'xlist'.
16514         * modules/xlist: New file.
16515         * lib/gl_xlist.h: New file.
16516         * lib/gl_xlist.c: New file.
16517         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16518         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16519         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16520         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16521         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16522         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16523         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16524         gl_sortedlist_nx_add): New declarations.
16525         (struct gl_list_implementation): Rename and change methods accordingly.
16526         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16527         (gl_list_nx_create): Renamed from gl_list_create.
16528         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16529         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16530         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16531         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16532         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16533         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16534         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16535         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16536         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16537         gl_list_create_empty.
16538         (gl_list_nx_create): Renamed from gl_list_create.
16539         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16540         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16541         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16542         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16543         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16544         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16545         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16546         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16547         * lib/gl_array_list.c: Don't include xalloc.h.
16548         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16549         NULL upon out-of-memory.
16550         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16551         out-of-memory.
16552         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16553         Change return type to 'int'.
16554         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16555         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16556         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16557         upon out-of-memory.
16558         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16559         upon out-of-memory.
16560         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16561         upon out-of-memory.
16562         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16563         upon out-of-memory.
16564         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16565         out-of-memory.
16566         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16567         Update.
16568         (gl_array_list_implementation): Update.
16569         * lib/gl_carray_list.c: Don't include xalloc.h.
16570         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16571         Return NULL upon out-of-memory.
16572         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16573         out-of-memory.
16574         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16575         Change return type to 'int'.
16576         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16577         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16578         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16579         upon out-of-memory.
16580         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16581         upon out-of-memory.
16582         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16583         out-of-memory.
16584         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16585         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16586         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16587         Update.
16588         (gl_carray_list_implementation): Update.
16589         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16590         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16591         gl_linked_create_empty. Return NULL upon out-of-memory.
16592         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16593         out-of-memory.
16594         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16595         Change return type to 'int'. Return -1 upon out-of-memory.
16596         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16597         out-of-memory.
16598         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16599         upon out-of-memory.
16600         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16601         upon out-of-memory.
16602         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16603         NULL upon out-of-memory.
16604         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16605         upon out-of-memory.
16606         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16607         out-of-memory.
16608         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16609         Update.
16610         * lib/gl_linked_list.c: Don't include xalloc.h.
16611         (gl_linked_list_implementation): Update.
16612         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16613         (add_to_bucket): Change return type to 'int'.
16614         (gl_linkedhash_list_implementation): Update.
16615         * lib/gl_anytree_list1.h (free_subtree): New function.
16616         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16617         gl_tree_create_empty. Return NULL upon out-of-memory.
16618         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16619         Change return type to 'int'. Return -1 upon out-of-memory.
16620         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16621         out-of-memory.
16622         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16623         (gl_tree_remove_node): New function, moved here from
16624         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16625         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16626         Update.
16627         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16628         malloc, not xmalloc. Return NULL upon out-of-memory.
16629         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16630         out-of-memory.
16631         (gl_tree_remove_node_from_tree): New function, extracted from
16632         gl_tree_remove_node.
16633         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16634         upon out-of-memory.
16635         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16636         out-of-memory.
16637         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16638         upon out-of-memory.
16639         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16640         upon out-of-memory.
16641         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16642         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16643         not xmalloc. Return NULL upon out-of-memory.
16644         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16645         out-of-memory.
16646         (gl_tree_remove_node_from_tree): New function, extracted from
16647         gl_tree_remove_node.
16648         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16649         upon out-of-memory.
16650         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16651         out-of-memory.
16652         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16653         upon out-of-memory.
16654         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16655         upon out-of-memory.
16656         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16657         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16658         gl_anytree_list1.h before gl_anyavltree_list2.h.
16659         (gl_avltree_list_implementation): Update.
16660         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16661         gl_anytree_list1.h before gl_anyavltree_list2.h.
16662         (gl_rbtree_list_implementation): Update.
16663         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16664         Change return type to 'int'. Return -1 upon out-of-memory. Use
16665         __builtin_expect.
16666         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16667         (gl_avltreehash_list_implementation): Update.
16668         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16669         (gl_rbtreehash_list_implementation): Update.
16670         * modules/array-list (Depends-on): Remove xalloc.
16671         * modules/carray-list (Depends-on): Likewise.
16672         * modules/linked-list (Depends-on): Likewise.
16673         * modules/linkedhash-list (Depends-on): Likewise.
16674         * modules/avltree-list (Depends-on): Likewise.
16675         * modules/rbtree-list (Depends-on): Likewise.
16676         * modules/avltreehash-list (Depends-on): Likewise.
16677         * modules/rbtreehash-list (Depends-on): Likewise.
16678
16679         * modules/xsublist: New file.
16680         * lib/gl_xsublist.h: New file.
16681         * lib/gl_xsublist.c: New file.
16682         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16683         (gl_sublist_nx_create): New declaration.
16684         * lib/gl_sublist.c: Don't include xalloc.h.
16685         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16686         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16687         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16688         Change return type to 'int'. Return -1 upon out-of-memory.
16689         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16690         upon out-of-memory.
16691         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16692         NULL upon out-of-memory.
16693         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16694         upon out-of-memory.
16695         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16696         NULL upon out-of-memory.
16697         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16698         NULL upon out-of-memory.
16699         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16700         upon out-of-memory.
16701         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16702         (gl_sublist_list_implementation): Update.
16703         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16704         upon out-of-memory.
16705         * modules/sublist (Depends-on): Remove xalloc.
16706
16707         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16708         * tests/test-carray_list.c: Likewise.
16709         * tests/test-linked_list.c: Likewise.
16710         * tests/test-linkedhash_list.c: Likewise.
16711         * tests/test-avltree_list.c: Likewise.
16712         * tests/test-rbtree_list.c: Likewise.
16713         * tests/test-avltreehash_list.c: Likewise.
16714         * tests/test-rbtreehash_list.c: Likewise.
16715         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16716         * modules/carray-list-tests (Makefile.am): Likewise.
16717         * modules/linked-list-tests (Makefile.am): Likewise.
16718         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16719         * modules/avltree-list-tests (Makefile.am): Likewise.
16720         * modules/rbtree-list-tests (Makefile.am): Likewise.
16721         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16722         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16723
16724         * NEWS: Mention the changes.
16725
16726         * lib/clean-temp.c: Include gl_xlist.h.
16727         * modules/clean-temp (Depends-on): Add xlist.
16728
16729         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16730         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16731
16732         * tests/test-array_oset.c: Include gl_xlist.h.
16733         * modules/array-oset-tests (Depends-on): Add xlist.
16734
16735         Reported by José E. Marchesi <jemarch@gnu.org>.
16736
16737 2009-12-13  Bruno Haible  <bruno@clisp.org>
16738
16739         Move the malloc checking from module 'oset' to new module 'xoset'.
16740         * modules/xoset: New file.
16741         * lib/gl_xoset.h: New file.
16742         * lib/gl_xoset.c: New file.
16743         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16744         declarations.
16745         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16746         (struct gl_oset_implementation): Rename and change methods accordingly.
16747         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16748         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16749         'int'. Mark as __warn_unused_result__.
16750         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16751         gl_oset_create_empty.
16752         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16753         'int'.
16754         * lib/gl_array_oset.c: Don't include xalloc.h.
16755         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16756         malloc, not xmalloc.
16757         (grow): Change return type to 'int'. Don't call xalloc_die.
16758         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16759         to 'int'.
16760         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16761         'int'.
16762         (gl_array_oset_implementation): Update.
16763         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16764         gl_tree_create_empty.
16765         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16766         'int'.
16767         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16768         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16769         xmalloc.
16770         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16771         not xmalloc.
16772         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16773         xmalloc.
16774         (gl_avltree_oset_implementation): Update.
16775         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16776         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16777         xmalloc.
16778         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16779         not xmalloc.
16780         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16781         xmalloc.
16782         (gl_rbtree_oset_implementation): Update.
16783         * modules/array-oset (Depends-on): Remove xalloc.
16784         * modules/avltree-oset (Depends-on): Likewise.
16785         * modules/rbtree-oset (Depends-on): Likewise.
16786         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16787         * tests/test-avltree_oset.c: Likewise.
16788         * tests/test-rbtree_oset.c: Likewise.
16789         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16790         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16791         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16792         * NEWS: Mention the change.
16793
16794 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16795
16796         maint.mk: allow a project to override release-prep commands
16797         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16798         commands into a new rule.
16799         (release-prep): New rule.
16800         (release-prep-hook): New overridable variable.
16801
16802 2009-12-13  Bruno Haible  <bruno@clisp.org>
16803
16804         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16805
16806 2009-12-13  Jim Meyering  <meyering@redhat.com>
16807
16808         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16809         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16810
16811 2009-12-12  Bruno Haible  <bruno@clisp.org>
16812
16813         duplocale: Tweak.
16814         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16815
16816 2009-12-12  Karl Berry  <karl@gnu.org>
16817
16818         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16819
16820 2009-12-12  Bruno Haible  <bruno@clisp.org>
16821
16822         * m4/po.m4: Undo incorrect untabification.
16823
16824 2009-12-12  Bruno Haible  <bruno@clisp.org>
16825
16826         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16827         * modules/c-strtod (Depends-on): Add locale.
16828         * modules/c-strtold (Depends-on): Likewise.
16829
16830 2009-12-12  Bruno Haible  <bruno@clisp.org>
16831
16832         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16833
16834 2009-12-11  Eric Blake  <ebb9@byu.net>
16835
16836         setenv: relax requirement in light of POSIX ruling
16837         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16838         not NULL.
16839         * tests/test-setenv.c (main): Relax test.
16840         * tests/test-unsetenv.c (main): Likewise.
16841         * doc/posix-functions/setenv.texi (setenv): Document this.
16842         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16843
16844 2009-12-11  Bruno Haible  <bruno@clisp.org>
16845
16846         New module 'fd-safer-flag'.
16847         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16848         * lib/dup-safer.c (dup_safer_flag): Remove function.
16849         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16850         * lib/fd-safer.c (fd_safer_flag): Remove function.
16851         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16852         * modules/cloexec (configure.ac): Drop indicator macro.
16853         * modules/fd-safer-flag: New file.
16854         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16855         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16856         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16857
16858 2009-12-11  Bruno Haible  <bruno@clisp.org>
16859
16860         Tests for module 'nl_langinfo'.
16861         * modules/nl_langinfo-tests: New file.
16862         * tests/test-nl_langinfo.sh: New file.
16863         * tests/test-nl_langinfo.c: New file.
16864
16865         New module 'nl_langinfo'.
16866         * lib/nl_langinfo.c: New file.
16867         * m4/nl_langinfo.m4: New file.
16868         * modules/nl_langinfo: New file.
16869         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16870
16871 2009-12-11  Bruno Haible  <bruno@clisp.org>
16872
16873         Tests for module 'langinfo'.
16874         * modules/langinfo-tests: New file.
16875         * tests/test-langinfo.c: New file.
16876
16877         New module 'langinfo'.
16878         * lib/langinfo.in.h: New file.
16879         * m4/langinfo_h.m4: New file.
16880         * modules/langinfo: New file.
16881         * doc/posix-headers/langinfo.texi: Mention the new module.
16882
16883 2009-12-11  Bruno Haible  <bruno@clisp.org>
16884
16885         * lib/config.charset: Untabify.
16886
16887 2009-12-11  Bruno Haible  <bruno@clisp.org>
16888
16889         * modules/unistd-safer (configure.ac): Drop indicator macro.
16890
16891 2009-12-11  Bruno Haible  <bruno@clisp.org>
16892
16893         Move pipe2-safer code to its own file.
16894         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16895         * lib/pipe-safer.c (pipe2_safer): Remove function.
16896         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16897         (Makefile.am): Add it to lib_SOURCES.
16898
16899 2009-12-10  Bruno Haible  <bruno@clisp.org>
16900
16901         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16902
16903 2009-12-10  Bruno Haible  <bruno@clisp.org>
16904
16905         Declare which arguments expect non-NULL values, for GCC and clang.
16906         * build-aux/arg-nonnull.h: New file.
16907         * modules/arg-nonnull: New file.
16908         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16909         (inet_ntop, inet_pton): Use it.
16910         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16911         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16912         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16913         (open, openat): Use it.
16914         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16915         (fnmatch): Use it.
16916         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16917         (getopt, getopt_long, getopt_long_only): Use it.
16918         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16919         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16920         Use it.
16921         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16922         (iconv_open): Use it.
16923         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16924         (strtoimax, strtoumax): Use it.
16925         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16926         (duplocale): Use it.
16927         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16928         (frexp, frexpl): Use it.
16929         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16930         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16931         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16932         (tsearch, tfind, tdelete, twalk): Use it.
16933         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16934         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16935         sigpending): Use it.
16936         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16937         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16938         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16939         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16940         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16941         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16942         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16943         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16944         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16945         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16946         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16947         Use it.
16948         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16949         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16950         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16951         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16952         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16953         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16954         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16955         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16956         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16957         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16958         strtoull, unsetenv): Use it.
16959         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16960         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16961         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16962         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16963         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16964         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16965         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16966         (strcasecmp, strncasecmp): Use it.
16967         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16968         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16969         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16970         rpl_setsockopt): Use it.
16971         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16972         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16973         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16974         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16975         (gettimeofday): Use it.
16976         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16977         (times): Use it.
16978         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16979         (uname): Use it.
16980         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16981         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16982         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16983         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16984         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16985         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16986         unlinkat, write): Use it.
16987         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16988         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16989         * lib/argv-iter.h: Include arg-nonnull.h.
16990         (_ATTRIBUTE_NONNULL_): Remove macro.
16991         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16992         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16993         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16994         optimization.
16995         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16996         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16997         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16998         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16999         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
17000         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
17001         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
17002         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
17003         * modules/arpa_inet (Depends-on): Add arg-nonnull.
17004         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
17005         * modules/dirent (Depends-on): Add arg-nonnull.
17006         (Makefile.am): Insert arg-nonnull.h into dirent.h.
17007         * modules/fcntl-h (Depends-on): Add arg-nonnull.
17008         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
17009         * modules/fnmatch (Depends-on): Add arg-nonnull.
17010         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
17011         * modules/getopt-posix (Depends-on): Add arg-nonnull.
17012         (Makefile.am): Insert arg-nonnull.h into getopt.h.
17013         * modules/glob (Depends-on): Add arg-nonnull.
17014         (Makefile.am): Insert arg-nonnull.h into glob.h.
17015         * modules/iconv_open (Depends-on): Add arg-nonnull.
17016         (Makefile.am): Insert arg-nonnull.h into iconv.h.
17017         * modules/inttypes (Depends-on): Add arg-nonnull.
17018         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
17019         * modules/locale (Depends-on): Add arg-nonnull.
17020         (Makefile.am): Insert arg-nonnull.h into locale.h.
17021         * modules/math (Depends-on): Add arg-nonnull.
17022         (Makefile.am): Insert arg-nonnull.h into math.h.
17023         * modules/netdb (Depends-on): Add arg-nonnull.
17024         (Makefile.am): Insert arg-nonnull.h into netdb.h.
17025         * modules/search (Depends-on): Add arg-nonnull.
17026         (Makefile.am): Insert arg-nonnull.h into search.h.
17027         * modules/signal (Depends-on): Add arg-nonnull.
17028         (Makefile.am): Insert arg-nonnull.h into signal.h.
17029         * modules/spawn (Depends-on): Add arg-nonnull.
17030         (Makefile.am): Insert arg-nonnull.h into spawn.h.
17031         * modules/stdio (Depends-on): Add arg-nonnull.
17032         (Makefile.am): Insert arg-nonnull.h into stdio.h.
17033         * modules/stdlib (Depends-on): Add arg-nonnull.
17034         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
17035         * modules/string (Depends-on): Add arg-nonnull.
17036         (Makefile.am): Insert arg-nonnull.h into string.h.
17037         * modules/strings (Depends-on): Add arg-nonnull.
17038         (Makefile.am): Insert arg-nonnull.h into strings.h.
17039         * modules/sys_socket (Depends-on): Add arg-nonnull.
17040         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
17041         * modules/sys_stat (Depends-on): Add arg-nonnull.
17042         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
17043         * modules/sys_time (Depends-on): Add arg-nonnull.
17044         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
17045         * modules/sys_times (Depends-on): Add arg-nonnull.
17046         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
17047         * modules/sys_utsname (Depends-on): Add arg-nonnull.
17048         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
17049         * modules/time (Depends-on): Add arg-nonnull.
17050         (Makefile.am): Insert arg-nonnull.h into time.h.
17051         * modules/unistd (Depends-on): Add arg-nonnull.
17052         (Makefile.am): Insert arg-nonnull.h into unistd.h.
17053         * modules/wchar (Depends-on): Add arg-nonnull.
17054         (Makefile.am): Insert arg-nonnull.h into wchar.h.
17055         * modules/argv-iter (Depends-on): Add arg-nonnull.
17056         * tests/test-canonicalize.c (null_ptr): New function.
17057         (main): Use it.
17058         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
17059         (main): Use it.
17060         * tests/test-memmem.c (null_ptr): New function.
17061         (main): Use it.
17062         Reported by Jim Meyering.
17063
17064 2009-12-10  Bruno Haible  <bruno@clisp.org>
17065
17066         Use spaces for indentation, not tabs.
17067         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17068         * m4/*.m4: Untabify.
17069         * build-aux/*.h: Untabify.
17070         * tests/**/*.[hc]: Untabify.
17071         * README: New section "Indent with spaces, not TABs", based on
17072         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
17073         * NEWS: Mention the change.
17074
17075 2009-12-10  Bruno Haible  <bruno@clisp.org>
17076
17077         pty test: Fix link error.
17078         * modules/pty-tests (Makefile.am): Add the default LDADD value to
17079         test_pty_LDADD.
17080
17081 2009-12-07  Simon Josefsson  <simon@josefsson.org>
17082
17083         * modules/pty: New file.
17084         * modules/pty-tests: New file.
17085         * m4/pty.m4: New file.
17086         * tests/test-pty.c: New file.
17087         * doc/glibc-headers/pty.texi: Modified.
17088         * doc/glibc-functions/forkpty.texi: Modified.
17089         * doc/glibc-functions/openpty.texi: Modified.
17090
17091 2009-12-10  Bruno Haible  <bruno@clisp.org>
17092
17093         Avoid syntax error in C++ mode.
17094         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
17095
17096 2009-12-10  Bruno Haible  <bruno@clisp.org>
17097
17098         Use sed with option -e.
17099         * gnulib-tool (func_version, func_emit_copyright_notice,
17100         func_emit_initmacro_end, func_import, func_create_testdir): Pass
17101         option -e to sed.
17102         * modules/link-warning (Makefile.am): Likewise.
17103
17104 2009-12-10  Jim Meyering  <meyering@redhat.com>
17105
17106         mgetgroups: do not write bytes beyond end of malloc'd buffer
17107         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
17108         username, we call getgroups with a one-element-shorter buffer,
17109         but still told it the length was original, max_n_groups.
17110
17111 2009-12-09  Eric Blake  <ebb9@byu.net>
17112
17113         cloexec: relax license
17114         * modules/cloexec (Maintainer): Add myself.
17115         (License): Use LGPL, not GPL.
17116
17117         link-warning: optimize generation
17118         * modules/link-warning (Makefile.am): Reduce process usage.
17119
17120 2009-12-09  Bruno Haible  <bruno@clisp.org>
17121
17122         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
17123         workaround was added on 2009-11-17.
17124
17125 2009-12-09  Jim Meyering  <meyering@redhat.com>
17126             Bruno Haible  <bruno@clisp.org>
17127
17128         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
17129         * modules/link-warning (Makefile.am): Make the comment-removing sed
17130         command more robust in the face of bootstrap-prepended comment lines.
17131
17132 2009-12-09  Bruno Haible  <bruno@clisp.org>
17133
17134         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
17135         most one group.
17136
17137 2009-12-09  Simon Josefsson <simon@josefsson.org>
17138             Bruno Haible  <bruno@clisp.org>
17139
17140         * build-aux/link-warning.h: Add copyright notice.
17141         * modules/link-warning (Makefile.am): Generate link-warning.h from
17142         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
17143         * NEWS: Mention change in link-warning module.
17144         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
17145         * modules/dirent (Makefile.am): Add dependency to dirent.h.
17146         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
17147         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
17148         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
17149         * modules/math (Makefile.am): Add dependency to math.h.
17150         * modules/search (Makefile.am): Add dependency to search.h.
17151         * modules/signal (Makefile.am): Add dependency to signal.h.
17152         * modules/spawn (Makefile.am): Add dependency to spawn.h.
17153         * modules/stdio (Makefile.am): Add dependency to stdio.h.
17154         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
17155         * modules/string (Makefile.am): Add dependency to string.h.
17156         * modules/strings (Makefile.am): Add dependency to strings.h.
17157         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
17158         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
17159         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
17160         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
17161         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
17162         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
17163         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
17164         * modules/unistd (Makefile.am): Add dependency to unistd.h.
17165         * modules/wchar (Makefile.am): Add dependency to wchar.h.
17166
17167 2009-12-09  Bruno Haible  <bruno@clisp.org>
17168
17169         fchdir: Optimize away rpl_fstat when possible.
17170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
17171         REPLACE_OPEN_DIRECTORY.
17172         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
17173
17174 2009-12-09  Bruno Haible  <bruno@clisp.org>
17175
17176         * lib/fchdir.c: Update comment.
17177
17178 2009-12-09  Bruno Haible  <bruno@clisp.org>
17179
17180         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
17181
17182 2009-12-08  Eric Blake  <ebb9@byu.net>
17183
17184         fchdir: avoid memory leak on re-registration.
17185         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
17186
17187 2009-12-08  Jim Meyering  <meyering@redhat.com>
17188
17189         init.sh: avoid Solaris 10 /bin/sh portability problem
17190         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
17191         sourced script:
17192           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
17193           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
17194           bar
17195         tests/init.sh relied on that, accepting a --set-path=DIR argument,
17196         and two tests used that idiom.
17197         * tests/init.sh: Update suggested usage comments.
17198         (path_prepend_): New function, to be used in place
17199         of the --src-path=DIR option.
17200         (setup_): Move PATH-prepending code into path_prepend_.
17201         * tests/test-pread.sh: Adapt to new usage.
17202         * tests/test-xalloc-die.sh: Likewise.
17203
17204 2009-12-08  Simon Josefsson  <simon@josefsson.org>
17205
17206         * doc/gnulib.texi (Glibc pty.h): Add.
17207         * doc/glibc-functions/forkpty.texi: Add.
17208         * doc/glibc-functions/openpty.texi: Add.
17209         Suggested by Bruno Haible.
17210
17211 2009-12-08  Eric Blake  <ebb9@byu.net>
17212
17213         fchdir: fix logic bugs
17214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
17215         * tests/test-fchdir.c (main): Enhance test.
17216         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
17217         is in use.
17218
17219         dup2: fix logic bugs
17220         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
17221         REPLACE_DUP2 to decide when rpl_dup2 is needed.
17222         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
17223         exists.
17224         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
17225
17226 2009-12-07  Eric Blake  <ebb9@byu.net>
17227
17228         unlink: fix m4 detection
17229         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
17230
17231         unistd-safer: add unit test
17232         * modules/unistd-safer-tests: New file.
17233         * tests/test-dup-safer.c: Likewise.
17234         * tests/test-cloexec.c (setmode): Avoid compiler warning.
17235         * tests/test-dup2.c (setmode): Likewise.
17236         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
17237
17238         cloexec: preserve text vs. binary across dup_cloexec
17239         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
17240         mode.
17241         * modules/dup2-tests (Depends-on): Add binary-io.
17242         * modules/cloexec-tests (Depends-on): Likewise.
17243         * tests/test-dup2.c (setmode, is_mode): New helpers.
17244         (main): Add tests that translation mode is preserved.
17245         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
17246         Reported by Bruno Haible.
17247
17248         mgetgroups: reduce duplicate listings
17249         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
17250         resulting array.
17251         * tests/test-chown.h (test_chown): Simplify client.
17252         * tests/test-lchown.h (test_lchown): Likewise.
17253
17254 2009-12-06  Bruno Haible  <bruno@clisp.org>
17255
17256         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
17257         value.
17258
17259 2009-12-06  Bruno Haible  <bruno@clisp.org>
17260
17261         * lib/progname.c: Include stdio.h, stdlib.h.
17262         (set_program_name): Reject a NULL argument.
17263
17264 2009-12-05  Eric Blake  <ebb9@byu.net>
17265
17266         pipe2-safer: new module
17267         * modules/pipe2-safer: New file.
17268         * lib/unistd-safer.h (pipe2_safer): New prototype.
17269         * lib/unistd--.h (pipe2): New wrapper.
17270         * lib/pipe-safer.c (pipe2_safer): New function.
17271         * modules/pipe (Depends-on): Add pipe2-safer.
17272         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
17273
17274         stdlib-safer: preserve cloexec flag for mkostemp[s]
17275         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
17276         fd_safer_flag.
17277
17278         unistd-safer: allow preservation of cloexec status via flag
17279         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
17280         prototypes.
17281         * lib/dup-safer.c (dup_safer_flag): New function.
17282         * lib/fd-safer.c (fd_safer_flag): Likewise.
17283         * modules/cloexec (configure.ac): Set witness.
17284
17285         test-dup2: enhance test
17286         * modules/dup2-tests (Depends-on): Add cloexec.
17287         * tests/test-dup2.c (main): Enhance test.
17288
17289         cloexec: add dup_cloexec
17290         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
17291         header and comments.
17292         * lib/cloexec.c (set_cloexec_flag): Add comments.
17293         (dup_cloexec): New function, with mingw implementation borrowed
17294         from...
17295         * lib/w32spawn.h (dup_noinherit): ...here.
17296         * modules/execute (Depends-on): Add cloexec.
17297         * modules/pipe (Depends-on): Likewise.
17298         * modules/cloexec (Depends-on): Add dup2.
17299         * modules/cloexec-tests (Files): New file.
17300         * tests/test-cloexec.c: Likewise.
17301
17302         test-xalloc-die: fix test for mingw
17303         * modules/xalloc-die-tests (Files): Add tests/init.sh.
17304         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
17305         directory and .exe suffix off argv[0] output.
17306
17307         test-fseeko: fix test for mingw
17308         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
17309         than undefining fseek, so test will pass on mingw.
17310
17311 2009-12-05  Bruno Haible  <bruno@clisp.org>
17312
17313         * lib/progname.h (set_program_name): Clarify specification.
17314         * lib/progname.c (set_program_name): Likewise.
17315         Reported by Jim Meyering.
17316
17317 2009-12-05  Jim Meyering  <meyering@redhat.com>
17318
17319         maint.mk: backslash-escape parens in default regexp
17320         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
17321         backslash-escape the literal parentheses.
17322
17323         maint.mk: news-date-check: use grep -E
17324         * top/maint.mk (today): Define a Make variable, not a...
17325         (news-date-check): ...shell variable.
17326         (news-date-regexp): Use the Make variable.
17327         Use grep's -E option.  Change the failing diagnostic to mention
17328         the variable, $(news-date-regexp).
17329
17330 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
17331
17332         maintainer-makefile: allow customization of NEWS entry format
17333         * top/maint.mk (news-date-regexp): New overridable variable.
17334         (news-date-check): Use it.
17335
17336 2009-12-04  Eric Blake  <ebb9@byu.net>
17337
17338         mgetgroups: add xgetgroups, and avoid ENOSYS failures
17339         * lib/mgetgroups.h (xgetgroups): New prototype.
17340         * lib/mgetgroups.c (xgetgroups): New wrapper.
17341         (mgetgroups): Handle ENOSYS.
17342         * modules/mgetgroups (Depends-on): Add realloc.
17343         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
17344
17345         mgetgroups: avoid argument promotion issues with -1
17346         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
17347         for invalid gid_t.
17348         * tests/test-chown.h (getegid, test_chown): Likewise.
17349         * tests/test-lchown.h (getegid, test_lchown): Likewise.
17350
17351 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
17352
17353         exclude: Fix header file problems.
17354         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
17355
17356 2009-12-01  Jim Meyering  <meyering@redhat.com>
17357
17358         fts: fts_open: do not let an empty string cause immediate failure
17359         This is required in support of GNU rm, for which the command
17360         "rm A '' B" must process and remove both A and B, in spite of
17361         the empty string argument.
17362         * lib/fts.c (fts_open): Do not let the presence of an empty string
17363         cause fts_open to fail immediately.  Most fts-using tools must be
17364         able to process all arguments, in order, and can be expected to
17365         diagnose such arguments themselves.
17366
17367 2009-11-30  Eric Blake  <ebb9@byu.net>
17368
17369         utimens: fix compilation error
17370         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
17371         Declare variable at right scope.
17372
17373 2009-11-29  Jim Meyering  <meyering@redhat.com>
17374
17375         bootstrap: handle perl-5.11's changed --version output
17376         * build-aux/bootstrap (get_version): Handle perl separately,
17377         since perl-5.11's --version output is different.
17378
17379 2009-11-28  Jim Meyering  <meyering@redhat.com>
17380
17381         userspec: depend on the inttostr module, too
17382         * modules/userspec (Depends-on): Add inttostr.
17383
17384         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
17385         * lib/userspec.c (parse_with_separator): Do not accept a user ID
17386         number of MAXUID when it evaluates to (uid_t) -1.
17387         Likewise for group ID.  Reported by Matt McCutchen in
17388         <http://savannah.gnu.org/bugs/?28113>
17389
17390         userspec: reformat to use spaces, not TABs
17391         * lib/userspec.c: Expand TABs to spaces.
17392         Add Emacs' "indent-tabs-mode: nil" hint.
17393
17394 2009-11-27  Eric Blake  <ebb9@byu.net>
17395
17396         getopt-gnu: flush out another BSD bug
17397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
17398         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
17399         flush out BSD bug.
17400         * tests/test-getopt.h (test_getopt): End lists with NULL.
17401         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17402         (test_getopt_long_posix): Enhance test.
17403         * modules/getopt-posix-tests (Depends-on): Add stdbool.
17404         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
17405         getopt-gnu.
17406         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17407         Likewise.
17408
17409 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17410
17411         * modules/idpriv-droptemp-tests (Notice): Fix text.
17412
17413 2009-11-27  Jim Meyering  <meyering@redhat.com>
17414
17415         test-xalloc-die: avoid spurious failure due to libtool argv difference
17416         In a libtool-enabled project, this test would fail due to a difference
17417         in the emitted program name, e.g.,
17418         -test-xalloc-die: memory exhausted
17419         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17420         Use program to avoid that.
17421         * modules/xalloc-die-tests (Depends-on): Add progname.
17422         * tests/test-xalloc-die.c: Include progname.h".
17423         (program_name): Remove decl.
17424         (main): Call set_program_name.
17425         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17426
17427 2009-11-26  Richard Jones  <rjones@redhat.com>
17428
17429         w32sock: leave win32 error in place.
17430         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17431
17432 2009-11-26  Eric Blake  <ebb9@byu.net>
17433
17434         init.sh: suggest to use skip_ and fail_ functions in comments
17435         * tests/init.sh: Add a sentence.
17436
17437 2009-11-25  Bruno Haible  <bruno@clisp.org>
17438
17439         init.sh: add documentation in comments
17440         * tests/init.sh: Add some developer and user documentation.
17441
17442 2009-11-26  Jim Meyering  <meyering@redhat.com>
17443
17444         init.sh: accommodate even those who specify bogus srcdir manually
17445         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17446         configure-time tests to be sanitized, so that there is no need to
17447         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17448         (with no double quotes) suffices.  However, since tests may be
17449         invoked manually, and since you may explicitly set srcdir to the
17450         name of a directory containing spaces, do quote its uses here.
17451         * tests/test-pread.sh: Likewise.
17452         Suggested by Bruno Haible.
17453
17454         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
17455         * tests/test-pread.sh: Write no data into the pipe, because
17456         test-pread actually reads none.  This avoids a diagnostic,
17457         "bash: echo: write error: Broken pipe", that arises in the unusual
17458         event something is ignoring SIGPIPE, and might be interpreted
17459         as some sort of failure.  Reported by Bruno Haible.
17460
17461 2009-11-25  Jim Meyering  <meyering@redhat.com>
17462
17463         test-pread: cover failure with ESPIPE and EINVAL
17464         * tests/test-pread.c (main): Test for failure, too.
17465         * tests/test-pread.sh: Invoke with stdin on a pipe.
17466         Suggested by Eric Blake.
17467
17468         pread: improvement and fix
17469         * modules/pread (Depends-on): Depend on lseek, for portability to
17470         e.g., mingw.  Suggested by Eric Blake.
17471         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17472
17473         unistd.in.h: correct declaration of pread
17474         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17475         Reported by Richard W.M. Jones.
17476
17477         test-pread.sh: distribute the test script
17478         * modules/pread-tests (Files): Include test-pread.sh.
17479
17480         test-pread.sh: clean up
17481         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17482         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17483         That is unnecessary, since it's always ".".
17484         Suggestion from Eric Blake.
17485
17486         test-pread.sh: make executable
17487         * tests/test-pread.sh: Set executable bit.
17488         Reported by Eric Blake.
17489
17490         correct typo in test-pread.sh
17491         * tests/test-pread.sh: Add #! line.
17492
17493         test pread
17494         * tests/test-pread.c: New file.
17495         * tests/test-pread.sh: Likewise.
17496         * modules/pread-tests: Likewise.
17497
17498         pread: new module
17499         * modules/pread: New file.
17500         * lib/unistd.in.h (pread): Define/declare.
17501         * lib/pread.c (pread): New file.
17502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17503         * modules/unistd (Makefile.am): Substitute witnesses.
17504         * doc/posix-functions/pread.texi (pread): Update.
17505         * MODULES.html.sh: Add pread.
17506
17507 2009-11-25  Jim Meyering  <meyering@redhat.com>
17508
17509         tests/init.sh: new file to be used via most *.sh tests
17510         * tests/init.sh: New file.
17511
17512 2009-11-25  Eric Blake  <ebb9@byu.net>
17513
17514         utimens: work around older Linux failure with symlinks
17515         * lib/utimens.c (lutimensat_works_really): New variable.
17516         (fdutimens, lutimens): Use it to manage kernels that support
17517         nanosecond times on files, but not on symlinks.
17518         Reported by OndÅ™ej Vašík.
17519
17520         utimes: fix configure grammar
17521         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17522
17523 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17524
17525         regex: Fix fastmap for multibyte character ranges.
17526         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17527         characters when a multibyte character range is included.
17528
17529 2009-11-22  Andy Wingo  <wingo@pobox.com>
17530
17531         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17532         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17533
17534 2009-11-24  Bruno Haible  <bruno@clisp.org>
17535
17536         doc: Most *_l functions exist in MacOS X 10.5.
17537         * doc/posix-functions/duplocale.texi: Update platforms list.
17538         * doc/posix-functions/freelocale.texi: Likewise.
17539         * doc/posix-functions/newlocale.texi: Likewise.
17540         * doc/posix-functions/uselocale.texi: Likewise.
17541         * doc/posix-functions/isalnum_l.texi: Likewise.
17542         * doc/posix-functions/isalpha_l.texi: Likewise.
17543         * doc/posix-functions/isblank_l.texi: Likewise.
17544         * doc/posix-functions/iscntrl_l.texi: Likewise.
17545         * doc/posix-functions/isdigit_l.texi: Likewise.
17546         * doc/posix-functions/isgraph_l.texi: Likewise.
17547         * doc/posix-functions/islower_l.texi: Likewise.
17548         * doc/posix-functions/isprint_l.texi: Likewise.
17549         * doc/posix-functions/ispunct_l.texi: Likewise.
17550         * doc/posix-functions/isspace_l.texi: Likewise.
17551         * doc/posix-functions/isupper_l.texi: Likewise.
17552         * doc/posix-functions/iswalnum_l.texi: Likewise.
17553         * doc/posix-functions/iswalpha_l.texi: Likewise.
17554         * doc/posix-functions/iswblank_l.texi: Likewise.
17555         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17556         * doc/posix-functions/iswctype_l.texi: Likewise.
17557         * doc/posix-functions/iswdigit_l.texi: Likewise.
17558         * doc/posix-functions/iswgraph_l.texi: Likewise.
17559         * doc/posix-functions/iswlower_l.texi: Likewise.
17560         * doc/posix-functions/iswprint_l.texi: Likewise.
17561         * doc/posix-functions/iswpunct_l.texi: Likewise.
17562         * doc/posix-functions/iswspace_l.texi: Likewise.
17563         * doc/posix-functions/iswupper_l.texi: Likewise.
17564         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17565         * doc/posix-functions/isxdigit_l.texi: Likewise.
17566         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17567         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17568         * doc/posix-functions/strcoll_l.texi: Likewise.
17569         * doc/posix-functions/strfmon_l.texi: Likewise.
17570         * doc/posix-functions/strftime_l.texi: Likewise.
17571         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17572         * doc/posix-functions/strxfrm_l.texi: Likewise.
17573         * doc/posix-functions/tolower_l.texi: Likewise.
17574         * doc/posix-functions/toupper_l.texi: Likewise.
17575         * doc/posix-functions/towctrans_l.texi: Likewise.
17576         * doc/posix-functions/towlower_l.texi: Likewise.
17577         * doc/posix-functions/towupper_l.texi: Likewise.
17578         * doc/posix-functions/wcscoll_l.texi: Likewise.
17579         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17580         * doc/posix-functions/wctrans_l.texi: Likewise.
17581         * doc/posix-functions/wctype_l.texi: Likewise.
17582         * doc/glibc-functions/strptime_l.texi: Likewise.
17583         * doc/glibc-functions/strtod_l.texi: Likewise.
17584         * doc/glibc-functions/strtof_l.texi: Likewise.
17585         * doc/glibc-functions/strtol_l.texi: Likewise.
17586         * doc/glibc-functions/strtold_l.texi: Likewise.
17587         * doc/glibc-functions/strtoll_l.texi: Likewise.
17588         * doc/glibc-functions/strtoul_l.texi: Likewise.
17589         * doc/glibc-functions/strtoull_l.texi: Likewise.
17590         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17591         * doc/glibc-functions/wcstod_l.texi: Likewise.
17592         * doc/glibc-functions/wcstof_l.texi: Likewise.
17593         * doc/glibc-functions/wcstol_l.texi: Likewise.
17594         * doc/glibc-functions/wcstold_l.texi: Likewise.
17595         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17596         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17597         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17598
17599 2009-11-24  Bruno Haible  <bruno@clisp.org>
17600
17601         duplocale: Fix logic bug.
17602         * lib/duplocale.c: Don't include <langinfo.h>.
17603         (_NL_LOCALE_NAME): Remove macro.
17604         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17605         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17606
17607 2009-11-23  Jim Meyering  <meyering@redhat.com>
17608
17609         test-update-copyright: don't hard-code /usr/bin/perl
17610         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17611         perl to print the current year.  Gilles Espinasse reported that
17612         the replaced use of perl was hard-coded as /usr/bin/perl.
17613
17614 2009-11-23  Bruno Haible  <bruno@clisp.org>
17615
17616         duplocale: Add support for glibc 2.3.x.
17617         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17618
17619 2009-11-22  Bruno Haible  <bruno@clisp.org>
17620
17621         vasnprintf: Tiny optimization.
17622         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17623         MacOS X.
17624
17625 2009-11-22  Bruno Haible  <bruno@clisp.org>
17626
17627         Tests for module 'duplocale'.
17628         * modules/duplocale-tests: New file.
17629         * tests/test-duplocale.c: New file.
17630
17631         New module 'duplocale'.
17632         * m4/duplocale.m4: New file.
17633         * lib/locale.in.h (duplocale): New declaration.
17634         * lib/duplocale.c: New file.
17635         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17636         gl_LOCALE_H_DEFAULTS): New macros.
17637         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17638         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17639         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17640         REPLACE_DUPLOCALE.
17641         * modules/duplocale: New file.
17642         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17643
17644 2009-11-22  Bruno Haible  <bruno@clisp.org>
17645
17646         * modules/locale-tests (configure.ac): Test for newlocale function.
17647         * tests/test-locale.c: When the system has extended locale functions,
17648         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17649
17650         locale: Make locale_t available when possible.
17651         * lib/locale.in.h: Include <xlocale.h> when it exists.
17652         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17653         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17654         * modules/locale (Depends-on): Add extensions.
17655         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17656         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17657
17658 2009-11-22  Bruno Haible  <bruno@clisp.org>
17659
17660         Add comments.
17661         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17662         invocation.
17663         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17664         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17665         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17666
17667 2009-11-22  Bruno Haible  <bruno@clisp.org>
17668
17669         error: account for the possibility of freopen (stdout).
17670         * lib/error.c: Include <unistd.h>.
17671         (flush_stdout): New function, extracted from error and error_at_line.
17672         Determine stdout's fd dynamically.
17673         (error, error_at_line): Invoke flush_stdout.
17674         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17675         * modules/error (Depends-on): Add unistd.
17676
17677 2009-11-22  Bruno Haible  <bruno@clisp.org>
17678
17679         diffseq: Add comment.
17680         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17681
17682 2009-11-22  Jim Meyering  <meyering@redhat.com>
17683
17684         c-stack: avoid defining an unused static function
17685         * lib/c-stack.c (find_stack_direction): Do not define this function
17686         when it will not be used.
17687
17688         diffseq: avoid spurious gcc warnings
17689         * lib/diffseq.h (IF_LINT2): Define.
17690         (compareseq): Use it to initialize two members of "part".
17691         This avoids two used-uninitialized warnings.
17692
17693 2009-11-21  Jim Meyering  <meyering@redhat.com>
17694
17695         c-stack: avoid "ignoring return value of `write'" warning
17696         * lib/c-stack.c: Include "ignore-value.h".
17697         (die): Explicitly ignore each write return value.
17698         * modules/c-stack (Depends-on): Add ignore-value.
17699
17700 2009-11-21  Bruno Haible  <bruno@clisp.org>
17701
17702         diffseq: reduce scope of variable 'best'.
17703         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17704         variable, earlier used for two different purposes.
17705
17706 2009-11-21  Jim Meyering  <meyering@redhat.com>
17707
17708         diffseq: remove useless assignment to "best"
17709         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17710         assignment.  At that point "best" is already guaranteed to be zero.
17711
17712 2009-11-20  Eric Blake  <ebb9@byu.net>
17713
17714         build: mention ftp redirector in release announcements
17715         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17716         values that used to come from cfg.mk; mention FTP redirect URL.
17717         * build-aux/announce-gen: Mention the mirror list.
17718         Suggested by Karl Berry.
17719
17720         nanosleep: improve port to mingw
17721         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17723         LIB_NANOSLEEP, but only when needed.
17724         * modules/select (Link): Document LIBSOCKET.
17725         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17726         enough.
17727
17728         nanosleep: work around cygwin bug
17729         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17730         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17731         bug.
17732         (getnow): Delete, not needed.
17733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17734         LIB_CLOCK_GETTIME.
17735         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17736         clock-time, gettime.
17737         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17738         bug.
17739         * modules/nanosleep-tests: New test.
17740         * tests/test-nanosleep.c: New file.
17741
17742         sleep: work around cygwin bug
17743         * lib/sleep.c (rpl_sleep): Work around the bug.
17744         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17745         (gl_PREREQ_SLEEP): Delete unused macro.
17746         * modules/sleep (Depends-on): Add verify.
17747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17748         * modules/unistd (Makefile.am): Substitute witness.
17749         * lib/unistd.in.h (sleep): Update prototype.
17750         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17751         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17752         * modules/sleep-tests (Depends-on): Check for alarm.
17753
17754 2009-11-20  Jim Meyering  <meyering@redhat.com>
17755
17756         maint.mk: improve sc_prohibit_magic_number_exit
17757         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17758         so it does not match uses like System.exit(1).
17759         Add comments showing how to correct all offenders.
17760
17761 2009-11-19  Eric Blake  <ebb9@byu.net>
17762
17763         xalloc-die-tests: add missing library
17764         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17765
17766         test-xvasprintf: silence compiler warnings
17767         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17768         empty string from gcc.
17769
17770 2009-11-19  Jim Meyering  <meyering@redhat.com>
17771
17772         xfreopen: new module, from coreutils
17773         * modules/xfreopen: New module.
17774         * lib/xfreopen.c: New file.
17775         * lib/xfreopen.h: New file.
17776         * MODULES.html.sh (File stream based Input/Output"): Add it.
17777
17778 2009-11-19  Eric Blake  <ebb9@byu.net>
17779
17780         manywarnings: depend on warnings
17781         * modules/manywarnings (Depends-on): Add warnings.
17782
17783         build: avoid compiler warnings
17784         * lib/select.c (rpl_select): Delete unused variable.
17785         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17786
17787 2009-11-18  Eric Blake  <ebb9@byu.net>
17788
17789         tests: avoid false negative with --with-packager
17790         * tests/test-version-etc.sh: Discard packager information.
17791         * tests/test-argp-version-etc-1.sh: Likewise.
17792         Reported by Mike Frysinger.
17793
17794         utimens: fix regression on Solaris
17795         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17796         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17797         can only change fd timestamps via futimesat.  Instead, use an
17798         additional witness macro to avoid BSD bug.
17799         Reported by Jim Meyering.
17800
17801 2009-11-17  Eric Blake  <ebb9@byu.net>
17802
17803         usleep: use it to simplify tests
17804         * modules/stat-time-tests (Depends-on): Add usleep.
17805         (configure.ac): Drop usleep check.
17806         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17807         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17808         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17809         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17810         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17811         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17812         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17813         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17814         Likewise.
17815         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17816         * tests/test-lchown.h (nap): Likewise.
17817         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17818         * tests/test-stat-time.c (nap): Likewise.
17819         * tests/test-utimens-common.h (nap): Update comments.
17820
17821         usleep: new module
17822         * modules/usleep: New file.
17823         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17824         * lib/usleep.c (usleep): Likewise.
17825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17826         * modules/unistd (Makefile.am): Substitute witnesses.
17827         * lib/unistd.in.h (usleep): Add declaration.
17828         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17829         * MODULES.html.sh (Date and time): Likewise.
17830         * modules/usleep-tests (Depends-on): New test.
17831         * tests/test-usleep.c: New file.
17832
17833         chown: work around OpenBSD bug
17834         * lib/chown.c (rpl_chown): Work around the bug.
17835         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17836         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17837         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17838         * modules/chown (Depends-on): Add stdbool.
17839         * modules/lchown (Depends-on): Likewise.
17840         * doc/posix-functions/chown.texi (chown): Document the bug.
17841         * doc/posix-functions/lchown.texi (lchown): Likewise.
17842         * tests/test-lchown.h (test_chown): Relax test.
17843
17844         mkstemp: avoid conflict with C++ keyword template
17845         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17846         * lib/mkostemp.c (mkostemp): Likewise.
17847         * lib/mkostemps.c (mkostemps): Likewise.
17848         * lib/mkstemp.c (mkstemp): Likewise.
17849         * lib/mkstemps.c (mkstemps): Likewise.
17850
17851         xalloc-die-tests: optimize
17852         * tests/test-xalloc-die.sh: Reduce number of processes.
17853
17854 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17855
17856         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17857         patch from ludo@gnu.org (Ludovic Courtès).
17858
17859 2009-11-17  Jim Meyering  <meyering@redhat.com>
17860
17861         version-etc: use proper license string
17862         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17863         * modules/version-etc-fsf: Likewise.
17864
17865 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17866
17867         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17868         printed to stdout.  Deal with EOL differences.
17869
17870 2009-11-17  Eric Blake  <ebb9@byu.net>
17871
17872         unsetenv: work around Solaris bug
17873         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17874         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17875         Reported by Jim Meyering.
17876
17877         vasnprintf: avoid compiler warnings
17878         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17879         variables.
17880         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17881
17882 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17883
17884         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17885         settings since xalloc-die is no longer the self test,
17886         xalloc-die.sh is.
17887
17888 2009-11-17  Jim Meyering  <meyering@redhat.com>
17889
17890         test-xalloc-die.sh: make the code agree with the commit log
17891         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17892         at the end, just in case you happen to have a test-xalloc-die
17893         program in some other PATH directory.
17894
17895         test-xalloc-die.sh: fix a portability bug
17896         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17897         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17898         Otherwise, argv[0] (as often seen in diagnostics) would be too
17899         system-dependent, sometimes with, and sometimes without the leading "./".
17900
17901         version-etc-fsf: relax license to LGPLv3+
17902         * modules/version-etc-fsf (License): Relax license.
17903
17904 2009-11-16  Eric Blake  <ebb9@byu.net>
17905
17906         xalloc-die-tests: avoid printing null pointer
17907         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17908         shell script.
17909         * tests/test-xalloc-die.c (program_name): Declare.
17910         * tests/test-xalloc-die.sh (tmpfiles): New file.
17911
17912         setenv, unsetenv: work around various bugs
17913         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17914         (setenv) [HAVE_SETENV]: Work around bugs.
17915         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17916         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17917         for bugs.
17918         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17919         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17921         * modules/stdlib (Makefile.am): Update substitutions.
17922         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17923         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17924         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17925         * modules/setenv-tests: New test.
17926         * modules/unsetenv-tests: Likewise.
17927         * tests/test-setenv.c: New file.
17928         * tests/test-unsetenv.c: Likewise.
17929
17930 2009-11-16  Jim Meyering  <meyering@redhat.com>
17931
17932         version-etc: relax license to LGPLv3+
17933         * modules/version-etc (License): Relax license.
17934
17935         better AC_REQUIRE expanded-before-required-warning avoidance
17936         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17937         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17938         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17939         which is no longer needed.
17940
17941 2009-11-16  Eric Blake  <ebb9@byu.net>
17942
17943         test-freading: clean up temporary file
17944         * tests/test-freading.c (main): Remove file on success, and use
17945         ASSERT more liberally.
17946         Reported by Jim Meyering.
17947
17948 2009-11-16  Jim Meyering  <meyering@redhat.com>
17949
17950         avoid new AC_REQUIRE expanded-before-required warnings
17951         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17952         merely using it.
17953         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17954         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17955
17956 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17957
17958         * tests/test-xalloc-die.c: New file.
17959         * modules/xalloc-die-tests: New file.
17960         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17961         XFAIL_TESTS so it can be appended by modules.
17962
17963 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17964
17965         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17966         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17967
17968 2009-11-14  Eric Blake  <ebb9@byu.net>
17969
17970         fnmatch: avoid compiler warning
17971         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17972         to silence compiler warning about mismatch signedness in ?:.
17973         Reported by Robert Millan.
17974
17975         intprops: add double-inclusion guard
17976         * lib/intprops.h: Allow idempotent includes.
17977         Suggested by Bruce Korb.
17978
17979         openat: detect Solaris fchownat bug
17980         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17981         penalizing glibc chownat when only lchownat is broken.
17982         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17983         trailing slash bugs.
17984         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17985         * modules/openat-tests (Files): Include more files.
17986         (Depends-on): Add mgetgroups, sleep, stat-time.
17987         (configure.ac): Add additional checks.
17988         (Makefile.am): Build new test.
17989         * tests/test-fchownat.c: New file.
17990
17991         lchown: detect Solaris and FreeBSD bug
17992         * lib/lchown.c (rpl_lchown): Work around bug.
17993         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17995         * modules/unistd (Makefile.am): Populate it.
17996         * lib/unistd.in.h (lchown): Update declaration.
17997         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17998         * modules/lchown-tests: New file.
17999         * tests/test-lchown.h (test_lchown): Likewise.
18000         * tests/test-lchown.c (main): Likewise.
18001
18002         chown: detect Solaris and FreeBSD bug
18003         * lib/chown.c (rpl_chown): Work around bug.
18004         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
18005         (gl_PREREQ_CHOWN): Delete.
18006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18007         * modules/unistd (Makefile.am): Populate it.
18008         * lib/unistd.in.h (chown): Update declaration.
18009         * lib/lchown.c (chown): Update client.
18010         * modules/lchown (Depends-on): Add lstat.
18011         * doc/posix-functions/chown.texi (chown): Document the bug.
18012         * doc/posix-functions/getgroups.texi (getgroups): Document
18013         getgroups pitfall.
18014         * modules/chown-tests: New file.
18015         * tests/test-chown.h (test_chown): Likewise.
18016         * tests/test-chown.c (main): Likewise.
18017
18018 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
18019
18020         gnulib-tool: correctly detect absence of m4 directories
18021         * gnulib-tool: Avoid extra newline on data passed to wc -l.
18022
18023 2009-11-14  Jim Meyering  <meyering@redhat.com>
18024
18025         maint.mk: Prohibit inclusion of "xalloc.h" without use.
18026         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18027
18028 2009-11-14  John W. Eaton  <jwe@gnu.org>
18029
18030         strftime.h: wrap funtion declaration in extern "C" block
18031         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
18032
18033 2009-11-13  Eric Blake  <ebb9@byu.net>
18034
18035         getgroups: avoid compiler warning
18036         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
18037
18038         getgroups: work around FreeBSD bug
18039         * lib/getgroups.c (rpl_getgroups): Work around the bug.
18040         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
18041         * doc/posix-functions/getgroups.texi (getgroups): Document it.
18042         * tests/test-getgroups.c (main): Fix buffer overrun.
18043
18044         getgroups: avoid compilation failure
18045         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
18046         * modules/getgroups (Depends-on): Add stdint.
18047
18048 2009-11-13  Jim Meyering  <meyering@redhat.com>
18049
18050         test-getgroups: avoid compilation failure
18051         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
18052
18053 2009-11-13  Eric Blake  <ebb9@byu.net>
18054
18055         mgetgroups: new module, taken from coreutils
18056         * modules/mgetgroups: New file.
18057         * lib/mgetgroups.h: Likewise.
18058         * lib/mgetgroups.c (mgetgroups): Likewise.
18059         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
18060         * MODULES.html.sh (Users and groups): Mention it.
18061
18062         getgroups: don't expose GETGROUPS_T to user
18063         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
18064         an element at a time if GETGROUPS_T is wrong size.
18065         * lib/getugroups.h (getugroups): Change signature.
18066         * lib/unistd.in.h (getgroups): Likewise.
18067         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
18068         signature needs fixing.
18069         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
18070         AC_TYPE_GETGROUPS.
18071         * modules/group-member (Depends-on): Add getgroups.
18072         * lib/group-member.c (group_info, get_group_info): Use gid_t.
18073         (group_member): Rely on getgroups replacement.
18074         * lib/getugroups.c (getugroups): Use gid_t.
18075         * tests/test-getgroups.c (main): Likewise.
18076         * NEWS: Mention the signature change.
18077         * doc/posix-functions/getgroups.texi (getgroups): Mention the
18078         problem with signature.
18079         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
18080         GETGROUPS_T is still useful for setgroups.
18081
18082         getgroups, getugroups: provide stubs for mingw
18083         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
18084         * lib/getugroups.c (getugroups): Likewise.
18085         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
18086         function.  Modernize replacement scheme.
18087         (gl_PREREQ_GETGROUPS): Delete.
18088         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
18089         * modules/getgroups (configure.ac): Declare witness.
18090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18091         * modules/unistd (Depends-on): Substitute witness.
18092         * lib/unistd.in.h (getgroups): Declare replacement.
18093
18094         getgroups: avoid calling exit
18095         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
18096         drop xalloc.
18097         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
18098         dependencies.
18099         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
18100         exiting, in the rare case of malloc failure.
18101
18102         getgroups: fix logic error
18103         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
18104         has more than 20 groups.
18105         * modules/getgroups-tests: New test.
18106         * tests/test-getgroups.c: New file.
18107
18108 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18109
18110         * tests/test-base64.c: Improve.
18111
18112 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18113
18114         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
18115         Blake <ebb9@byu.net>.
18116
18117 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18118
18119         * tests/test-xvasprintf.c: Add %s%s related checks.
18120
18121 2009-11-12  Eric Blake  <ebb9@byu.net>
18122
18123         version-etc: match standards.texi style
18124         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
18125         and use <> only for URLs.
18126
18127 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
18128
18129         fts: do not fail on a submount during traversal
18130         * lib/fts.c (fts_build): Read the stat info again after opening
18131         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
18132         Original report at http://bugzilla.redhat.com/501848.
18133
18134 2009-11-12  Jim Meyering  <meyering@redhat.com>
18135
18136         bootstrap: sync from coreutils
18137         * build-aux/bootstrap (bootstrap_epilogue): New function.
18138         Use git_modules_config in one more place.  This make bootstrap's
18139         --gnulib-srcdir option more useful for testing.
18140
18141         bootstrap: generalize autoheader check
18142         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
18143         AC_CONFIG_HEADERS.
18144
18145 2009-11-11  Eric Blake  <ebb9@byu.net>
18146
18147         mkfifoat: use new modules for Solaris and BSD bugs
18148         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
18149         * lib/mkfifoat.c (mknodat): Split...
18150         * lib/mknodat.c (mknodat): ...into new file.
18151         * modules/mkfifoat (Files): Ship new file.
18152         (Depends-on): Add mkfifo, mknod.
18153         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
18154         (Depends-on): Add symlink.
18155         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
18156         redundant with test_mkfifo.h.
18157         (do_mkfifoat, do_mknodat): New helpers.
18158
18159         mknod: new module
18160         * modules/mknod: New file.
18161         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18162         * lib/mknod.c (mknod): Likewise.
18163         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18164         defaults.
18165         * modules/sys_stat (Makefile.am): Substitute them.
18166         * lib/sys_stat.in.h (mknod): Declare replacement.
18167         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18168         Document it.
18169         * doc/posix-functions/mknod.texi (mknod): Likewise.
18170         * modules/mknod-tests: New test.
18171         * tests/test-mknod.c: Likewise.
18172
18173         mkfifo: new module
18174         * modules/mkfifo: New file.
18175         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18176         * lib/mkfifo.c (mkfifo): Likewise.
18177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18178         defaults.
18179         * modules/sys_stat (Makefile.am): Substitute them.
18180         * lib/sys_stat.in.h (mkfifo): Declare replacement.
18181         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18182         Document it.
18183         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
18184         * modules/mkfifo-tests: New test.
18185         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
18186         from test-mkfifoat.c.
18187         * tests/test-mkfifo.c: New file.
18188
18189         readlink: detect FreeBSD bug
18190         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
18191         slash on symlink.
18192         * doc/posix-functions/readlink.texi (readlink): Document the bug.
18193         * tests/test-readlink.h (test_readlink): Enhance test.
18194
18195         symlink: detect FreeBSD bug
18196         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
18197         slash on symlink.
18198         * doc/posix-functions/symlink.texi (symlink): Document the bug.
18199         * tests/test-symlink.h (test_symlink): Enhance test.
18200
18201 2009-11-10  Eric Blake  <ebb9@byu.net>
18202
18203         link: detect FreeBSD bug
18204         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
18205         symlink.
18206         * doc/posix-functions/link.texi (link): Document the bug.
18207         * tests/test-link.h (test_link): Enhance test.
18208         * tests/test-linkat.c (main): Update caller.
18209
18210         unlink, remove: detect FreeBSD bug
18211         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
18212         slash on symlink.
18213         * doc/posix-functions/unlink.texi (unlink): Document the bug.
18214         * doc/posix-functions/remove.texi (remove): Likewise.
18215         * tests/test-unlink.h (test_unlink): Enhance test.
18216         * tests/test-remove.c (main): Likewise.
18217
18218 2009-11-09  Eric Blake  <ebb9@byu.net>
18219
18220         rename: detect FreeBSD bug
18221         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
18222         slash on symlink.
18223         * modules/renameat-tests (Depends-on): Add filenamecat.
18224         * tests/test-rename.h (test_rename): Allow one more errno.
18225         * tests/test-renameat.c (main): Likewise.
18226         * doc/posix-functions/rename.texi (rename): Document the bug.
18227
18228         open: detect FreeBSD bug
18229         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
18230         symlink.
18231         * doc/posix-functions/open.texi (open): Document the bug.
18232         * doc/posix-functions/utimes.texi (utimes): Likewise.
18233         * tests/test-open.h (test_open): Add parameters, and test symlink
18234         handling.
18235         * tests/test-open.c (main): Adjust caller.
18236         * tests/test-fcntl-safer.c (main): Likewise.
18237         * modules/open-tests (Depends-on): Add stdbool, symlink.
18238         * modules/fcntl-safer-tests (Depends-on): Likewise.
18239         * tests/test-openat.c (main): Add test-open tests.
18240
18241         stat: detect FreeBSD bug
18242         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
18243         symlink.
18244         * doc/posix-functions/stat.texi (stat): Document the bug.
18245         * tests/test-stat.h (test_stat_func): Add argument.
18246         * tests/test-stat.c (main): Adjust caller.
18247         * tests/test-fstatat.c (main): Likewise.
18248         * modules/stat-tests (Depends-on): Add stdbool, symlink.
18249         Reported by Jim Meyering.
18250
18251 2009-11-09  James Youngman  <jay@gnu.org>
18252
18253         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
18254         * lib/strftime.c: Correct placement of #include "ignore-value.h".
18255
18256 2009-11-08  Jim Meyering  <meyering@redhat.com>
18257
18258         utimens: remove invalid futimesat call
18259         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
18260         It used the file descriptor of the target file as the DIR_FD
18261         parameter and NULL as the file name.  That caused failure with
18262         errno == EFAULT on FreeBSD-8.0-rc2
18263
18264 2009-11-07  Eric Blake  <ebb9@byu.net>
18265
18266         fflush, freadseek: use fseeko, not fseek
18267         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18268         (clear_ungetc_buffer): Avoid potential problems on large files.
18269         * lib/freadseek.c (freadseek): Likewise.
18270         * modules/freadseek (Depends-on): Add fseeko.
18271         * modules/fseek (configure.ac): Set a witness.
18272         * tests/test-fflush.c (main): Use fseeko.
18273         * tests/test-fpurge.c (fseek): Disable link warning.
18274         * tests/test-freadable.c (fseek): Likewise.
18275         * tests/test-freading.c (fseek): Likewise.
18276         * tests/test-fseeko.c (fseek): Likewise.
18277         * tests/test-ftell.c (fseek): Likewise.
18278         * tests/test-ftello.c (fseek): Likewise.
18279         * tests/test-fwritable.c (fseek): Likewise.
18280         * tests/test-fwriting.c (fseek): Likewise.
18281
18282 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18283
18284         * modules/memchr (Depends-on): Drop getpagesize dependency.
18285
18286 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18287
18288         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
18289         Reported by Ludovic Courtès.
18290         * build-aux/pmccabe2html: Improve example usage.
18291         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
18292
18293 2009-11-06  Jim Meyering  <meyering@redhat.com>
18294
18295         do-release-commit-and-tag: New module.
18296         Automate the release-commit and tag process.
18297         * build-aux/do-release-commit-and-tag: New script, from coreutils.
18298         * modules/do-release-commit-and-tag: New file.
18299         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18300
18301 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18302
18303         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
18304         because test-select.c uses inet_pton.
18305
18306 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18307
18308         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
18309         GETADDRINFO_LIB.  Bump serial number.
18310         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
18311         Suggested by Eric Blake <ebb9@byu.net>.
18312
18313 2009-11-05  Eric Blake  <ebb9@byu.net>
18314
18315         strtod: detect darwin bug
18316         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
18317         Reported by Leo Davis.
18318
18319         freopen-safer: new module
18320         * modules/freopen-safer: New module.
18321         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
18322         * lib/freopen-safer.c (freopen_safer): New file.
18323         * lib/stdio-safer.h (freopen_safer): New declaration.
18324         * lib/stdio--.h (freopen): New override.
18325         * MODULES.html.sh (File stream based Input/Output): Mention it.
18326         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18327         freopen-safer module.
18328         * doc/posix-functions/stderr.texi (stderr): Likewise.
18329         * doc/posix-functions/stdin.texi (stdin): Likewise.
18330         * doc/posix-functions/stdout.texi (stdout): Likewise.
18331         * modules/freopen-safer-tests: New test.
18332         * tests/test-reopen-safer.c: New file.
18333
18334 2009-11-05  Jim Meyering  <meyering@redhat.com>
18335
18336         maint.mk: Prohibit inclusion of "close-stream.h" without use.
18337         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18338
18339 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18340
18341         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
18342
18343 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18344
18345         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
18346
18347 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18348
18349         Fix link error.
18350         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18351         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18352
18353 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18354
18355         * tests/test-func.c: Also test value of __func__.
18356
18357 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18358
18359         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
18360         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
18361
18362 2009-11-05  Bruno Haible  <bruno@clisp.org>
18363
18364         Fix link error.
18365         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18366         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18367         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
18368
18369 2009-11-05  Bruno Haible  <bruno@clisp.org>
18370
18371         Tests for module 'inet_pton'.
18372         * modules/inet_pton-tests: New file.
18373         * tests/test-inet_pton.c: New file.
18374
18375 2009-11-05  Bruno Haible  <bruno@clisp.org>
18376
18377         Tests for module 'inet_ntop'.
18378         * modules/inet_ntop-tests: New file.
18379         * tests/test-inet_ntop.c: New file.
18380
18381 2009-11-04  Eric Blake  <ebb9@byu.net>
18382
18383         stdlib-safer: wrap all mkstemp variants
18384         * modules/mkostemp (configure.ac): Set witness.
18385         * modules/mkostemps (configure.ac): Likewise.
18386         * modules/mkstemps (configure.ac): Likewise.
18387         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
18388         (mkstemps_safer): Wrap more functions.
18389         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
18390         wrapping.
18391         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
18392         (mkstemps_safer): Implement the wrappers.
18393
18394         mkstemps, mkostemps: new modules
18395         * modules/mkostemps: New module.
18396         * modules/mkstemps: Likewise.
18397         * lib/mkostemps.c (mkostemps): New file.
18398         * lib/mkstemps.c (mkstemps): Likewise.
18399         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
18400         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
18401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
18402         * modules/stdlib (Makefile.am): Substitute them.
18403         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
18404         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
18405         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18406         * doc/gnulib.texi (Glibc stdlib.h): Include them.
18407         * MODULES.html.sh (File system functions): Mention them.
18408
18409         tempname: resync from glibc
18410         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18411         same values for __GT_FILE as glibc.  Abort even when assertions
18412         are disabled.
18413         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18414         match its value otherwise.  Allow idempotent inclusion.
18415         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18416         * lib/mkostemp.c (mkostemp): Likewise.
18417         * lib/mkstemp.c (mkstemp): Likewise.
18418         * lib/tmpfile.c (tmpfile): Likewise.
18419         * NEWS: Document this.
18420
18421         utimens: fix use of futimens on older Linux
18422         * lib/utimens.c (fdutimens): Use updated, rather than original,
18423         timespec to avoid bug in older Linux kernel.
18424         Reported by Simon Josefsson.
18425
18426 2009-11-04  Bruno Haible  <bruno@clisp.org>
18427
18428         Make num_processors more flexible and consistent.
18429         * lib/nproc.h (enum nproc_query): New type.
18430         (num_processors): Add a 'query' argument.
18431         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18432         (num_processors): Add a 'query' argument. Test the value of the
18433         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18434         mingw, count the number of CPUs available for the current process.
18435         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18436         Check for sched_getaffinity and sched_getaffinity_np.
18437         * modules/nproc (Depends-on): Add c-ctype, extensions.
18438         * NEWS: Mention the change.
18439
18440 2009-11-03  Bruno Haible  <bruno@clisp.org>
18441
18442         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18443
18444 2009-11-03  Jim Meyering  <meyering@redhat.com>
18445
18446         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18447         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18448         if it is defined.
18449
18450 2009-11-02  Eric Blake  <ebb9@byu.net>
18451
18452         mktime, timegm: share common declaration
18453         * lib/mktime-internal.h: New file.
18454         * lib/mktime.c: Use it rather than open-coding a declaration.
18455         * lib/timegm.c: Likewise.
18456         * modules/mktime (Files): Ship it.
18457         * modules/timegm (Files): Likewise.
18458         Suggested by Bruno Haible.
18459
18460         test-update-copyright: update test to match script changes
18461         * tests/test-update-copyright.sh: Avoid hard-coding perl
18462         location.  Don't update *.bak created by earlier runs.
18463
18464 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18465             Simon Josefsson  <simon@josefsson.org>
18466             Bruno Haible  <bruno@clisp.org>
18467
18468         Fix link error on Solaris 8.
18469         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18470         also in libnsl. Define also INET_PTON_LIB.
18471         * modules/inet_pton (Link): New section.
18472
18473 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18474             Bruno Haible  <bruno@clisp.org>
18475
18476         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18477         * modules/inet_ntop (Link): New section.
18478         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18479
18480 2009-11-02  Eric Blake  <ebb9@byu.net>
18481
18482         maint: avoid compiler warnings in m4 macros
18483         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18484         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18485
18486 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18487
18488         * m4/pmccabe2html.m4: Remove file.
18489         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18490         function.  Change maintainer.
18491         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18492         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18493         Courtès).
18494
18495 2009-10-31  Eric Blake  <ebb9@byu.net>
18496
18497         fseeko: fix m4 regression
18498         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18499         regression from 2009-10-27.
18500         Reported by Ralf Wildenhues.
18501
18502 2009-10-31  Jim Meyering  <meyering@redhat.com>
18503
18504         inttostr: aesthetics and improved (compile-time) safety
18505         Define inttype_is_signed rather than inttype_is_unsigned,
18506         since the sole use is via "#if inttype_is_signed".
18507         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18508         inttype_is_unsigned.
18509         * lib/offtostr.c (inttype_is_signed): Likewise.
18510         * lib/uinttostr.c (inttype_is_signed): Likewise.
18511         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18512         * lib/inttostr.c (inttostr): Use verify to cross-check the
18513         inttype_is_signed value and the signedness of the actual type.
18514         * modules/inttostr (Depends-on): Add verify.
18515
18516 2009-10-30  Eric Blake  <ebb9@byu.net>
18517
18518         build: avoid compiler warnings
18519         * lib/fchmodat.c (lchmod): Mark unused variables.
18520         * lib/getopt.c (_getopt_initialize): Likewise.
18521         * lib/mktime.c (__mktime_internal): Provide prototype.
18522         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18523         older gcc that do not understand #pragma GCC diagnostic.
18524         * lib/uinttostr.c (inttype_is_unsigned): Define.
18525         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18526
18527 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18528
18529         stat: fix compilation on AIX
18530         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18531         only see struct stat64.
18532
18533 2009-10-30  Eric Blake  <ebb9@byu.net>
18534
18535         exclude: make more robust
18536         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18537         rather than masking a coding bug.
18538         Suggested by Bruno Haible.
18539
18540 2009-10-30  Jim Meyering  <meyering@redhat.com>
18541
18542         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18543         Rather than putting #!/usr/bin/perl on the first line,
18544         start with a variant of what's recommended by "man perlrun" that
18545         invokes the first "perl" program from your shell's search path.
18546         * build-aux/gitlog-to-changelog: Replace #!... as above.
18547         Add a "Local Variables" perl mode setting.
18548         Prompted by a patch from Ludovic Courtès.
18549         Improved by Eric Blake.
18550         * build-aux/useless-if-before-free: Likewise.
18551         * build-aux/announce-gen: Likewise.
18552         * build-aux/update-copyright: Likewise.
18553
18554 2009-10-29  Eric Blake  <ebb9@byu.net>
18555
18556         filenamecat-lgpl: adjust clients
18557         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18558         filenamecat.
18559         * modules/renameat (Depends-on): Likewise.
18560
18561         filenamecat: split into filenamecat-lgpl
18562         * modules/filenamecat-lgpl: New module.
18563         * modules/filenamecat (Files): Move library-safe files into
18564         filenamecat-lgpl.
18565         (Depends-on): Add filenamecat-lgpl.
18566         (configure.ac): Declare witness.
18567         * lib/filenamecat.h (file_name_concat): Only declare when using
18568         GPL module.
18569         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18570         Move...
18571         * lib/filenamecat-lgpl.c: ...into new file.
18572         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18573         (gl_FILE_NAME_CONCAT): Use it.
18574         * MODULES.html.sh (File system functions): Mention new module.
18575
18576         argp: avoid memory leak
18577         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18578         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18579         base_name, since the latter malloc()s and can call exit().
18580         Leak introduced 2006-07-03.
18581
18582         dirname-lgpl: adjust clients that don't need full dirname
18583         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18584         * modules/filenamecat (Depends-on): Likewise.
18585         * modules/linkat (Depends-on): Likewise.
18586         * modules/mkancesdirs (Depends-on): Likewise.
18587         * modules/mkdir (Depends-on): Likewise.
18588         * modules/openat (Depends-on): Likewise.
18589         * modules/savewd (Depends-on): Likewise.
18590         * modules/rename (Depends-on): Likewise.
18591         (License): Relax license.
18592         * modules/mkdir-tests (Depends-on): Drop progname.
18593         (Makefile.am): Delete unneeded LDADD.
18594         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18595
18596         dirname: split into dirname-lgpl
18597         * modules/dirname-lgpl: New module.
18598         * modules/dirname (Files): Move library-safe files into
18599         dirname-lgpl.
18600         (Depends-on): Add dirname-lgpl.
18601         (configure.ac): Declare witness.
18602         * modules/double-slash-root (License): Relax license.
18603         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18604         module.
18605         * lib/dirname.c (dir_len, mdir_name): Move...
18606         * lib/dirname-lgpl.c: ...into new file.
18607         * lib/basename.c (last_component, base_len): Move...
18608         * lib/basename-lgpl.c: ...into new file.
18609         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18610         (gl_DIRNAME): Use it.
18611         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18612         Mention new module.
18613         * modules/dirname-tests (Depends-on): Add progname.
18614         * tests/test-dirname.c (program_name): Delete.
18615
18616         mkdir: make safe for libraries
18617         * modules/mkdir (Depends-on): Drop xalloc.
18618         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18619         exit.
18620
18621         tests: avoid some compiler warnings
18622         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18623         literals.
18624         * tests/test-memchr.c (main): Avoid type mismatch.
18625         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18626         * tests/test-base64.c (main): Likewise.
18627         * tests/test-getdelim.c (main): Likewise.
18628         * tests/test-gethostname.c (main): Likewise.
18629         * tests/test-getline.c (main): Likewise.
18630         * tests/test-netinet_in.c (main): Likewise.
18631         * tests/test-select.c (open_server_socket, main): Likewise.
18632         * tests/test-select-stdin.c (main): Likewise.
18633         * tests/test-sockets.c (main): Likewise.
18634         * tests/test-strsignal.c (main): Likewise.
18635         * tests/test-sys_select.c (main): Likewise.
18636         * tests/test-sys_socket.c (main): Likewise.
18637         * tests/test-u64.c (main): Likewise.
18638         * tests/test-xfprintf-posix.c (main): Likewise.
18639         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18640
18641         sockets: avoid compiler warning
18642         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18643
18644         maint: detect usage(1) and other suspicious exits
18645         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18646
18647 2009-10-29  Jim Meyering  <meyering@redhat.com>
18648
18649         timespec: long-to-int truncation could make timespec_cmp malfunction
18650         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18651         a multiple of 2^32 nanoseconds as no difference.
18652
18653 2009-10-28  Jim Meyering  <meyering@redhat.com>
18654
18655         fprintftime: wrap macro code argument in "do {...} while(0)"
18656         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18657         cpy macro must be a statement that can be followed by a semicolon.
18658         Now that the else clause contains a comment and is hence longer
18659         than one line, I require curly braces.  That in turn requires
18660         that we wrap this code block in the standard do...while(0).
18661
18662         fprintftime: remove stray semicolon from previous change
18663         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18664
18665         fprintftime: avoid a warning about ignored fwrite return value
18666         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18667         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18668         that is unsafe.
18669         * modules/fprintftime (Depends-on): Add ignore-value.
18670
18671         exclude: avoid an unwarranted warning
18672         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18673
18674 2009-10-27  Eric Blake  <ebb9@byu.net>
18675
18676         fseek: avoid compilation failure when fflush is replaced
18677         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18678         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18679         module is in use.
18680         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18681         module is not in use; since REPLACE_FSEEK worked otherwise.
18682         (GNULIB_FTELLO): Likewise for ftell.
18683         Reported by Ian Beckwith and others.
18684
18685 2009-10-27  Bruno Haible  <bruno@clisp.org>
18686
18687         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18688         Reported by Jim Meyering.
18689
18690 2009-10-27  Jim Meyering  <jim@meyering.net>
18691             Bruno Haible  <bruno@clisp.org>
18692
18693         Avoid warning despite dropping the return value of fwrite.
18694         * lib/unicodeio.c: Include ignore-value.h.
18695         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18696         * modules/unicodeio (Depends-on): Add ignore-value.
18697
18698 2009-10-26  Eric Blake  <ebb9@byu.net>
18699
18700         areadlinkat: fix fallback path
18701         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18702         pointer and zero.
18703
18704 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18705
18706         Use a better IO block size for modern systems
18707         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18708         * lib/md2.c: Likewise.
18709         * lib/md4.c: Likewise.
18710         * lib/md5.c: Likewise.
18711         * lib/sha1.c: Likewise.
18712         * lib/sha256.c: Likewise.
18713         * lib/sha512.c: Likewise.
18714
18715 2009-10-22  Eric Blake  <ebb9@byu.net>
18716
18717         tests: avoid several compiler warnings
18718         * tests/test-getcwd.c (main): Avoid buffer underflow.
18719         * tests/test-getdate.c (main): String literals are not safe with
18720         putenv, so use setenv.  Declare unused argument.
18721         * modules/getdate-tests (Depends-on): Add setenv.
18722         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18723         problems with string literals in char *.
18724         * tests/test-hash.c (main): Avoid shadowing declaration.
18725         (insert_new): Treat string literals as char const *.
18726         * tests/test-getopt.h (test_getopt): Likewise.
18727         (getopt_loop): Alter types to minimize casting elsewhere.
18728         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18729         (test_getopt_long_posix): Likewise.
18730         (do_getopt_long): Add wrapper to minimize casting.
18731         * tests/test-atexit.c (clear_temp_file): Use void.
18732         * tests/test-areadlink-with-size.c (main): Declare unused
18733         arguments.
18734         * tests/test-areadlink.c (main): Likewise.
18735         * tests/test-areadlinkat-with-size.c (main): Likewise.
18736         * tests/test-areadlinkat.c (main): Likewise.
18737         * tests/test-canonicalize-lgpl.c (main): Likewise.
18738         * tests/test-canonicalize.c (main): Likewise.
18739         * tests/test-dirent-safer.c (main): Likewise.
18740         * tests/test-dirname.c (main): Likewise.
18741         * tests/test-dup2.c (main): Likewise.
18742         * tests/test-fchdir.c (main): Likewise.
18743         * tests/test-fcntl-h.c (main): Likewise.
18744         * tests/test-fcntl-safer.c (main): Likewise.
18745         * tests/test-fdopendir.c (main): Likewise.
18746         * tests/test-fdutimensat.c (main): Likewise.
18747         * tests/test-fflush.c (main): Likewise.
18748         * tests/test-filenamecat.c (main): Likewise.
18749         * tests/test-filevercmp.c (main): Likewise.
18750         * tests/test-fopen-safer.c (main): Likewise.
18751         * tests/test-fopen.c (main): Likewise.
18752         * tests/test-fpending.c (main): Likewise.
18753         * tests/test-fpurge.c (main): Likewise.
18754         * tests/test-freading.c (main): Likewise.
18755         * tests/test-fstatat.c (main): Likewise.
18756         * tests/test-fsync.c (main): Likewise.
18757         * tests/test-futimens.c (main): Likewise.
18758         * tests/test-getndelim2.c (main): Likewise.
18759         * tests/test-gettimeofday.c (main): Likewise.
18760         * tests/test-getopt.c (main): Likewise.
18761         * tests/test-i-ring.c (main): Likewise.
18762         * tests/test-inttypes.c (main): Likewise.
18763         * tests/test-link.c (main): Likewise.
18764         * tests/test-lstat.c (main): Likewise.
18765         * tests/test-math.c (main): Likewise.
18766         * tests/test-md5.c (main): Likewise.
18767         * tests/test-memchr2.c (main): Likewise.
18768         * tests/test-memrchr.c (main): Likewise.
18769         * tests/test-mkdir.c (main): Likewise.
18770         * tests/test-mkdirat.c (main): Likewise.
18771         * tests/test-mkfifoat.c (main): Likewise.
18772         * tests/test-open.c (main): Likewise.
18773         * tests/test-openat-safer.c (main): Likewise.
18774         * tests/test-openat.c (main): Likewise.
18775         * tests/test-quotearg.c (main): Likewise.
18776         * tests/test-rawmemchr.c (main): Likewise.
18777         * tests/test-readlink.c (main): Likewise.
18778         * tests/test-remove.c (main): Likewise.
18779         * tests/test-rename.c (main): Likewise.
18780         * tests/test-renameat.c (main): Likewise.
18781         * tests/test-rmdir.c (main): Likewise.
18782         * tests/test-sha1.c (main): Likewise.
18783         * tests/test-signal.c (main): Likewise.
18784         * tests/test-sigaction.c (main): Likewise.
18785         * tests/test-stat.c (main): Likewise.
18786         * tests/test-stat-time.c (main): Likewise.
18787         * tests/test-stddef.c (main): Likewise.
18788         * tests/test-stdint.c (main): Likewise.
18789         * tests/test-stdio.c (main): Likewise.
18790         * tests/test-stdlib.c (main): Likewise.
18791         * tests/test-strchrnul.c (main): Likewise.
18792         * tests/test-strerror.c (main): Likewise.
18793         * tests/test-string.c (main): Likewise.
18794         * tests/test-strtod.c (main): Likewise.
18795         * tests/test-strverscmp.c (main): Likewise.
18796         * tests/test-symlink.c (main): Likewise.
18797         * tests/test-symlinkat.c (main): Likewise.
18798         * tests/test-sys_stat.c (main): Likewise.
18799         * tests/test-sys_time.c (main): Likewise.
18800         * tests/test-time.c (main): Likewise.
18801         * tests/test-unistd.c (main): Likewise.
18802         * tests/test-unlink.c (main): Likewise.
18803         * tests/test-unlinkat.c (main): Likewise.
18804         * tests/test-utimens.c (main): Likewise.
18805         * tests/test-utimensat.c (main): Likewise.
18806         * tests/test-version-etc.c (main): Likewise.
18807         * tests/test-wchar.c (main): Likewise.
18808         * tests/test-wctype.c (main): Likewise.
18809         * tests/test-xprintf-posix.c (main): Likewise.
18810         * tests/test-posixtm.c (main): Likewise.
18811         (STREQ): Delete unused macro.
18812         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18813         shadowed variables.
18814         * tests/test-memchr.c (main): Likewise.
18815
18816 2009-10-21  Eric Blake  <ebb9@byu.net>
18817
18818         areadlinkat: avoid failure on older glibc
18819         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18820         rather than mis-comparing 0 against FUNC_RESULT of char*.
18821
18822 2009-10-21  Bruno Haible  <bruno@clisp.org>
18823
18824         * modules/stpncpy (License): Relicense under LGPLv2+.
18825         Reported by David Lutterkort <lutter@redhat.com>.
18826
18827 2009-10-20  Eric Blake  <ebb9@byu.net>
18828
18829         utimensat: work around Solaris 9 bug
18830         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18831         has trailing slash bugs.
18832         * tests/test-lutimens.h (test_lutimens): Enhance test.
18833         * tests/test-utimens.h (test_utimens): Likewise.
18834         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18835         * doc/posix-functions/utimes.texi (utimes): Likewise.
18836         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18837         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18838         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18839         * doc/posix-functions/futimens.texi (futimens): Likewise.
18840
18841         fdutimensat: new module
18842         * modules/fdutimensat: New file.
18843         * lib/fdutimensat.c (fdutimensat): Likewise.
18844         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18845         * MODULES.html.sh (File system functions): Mention module.
18846         * modules/fdutimensat-tests: New test.
18847         * tests/test-fdutimensat.c: Likewise.
18848
18849         doc: regenerate INSTALL
18850         * doc/INSTALL: Reflect recent autoconf update.
18851         * doc/INSTALL.ISO: Likewise.
18852         * doc/INSTALL.UTF-8: Likewise.
18853
18854 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18855
18856         acl: warn if ACL support is not detected
18857         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18858
18859 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18860
18861         * lib/nproc.h: Add extern "C" block for C++.
18862
18863 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18864             Bruno Haible  <bruno@clisp.org>
18865
18866         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18867         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18868         * doc/posix-functions/isalpha.texi: Likewise.
18869         * doc/posix-functions/isblank.texi: Likewise.
18870         * doc/posix-functions/iscntrl.texi: Likewise.
18871         * doc/posix-functions/isdigit.texi: Likewise.
18872         * doc/posix-functions/isgraph.texi: Likewise.
18873         * doc/posix-functions/islower.texi: Likewise.
18874         * doc/posix-functions/isprint.texi: Likewise.
18875         * doc/posix-functions/ispunct.texi: Likewise.
18876         * doc/posix-functions/isspace.texi: Likewise.
18877         * doc/posix-functions/isupper.texi: Likewise.
18878         * doc/posix-functions/isxdigit.texi: Likewise.
18879
18880 2009-10-18  Bruno Haible  <bruno@clisp.org>
18881
18882         Tests for module 'isblank'.
18883         * modules/isblank-tests: New file.
18884         * tests/test-isblank.c: New file.
18885
18886         New module 'isblank'.
18887         * lib/isblank.c: New file.
18888         * m4/isblank.m4: New file.
18889         * modules/isblank: New file.
18890         * doc/posix-functions/isblank.texi: Mention the new module.
18891
18892 2009-10-18  Bruno Haible  <bruno@clisp.org>
18893
18894         New module 'ctype'.
18895         * lib/ctype.in.h: New file.
18896         * m4/ctype.m4: New file.
18897         * modules/ctype: New file.
18898         * doc/posix-headers/ctype.texi: Mention the new module.
18899
18900 2009-10-18  Jim Meyering  <meyering@redhat.com>
18901
18902         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18903         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18904         right after its initialization, rather than farther down.
18905         Keeping these in close proximity makes it easier to ensure
18906         that each such variable is initialized.  E.g.,
18907
18908             LIB_CLOCK_GETTIME=
18909             AC_SUBST([LIB_CLOCK_GETTIME])
18910
18911         This change also increments these serial numbers.
18912         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18913         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18915
18916 2009-10-18  Bruno Haible  <bruno@clisp.org>
18917
18918         Don't let environment variables perturb build.
18919         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18920         (gl_PREREQ_GETHRXTIME): ... not here.
18921
18922 2009-10-18  Bruno Haible  <bruno@clisp.org>
18923
18924         Avoid symlink attack in localcharset module.
18925         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18926         (O_NOFOLLOW): Define fallback.
18927         (get_charset_aliases): Don't open the file if it is a symbolic link.
18928         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18929         gl_FCNTL_H.
18930         (gl_FCNTL_H): Require it.
18931         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18932         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18933         Reported by Fergal Glynn <fglynn@veracode.com>.
18934
18935 2009-10-18  Bruno Haible  <bruno@clisp.org>
18936
18937         Implement nproc for mingw.
18938         * lib/nproc.c: Include <windows.h>
18939         (num_processors): On native Windows platforms, try GetSystemInfo.
18940
18941 2009-10-18  Bruno Haible  <bruno@clisp.org>
18942
18943         Implement nproc for IRIX.
18944         * lib/nproc.c: Include <sys/sysmp.h>.
18945         (num_processors): On IRIX systems, try sysmp.
18946         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18947
18948 2009-10-18  Bruno Haible  <bruno@clisp.org>
18949
18950         Implement nproc for HP-UX.
18951         * lib/nproc.c: Include <sys/pstat.h>
18952         (num_processors): On HP-UX systems, try pstat_getdynamic.
18953         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18954         pstat_getdynamic.
18955
18956 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18957             Bruno Haible  <bruno@clisp.org>
18958
18959         Implement nproc for NetBSD, OpenBSD.
18960         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18961         (ARRAY_SIZE): New macro.
18962         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18963         * m4/nproc.m4: New file.
18964         * modules/nproc (Files): Add m4/nproc.m4.
18965         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18966         (Makefile.am): Instead, augment lib_SOURCES.
18967
18968 2009-10-18  Bruno Haible  <bruno@clisp.org>
18969
18970         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18971         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18972         sys/param.h.
18973
18974 2009-10-16  Eric Blake  <ebb9@byu.net>
18975
18976         utimensat: new module
18977         * modules/utimensat: New file.
18978         * lib/utimensat.c (utimensat): Likewise.
18979         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18980         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18981         so we can work around Linux bugs.
18982         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18983         * modules/sys_stat (Makefile.am): Substitute them.
18984         * lib/sys_stat.in.h (utimensat): Declare it.
18985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18986         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18987         * modules/utimensat-tests: New test.
18988         * tests/test-utimensat.c: Likewise.
18989
18990         utimens: let lutimens work on non-symlinks
18991         * lib/utimens.c (lutimens): Fall back to utimens rather than
18992         failing with ENOSYS, when file is not a symlink.
18993         (utimens): Reduce redirection.
18994         * tests/test-lutimens.h (test_lutimens): Update test to cover
18995         non-symlinks.
18996         * tests/test-utimens.h (test_utimens): Update test to cover
18997         symlinks.
18998         * tests/test-utimens.c (main): Update caller.
18999
19000         utimens: cache whether utimensat syscall works
19001         * lib/utimens.c (utimensat_works_really): New cache variable.
19002         (fdutimens, lutimens): Use it to avoid failing syscall.
19003
19004         test-stat-time, test-utimens: improve portability
19005         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
19006         ext4 on alpha, and for cygwin.
19007         * tests/test-utimens-common.h: New file.
19008         (nap): Factor delays into single function.
19009         * tests/test-lutimens.h (test_lutimens): Use new header.
19010         * tests/test-futimens.h (test_futimens): Likewise.
19011         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
19012         timestamps to occur from same machine, as was done previously for
19013         test_utimens.
19014         * modules/utimens-tests (Files): Ship new file.
19015         * modules/futimens-tests (Files): Likewise.
19016         Reported in part by Jim Meyering.
19017
19018         sys_stat: sort replacement declarations
19019         * lib/sys_stat.in.h: Sort declarations.
19020         * lib/futimens.c (futimens): Fix typo.
19021
19022 2009-10-15  Jim Meyering  <meyering@redhat.com>
19023
19024         don't let environment settings perturb build
19025         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
19026         could cause a configure-time and/or build-time malfunction.
19027         Typically, a configure-time function-in-library test is performed
19028         via code like this:
19029
19030           LIB_VAR=
19031           AC_SUBST([LIB_VAR])
19032           prefix_saved_LIBS=$LIBS
19033             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
19034                        [test "$ac_cv_search_FUNC" = "none required" ||
19035                         LIB_VAR=$ac_cv_search_FUNC])
19036           LIBS=$prefix_saved_LIBS
19037
19038         However, in each of the files affected by this change, the LIB_VAR=
19039         initialization was omitted.  Thus, when set in the environment, its
19040         value would propagate into generated Makefiles when FUNC is not found
19041         in LIB_NAME.
19042         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
19043         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19045
19046 2009-10-14  Eric Blake  <ebb9@byu.net>
19047
19048         fchdir: avoid infinite recursion in mingw
19049         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
19050         recursing.
19051
19052         test-stat-time: port to mingw
19053         * tests/test-stat-time.c (force_unlink): Return a value.
19054         (test_ctime) [W32]: Fix compilation error.
19055         (nap): Don't call usleep with too large an argument.  Use
19056         force_unlink.
19057         * doc/pastposix-functions/usleep.texi (usleep): Document the
19058         portability issue.
19059
19060 2009-10-13  Jim Meyering  <meyering@redhat.com>
19061
19062         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
19063         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
19064         * modules/pipe-filter-ii: Likewise.
19065         * modules/sys_socket-tests: Likewise.
19066         * modules/tsearch-tests: Likewise.
19067         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
19068         (check): Depend on it.
19069
19070 2009-10-12  Eric Blake  <ebb9@byu.net>
19071
19072         utimens-tests: port to NFS file systems
19073         * tests/test-utimens.h (test_utimens): Refactor utimecmp
19074         comparisons to avoid spurious failures from timestamp drift
19075         between NFS machines.
19076
19077 2009-10-12  Eric Blake  <ebb9@byu.net>
19078
19079         stat-time-tests: minor cleanups
19080         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
19081         * tests/test-stat-time.c (nap): Separate assignment from call.
19082         Suggested by Paolo Bonzini and Bruno Haible.
19083
19084         sys_stat: guarantee struct timespec
19085         * lib/sys_stat.in.h (includes): Always include <time.h>
19086         * modules/sys_stat (Depends-on): Add time.
19087         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
19088         mode_t permission values.
19089         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
19090         get at subsecond timestamps.
19091
19092 2009-10-10  Eric Blake  <ebb9@byu.net>
19093
19094         futimens: new module
19095         * modules/futimens: New file.
19096         * lib/futimens.c (futimens): Likewise.
19097         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
19098         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
19099         we can work around Linux bugs.
19100         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19101         * modules/sys_stat (Makefile.am): Substitute them.
19102         * lib/sys_stat.in.h (futimens): Declare it.
19103         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19104         * doc/posix-functions/futimens.texi (futimens): Likewise.
19105         * modules/futimens-tests: New test.
19106         * tests/test-futimens.c: Likewise.
19107
19108         utimens: introduce fdutimens
19109         * lib/utimens.h (fdutimens): New prototype.
19110         * lib/utimens.c (gl_futimens): Move guts...
19111         (fdutimens): ...to new interface.
19112         * tests/test-utimens.c (do_fdutimens): Use it.
19113
19114         utimens: add UTIME_NOW and UTIME_OMIT support
19115         * lib/utimens.c (validate_timespec, update_timespec): New helper
19116         functions.
19117         (gl_futimens, lutimens): Use them.
19118         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
19119         stdbool, sys_stat.
19120         (Link): Mention resulting library dependency.
19121         * modules/utimecmp (Link): Likewise.
19122         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
19123         (Makefile.am): Pick up library dependency.
19124         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
19125         definition.
19126         * tests/test-sys_stat.c: Test the definitions.
19127         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
19128         * NEWS: Document library dependency.
19129
19130         utimecmp: support symlink timestamps
19131         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
19132         hashing when possible.  Use pathconf when available.
19133         (SYSCALL_RESOLUTION): Recognize tighter resolution.
19134         * modules/utimecmp (Depends-on): Add lstat.
19135
19136         utimens: add lutimens interface
19137         * lib/utimens.c (lutimens): New function.
19138         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
19139         * lib/utimens.h (lutimens): Declare new interface.
19140         * tests/test-utimens.c (main): Enhance test.
19141         * tests/test-lutimens.h (test_lutimens): New file.
19142         * modules/utimens-tests (Files): Distribute it.
19143         (Depends-on): Add symlink.
19144         (configure.ac): Check for usleep.
19145
19146         utimens: validate futimens usage
19147         * lib/utimens.c (gl_futimens): Require valid fd up front, using
19148         fewer syscalls on failure later on.  Avoid compiler warning on
19149         mingw.
19150         * modules/utimens (Depends-on): Add dup2.
19151
19152         utimens: add test
19153         * modules/utimens-tests: New test.
19154         * tests/test-utimens.h: New file.
19155         * tests/test-futimens.h: Likewise.
19156         * tests/test-utimens.c: Likewise.
19157
19158         doc: mention timestamp portability issues
19159         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
19160         instead.
19161         * doc/posix-functions/utime.texi (utime): Likewise.
19162         * doc/posix-functions/utimes.texi (utimes): Likewise.
19163         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
19164         instead.
19165         * doc/posix-functions/futimens.texi (futimens): Mention utimens
19166         module.
19167         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19168         Mention weakness with symlink timestamps.
19169         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
19170         to utimensat/futimens instead.
19171         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
19172
19173         test-dup2: enhance test
19174         * tests/test-dup2.c (main): Also check AT_FDCWD.
19175
19176         test-stat-time: avoid more spurious failures
19177         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
19178         xfs; and avoid race if the two timestamps cross quantization edge.
19179
19180         relocatable: prefer 'file system' over 'filesystem'
19181         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
19182         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
19183         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
19184         * doc/relocatable.texi (Enabling Relocatability): Likewise.
19185         * lib/relocatable.c (compute_curr_prefix): Likewise.
19186
19187 2009-10-10  Jim Meyering  <meyering@redhat.com>
19188
19189         stat-time-tests: check for the usleep function
19190         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
19191
19192 2009-10-10  Bruno Haible  <bruno@clisp.org>
19193
19194         * modules/xnanosleep: Put the Link section after the Include section.
19195
19196 2009-10-09  Eric Blake  <ebb9@byu.net>
19197
19198         dup2: work around FreeBSD 6.1 bug
19199         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
19200         * doc/posix-functions/dup2.texi (dup2): Document it.
19201         Reported by Nelson H. F. Beebe and Jim Meyering.
19202
19203         test-stat-time: port to buggy NFS clients
19204         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
19205         (test_ctime): Also skip test if mtime and ctime are skewed.
19206
19207         maint: prefer 'file system' over 'filesystem'
19208         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19209         * doc/posix-functions/lstat.texi (lstat): Likewise.
19210         * lib/file-has-acl.c (file_has_acl): Likewise.
19211         * lib/fwriteerror.c [TEST]: Likewise.
19212         * tests/test-areadlink.h (test_areadlink): Likewise.
19213         * tests/test-areadlinkat-with-size.c (main): Likewise.
19214         * tests/test-areadlinkat.c (main): Likewise.
19215         * tests/test-canonicalize-lgpl.c (main): Likewise.
19216         * tests/test-canonicalize.c (main): Likewise.
19217         * tests/test-fstatat.c (main): Likewise.
19218         * tests/test-linkat.c (main): Likewise.
19219         * tests/test-lstat.h (test_lstat_func): Likewise.
19220         * tests/test-mkdir.h (test_mkdir): Likewise.
19221         * tests/test-readlink.h (test_readlink): Likewise.
19222         * tests/test-remove.c (main): Likewise.
19223         * tests/test-rename.h (test_rename): Likewise.
19224         * tests/test-renameat.c (main): Likewise.
19225         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19226         * tests/test-symlink.h (test_symlink): Likewise.
19227         * tests/test-symlinkat.c (main): Likewise.
19228         * tests/test-unlink.h (test_unlink_func): Likewise.
19229         * tests/test-unlinkat.c (main): Likewise.
19230
19231         maint: make realtime library usage explicit
19232         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
19233         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
19234         * modules/settime (Link): Likewise.
19235         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
19236
19237         test-stat-time: speed up execution
19238         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
19239         warning on mingw.
19240         (nap): New helper function.
19241         (prepare_test): Use it to reduce sleep time.
19242         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
19243         execution.
19244         * modules/stat-time-tests (configure.ac): Check for usleep.
19245
19246 2009-10-09  Jim Meyering  <meyering@redhat.com>
19247
19248         selinux-h: always use getfilecon wrappers
19249         * lib/getfilecon.c: New file.
19250         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
19251         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
19252         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
19253         (fgetfilecon): Provide a stub.
19254         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
19255         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
19256         file unconditionally.
19257         When <selinux/selinux.h> is found, arrange to use wrappers.
19258         * modules/selinux-h (Files): Add getfilecon.c.
19259         (Makefile.am): Substitute include-next-related bits
19260         into the now-always-generated selinux/selinux.h file.
19261         * doc/glibc-functions/lgetfilecon.texi: New file.
19262         * doc/glibc-functions/fgetfilecon.texi: New file.
19263         * doc/glibc-functions/getfilecon.texi: New file.
19264         * doc/glibc-functions/getfilecon-desc.texi: New file.
19265         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
19266         which to pull in the new files.
19267         * MODULES.html.sh (Misc): Add selinux-h.
19268
19269 2009-10-08  Jim Meyering  <meyering@redhat.com>
19270
19271         unistd: fix comment typo
19272         * lib/unistd.in.h (euidaccess): Fix a comment typo.
19273
19274 2009-10-08  Eric Blake  <ebb9@byu.net>
19275
19276         areadlink: use SIZE_MAX consistently
19277         * modules/areadlink (Depends-on): Add stdint.
19278         * modules/areadlink-with-size (Depends-on): Likewise.
19279         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
19280         gives NULL; drop sys/types, since unistd gives size_t; and add
19281         stdint for SIZE_MAX.
19282         (SIZE_MAX): Rely on headers.
19283         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
19284         and add stdint.
19285         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
19286         (SIZE_MAX): Likewise.
19287         (INITIAL_BUF_SIZE): Turn into enum.
19288         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
19289
19290 2009-10-08  Jim Meyering  <meyering@redhat.com>
19291
19292         areadlinkat: avoid compilation failure
19293         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
19294         Fix typo in comment.
19295
19296 2009-10-07  Eric Blake  <ebb9@byu.net>
19297
19298         areadlinkat-with-size: new module
19299         * modules/areadlinkat-with-size: New module.
19300         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
19301         * lib/areadlink.h (areadlinkat): Declare it.
19302         * MODULES.html.sh (File system functions): Mention it.
19303         * modules/areadlinkat-with-size-tests: New test.
19304         * tests/test-areadlinkat-with-size.c: New file.
19305
19306         xreadlinkat: new module
19307         * modules/xreadlinkat: New module.
19308         * lib/xreadlinkat.c (xreadlinkat): New file.
19309         * lib/xreadlink.h (xreadlinkat): Declare it.
19310         * MODULES.html.sh (File system functions): Mention it.
19311
19312         areadlinkat: new module
19313         * lib/at-func.c (FUNC_FAIL): New define.
19314         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
19315         * modules/areadlinkat: New module.
19316         * lib/linkat.c (areadlinkat): Move...
19317         * lib/areadlinkat.c (areadlinkat): ...to new file.
19318         * lib/areadlink.h (areadlinkat): Declare it.
19319         * modules/linkat (Depends-on): Add areadlinkat.
19320         * MODULES.html.sh (File system functions): Mention it.
19321         * modules/areadlinkat-tests: New test.
19322         * tests/test-areadlinkat.c: New file.
19323
19324         areadlink, areadlink-with-size: add tests
19325         * modules/areadlink-tests: New test.
19326         * modules/areadlink-with-size-tests: Likewise.
19327         * tests/test-areadlink.h: New file.
19328         * tests/test-areadlink.c: Likewise.
19329         * tests/test-areadlink-with-size.c: Likewise.
19330
19331         maint: minor cleanups
19332         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
19333         _UNUSED_PARAMETER_ instead.
19334         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
19335         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
19336         * modules/linkat-tests (Files): Distribute test-link.h.
19337
19338         openat, utimens: whitespace cleanup
19339         * lib/openat.c: Prefer space throughout, rather than mix of 8
19340         spaces vs. tabs.
19341         * lib/at-func.c: Likewise.
19342         * lib/utimens.c: Likewise.
19343
19344         openat: avoid using wrong fd
19345         * lib/openat.c (openat_permissive): Reject user's fd if saving the
19346         working directory chooses same fd.
19347         * lib/at-func.c (AT_FUNC_NAME): Likewise.
19348
19349         mkdir, mkdirat: fix cygwin 1.5.x bug
19350         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
19351         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
19352         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
19353         bug.
19354         (gl_PREREQ_MKDIR): Delete unused macro.
19355         * modules/mkdir (Files): Track file rename.
19356         (configure.ac): Update macro name.
19357         * modules/openat (Depends-on): Add mkdir.
19358         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
19359
19360         mkdir, mkdirat: add tests
19361         * modules/mkdir-tests: New test.
19362         * tests/test-mkdir.h: New file.
19363         * tests/test-mkdir.c: Likewise.
19364         * tests/test-mkdirat.c: Likewise.
19365         * modules/openat-tests (Files): Add new files.
19366         (Makefile.am): Run new test.
19367
19368 2009-10-06  Eric Blake  <ebb9@byu.net>
19369
19370         doc: tweak *at function documentation
19371         * doc/posix-functions/faccessat.texi (faccessat): Mention
19372         known issue with replacement.
19373         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
19374         * doc/posix-functions/linkat.texi (linkat): Likewise.
19375         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19376         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19377         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19378         * doc/posix-functions/renameat.texi (renameat): Likewise.
19379         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19380
19381         openat: fix GNU/Hurd bug in unlinkat
19382         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
19383         broken.
19384         * doc/posix-functions/unlink.texi (unlink): Document this.
19385         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
19386
19387         fdopendir: fix GNU/Hurd bug
19388         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
19389         allowing non-directory fds.
19390         * lib/fdopendir.c (rpl_fdopendir): Work around it.
19391         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19392         * modules/dirent (Makefile.am): Substitute it.
19393         * lib/dirent.in.h (fdopendir): Declare replacement.
19394         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
19395         * tests/test-fdopendir.c (main): Test something other than
19396         /dev/null, since on Hurd that behaves like a directory.
19397
19398         test-symlink: port to GNU/Hurd
19399         * tests/test-symlink.h (test_symlink): Relax expected errno.
19400
19401         doc: tweak more cygwin information
19402         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
19403         now compatible with glibc.
19404         * doc/posix-functions/getopt.texi (getopt): Likewise.
19405
19406         getopt-gnu: add another test
19407         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19408         guarantee behavior relied on by m4.
19409         * tests/test-getopt.c (main): Use it.
19410         * modules/getopt-posix-tests (Depends-on): Add setenv.
19411         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19412
19413         getopt: fix compilation on darwin
19414         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19415         include.
19416         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19417         Reported by Ludovic Courtès.
19418
19419 2009-10-06  Bruno Haible  <bruno@clisp.org>
19420
19421         * modules/size_max (Description): Discourage its use.
19422         Reported by Simon Josefsson.
19423
19424 2009-10-06  Jim Meyering  <meyering@redhat.com>
19425
19426         linkat: avoid compilation failure
19427         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19428
19429 2009-10-05  Eric Blake  <ebb9@byu.net>
19430
19431         linkat: support Linux 2.6.17
19432         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19433         linkat on Linux, but allow cache variable override.
19434         * lib/linkat.c (rpl_linkat): Define override.
19435         * modules/linkat (Depends-on): Add symlinkat.
19436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19437         * modules/unistd (Makefile.am): Substitute it.
19438         * lib/unistd.in.h (linkat): Declare replacement.
19439         Reported by Pádraig Brady.
19440
19441         quotearg: port test to systems with C.UTF-8 locale
19442         * tests/test-quotearg.c (struct result_strings): Add another
19443         member, differentiating between C.ASCII and C.UTF-8 handling.
19444         (compare_strings): Add parameter.
19445         (main): Adjust all callers.
19446
19447         getopt: avoid clash with FreeBSD _getopt_internal
19448         * lib/getopt.in.h (_getopt_internal): Override the name.
19449         * lib/getopt_int.h (includes): Pick up any overrides.
19450         Reported by Reuben Thomas.
19451
19452         hash: allow C89 compilation
19453         * lib/hash.c (check_tuning): Move declaration before statement.
19454         Reported by Reuben Thomas.
19455
19456 2009-10-05  Karl Berry  <karl@gnu.org>
19457
19458         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
19459
19460 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19461             Bruno Haible  <bruno@clisp.org>
19462
19463         * lib/uname.c (uname): Use a table-driven algorithm to compute
19464         Windows NT versions.
19465
19466 2009-10-04  Bruno Haible  <bruno@clisp.org>
19467
19468         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19469         program_invocation_short_name.
19470         * modules/progname (configure.ac): Test for presence of
19471         program_invocation_short_name.
19472         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19473
19474 2009-10-04  Bruno Haible  <bruno@clisp.org>
19475
19476         * lib/progname.c (set_program_name): Fix comment.
19477         Reported by Jim Meyering.
19478
19479 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19480             Bruno Haible  <bruno@clisp.org>
19481
19482         * lib/uname.c: Include <string.h>.
19483         (uname): Do only one call to GetVersionEx in the common case.
19484
19485 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19486             Bruno Haible  <bruno@clisp.org>
19487
19488         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19489         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19490         (uname): Add support for Windows CE and various non-x86 CPU types.
19491
19492 2009-10-03  Bruno Haible  <bruno@clisp.org>
19493
19494         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19495         invocation to tests/configure.ac.
19496         Reported by Ian Beckwith <ianb@erislabs.net>.
19497
19498 2009-10-02  Eric Blake  <ebb9@byu.net>
19499
19500         fchdir: avoid compiler warning
19501         * lib/fchdir.c (canonicalize_file_name)
19502         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19503
19504         test-open: support mingw errno values
19505         * tests/test-open.h (test_open): Relax test.
19506         * tests/test-fopen.h (test_fopen): Likewise.
19507         * tests/test-openat-safer.c (main): Likewise.
19508
19509         open: fix opening directory on mingw
19510         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19511
19512         test-open: on GNU/Hurd, /dev/null is a directory
19513         * tests/test-fopen.h (main): Rename...
19514         (test_fopen): ...to this.  Use a guaranteed non-directory when
19515         confirming open behavior on trailing slash.
19516         * tests/test-openat-safer.c (main): Likewise.
19517         * tests/test-open.h (main): Likewise....
19518         (test_open): ...to this.
19519         * tests/test-fopen.c (main): Adjust caller.
19520         * tests/test-fopen-safer.c (main): Likewise.
19521         * tests/test-open.c (main): Likewise.
19522         * tests/test-fcntl-safer.c (main): Likewise.
19523         Reported by Samuel Thibault.
19524
19525         rename, fchdir: don't ignore chdir failure
19526         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19527         * lib/rename.c (rpl_rename) [W32]: Likewise.
19528         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19529         an empty destination directory if source cannot be renamed,
19530         although there is still possibility for failure.
19531         * doc/posix-functions/rename.texi (rename): Document the race.
19532         Reported by Jim Meyering.
19533
19534         maint: cleanup whitespace in recent commits
19535         * lib/rename.c (rpl_rename): Remove tabs.
19536         * tests/test-link.h (test_link): Likewise.
19537         * lib/fchdir.c (get_name): Likewise.
19538         Reported by Jim Meyering.
19539
19540 2009-10-02  Ben Pfaff  <blp@gnu.org>
19541
19542         relocatable-prog-wrapper: Add missing dependency on
19543         double-slash-root.
19544         * modules/relocatable-prog-wrapper: Add dependency.
19545         Reported by Ian Beckwith <ianb@erislabs.net>.
19546
19547 2009-10-02  Eric Blake  <ebb9@byu.net>
19548
19549         renameat: fix Solaris bugs
19550         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19551         needed fixing.
19552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19553         * modules/stdio (Makefile.am): Substitute it.
19554         * lib/stdio.in.h (renameat): Declare replacement.
19555         * lib/renameat.c (rpl_renameat): Implement fix.
19556
19557         renameat: new module
19558         * modules/renameat: New file.
19559         * lib/renameat.c (renameat): Likewise.
19560         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19562         * modules/stdio (Makefile.am): Substitute them.
19563         * lib/stdio.in.h (renameat): Declare it.
19564         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19565         * doc/posix-functions/renameat.texi (renameat): Likewise.
19566         * modules/renameat-tests: New test.
19567         * tests/test-renameat.c: Likewise.
19568
19569         rename: fix mingw bugs
19570         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19571         directory overwrite bugs.
19572
19573         rename: fix another cygwin 1.5 bug
19574         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19575         checks.
19576         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19577         unnecessary cygwin workarounds.  Also work around bug with moving
19578         full directory onto an empty one.
19579         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19580
19581         rename-dest-slash: merge into rename module
19582         * modules/rename-dest-slash (Status): Mark obsolete.
19583         (Depends-on): Add rename.
19584         (Files): Let rename do it all.
19585         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19586         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19587         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19588         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19589         * lib/rename.c (rpl_rename): Update comments.
19590
19591         rename: fix cygwin 1.5.x bugs
19592         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19593         * lib/rename.c (rpl_rename): Work around them.
19594         * modules/rename (Depends-on): Add same-inode.
19595
19596         rename: fix Solaris 10 bug
19597         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19598         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19599         was the only bug.
19600
19601         rename: fix Solaris 9 bug
19602         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19603         on non-directory.  Avoid calling exit.
19604         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19605         strdup.
19606         * modules/rename-tests (Depends-on): Drop lstat.
19607         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19608         (gl_PREREQ_RENAME): Delete unused macro.
19609
19610         rename-dest-slash: fix NetBSD bug
19611         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19612         links.
19613         * modules/rename-dest-slash (Depends-on): Add same-inode.
19614
19615         rename-tests: new test, exposes several platform bugs
19616         * modules/rename-tests: New file.
19617         * tests/test-rename.h: Likewise.
19618         * tests/test-rename.c: Likewise.
19619         * doc/posix-functions/rename.texi (rename): Improve documentation,
19620         including bugs that will eventually be fixed in gnulib.
19621
19622 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19623
19624         * lib/uname.c: Include <stdlib.h>
19625         (uname): Assume version info is available.
19626
19627 2009-10-02  Jim Meyering  <meyering@redhat.com>
19628
19629         gnu-web-doc-update: correct --help output
19630         * build-aux/gnu-web-doc-update: Make --help output relevant.
19631
19632         gnu-web-doc-update: add standard options
19633         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19634
19635         gnu-web-doc-update: New module.
19636         Use this script to automatically update the on-line web documentation
19637         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19638         * modules/gnu-web-doc-update: New file, from coreutils.
19639         * build-aux/gnu-web-doc-update: New script.
19640
19641 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19642
19643         link: LoadLibrary is not needed.
19644         * lib/link.c: Use GetModuleHandle.
19645
19646 2009-10-01  Eric Blake  <ebb9@byu.net>
19647
19648         getopt: bump serial number
19649         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19650         change.
19651
19652         tests: tighten link, rmdir, and remove tests
19653         * tests/test-link.h (includes): No need to use <config.h> here.
19654         Clean up if directory hard link was created, otherwise test for
19655         trailing '.'.
19656         * tests/test-linkat.c (main): Simplify.
19657         * tests/test-remove.c (main): Enhance test for trailing '.'.
19658         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19659
19660 2009-10-01  Jim Meyering  <meyering@redhat.com>
19661
19662         maint.mk: requiring "make major" was annoying, for a "minor" release.
19663         What is intended is "stable", to contrast with alpha and beta,
19664         so require "make stable", not "make major".
19665         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19666         (get_tool_versions): Likewise.
19667         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19668
19669 2009-09-30  Ben Pfaff  <blp@gnu.org>
19670
19671         Fix broken build of replacement for Windows tmpfile().
19672         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19673         flags argument added along with the 'mkostemp' module.
19674
19675 2009-09-28  Bruno Haible  <bruno@clisp.org>
19676
19677         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19678         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19679         to 'remove_elt'.
19680         (gl_list_remove): Update.
19681         * lib/gl_list.c (gl_list_remove): Update.
19682         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19683         to 'remove_elt'.
19684         (gl_oset_remove): Update.
19685         * lib/gl_list.c (gl_oset_remove): Update.
19686         Reported by Eric Blake.
19687
19688 2009-09-28  Eric Blake  <ebb9@byu.net>
19689
19690         doc: mention yet more cygwin 1.7 status
19691         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19692         cygwin.
19693         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19694         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19695
19696         argp: fix test failure
19697         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19698         that are not upper-case.  Pass correct range to tolower.
19699
19700 2009-09-27  Jim Meyering  <meyering@redhat.com>
19701
19702         test-yesno: work around sparc-dash here-document infelicity
19703         Without this change, the literal \177 byte in a here document
19704         would make dash 0.5.5.1-3 access uninitialized memory.
19705         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19706         Instead, use a marker, "@", and filter through tr to create the desired
19707         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19708
19709 2009-09-27  Bruno Haible  <bruno@clisp.org>
19710
19711         Disable untested support for new flavours of ACLs on AIX.
19712         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19713         progress.
19714         * lib/set-mode-acl.c (qset_acl): Likewise.
19715
19716 2008-12-07  Bruno Haible  <bruno@clisp.org>
19717
19718         Add support for new flavours of ACLs on AIX. (Untested.)
19719         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19720         (file_has_acl): Add support for newer AIX.
19721         * lib/set-mode-acl.c (qset_acl): Likewise.
19722         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19723         Rainer Tammer <tammer@tammer.net>.
19724
19725 2009-09-26  Eric Blake  <ebb9@byu.net>
19726
19727         argp: fix compilation of getopt
19728         * lib/getopt.in.h (includes): Use different guard than glibc.
19729         Reported by Sergey Poznyakoff.
19730
19731         doc: mention more cygwin 1.7 status
19732         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19733         bug.
19734         * doc/posix-functions/execl.texi (execl): Likewise.
19735         * doc/posix-functions/execle.texi (execle): Likewise.
19736         * doc/posix-functions/execlp.texi (execlp): Likewise.
19737         * doc/posix-functions/execv.texi (execv): Likewise.
19738         * doc/posix-functions/execve.texi (execve): Likewise.
19739         * doc/posix-functions/execvp.texi (execvp): Likewise.
19740         * doc/glibc-functions/canonicalize_file_name.texi
19741         (canonicalize_file_name): Cygwin 1.7 now provides this.
19742         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19743         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19744         on AT_SYMLINK_NOFOLLOW.
19745
19746 2009-09-24  Eric Blake  <ebb9@byu.net>
19747
19748         test-linkat: make test more robust
19749         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19750
19751         getopt: fix inclusion guards for cygwin
19752         * modules/getopt-posix (Depends-on): Add include-next.
19753         (Makefile.am): Substitute more items in replacement header.
19754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19755         <getopt.h>.
19756         * lib/getopt.in.h (includes): Use split inclusion guard, and
19757         prefer <getopt.h> over include <unistd.h> when one is present.
19758         (option): Also override name of 'struct option'.
19759
19760         same-inode: revert prior change; it is not yet ready
19761         * NEWS: Undo mention of this change.
19762         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19763         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19764         * lib/cycle-check.c (cycle_check): Likewise.
19765         * lib/same.c (same_name): Likewise.
19766         * lib/at-func2.c (at_func2): Likewise.
19767
19768 2009-09-23  Eric Blake  <ebb9@byu.net>
19769
19770         linkat: new module
19771         * modules/linkat: New file.
19772         * lib/at-func2.c (at_func2): Likewise.
19773         * lib/linkat.c (linkat): Likewise.
19774         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19775         * lib/openat-priv.h (at_func2): Add declaration.
19776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19777         * modules/unistd (Makefile.am): Substitute them.
19778         * lib/unistd.in.h (linkat): Declare it.
19779         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19780         * doc/posix-functions/linkat.texi (linkat): Likewise.
19781         * doc/posix-functions/link.texi (link): Tweak wording.
19782         * tests/test-link.c (main): Move guts...
19783         * tests/test-link.h (test_link): ...into new file.
19784         * modules/linkat-tests: New test.
19785         * tests/test-linkat.c: Likewise.
19786         * modules/link-tests (Files): Ship new file.
19787         (Depends-on): Add stdbool.
19788
19789         dirname: add library-safe mdir_name
19790         * lib/dirname.h (mdir_name): New prototype.
19791         * lib/dirname.c (dir_name): Move guts...
19792         (mdir_name): ...to new function that avoids xalloc_die.
19793
19794         fchdir: another mingw fix
19795         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19796         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19797         on mingw (where it has not yet been ported), and make it optional
19798         elsewhere.
19799         (_gl_register_fd): Use it.
19800
19801         same-inode: make SAME_INODE tri-state, to port to mingw
19802         * NEWS: Mention this change.
19803         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19804         st_ino always being 0.
19805         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19806         * lib/cycle-check.c (cycle_check): Likewise.
19807         * lib/same.c (same_name): Likewise.
19808
19809         lstat: avoid mingw compilation error
19810         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19811         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19812         lstat ourselves.
19813         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19814         was adequate.
19815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19816         the checks for lstat.
19817         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19818
19819         link: fix test failure on Solaris 9
19820         * lib/link.c (rpl_link): Don't assume link will catch bogus
19821         trailing slash on source.
19822
19823         test-symlinkat: enhance test
19824         * tests/test-readlink.c (main): Move guts...
19825         * tests/test-readlink.h (test_readlink): ...into new file.
19826         * tests/test-symlink.c (main): Move guts...
19827         * tests/test-symlink.h (test_symlink): ...into new file.
19828         * tests/test-symlinkat.c (main): Use new files for further
19829         coverage.
19830         (do_symlink, do_readlink): New helper functions.
19831         * modules/symlink-tests (Files): Ship new file.
19832         (Depends-on): Add stdbool.
19833         * modules/readlink-tests (Files): Ship new file.
19834         (Depends-on): Add stdbool.
19835         * modules/symlinkat-tests (Files): Use new files.
19836
19837 2009-09-23  Eric Blake  <ebb9@byu.net>
19838
19839         readlink: document portability issue with symlink length
19840         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19841         systems have bogus st_size on symlinks, and mention the
19842         areadlink-with-size module.
19843         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19844         * doc/posix-functions/readlink.texi (readlink): Mention the
19845         areadlink module, and ERANGE failure.
19846         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19847         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19848
19849         readlink: fix Solaris 9 bug with trailing slash
19850         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19851         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19852         * doc/posix-functions/readlink.texi (readlink): Document this.
19853         * modules/readlink-tests: New test.
19854         * tests/test-readlink.c: Likewise.
19855
19856         readlink: fix cygwin 1.5.x bug with return type
19857         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19858         * lib/unistd.in.h (readlink): Use ssize_t.
19859         * lib/readlink.c (readlink): Likewise.
19860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19861         * modules/unistd (Makefile.am): Substitute it.
19862         * lib/unistd.in.h (readlink): Declare replacement.
19863         * doc/posix-functions/readlink.texi (readlink): Document this.
19864
19865         symlink: use throughout gnulib
19866         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19867         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19868         symlink is not used.
19869         * modules/symlinkat (Depends-on): Add symlink.
19870         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19871         * modules/canonicalize-tests (Depends-on): Likewise.
19872         * modules/lstat-tests (Depends-on): Likewise.
19873         * modules/openat-tests (Depends-on): Likewise.
19874         * modules/remove-tests (Depends-on): Likewise.
19875         * modules/rmdir-tests (Depends-on): Likewise.
19876         * modules/unlink-tests (Depends-on): Likewise.
19877         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19878         * tests/test-canonicalize.c (symlink): Likewise.
19879         * tests/test-fstatat.c (symlink): Likewise.
19880         * tests/test-lstat.c (symlink): Likewise.
19881         * tests/test-remove.c (symlink): Likewise.
19882         * tests/test-rmdir.c (symlink): Likewise.
19883         * tests/test-unlink.c (symlink): Likewise.
19884         * tests/test-unlinkat.c (symlink): Likewise.
19885
19886         symlink: new module, for Solaris 9 bug
19887         * modules/symlink: New file.
19888         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19889         * lib/symlink.c: Likewise.
19890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19891         * modules/unistd (Makefile.am): Substitute them.
19892         * lib/unistd.in.h (symlink): Declare replacement.
19893         * MODULES.html.sh (File system functions): Mention it.
19894         * doc/posix-functions/symlink.texi (symlink): Likewise.
19895         * modules/symlink-tests: New test.
19896         * tests/test-symlink.c: Likewise.
19897
19898 2009-09-23  Bruno Haible  <bruno@clisp.org>
19899
19900         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19901         when needed.
19902         Test case: gnulib-tool --import --with-tests atexit inttypes.
19903         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19904
19905 2009-09-23  Bruno Haible  <bruno@clisp.org>
19906
19907         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19908         subcommand, not in a subshell.
19909
19910 2009-09-22  Eric Blake  <ebb9@byu.net>
19911
19912         unistd: sort replacement declarations
19913         * lib/unistd.in.h: Sort declarations.
19914
19915         open, openat: minor optimization
19916         * lib/open.c (open): If open succeeded, len is non-zero.
19917         * lib/openat.c (rpl_openat): Likewise.
19918
19919         link-follow: ensure correct result
19920         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19921         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19922         distinguish between possible failures.
19923
19924 2009-09-21  Eric Blake  <ebb9@byu.net>
19925
19926         fts: avoid compiler warning
19927         * lib/fts.c (dirent_inode_sort_may_be_useful)
19928         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19929
19930 2009-09-19  Bruno Haible  <bruno@clisp.org>
19931
19932         * lib/progreloc.c (canonicalize_file_name): New declaration.
19933
19934 2009-09-19  Eric Blake  <ebb9@byu.net>
19935
19936         link: fix quoting
19937         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19938
19939         openat: fix openat bugs on Solaris 9
19940         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19941         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19942         * modules/openat (Depends-on): Add open.
19943         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19944         * modules/fcntl-h (Makefile.am): Substitute it.
19945         * lib/fcntl.in.h (openat): Declare replacement.
19946         * doc/posix-functions/openat.texi (openat): Document this.
19947
19948         openat: move fstatat and unlinkat into correct files
19949         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19950         compiled.
19951         * lib/openat.c (fstatat, unlinkat): Move...
19952         * lib/fstatat.c (fstatat): ...into correct files.
19953         * lib/unlinkat.c (unlinkat): Likewise.
19954
19955         openat: fix unlinkat bugs on Solaris 9
19956         * lib/unlinkat.c (unlinkat): New file.
19957         * modules/openat (Depends-on): Add unlink.
19958         (Files): Distribute it.
19959         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19960         trailing slash behavior is broken.
19961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19962         * modules/unistd (Makefile.am): Substitute it.
19963         * lib/unistd.in.h (unlinkat): Declare replacement.
19964         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19965
19966         openat: fix fstatat bugs on Solaris 9
19967         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19968         stat.
19969         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19970
19971         test-unlinkat: enhance test, to expose Solaris 9 bug
19972         * tests/test-unlink.c (main): Factor guts...
19973         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19974         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19975         * tests/test-rmdir.c (main): Adjust caller.
19976         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19977         (unlinker): New helper function.
19978         (rmdirat): Enhance check.
19979         * modules/rmdir-tests (Depends-on): Add stdbool.
19980         * modules/unlink-tests (Depends-on): Likewise.
19981         (Files): Add test-unlink.h.
19982         * modules/openat-tests (Files): Likewise.
19983         (Depends-on): Add unlinkdir.
19984
19985         test-fstatat: new test, to expose Solaris 9 bugs
19986         * tests/test-stat.c (main): Factor guts...
19987         * tests/test-stat.h (test_stat_func): ...into new file.
19988         * tests/test-lstat.c (main): Factor guts...
19989         * tests/test-lstat.h (test_lstat_func): ...into new file.
19990         * tests/test-fstatat.c: New file.
19991         * modules/stat-tests (Files): Add test-stat.h.
19992         * modules/lstat-tests (Files): Add test-lstat.h.
19993         (Depends-on): Add stdbool.
19994         * modules/openat-tests (Depends-on): Add pathmax.
19995         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19996         (Makefile.am): Run new test.
19997
19998         remove: new module, for mingw and Solaris 9 bugs
19999         * modules/remove: New file.
20000         * lib/remove.c: Likewise.
20001         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
20002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20003         * modules/stdio (Makefile.am): Use them.
20004         * lib/stdio.in.h (remove): Declare replacement.
20005         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20006         * doc/posix-functions/remove.texi (remove): Likewise.
20007         * modules/remove-tests: New test.
20008         * tests/test-remove.c: Likewise.
20009
20010         unlink: new module, for Solaris 9 bug
20011         * modules/unlink: New file.
20012         * lib/unlink.c: Likewise.
20013         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20015         * modules/unistd (Makefile.am): Use them.
20016         * lib/unistd.in.h (stat): Declare replacement.
20017         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20018         * doc/posix-functions/unlink.texi (unlink): Likewise.
20019         * modules/unlink-tests: New test.
20020         * tests/test-unlink.c: Likewise.
20021
20022         lstat: fix Solaris 9 bug
20023         * lib/lstat.c (lstat): Also check for trailing slash on
20024         non-symlink, non-directories.  Use stat module to simplify logic.
20025         * doc/posix-functions/lstat.texi (lstat): Document it.
20026         * modules/lstat-tests (Depends-on): Add errno, same-inode.
20027         (configure.ac): Check for symlink.
20028         * tests/test-lstat.c (main): Add more tests.
20029
20030         stat: add as dependency to other modules
20031         * modules/chown (Depends-on): Add stat.
20032         * modules/euidaccess (Depends-on): Likewise.
20033         * modules/fchdir (Depends-on): Likewise.
20034         * modules/isdir (Depends-on): Likewise.
20035         * modules/link (Depends-on): Likewise.
20036         * modules/lstat (Depends-on): Likewise.
20037         * modules/mkdir-p (Depends-on): Likewise.
20038         * modules/modechange (Depends-on): Likewise.
20039         * modules/open (Depends-on): Likewise.
20040         * modules/readlink (Depends-on): Likewise.
20041         * modules/same (Depends-on): Likewise.
20042
20043         stat: fix Solaris 9 bug
20044         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
20045         slash.
20046         * lib/stat.c (rpl_stat): Work around it.
20047         * doc/posix-functions/stat.texi (stat): Update documentation.
20048
20049         stat: new module, for mingw bug
20050         * modules/stat: New file.
20051         * lib/stat.c: Likewise.
20052         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20053         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20054         * modules/sys_stat (Makefile.am): Use them.
20055         * lib/sys_stat.in.h (stat): Declare replacement.
20056         * lib/openat.c (fstatat): Deal with lstat and stat being function
20057         macros.
20058         * modules/openat (Depends-on): Add inline.
20059         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20060         * doc/posix-functions/stat.texi (stat): Likewise.
20061         * modules/stat-tests: New test.
20062         * tests/test-stat.c: Likewise.
20063
20064 2009-09-19  Jim Meyering  <meyering@redhat.com>
20065
20066         syntax-check: detect unnecessary inclusion of canonicalize.h
20067         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
20068
20069 2009-09-19  Eric Blake  <ebb9@byu.net>
20070
20071         canonicalize-lgpl: adjust clients to use correct header
20072         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20073         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
20074         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
20075         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
20076         * lib/progreloc.c (includes): Likewise.
20077
20078 2009-09-19  Jim Meyering  <meyering@redhat.com>
20079
20080         test-posixtm.c: correct a comment
20081         * tests/test-posixtm.c: Correct first-line comment.
20082         Spotted by Eric Blake.
20083
20084 2009-09-16  Jim Meyering  <meyering@redhat.com>
20085
20086         posixtm-tests: make T const-correct; add a test case
20087         * tests/test-posixtm.c (T): Declare const.
20088         Add a test for -(2^31+1).
20089         Remove useless can-succeed-only-in-2002 test.
20090
20091         posixtm-tests: adjust the sole failing test
20092         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
20093         expected output matches what mktime now produces.  Cross-checked via
20094         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
20095
20096         posixtm: move #ifdef'd tests into a new module
20097         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
20098         * tests/test-posixtm.c: ... this new file.
20099         * modules/posixtm-tests: New module.
20100
20101 2009-09-19  Eric Blake  <ebb9@byu.net>
20102
20103         openat: simplify use of at-func.c
20104         * lib/at-func.c (includes): Include prerequisites here, to
20105         simplify requirements on client files.
20106         * lib/openat-priv.h: Add double-inclusion guard.
20107         * lib/faccessat.c (includes): Simplify.
20108         * lib/fchmodat.c (includes): Likewise.
20109         * lib/fchownat.c (includes): Likewise.
20110         * lib/mkdirat.c (includes): Likewise.
20111         * lib/mkfifoat.c (includes): Likewise.
20112         * lib/symlinkat.c (includes): Likewise.
20113
20114         openat: allow return of fd 0
20115         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
20116         * modules/save-cwd (Depends-on): Replace fcntl-safer with
20117         unistd-safer.
20118         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
20119         <fcntl.h>; this module does not leak fds.
20120         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
20121         must be allowed to return 0, leaving openat_safer to add the
20122         safety.
20123         (openat_permissive): Avoid writing to just-opened fd 2 if
20124         restoring the current directory fails.
20125         * lib/openat-die.c (openat_restore_fail): Add comment.
20126         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
20127         (save_cwd): Guarantee safe fd, but without use of open_safer.
20128         * tests/test-openat.c: New test.
20129         * modules/openat-tests (Files, Makefile.am): Distribute and build
20130         new file.
20131
20132         relocatable-prog-wrapper: fix build
20133         * modules/relocatable-prog-wrapper (Files): Update name of
20134         canonicalize m4 file, broken on 2009-09-17.
20135         Reported by emad hajjar <aleppos@hotmail.com>.
20136
20137 2009-09-19  Bruno Haible  <bruno@clisp.org>
20138
20139         * lib/safe-alloc.h: Use the standard header with GPL copyright.
20140         * lib/safe-alloc.c: Likewise.
20141         Reported by Ian Beckwith <ianb@erislabs.net>.
20142
20143 2009-09-18  Bruno Haible  <bruno@clisp.org>
20144
20145         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
20146         Reported by <erobles@sensacd.com.mx>.
20147
20148 2009-09-17  Eric Blake  <ebb9@byu.net>
20149
20150         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
20151         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
20152         slashes when checking if last component is missing.
20153         * tests/test-canonicalize.c (main): Test this.
20154
20155         canonicalize, canonicalize-lgpl: honor // if distinct from /
20156         * modules/canonicalize (Files): Add double-slash-root.m4.
20157         * modules/canonicalize-lgpl (Files): Likewise.
20158         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20159         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
20160         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
20161         fallback definition.
20162         (canonicalize_filename_mode): Use it to protect //.
20163         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
20164         (__realpath): Likewise.
20165         * tests/test-canonicalize.c (main): Test this.
20166         * tests/test-canonicalize-lgpl.c (main): Likewise.
20167         * modules/canonicalize-tests (Depends-on): Add same-inode.
20168         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20169
20170         canonicalize-lgpl: fix glibc bug with trailing slash
20171         * m4/canonicalize-lgpl.m4: Move contents...
20172         * m4/canonicalize.m4: ...here.
20173         (gl_CANONICALIZE_LGPL): Factor realpath check...
20174         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
20175         glibc 2.3.5 bug, fixed 2005-04-27.
20176         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
20177         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
20178         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
20179         * modules/canonicalize-lgpl (Files): Manage file rename.
20180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20181         * modules/stdlib (Makefile.am): Substitute witness.
20182         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
20183         is needed.
20184         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
20185         replacement is required.
20186         * lib/canonicalize.c (canonicalize_file_name): Likewise.
20187         * doc/glibc-functions/canonicalize_file_name.texi
20188         (canonicalize_file_name): Document this.
20189         * doc/posix-functions/realpath.texi (realpath): Likewise.
20190
20191         canonicalize-lgpl: reject non-directory with trailing slash
20192         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
20193         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
20194         catches failures in glibc 2.3.5.
20195         * tests/test-canonicalize.c (main): Likewise.
20196
20197         canonicalize-lgpl: use native realpath if it works
20198         * lib/canonicalize-lgpl.c (realpath): Guard with
20199         FUNC_REALPATH_WORKS.
20200         * lib/stdlib.in.h (realpath): Make declaration optional based on
20201         HAVE_REALPATH.
20202         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
20203         native realpath works.
20204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20205         * modules/stdlib (Makefile.am): Substitute witness.
20206
20207         canonicalize, canonicalize-lgpl: use <stdlib.h>
20208         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
20209         (Include): Mention <stdlib.h>.
20210         (configure.ac): Mention functions we provide.
20211         * modules/canonicalize (configure.ac): Likewise.
20212         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
20213         realpath if canonicalize_file_name is missing.
20214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
20215         * modules/stdlib (Makefile.am): Substitute witnesses.
20216         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
20217         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
20218         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
20219         * NEWS: Document this.
20220         * doc/glibc-functions/canonicalize_file_name.texi
20221         (canonicalize_file_name): Likewise.
20222         * doc/posix-functions/realpath.texi (realpath): Likewise.
20223         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
20224
20225         test-canonicalize: consolidate into single C program
20226         * tests/test-canonicalize.sh: Delete; move setup into...
20227         * tests/test-canonicalize.c (main): ...the program, making it
20228         easier to run in debugger.  Add some tests.
20229         * modules/canonicalize-tests (Files): Remove unused file.
20230         (Depends-on): Add progname.
20231         (configure.ac, Makefile.am): Simplify.
20232
20233         test-canonicalize-lgpl: consolidate into single C program
20234         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
20235         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
20236         easier to run in debugger.  Add some tests.
20237         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
20238         (configure.ac, Makefile.am): Simplify.
20239
20240         canonicalize: avoid resolvepath
20241         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
20242         unnecessary checks.
20243         * lib/canonicalize.c (includes): Simplify.
20244         (canonicalize_file_name): Drop resolvepath implementation.
20245         * modules/canonicalize (Depends-on): Drop filenamecat.
20246
20247         canonicalize: don't lose errno
20248         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
20249         over calls to free.
20250
20251         canonicalize: simplify errno handling
20252         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
20253         assignment.
20254
20255         canonicalize, canonicalize-lgpl: update module dependencies
20256         * modules/canonicalize (Depends-on): Add extensions, lstat,
20257         pathmax, stdlib.
20258         (Files): Drop pathmax.h.
20259         (configure.ac): Adjust macro name.
20260         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
20261         lstat, stdlib, sys_stat.
20262         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
20263         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
20264         extensions.
20265         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
20266         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
20267         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
20268         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
20269         declaration, if available.
20270         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
20271         we can rely on the readlink module.
20272         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
20273         (includes): Use <unistd.h> unconditionally.
20274
20275 2009-09-17  Eric Blake  <ebb9@byu.net>
20276
20277         maint: make Include sections of modules consistent
20278         * modules/alloca: Use only header name; no need to list #include.
20279         * modules/alloca-opt: Likewise.
20280         * modules/arpa_inet: Likewise.
20281         * modules/canon-host: Likewise.
20282         * modules/configmake: Likewise.
20283         * modules/dirent: Likewise.
20284         * modules/eealloc: Likewise.
20285         * modules/environ: Likewise.
20286         * modules/fchdir: Likewise.
20287         * modules/fcntl: Likewise.
20288         * modules/fcntl-h: Likewise.
20289         * modules/gethrxtime: Likewise.
20290         * modules/gettime: Likewise.
20291         * modules/ignore-value: Likewise.
20292         * modules/inet_ntop: Likewise.
20293         * modules/inet_pton: Likewise.
20294         * modules/inttypes: Likewise.
20295         * modules/isnand-nolibm: Likewise.
20296         * modules/isnanf-nolibm: Likewise.
20297         * modules/mbchar: Likewise.
20298         * modules/mbfile: Likewise.
20299         * modules/mbiter: Likewise.
20300         * modules/mbuiter: Likewise.
20301         * modules/netdb: Likewise.
20302         * modules/netinet_in: Likewise.
20303         * modules/nproc: Likewise.
20304         * modules/pagealign_alloc: Likewise.
20305         * modules/poll: Likewise.
20306         * modules/printf-frexp: Likewise.
20307         * modules/pthread: Likewise.
20308         * modules/putenv: Likewise.
20309         * modules/random_r: Likewise.
20310         * modules/relocatable-prog: Likewise.
20311         * modules/search: Likewise.
20312         * modules/select: Likewise.
20313         * modules/selinux-h: Likewise.
20314         * modules/settime: Likewise.
20315         * modules/signal: Likewise.
20316         * modules/size_max: Likewise.
20317         * modules/socklen: Likewise.
20318         * modules/ssize_t: Likewise.
20319         * modules/stdarg: Likewise.
20320         * modules/stdbool: Likewise.
20321         * modules/stddef: Likewise.
20322         * modules/stdint: Likewise.
20323         * modules/stdio: Likewise.
20324         * modules/stdlib: Likewise.
20325         * modules/string: Likewise.
20326         * modules/strings: Likewise.
20327         * modules/sys_file: Likewise.
20328         * modules/sys_ioctl: Likewise.
20329         * modules/sys_select: Likewise.
20330         * modules/sys_socket: Likewise.
20331         * modules/sys_stat: Likewise.
20332         * modules/sys_time: Likewise.
20333         * modules/sys_times: Likewise.
20334         * modules/sys_utsname: Likewise.
20335         * modules/sys_wait: Likewise.
20336         * modules/sysexits: Likewise.
20337         * modules/time: Likewise.
20338         * modules/times: Likewise.
20339         * modules/tmpfile: Likewise.
20340         * modules/trim: Likewise.
20341         * modules/unistd: Likewise.
20342         * modules/wchar: Likewise.
20343         * modules/wctype: Likewise.
20344
20345 2009-09-17  Bruno Haible  <bruno@clisp.org>
20346
20347         Make getdate.y compile on QNX and NetBSD 5 / i386.
20348         * m4/getdate.m4 (gl_GETDATE): Conditionally define
20349         TIME_T_FITS_IN_LONG_INT.
20350         * lib/getdate.y (long_time_t): New type.
20351         (relative_time): Change type of 'seconds' field to long_time_t.
20352         (get_date): Update types of local variables. Check against overflow
20353         during conversion from long_time_t to time_t.
20354         Reported by Matt Kraai <kraai@ftbfs.org>
20355         and Hasso Tepper <hasso@netbsd.org>.
20356
20357 2009-09-17  Bruno Haible  <bruno@clisp.org>
20358
20359         * modules/COPYING: Update copyright years.
20360         * modules/README: Likeiwse.
20361         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
20362         Reported by Ian Beckwith <ianb@erislabs.net>.
20363
20364 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20365
20366         * users.txt: Update references for gnuit package.
20367
20368 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20369
20370         * m4/getdelim.m4: Fix typo in copyright line.
20371
20372 2009-09-17  Bruno Haible  <bruno@clisp.org>
20373
20374         * lib/atoll.c: Use the standard header with GPL copyright.
20375         * lib/argz.in.h: Likewise.
20376         * lib/glob.c: Likewise.
20377         * lib/glob-libc.h: Likewise.
20378         * lib/random_r.c: Likewise.
20379         * lib/siglist.h: Likewise.
20380         * lib/strsignal.c: Likewise.
20381         Reported by Ian Beckwith <ianb@erislabs.net>.
20382
20383 2009-09-17  Eric Blake  <ebb9@byu.net>
20384
20385         rmdir: ensure correct dependency order
20386         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
20387
20388 2009-09-17  Bruno Haible  <bruno@clisp.org>
20389
20390         Disable assertion that fails on NetBSD 5 / i386.
20391         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
20392         Reported by Sam Steingold <sds@gnu.org>
20393         and Hasso Tepper <hasso@netbsd.org>.
20394
20395 2009-09-16  Eric Blake  <ebb9@byu.net>
20396
20397         unlinkdir: port to mingw
20398         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
20399         on which no one can unlink a directory.
20400
20401         stdlib: sort witness names
20402         * modules/stdlib (Makefile.am): Sort replacements.
20403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20404         * lib/stdlib.in.h: Likewise.
20405
20406         parse-duration-tests: avoid link failure
20407         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20408         LIBINTL.
20409         Reported by Tom G. Christensen.
20410
20411         openat-tests: ensure unlinkat behaves like rmdir
20412         * tests/test-rmdir.c (main): Factor guts...
20413         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20414         * modules/rmdir-tests (Files): Ship new file.
20415         * modules/openat-tests: New test.
20416         * tests/test-unlinkat.c: Likewise.
20417
20418         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20419         * modules/rmdir-errno (Status, Notice): Now obsolete.
20420
20421         rmdir: work around cygwin 1.5.x and mingw bugs
20422         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20423         * lib/rmdir.c (rmdir): Work around it.
20424         * modules/rmdir (Status, Notice): No longer obsolete.
20425         (Files): Add dos.m4.
20426         (Depends-on): Add unistd.
20427         (configure.ac): Set witnesses.
20428         (License): Relax to LGPLv2+.
20429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20430         * modules/unistd (Makefile.am): Substitute witnesses.
20431         * lib/unistd.in.h (rmdir): Declare replacement.
20432         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20433         * modules/rmdir-tests: New tests.
20434         * tests/test-rmdir.c: Likewise.
20435
20436 2009-09-15  Eric Blake  <ebb9@byu.net>
20437
20438         fchdir: improve use of replacement functions
20439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20440         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20441         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20442         REPLACE_CLOSEDIR.
20443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20444         * modules/sys_stat (Makefile.am): Substitute correct witness.
20445         * modules/dirent (Makefile.am): Likewise.
20446         * modules/unistd (Makefile.am): Likewise.
20447         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20448         * lib/unistd.in.h (dup): Likewise.
20449         * lib/sys_stat.in.h (fstat): Likewise.
20450
20451         maint: ignore gnulib-tool temp files
20452         * .gitignore: Ignore files created during gnulib-tool --test.
20453
20454 2009-09-13  Jim Meyering  <meyering@redhat.com>
20455
20456         posixtm: don't reject a time that specify "60" as the number of seconds
20457         * lib/posixtm.c (posixtime): The code to reject invalid dates
20458         would also reject a time specified with the .60 suffix.
20459         But POSIX allows that, in order to accommodate leap seconds.
20460         So don't reject it.
20461         (main): Adjust tests accordingly.
20462         * modules/posixtm (Depends-on): Add stpcpy.
20463
20464 2009-09-11  Jim Meyering  <meyering@redhat.com>
20465
20466         announce-gen: include [$release_type] in emitted Subject:
20467         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20468         e.g., [stable] in the emitted Subject: line.
20469
20470 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20471
20472         Remove obsolete macros from several modules.
20473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20474         obsolete Autoconf macros with their modern counterparts.
20475         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20476         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20477         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20478         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20479         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20480         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20482         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20483         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20484         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20485         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20487         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20488         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20489         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20490         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20491         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20492         * m4/time_r.m4 (gl_TIME_R): Likewise.
20493         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20494         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20495         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20496
20497         Fix copyright header in build-aux scripts.
20498         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20499         recommendation.
20500         * build-aux/ncftpput-ftp: Likewise.
20501         * build-aux/update-copyright: Likewise.
20502
20503 2009-09-09  Eric Blake  <ebb9@byu.net>
20504
20505         test-link: allow Linux choice of errno
20506         * tests/test-link.c (main): Relax test for alternate error.
20507
20508         strndup: fix improper m4 caching
20509         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20510         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20511         (gl_PREREQ_STRNDUP): Delete.
20512         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20513         * modules/string (Makefile.am): Substitute it.
20514         * lib/string.in.h (strndup): Modernize prototype.
20515
20516         getcwd: port to mingw
20517         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20518         different from the POSIX assumptions made throughout the getcwd
20519         module; fortunately, the mingw getcwd does not need replacement.
20520         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20521         * modules/getcwd-tests: New test.
20522         * tests/test-getcwd.c: Likewise.
20523
20524         link: fix platform bugs
20525         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20526         * lib/link.c (link): Work around them.  Fix related mingw bug.
20527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20528         * modules/unistd (Makefile.am): Substitute it.
20529         * lib/unistd.in.h (link): Declare replacement.
20530         * doc/posix-functions/link.texi (link): Document this.
20531         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20532
20533         test-link: consolidate into single C program, test more cases
20534         * tests/test-link.sh: Delete.
20535         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20536         at least Cygwin and Solaris.
20537         * modules/link-tests (Files): Remove unused file.
20538         (Depends-on): Add errno, sys_stat.
20539         (Makefile.am): Simplify.
20540
20541 2009-09-08  Bruno Haible  <bruno@clisp.org>
20542
20543         Work around towlower, towupper bug on mingw.
20544         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20545         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20546         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20547         * doc/posix-functions/towupper.texi: Likewise.
20548         Reported by Eric Blake.
20549
20550 2009-09-08  Jim Meyering  <meyering@redhat.com>
20551
20552         build: don't try to run autoheader if we don't use it
20553         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20554         is not used in configure.ac.
20555
20556 2009-09-08  Eric Blake  <ebb9@byu.net>
20557
20558         euidaccess: fix compilation error
20559         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20560
20561         rawmemchr: relax license
20562         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20563         okay.
20564         Reported by Jim Meyering.
20565
20566         mkfifoat: new module
20567         * modules/mkfifoat: New file.
20568         * lib/mkfifoat.c: Likewise.
20569         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20571         * modules/sys_stat (Makefile.am): Use them.
20572         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20573         * MODULES.html.sh (File system functions): Mention module.
20574         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20575         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20576         * modules/mkfifoat-tests: New test.
20577         * tests/test-mkfifoat.c: Likewise.
20578
20579         strchrnul: relax license
20580         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20581         okay.
20582         Reported by Jim Meyering.
20583
20584 2009-09-08  Eric Blake  <ebb9@byu.net>
20585
20586         fstatat: fix compilation on Solaris
20587         * lib/fstatat.c (includes): Add fcntl.h.
20588         Reported by Pádraig Brady.
20589
20590 2009-09-07  Eric Blake  <ebb9@byu.net>
20591
20592         rename: modernize replacement
20593         * modules/rename (Depends-on): Add stdio.
20594         (configure.ac): Declare witness.
20595         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20596         stdio take care of replacement.
20597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20598         * modules/stdio (Makefile.am): Substitute them.
20599         * lib/stdio.in.h (rename): Declare replacement.
20600         * lib/rename.c (includes): Allow cross-compilation to non-windows
20601         machines.
20602         * doc/posix-functions/rename.texi (rename): Improve
20603         documentation.
20604
20605         stdio: sort witness names
20606         * modules/stdio (Makefile.am): Sort replacements.
20607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20608         * lib/stdio.in.h: Likewise.
20609
20610         getcwd: minor cleanups
20611         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20612         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20613
20614         openat: provide more convenience names
20615         * modules/faccessat (configure.ac): Add C witness.
20616         * lib/unistd.in.h (readlinkat): Fix typo.
20617         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20618         convenience wrappers.
20619         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20620         wrappers in syntax checks.
20621
20622 2009-09-06  Eric Blake  <ebb9@byu.net>
20623
20624         doc: fix comments in recent patches
20625         * lib/faccessat.c: Mention correct function.
20626         * lib/fchmodat.c: Likewise.
20627         * lib/fchownat.c: Likewise.
20628         * lib/symlinkat.c: Likewise.
20629         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20630         constants.
20631
20632         faccessat, symlinkat: continue cleanup of previous patch
20633         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20634         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20635         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20637         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20638         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20639         set.
20640
20641 2009-09-06  Bruno Haible  <bruno@clisp.org>
20642
20643         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20644         (fstatat): Declare if GNULIB_FSTATAT is set.
20645         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20646         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20647         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20648         * modules/fcntl-h (Files): Remove m4/openat.m4.
20649         * modules/sys_stat (Files): Remove m4/openat.m4.
20650         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20651         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20652         * modules/unistd (Files): Remove m4/openat.m4.
20653         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20654         GNULIB_OPENAT.
20655         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20656         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20657         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20658         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20659         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20660         gl_OPENAT_DEFAULTS.
20661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20662         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20663         Don't require gl_OPENAT_DEFAULTS.
20664         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20665         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20666         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20667         (gl_OPENAT_DEFAULTS): Remove macro.
20668
20669 2009-09-06  Bruno Haible  <bruno@clisp.org>
20670
20671         * modules/openat (configure.ac): Remove unneeded witness.
20672
20673 2009-09-06  Bruno Haible  <bruno@clisp.org>
20674
20675         Set errno to ENOSYS when a function is entirely unsupported.
20676         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20677         EOPNOTSUPP.
20678         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20679         * modules/chown (Depends-on): Remove errno.
20680
20681 2009-09-06  Bruno Haible  <bruno@clisp.org>
20682
20683         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20684
20685 2009-09-06  Bruno Haible  <bruno@clisp.org>
20686
20687         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20688
20689 2009-09-06  Ben Pfaff  <blp@gnu.org>
20690             Bruno Haible  <bruno@clisp.org>
20691
20692         Work around a glibc bug in strtok_r.
20693         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20694         Undefine if UNDEFINE_STRTOK_R is set.
20695         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20697         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20698         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20699         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20700         UNDEFINE_STRTOK_R.
20701         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20702
20703 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20704
20705         exclude: minor fix
20706         * lib/exclude.c: Include wctype.h
20707
20708 2009-09-06  Akim Demaille  <demaille@gostai.com>
20709
20710         bootstrap: improve error message
20711         * build-aux/bootstrap (find_tool): Upon failure, report the list
20712         of candidates.
20713         Honor the initial value of the envvar.
20714
20715 2009-09-05  Eric Blake  <ebb9@byu.net>
20716
20717         symlinkat: new module
20718         * modules/symlinkat: New file.
20719         * lib/symlinkat.c: Likewise.
20720         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20722         * modules/unistd (Makefile.am): Use them.
20723         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20724         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20725         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20726         * MODULES.html.sh (File system functions): Mention module.
20727         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20728         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20729         * modules/symlinkat-tests: New test.
20730         * tests/test-symlinkat.c: Likewise.
20731
20732         test-openat-safer: add more checks
20733         * tests/test-openat-safer.c (main): Check more code paths.
20734
20735 2009-09-05  Jim Meyering  <meyering@redhat.com>
20736
20737         syntax-check: detect unnecessary inclusion of openat.h
20738         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20739
20740 2009-09-05  Bruno Haible  <bruno@clisp.org>
20741
20742         Support towlower, towupper.
20743         * doc/posix-functions/towlower.texi: Mention module wctype.
20744         * doc/posix-functions/towupper.texi: Likewise.
20745         * lib/wctype.in.h (towlower, towupper): New functions.
20746         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20747         (ASSERT): New macro.
20748         (e): New variable.
20749         (main): Test also towlower, towupper. Test WEOF argument.
20750         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20751
20752 2009-09-05  Bruno Haible  <bruno@clisp.org>
20753
20754         Fix conversion behaviour when the input is invalid.
20755         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20756         mark occurring in first pass of indirect conversion.
20757         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20758         input.
20759         Found by clang's static analyzer.
20760
20761 2009-09-05  Bruno Haible  <bruno@clisp.org>
20762
20763         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20764         where direct conversion is possible.
20765
20766 2009-09-04  Eric Blake  <ebb9@byu.net>
20767
20768         openat: fail with ENOENT on empty name
20769         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20770         buffer.
20771
20772         link-follow: fix logic bug in prior patch
20773         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20774         reversed sense of yes and no in prior patch.  Avoid confusing
20775         compilation failure with desired semantics.
20776
20777         link-follow: accomodate mingw and cross-compilation
20778         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20779         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20780         cross-compilation results to -1, to make linkat easier to
20781         implement when cross-compiling.  Trivially support mingw.
20782         * modules/link-follow (configure.ac): Call new name.
20783         * NEWS: Mention this.
20784
20785 2009-09-03  Eric Blake  <ebb9@byu.net>
20786
20787         faccessat: compile replacement
20788         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20789         needed.
20790
20791         fts: fix compilation error
20792         * lib/fts.c (includes): Re-add "openat.h", for
20793         openat_needs_fchdir.
20794
20795         faccessat: new module
20796         * modules/faccessat: New file.
20797         * lib/faccessat.c: Likewise.
20798         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20800         * modules/unistd (Makefile.am): Use it.
20801         * lib/unistd.in.h (faccessat): Declare it.
20802         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20803         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20804         * MODULES.html.sh (File system functions): Mention it.
20805         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20806         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20807
20808         euidaccess: prefer POSIX over non-standard implementation
20809         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20810         * lib/euidaccess.c (euidaccess): Use it if available.
20811
20812         openat: make template easier to use
20813         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20814         AT_FUNC_F2 to be undefined.
20815         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20816         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20817         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20818         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20819         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20820         Likewise.
20821         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20822         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20823         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20824         Likewise.
20825
20826         openat: declare in POSIX headers
20827         * NEWS: Mention this.
20828         * modules/openat (configure.ac): Declare witnesses.
20829         (Depends-on): Add fcntl-h, sys_stat, unistd.
20830         (Include): Mention correct headers.
20831         * modules/fcntl-h (Depends-on): Add link-warning.
20832         (Files): Add openat.m4.
20833         (Makefile.am): Substitute witnesses.
20834         * modules/sys_stat (Files, Makefile.am): Likewise.
20835         * modules/unistd (Files, Makefile.am): Likewise.
20836         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20837         (gl_OPENAT_DEFAULTS): New macro.
20838         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20840         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20841         (SYS_STAT_H): Remove unused variable.
20842         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20843         * lib/fcntl--.h (includes): Remove unneeded header.
20844         * lib/openat-safer.c (includes): Likewise.
20845         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20846         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20847         appropriate headers.
20848         (__OPENAT_PREFIX): Delete.
20849         * lib/fcntl.in.h (openat): Provide declaration.
20850         (AT_FDCWD): Fix Solaris bug.
20851         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20852         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20853         * lib/fchmodat.c (includes):  Adjust to find declaration.
20854         * lib/fchownat.c (includes): Likewise.
20855         * lib/mkdirat.c (includes): Likewise.
20856         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20857         still visible.
20858
20859 2009-09-02  Eric Blake  <ebb9@byu.net>
20860
20861         errno: use consistently
20862         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20863         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20864         * lib/canonicalize.c (ELOOP): Likewise.
20865         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20866         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20867         * lib/lchown.c (EOPNOTSUPP): Likewise.
20868         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20869         * lib/savewd.c (ESTALE): Likewise.
20870         * lib/settime.c (ENOSYS): Likewise.
20871         * lib/utimens.c (ENOSYS): Likewise.
20872         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20873         * lib/chdir-safer.c (ELOOP): Likewise.
20874         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20875         * modules/c-stack (Depends-on): Add errno.
20876         * modules/canonicalize (Depends-on): Likewise.
20877         * modules/chdir-safer (Depends-on): Likewise.
20878         * modules/fdopendir (Depends-on): Likewise.
20879         * modules/inet_ntop (Depends-on): Likewise.
20880         * modules/inet_pton (Depends-on): Likewise.
20881         * modules/lchown (Depends-on): Likewise.
20882         * modules/openat (Depends-on): Likewise.
20883         * modules/savewd (Depends-on): Likewise.
20884         * modules/settime (Depends-on): Likewise.
20885         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20886
20887         fts: avoid leaking fds
20888         * modules/fts (Depends-on): Add cloexec.
20889         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20890         flag.
20891
20892         fts: make directory fds more robust
20893         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20894         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20895
20896         backupfile, chdir-long, fts, savedir: make safer
20897         * lib/backupfile.c (includes): Use "dirent--.h", since
20898         numbered_backup can write to stderr during readdir.
20899         * lib/savedir.c (includes): Likewise.
20900         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20901         emulation can write to stderr on failure.
20902         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20903         * lib/getcwd.c: Document why opendir_safer is unused.
20904         * lib/glob.c: Likewise.
20905         * lib/scandir.c: Likewise.
20906         * lib/openat-proc.c: Likewise, for open_safer.
20907         * modules/backupfile (Depends-on): Add dirent-safer.
20908         * modules/savedir (Depends-on): Likewise.
20909         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20910         * modules/chdir-long (Depends-on): Add openat-safer.
20911
20912         openat-safer: new module
20913         * modules/openat-safer: New file.
20914         * lib/openat-safer.c: Likewise.
20915         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20916         * lib/fcntl-safer.h (openat_safer): Declare.
20917         * lib/fcntl--.h (openat): Override.
20918         * MODULES.html.sh (File descriptor based I/O): Mention it.
20919         * lib/openat.h: Add double-inclusion guards.
20920         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20921         "fcntl--.h", so we can implement openat.
20922         * modules/openat-safer-tests: New test.
20923         * tests/test-openat-safer.c: New file.
20924
20925         dirent-safer: new module
20926         * modules/dirent-safer: New file.
20927         * lib/dirent--.h: Likewise.
20928         * lib/dirent-safer.h: Likewise.
20929         * lib/opendir-safer.c: Likewise.
20930         * m4/dirent-safer.m4: Likewise.
20931         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20932         * modules/dirent-safer-tests: New test.
20933         * tests/test-dirent-safer.c: New file.
20934         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20935
20936         fdopendir: optimize on mingw
20937         * lib/unistd.in.h (_gl_directory_name): New prototype.
20938         * lib/fchdir.c (_gl_directory_name): Implement it.
20939         (fchdir): Use it to simplify implementation.
20940         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20941         fchdir, when available, to avoid calling [f]chdir().
20942
20943         fdopendir: split into its own module
20944         * lib/openat.c (fdopendir): Move...
20945         * lib/fdopendir.c: ...into new file.
20946         * modules/fdopendir: New module.
20947         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20948         * modules/openat (Depends-on): Add fdopendir.
20949         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20950         fdopendir here.
20951         * modules/savedir (Depends-on): Only need fdopendir, not full
20952         openat.
20953         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20954         * lib/openat.h (fdopendir): Drop prototype.
20955         * lib/dirent.in.h (fdopendir): Provide prototype.
20956         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20957         * modules/dirent (Makefile.am): Substitute them.
20958         * MODULES.html.sh (File system functions): Mention it.
20959         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20960         * modules/fdopendir-tests: New file.
20961         * tests/test-fdopendir.c: Likewise.
20962
20963         fchdir: use more consistent macro convention
20964         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20965         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20966         REPLACE_FCHDIR, rather than relying on config.h macros.
20967         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20968         inside a single make-time REPLACE_FCHDIR block, rather than using
20969         the config.h FCHDIR_REPLACEMENT.
20970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20971         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20972         Manage fstat replacement.
20973         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20974         REPLACE_FCHDIR.
20975         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20976         (Makefile.am): Substitute REPLACE_FCHDIR.
20977         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20978         FCHDIR_REPLACEMENT.
20979         * lib/dup-safer.c (dup_safer): Likewise.
20980         * lib/dup2.c (rpl_dup2): Likewise.
20981         * lib/dup3.c (rpl_dup3): Likewise.
20982         * lib/open.c (rpl_open): Likewise.
20983
20984         fchdir: simplify error handling, and support dup3
20985         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20986         stdbool, malloc-posix, realloc-posix.
20987         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20988         (ensure_dirs_slot): Return false on allocation failure.
20989         (rpl_dup2): Delete.
20990         (_gl_register_dup): New function.
20991         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20992         (_gl_register_fd): Close fd on allocation failure.
20993         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20994         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20995         prototype.
20996         (rpl_dup2_fchdir): Delete prototype.
20997         * lib/open.c (open): Update caller.
20998         * lib/dup2.c (dup2): Track fchdir metadata.
20999         * lib/dup3.c (dup3): Likewise.
21000         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
21001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
21002
21003 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21004
21005         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
21006         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
21007         don't pass arguments to AC_OUTPUT.
21008
21009 2009-09-02  Bruno Haible  <bruno@clisp.org>
21010
21011         * modules/mkdtemp (License): Relicense under LGPLv2+.
21012         Reported by Paolo Bonzini.
21013
21014 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21015
21016         Replace uses of obsolete autoconf macros in Jim's modules.
21017         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
21018         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
21019         can evoke a warning from autoconf when run with -Wobsolete
21020         enabled.  They were declared obsolete for good reasons (see
21021         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
21022         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21023         should not continue using the deprecated macros.
21024         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
21025         obsolete Autoconf macros with modern counterparts.
21026         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21027         * m4/dos.m4 (gl_AC_DOS): Likewise.
21028         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
21029         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21030         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
21031         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
21032         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
21033         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21034         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
21035         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
21036         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21037         Likewise.
21038         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21039         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21040         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
21041         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
21042         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21043         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21044
21045 2009-09-01  Eric Blake  <ebb9@byu.net>
21046
21047         fchdir: fix off-by-one bug in previous patch
21048         * lib/fchdir.c (rpl_fstat): Use correct bounds.
21049         (_gl_unregister_fd): Delete useless if.
21050
21051 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
21052
21053         maint.mk: sort the list of syntax-check rules
21054         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
21055         easier to get a sense of progress when the rules are run sequentially
21056         and take a long time.
21057
21058 2009-09-01  Simon Josefsson  <simon@josefsson.org>
21059
21060         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
21061         * modules/netinet_in: Likewise.
21062         * modules/sys_file: Likewise.
21063         * modules/sys_ioctl: Likewise.
21064         * modules/sys_select: Likewise.
21065         * modules/sys_socket: Likewise.
21066         * modules/sys_stat: Likewise.
21067         * modules/sys_time: Likewise.
21068         * modules/sys_times: Likewise.
21069         * modules/sys_utsname: Likewise.
21070         * modules/sys_wait: Likewise.
21071
21072 2009-09-01  Jim Meyering  <meyering@redhat.com>
21073
21074         fts: help ensure that return values are not ignored
21075         * lib/fts_.h (__GNUC_PREREQ): Define.
21076         (__attribute_warn_unused_result__): Define.
21077         (fts_children, fts_close, fts_open, fts_read): Declare with
21078         __attribute_warn_unused_result__.
21079
21080         fts: fts_close now fails also when closing a dir file descriptor fails
21081         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
21082         and propagate to caller, along with errno.
21083
21084         announce-gen: correct formatting in --help output
21085         * build-aux/announce-gen (usage): Move the one-line description in
21086         --help output "up", to where it belongs, just after Usage:.
21087
21088 2009-08-31  Eric Blake  <ebb9@byu.net>
21089
21090         fchdir: port to mingw
21091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
21092         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
21093         opened, then use a substitute.
21094         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
21095         replacement.
21096         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
21097         (_gl_register_fd): No need to check stat if open already filters
21098         all directories.
21099         (fchdir): Fix error condition to match POSIX.
21100         * modules/fchdir (Depends-on): Add sys_stat.
21101         * doc/posix-functions/open.texi (open): Document the limitation.
21102         * modules/fchdir-tests: New file.
21103         * tests/test-fchdir.c: Likewise.
21104
21105         canonicalize: allow cross-testing from cygwin to mingw
21106         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
21107         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
21108         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
21109         Likewise.
21110         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
21111         target does not support symlinks.
21112         * tests/test-canonicalize-lgpl.sh: Likewise.
21113
21114         chown: avoid compilation warning on mingw
21115         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
21116         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
21117         mingw.
21118         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21119         * modules/chown (Depends-on): Add errno.
21120
21121 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21122
21123         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
21124         command.
21125
21126 2009-08-31  Jim Meyering  <meyering@redhat.com>
21127
21128         canonicalize: remove useless initialization
21129         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
21130         initialization of local, "end".
21131
21132 2009-08-30  Bruno Haible  <bruno@clisp.org>
21133
21134         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
21135         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
21136         ENOSYS.
21137
21138 2009-08-30  Bruno Haible  <bruno@clisp.org>
21139
21140         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
21141         /usr/xpg4/bin/tr when it exists.
21142         * tests/test-pipe-filter-gi1.sh: Likewise.
21143
21144 2009-08-30  Bruno Haible  <bruno@clisp.org>
21145
21146         Work around deficient /usr/bin/id program on Solaris.
21147         * tests/test-file-has-acl.sh (ID): New variable.
21148         * tests/test-set-mode-acl.sh (ID): Likewise.
21149         * tests/test-copy-acl.sh (ID): Likewise.
21150         * tests/test-copy-file.sh (ID): Likewise.
21151
21152 2009-08-30  Bruno Haible  <bruno@clisp.org>
21153
21154         New module 'xstriconveh'.
21155         * lib/xstriconveh.h: New file.
21156         * lib/xstriconveh.c: New file.
21157         * modules/xstriconveh: New file.
21158
21159 2009-08-30  Bruno Haible  <bruno@clisp.org>
21160
21161         Make it easier to use mem_cd_iconveh.
21162         * lib/striconveh.h (iconveh_t): New type.
21163         (iconveh_open, iconveh_close): New declarations.
21164         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21165         with a single 'const iconveh_t *' argument.
21166         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
21167         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21168         with a single 'const iconveh_t *' argument.
21169         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
21170         * tests/test-striconveh.c (main): Update.
21171         * NEWS: Mention the change.
21172
21173 2009-08-30  Bruno Haible  <bruno@clisp.org>
21174
21175         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
21176         problem.
21177
21178 2009-08-30  Bruno Haible  <bruno@clisp.org>
21179
21180         Work around iconv_open problem on Solaris.
21181         * lib/iconv_open-solaris.gperf: New file.
21182         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
21183         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
21184         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
21185         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
21186         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
21187         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
21188
21189 2009-08-29  Jim Meyering  <meyering@redhat.com>
21190
21191         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
21192         * top/maint.mk (cvs-check): Remove target; it was just an alias
21193         to the better-named vc-diff-check.
21194         (maintainer-distcheck): Remove rule.  It was used only from
21195         the (alpha/beta/major) target, and all of its commands but one
21196         were coreutils-specific.
21197         (vc-dist): Remove rule.
21198         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
21199         Run vc-diff-check, not vc-dist.
21200         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
21201
21202 2009-08-27  Bruno Haible  <bruno@clisp.org>
21203
21204         * tests/test-bitrotate.c (main): Remove test that uses a shift count
21205         of 0.
21206
21207 2009-08-27  Bruno Haible  <bruno@clisp.org>
21208
21209         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
21210         compilers.
21211         * doc/func.texi: Document the SunPRO C bug.
21212
21213 2009-08-27  Bruno Haible  <bruno@clisp.org>
21214
21215         Fix link error on Solaris.
21216         * tests/test-parse-duration.c (xstrdup): Remove function.
21217
21218 2009-08-26  Pádraig Brady  <P@draigbrady.com>
21219
21220         ignore-value: handle pointer types, too
21221         * lib/ignore-value.h (__attribute__): Remove definition.
21222         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
21223         of a more concise and more-often effective "(void) i" statement.
21224         (ignore_ptr): New function to suppress warnings from functions that
21225         return pointers, and to make it explicit that one function doesn't
21226         handle all cases.
21227
21228 2009-08-25  Bruno Haible  <bruno@clisp.org>
21229
21230         dup2: work around a Linux bug.
21231         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
21232         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
21233         * doc/posix-functions/dup2.texi: Mention the Linux bug.
21234         Reported by Simon Josefsson.
21235
21236 2009-08-25  Jim Meyering  <meyering@redhat.com>
21237
21238         libguestfs uses gnulib
21239         * users.txt: Add libguestfs.
21240
21241 2009-08-24  Eric Blake  <ebb9@byu.net>
21242
21243         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
21244         * lib/pipe2.c (includes): Add binary-io.h.
21245         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
21246
21247 2009-08-24  Bruno Haible  <bruno@clisp.org>
21248
21249         Tolerate declared but missing accept4 syscall.
21250         * lib/accept4.c (accept4): Invoke original accept4 function first, if
21251         available.
21252         * lib/sys_socket.in.h (accept4): If the function is already present,
21253         override it.
21254         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
21255         * modules/accept4 (Makefile.am): Compile accept4.c always.
21256         Reported by Paolo Bonzini and Eric Blake.
21257
21258 2009-08-23  Bruno Haible  <bruno@clisp.org>
21259
21260         New module 'accept4'.
21261         * lib/sys_socket.in.h (accept4): New declaration.
21262         * lib/accept4.c: New file.
21263         * m4/accept4.m4: New file.
21264         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21265         GNULIB_ACCEPT4, HAVE_ACCEPT4.
21266         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
21267         HAVE_ACCEPT4.
21268         * modules/accept4: New file.
21269         * doc/glibc-functions/accept4.texi: Mention the new module.
21270
21271 2009-08-24  Jim Meyering  <meyering@redhat.com>
21272
21273         progname: also set global program_invocation_name, when possible
21274         Before this change, a libtool-enabled program that calls glibc's
21275         error function would report the program name as
21276         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
21277         * modules/progname (configure.ac): Check for a declaration of
21278         program_invocation_name.
21279         * lib/progname.c:  Include <errno.h>.
21280         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
21281         Set program_invocation_name.
21282
21283 2009-08-23  Bruno Haible  <bruno@clisp.org>
21284
21285         * lib/dup3.c: Include <string.h>.
21286
21287 2009-08-23  Bruno Haible  <bruno@clisp.org>
21288
21289         * lib/dup3.c (dup3): Test only once whether the system actually exists.
21290         * lib/pipe2.c (pipe2): Likewise.
21291         Suggested by Eric Blake.
21292
21293 2009-08-23  Bruno Haible  <bruno@clisp.org>
21294
21295         Tolerate declared but missing dup3 syscall.
21296         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
21297         * lib/unistd.in.h (dup3): If the function is already present,
21298         override it.
21299         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
21300         * modules/dup3 (Makefile.am): Compile dup3.c always.
21301         Reported by Paolo Bonzini.
21302
21303 2009-08-23  Bruno Haible  <bruno@clisp.org>
21304
21305         Tolerate declared but missing pipe2 syscall.
21306         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
21307         available.
21308         * lib/unistd.in.h (pipe2): If the function is already present,
21309         override it.
21310         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
21311         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
21312         Reported by Paolo Bonzini.
21313
21314 2009-08-23  Bruno Haible  <bruno@clisp.org>
21315
21316         * lib/pipe2.c (pipe2): Move #ifs inside function.
21317
21318 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21319
21320         quotearg: document limitations of quote_these_too
21321         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
21322         those limitations are created.
21323         * lib/quotearg.h (set_char_quoting): Document that digits and
21324         letters that are special after backslash are not permitted.
21325         (quotearg_char): Cross-reference set_char_quoting documentation.
21326
21327 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
21328
21329         quotearg: implement custom_quoting_style
21330         * lib/quotearg.c: (struct quoting_options): Add left_quote and
21331         right_quote fields.
21332         (set_custom_quoting): New public function.
21333         (quotearg_buffer_restyled): Add left_quote and right_quote
21334         arguments, handle them very much like locale quoting, and update
21335         all uses.
21336         (quotearg_n_custom): New public function.
21337         (quotearg_n_custom_mem): New public function.
21338         (quotearg_custom): New public function.
21339         (quotearg_custom_mem): New public function.
21340         * lib/quotearg.h: Prototype and document new public functions.
21341         (enum quoting_style): For escape_quoting_style and
21342         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
21343         ignored even though they're otherwise like c_quoting_style.
21344         Add custom_quoting_style member and document with comparison to
21345         clocale_quoting_style.
21346         * tests/test-quotearg.c (custom_quotes): New array.
21347         (custom_results): New array.
21348         (main): Extend to test custom quoting.
21349
21350 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21351
21352         quotearg: fix right quote escaping when it's in quote_these_too
21353         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
21354         quote, be sure to prepend only one backslash.
21355         * tests/test-quotearg.c (use_quote_double_quotes): New function.
21356         (main): Test it.
21357
21358 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21359
21360         quotearg-tests: test escaping of embedded locale quotes
21361         * tests/test-quotearg.c (struct result_strings): Add member for
21362         new input.
21363         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
21364         (inputs): Add new input.
21365         (results_g): Add expected results.
21366         (flag_results): Likewise.
21367         (locale_results): Likewise.
21368         (compare_strings): Check those.
21369
21370 2009-08-23  Bruno Haible  <bruno@clisp.org>
21371
21372         Tests for module 'dup3'.
21373         * modules/dup3-tests: New file.
21374         * tests/test-dup3.c: New file.
21375
21376         New module 'dup3'.
21377         * lib/unistd.in.h (dup3): New declaration.
21378         * lib/dup3.c: New file.
21379         * m4/dup3.m4: New file.
21380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
21381         HAVE_DUP3.
21382         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
21383         * modules/dup3: New file.
21384         * doc/glibc-functions/dup3.texi: Mention the new module.
21385
21386 2009-08-23  Bruno Haible  <bruno@clisp.org>
21387
21388         Tweak the dup2 test.
21389         * tests/test-dup2.c (main): Create the test file empty. Verify that an
21390         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
21391         the test file is still empty. Fix argument order of lseek.
21392
21393 2009-08-23  Bruno Haible  <bruno@clisp.org>
21394
21395         Avoid test link errors when the modules getopt-gnu, gettext are used.
21396         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
21397         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21398
21399 2009-08-23  Bruno Haible  <bruno@clisp.org>
21400
21401         Fix getdtablesize() on mingw.
21402         * lib/getdtablesize.c (getdtablesize): Implement differently.
21403         * lib/unistd.in.h (getdtablesize): Improve comment.
21404
21405 2009-08-23  Bruno Haible  <bruno@clisp.org>
21406
21407         New module 'mkostemp'.
21408         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21409         * lib/stdlib.in.h (mksotemp): New declaration.
21410         * lib/mkostemp.c: New file, from glibc with modifications.
21411         * lib/tempname.h (GT_FILE): Remove outdated comment.
21412         (gen_tempname): Add flags argument.
21413         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21414         (__GT_FILE): Map to 1.
21415         (small_open, large_open): Remove macros.
21416         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21417         * lib/mkstemp.c (mkstemp): Update.
21418         * lib/mkdtemp.c (mkdtemp): Likewise.
21419         * m4/mkostemp.m4: New file.
21420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21421         HAVE_MKOSTEMP.
21422         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21423         HAVE_MKOSTEMP.
21424         * modules/mkostemp: New file, based on modules/mkstemp.
21425         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21426         * NEWS: Mention the change.
21427
21428 2009-08-23  Bruno Haible  <bruno@clisp.org>
21429
21430         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21431         Reported by Eric Blake.
21432
21433 2009-08-23  Bruno Haible  <bruno@clisp.org>
21434
21435         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21436         Reported by Eric Blake.
21437
21438 2009-08-23  Bruno Haible  <bruno@clisp.org>
21439
21440         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21441         * modules/pipe2 (Depends-on): Likewise.
21442
21443 2009-08-23  Eric Blake  <ebb9@byu.net>
21444
21445         fcntl-h: add O_TTY_INIT support
21446         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21447         * tests/test-fcntl-h.c (o): Test it.
21448         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21449
21450         fcntl-h: rename from fcntl, in preparation for fcntl(2)
21451         * modules/fcntl: Move <fcntl.h> header replacement...
21452         * modules/fcntl-h: ...to new name, so as not to collide with
21453         like-named function.
21454         * tests/test-fcntl.c: Rename...
21455         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
21456         * modules/fcntl-tests: Rename...
21457         * modules/fcntl-h-tests: ...to this.  Update test file name.
21458         * modules/chdir-long (Depends-on): Update clients.
21459         * modules/chdir-safer (Depends-on): Likewise.
21460         * modules/fcntl-safer (Depends-on): Likewise.
21461         * modules/fts (Depends-on): Likewise.
21462         * modules/mkancesdirs (Depends-on): Likewise.
21463         * modules/mkdir-p (Depends-on): Likewise.
21464         * modules/open (Depends-on): Likewise.
21465         * modules/savewd (Depends-on): Likewise.
21466         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21467         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21468
21469 2009-08-22  Bruno Haible  <bruno@clisp.org>
21470
21471         * modules/binary-io (License): Relicense under LGPL.
21472         * modules/pipe2 (License): Likewise.
21473
21474 2009-08-22  Bruno Haible  <bruno@clisp.org>
21475
21476         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21477         return value.
21478         * lib/pipe-filter-gi.c (filter_init): Likewise.
21479         Reported by Eric Blake.
21480
21481 2009-08-22  Bruno Haible  <bruno@clisp.org>
21482
21483         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21484         * modules/pipe (Depends-on): Add pipe2.
21485
21486 2009-08-22  Bruno Haible  <bruno@clisp.org>
21487
21488         Tests for module 'pipe2'.
21489         * modules/pipe2-tests: New file.
21490         * tests/test-pipe2.c: New file.
21491
21492         New module 'pipe2'.
21493         * lib/unistd.in.h (pipe2): New declaration.
21494         * lib/pipe2.c: New file.
21495         * m4/pipe2.m4: New file.
21496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21497         HAVE_PIPE2.
21498         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21499         * modules/pipe2: New file.
21500         * doc/glibc-functions/pipe2.texi: Mention the new module.
21501
21502 2009-08-22  Bruno Haible  <bruno@clisp.org>
21503
21504         Reference some new glibc functions.
21505         * doc/glibc-functions/accept4.texi: New file.
21506         * doc/glibc-functions/dup3.texi: New file.
21507         * doc/glibc-functions/mkostemp.texi: New file.
21508         * doc/glibc-functions/pipe2.texi: New file.
21509         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21510         (Glibc sys/socket.h): Refer to accept4.
21511         (Glibc unistd.h): Refer to dup3, pipe2.
21512         Reported by Eric Blake.
21513
21514 2009-08-22  Jim Meyering  <meyering@redhat.com>
21515             Bruno Haible  <bruno@clisp.org>
21516
21517         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21518         This makes it so packages using automake-1.11's silent-rules option
21519         can print e.g., a single "GEN    configmake.h" line, rather than
21520         the 30+ statements that perform the job.  If you want to see the
21521         actual commands, you can still run "make V=1".
21522         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21523         so that make output is abbreviated when those variables are defined
21524         appropriately.
21525         * modules/argz: Likewise.
21526         * modules/arpa_inet: Likewise.
21527         * modules/byteswap: Likewise.
21528         * modules/configmake: Likewise.
21529         * modules/dirent: Likewise.
21530         * modules/errno: Likewise.
21531         * modules/fcntl: Likewise.
21532         * modules/float: Likewise.
21533         * modules/fnmatch: Likewise.
21534         * modules/getopt-posix: Likewise.
21535         * modules/glob: Likewise.
21536         * modules/iconv_open: Likewise.
21537         * modules/inttypes: Likewise.
21538         * modules/localcharset: Likewise.
21539         * modules/locale: Likewise.
21540         * modules/math: Likewise.
21541         * modules/netdb: Likewise.
21542         * modules/netinet_in: Likewise.
21543         * modules/poll: Likewise.
21544         * modules/posix_spawnp-tests: Likewise.
21545         * modules/sched: Likewise.
21546         * modules/search: Likewise.
21547         * modules/selinux-h: Likewise.
21548         * modules/signal: Likewise.
21549         * modules/spawn: Likewise.
21550         * modules/stdarg: Likewise.
21551         * modules/stdbool: Likewise.
21552         * modules/stddef: Likewise.
21553         * modules/stdint: Likewise.
21554         * modules/stdio: Likewise.
21555         * modules/stdlib: Likewise.
21556         * modules/string: Likewise.
21557         * modules/strings: Likewise.
21558         * modules/sys_file: Likewise.
21559         * modules/sys_ioctl: Likewise.
21560         * modules/sys_select: Likewise.
21561         * modules/sys_socket: Likewise.
21562         * modules/sys_stat: Likewise.
21563         * modules/sys_time: Likewise.
21564         * modules/sys_times: Likewise.
21565         * modules/sys_utsname: Likewise.
21566         * modules/sys_wait: Likewise.
21567         * modules/sysexits: Likewise.
21568         * modules/time: Likewise.
21569         * modules/unistd: Likewise.
21570         * modules/wchar: Likewise.
21571         * modules/wctype: Likewise.
21572
21573 2009-08-22  Jim Meyering  <meyering@redhat.com>
21574
21575         announce-gen: detect write failure
21576         * build-aux/announce-gen: Add Coda at end.
21577         Remove equivalent-but-more-verbose block at top.
21578
21579 2009-08-19  Akim Demaille  <demaille@gostai.com>
21580
21581         bootstrap: --help to stdout.
21582         * bootstrap (usage): Don't send --help to stderr.
21583         Use a here doc instead of a long string.
21584
21585 2009-08-21  Eric Blake  <ebb9@byu.net>
21586
21587         test-popen-safer: split from test-popen
21588         * tests/test-popen.c (main): Move...
21589         * tests/test-popen.h: ...into new file.
21590         * tests/test-popen-safer2.c: New file.
21591         * modules/popen-tests (Files): Add test-popen.h.
21592         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21593         Suggested by Bruno Haible.
21594
21595         test-fcntl-safer: split from test-open
21596         * tests/test-open.c (main): Move...
21597         * tests/test-open.h: ...into new file.
21598         * tests/test-fcntl-safer.c: New file.
21599         * modules/open-tests (Files): Add test-open.h.
21600         * modules/fcntl-safer-tests: New file.
21601         Suggested by Bruno Haible.
21602
21603         test-fopen-safer: split from test-fopen
21604         * tests/test-fopen.c (main): Move...
21605         * tests/test-fopen.h: ...into new file.
21606         * tests/test-fopen-safer.c: New file.
21607         * modules/fopen-tests (Files): Add test-fopen.h.
21608         * modules/fopen-safer-tests: New file.
21609         Suggested by Bruno Haible.
21610
21611 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21612
21613         popen-safer: test O_CLOEXEC at run-time.
21614         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21615
21616 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21617
21618         fcntl: move more flags to the header
21619         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21620         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21621         * lib/fcntl.in.h: Do both things here.
21622
21623 2009-08-21  Jim Meyering  <meyering@redhat.com>
21624
21625         consistently remove $@-t before redirecting to it
21626         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21627         * modules/alloca-opt: Likewise.
21628         * modules/byteswap: Likewise.
21629         * modules/fnmatch: Likewise.
21630         * modules/getopt-posix: Likewise.
21631         * modules/glob: Likewise.
21632         * modules/poll: Likewise.
21633         * modules/posix_spawnp-tests: Likewise.
21634         * modules/sys_socket: Likewise.
21635         * modules/sysexits: Likewise.
21636
21637 2009-08-21  Eric Blake  <ebb9@byu.net>
21638
21639         popen: simplify access to original popen
21640         * lib/popen.c (rpl_popen): No need to worry about popen being a
21641         macro.
21642         Reported by Bruno Haible.
21643
21644 2009-08-20  Eric Blake  <ebb9@byu.net>
21645
21646         build: avoid some compiler warnings
21647         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21648         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21649         type.
21650         (new_exclude_segment, excluded_file_pattern_p)
21651         (excluded_file_name_p): Reduce scope.
21652         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21653         old-style declaration.
21654
21655 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21656
21657         * tests/test-exclude1.sh: Handle Windows EOL.
21658         * tests/test-exclude2.sh: Likewise.
21659         * tests/test-exclude3.sh: Likewise.
21660         * tests/test-exclude4.sh: Likewise.
21661         * tests/test-exclude5.sh: Likewise.
21662         * tests/test-exclude6.sh: Likewise.
21663         * tests/test-exclude7.sh: Likewise.
21664
21665 2009-08-19  Akim Demaille  <demaille@gostai.com>
21666
21667         bootstrap: find sha1sum when named gsha1sum.
21668         * bootstrap (find_tool): New.
21669         ($SHA1SUM): New.
21670         Use it.
21671
21672 2009-08-20  Jim Meyering  <meyering@redhat.com>
21673
21674         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21675         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21676         expression that converts "." in a file name to "\." in the resulting
21677         regexp.  Start with a dummy statement, so that prior shell variable
21678         definitions are expanded portably.  Reported by Simon Josefsson.
21679
21680 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21681
21682         Fix polling for writeability of a screen buffer.
21683         * lib/poll.c: Distinguish input and screen buffers for the
21684         Win32 implementation.
21685         * lib/select.c: Likewise.
21686
21687 2009-08-19  Eric Blake  <ebb9@byu.net>
21688
21689         popen-safer: prevent popen from clobbering std descriptors
21690         * modules/popen-safer: New file.
21691         * lib/popen-safer.c: Likewise.
21692         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21693         * lib/stdio--.h (popen): Provide override.
21694         * lib/stdio-safer.h (popen_safer): Provide declaration.
21695         * tests/test-popen.c (includes): Partially test this.
21696         * modules/popen-safer-tests: New file, for more tests.
21697         * tests/test-popen-safer.c: Likewise.
21698         * MODULES.html.sh (file stream based Input/Output): Mention it.
21699
21700         tests: test some of the *-safer modules
21701         * modules/fopen-safer (Depends-on): Add fopen.
21702         * modules/fcntl-safer (Depends-on): Add fcntl.
21703         * modules/stdlib-safer (Depends-on): Add stdlib.
21704         (configure.ac): Set indicator.
21705         * modules/unistd-safer (configure.ac): Likewise.
21706         * modules/tmpfile-safer (configure.ac): Likewise.
21707         (Depends-on): Add tmpfile.
21708         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21709         active.
21710         * tests/test-fopen.c (includes): Test safer versions when they are
21711         in use.
21712         * tests/test-open.c (includes): Likewise.
21713
21714         popen: fix cygwin 1.5 bug when stdin closed
21715         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21716         * modules/popen: New file.
21717         * modules/popen-tests: Likewise.
21718         * tests/test-popen.c: Likewise.
21719         * m4/popen.m4: Likewise.
21720         * lib/popen.c: Likewise.
21721         * lib/stdio.in.h (popen): New declaration.
21722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21723         * modules/stdio (Makefile.am): Likewise.
21724         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21725
21726 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21727
21728         maint.mk: give full control over update-copyright exclusions
21729         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21730         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21731         (update-copyright): Don't force inclusion of top-level
21732         ChangeLog.  Don't force exclusion of all COPYING files, but make
21733         them the default exclusion instead.
21734
21735 2009-08-16  Bruno Haible  <bruno@clisp.org>
21736
21737         Fix test failures on Solaris 10.
21738         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21739         tests when Solaris iconv() is used.
21740         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21741         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21742         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21743         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21744         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21745
21746 2009-08-16  Bruno Haible  <bruno@clisp.org>
21747
21748         Fix test failures on Solaris 10.
21749         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21750         'tr' program and pass it as first argument.
21751         * tests/test-pipe-filter-gi1.sh: Likewise.
21752         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21753         program as first argument.
21754         * tests/test-pipe-filter-gi1.c (main): Likewise.
21755
21756 2009-08-16  Eric Blake  <ebb9@byu.net>
21757
21758         fpurge: fix previous commits
21759         * modules/fpurge (Makefile.am): Make replacement conditional,
21760         partially reverting 2007-04-29 change; missed in previous
21761         attempt.
21762         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21763         is missing.
21764
21765 2009-08-16  Bruno Haible  <bruno@clisp.org>
21766
21767         Clarify fpurge's effect on the file position.
21768         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21769         * tests/test-fpurge.c (main): Make a second pass for checking the file
21770         position.
21771
21772 2009-08-16  Bruno Haible  <bruno@clisp.org>
21773
21774         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21775         declaration of fpurge is missing.
21776         * tests/test-fpurge.c (main): Check that the file has not more contents
21777         than expected. Close the file before removing it.
21778
21779 2009-08-15  Eric Blake  <ebb9@byu.net>
21780
21781         fpurge: don't wrap working cygwin implementation
21782         * lib/fpurge.c (fpurge): Fix comment typo.
21783         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21784         1.7 to avoid replacement.
21785         * tests/test-fpurge.c (main): Enhance test.
21786
21787 2009-08-15  Eric Blake  <ebb9@byu.net>
21788         and Jim Meyering  <meyering@redhat.com>
21789
21790         test-update-copyright: skip if perl is insufficient
21791         * tests/test-update-copyright.sh: Failure to run maintainer tool
21792         should not cause testsuite failure on cygwin 1.5.
21793
21794 2009-08-14  Eric Blake  <ebb9@byu.net>
21795
21796         doc: mention more functions added in cygwin 1.7.0
21797         * doc/posix-headers/limits.texi (limits.h): Update for recent
21798         cygwin additions.
21799         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21800         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21801         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21802         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21803         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21804
21805 2009-08-14  Eric Blake  <ebb9@byu.net>
21806
21807         maint.mk: simplify update-copyright rule
21808         * top/maint.mk (update-copyright-local): Delete, and document how
21809         to do it in cfg.mk instead.
21810         (update-copyright-exclude-regexp): Delete, and document how to do
21811         it in .x-update-copyright instead.
21812         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21813         exclude ChangeLog.
21814
21815 2009-08-14  Bruno Haible  <bruno@clisp.org>
21816
21817         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21818
21819 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21820
21821         maint.mk: support update-copyright-env
21822         * top/maint.mk (update-copyright-env): Define place-holder.
21823         (update-copyright): Expand $(update-copyright-env) before
21824         invoking update-copyright.
21825
21826 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21827
21828         update-copyright: implement forced reformatting
21829         * build-aux/update-copyright: Implement and document
21830         UPDATE_COPYRIGHT_FORCE.
21831         * tests/test-update-copyright.sh: Test it.
21832
21833 2009-08-14  Eric Blake  <ebb9@byu.net>
21834         and Bruno Haible  <bruno@clisp.org>
21835
21836         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21837         * tests/test-locale.c: Revert previous patch related to NULL.
21838         * tests/test-stdio.c: Likewise.
21839         * tests/test-stdlib.c: Likewise.
21840         * tests/test-string.c: Likewise.
21841         * tests/test-unistd.c: Likewise.
21842         * modules/time-tests (Depends-on): Add verify.
21843         * modules/wchar-tests (Depends-on): Likewise.
21844         * tests/test-time.c: Test for NULL compliance.
21845         * tests/test-wchar.c: Likewise.
21846         * modules/locale (Depends-on): Add stddef.
21847         * modules/stdio (Depends-on): Likewise.
21848         * modules/stdlib (Depends-on): Likewise.
21849         * modules/string (Depends-on): Likewise.
21850         * modules/time (Depends-on): Likewise.
21851         * modules/unistd (Depends-on): Likewise.
21852         * modules/wchar (Depends-on): Likewise.
21853         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21854         * lib/stdlib.in.h (includes): Likewise.
21855         * lib/string.in.h (includes): Likewise.
21856         * lib/time.in.h (includes): Likewise.
21857         * lib/unistd.in.h (includes): Likewise.
21858         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21859         replaced.
21860         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21861         * m4/stddef_h.m4: New file.
21862         * modules/stddef: Likewise.
21863         * lib/stddef.in.h: Likewise.
21864         * modules/stddef-tests: Likewise.
21865         * tests/test-stddef.c: Likewise.
21866         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21867         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21868         * doc/posix-headers/locale.texi (locale.h): Likewise.
21869         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21870         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21871         * doc/posix-headers/string.texi (string.h): Likewise.
21872         * doc/posix-headers/time.texi (time.h): Likewise.
21873         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21874         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21875
21876 2009-08-14  Eric Blake  <ebb9@byu.net>
21877
21878         doc: improve git diff of texinfo files
21879         * .gitattributes: Add rule for *.texi files, with hint on how to
21880         use it.
21881         Copied from m4, and based on a report by Bruno Haible.
21882
21883 2009-08-14  Bruno Haible  <bruno@clisp.org>
21884
21885         Disable multithread support by default on Cygwin 1.5.x for real.
21886         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21887
21888 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21889
21890         update-copyright: much ado about intervals
21891         * build-aux/update-copyright: Implement and document
21892         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21893         of copyright year intervals.
21894         Also, document UPDATE_COPYRIGHT_YEAR.
21895         * tests/test-update-copyright.sh: Test it.
21896
21897         update-copyright: convert 2-digit to 4-digit years
21898         * build-aux/update-copyright: Implement and document.
21899         * tests/test-update-copyright.sh: Update.
21900
21901 2009-08-14  Jim Meyering  <meyering@redhat.com>
21902
21903         test-exclude: avoid coreutils "make check" failure
21904         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21905         just as in test-argmatch.c.
21906
21907 2009-08-13  Eric Blake  <ebb9@byu.net>
21908
21909         test-dup2: fix bad assumption
21910         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21911         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21912
21913         test-version-etc: fix CRLF portability issue
21914         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21915         recognize \r.
21916         * tests/test-argp-version-etc-1.sh: Likewise.
21917
21918         getopt: update client modules
21919         * modules/argp (Depends-on): Use getopt-gnu.
21920         * modules/git-merge-changelog (Depends-on): Likewise.
21921         * modules/long-options (Depends-on): Likewise.
21922         * modules/xstrtol (Depends-on): Likewise.
21923
21924 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21925
21926         * tests/test-version-etc.sh: Don't fail on different
21927         project/version.  Don't fail on CRLF differences.  Rewrite to use
21928         multiple -e instead of multiple sed forks, suggested by Eric Blake
21929         <ebb9@byu.net>.
21930         * tests/test-argp-version-etc-1.sh: Likewise.
21931
21932 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21933
21934         * tests/test-version-etc.sh: Don't fail on different
21935         project/version.
21936
21937 2009-08-12  Bruno Haible  <bruno@clisp.org>
21938
21939         Tests for modules 'getopt-posix', 'getopt-gnu'.
21940         * modules/getopt-posix-tests: New file.
21941         * tests/test-getopt.c: New file.
21942         * tests/test-getopt.h: New file.
21943         * tests/test-getopt_long.h: New file.
21944
21945         New modules 'getopt-posix', 'getopt-gnu'.
21946         * modules/getopt-gnu: New file, renamed from modules/getopt.
21947         * modules/getopt-posix: New file.
21948         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21949         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21950         (gl_GETOPT): Remove macro.
21951         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21952         Disable the test against BSD systems that declare optreset. Test
21953         against mingw bug. Test against lack of support of optional arguments
21954         on many platforms.
21955         * doc/glibc-headers/getopt.texi: Update module name and list of
21956         relevant platforms.
21957         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21958         'getopt-gnu' and more portability problems.
21959         * NEWS: Mention the changes.
21960
21961 2009-08-12  Bruno Haible  <bruno@clisp.org>
21962
21963         Ensure that optarg etc. get declared by <unistd.h>.
21964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21965         AC_USE_SYSTEM_EXTENSIONS.
21966         * modules/getopt (Depends-on): Add 'extensions'.
21967
21968 2009-08-12  Bruno Haible  <bruno@clisp.org>
21969
21970         Avoid test link errors.
21971         * modules/pipe-filter-ii-tests (Makefile.am): Define
21972         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21973         * modules/pipe-filter-gi-tests (Makefile.am): Define
21974         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21976
21977 2009-08-12  Bruno Haible  <bruno@clisp.org>
21978
21979         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21980         gl_GETOPT_SUBSTITUTE before.
21981         (gl_GETOPT): Use it.
21982         * m4/argp.m4 (gl_ARGP): Update.
21983         Reported by Sergey Poznyakoff.
21984
21985         * m4/getopt.m4: Reorder macros.
21986         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21987         (gl_GETOPT_SUBSTITUTE): Remove macro.
21988
21989 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21990
21991         Minor improvement in gitlog-to-changelog
21992
21993         * build-aux/gitlog-to-changelog: New option `--format' makes
21994         output format string configurable.
21995
21996 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21997
21998         Optimize exclude: use hash tables for non-wildcard patterns.
21999
22000         * lib/exclude.c: Include hash.h and mbuiter.h
22001         (struct exclude_pattern, exclude_segment): New data types.
22002         (struct exclude): Rewrite.
22003         (fnmatch_pattern_has_wildcards): New function.
22004         (new_exclude_segment, free_exclude_segment): New functions.
22005         (excluded_file_pattern_p, excluded_file_name_p): New functions.
22006         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
22007         * lib/exclude.h (is_fnmatch_pattern): New prototype.
22008         * modules/exclude: Depend on hash and mbuiter.
22009
22010         * modules/exclude-tests: New file.
22011         * tests/test-exclude.c: New file.
22012         * tests/test-exclude1.sh: New file.
22013         * tests/test-exclude2.sh: New file.
22014         * tests/test-exclude3.sh: New file.
22015         * tests/test-exclude4.sh: New file.
22016         * tests/test-exclude5.sh: New file.
22017         * tests/test-exclude6.sh: New file.
22018         * tests/test-exclude7.sh: New file.
22019
22020 2009-08-12  Bruno Haible  <bruno@clisp.org>
22021
22022         Ensure that getopt() gets declared by <unistd.h>.
22023         * lib/unistd.in.h: Conditionally include getopt.h.
22024         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
22025         Set GNULIB_UNISTD_H_GETOPT.
22026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22027         GNULIB_UNISTD_H_GETOPT.
22028         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
22029
22030 2009-08-12  Bruno Haible  <bruno@clisp.org>
22031
22032         Clarify logic.
22033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
22034         gl_replace_getopt instead of GETOPT_H.
22035
22036 2009-08-12  Bruno Haible  <bruno@clisp.org>
22037
22038         * m4/getopt.m4: Add comments.
22039
22040 2009-08-12  Bruno Haible  <bruno@clisp.org>
22041
22042         Disable multithread support by default on Cygwin 1.5.x.
22043         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
22044         set gl_use_threads=no if not specified otherwise.
22045
22046 2009-08-11  Bruno Haible  <bruno@clisp.org>
22047
22048         Avoid compilation error on NetBSD 5.0.
22049         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
22050         * tests/test-stdio.c: Likewise.
22051         * tests/test-stdlib.c: Likewise.
22052         * tests/test-string.c: Likewise.
22053         * tests/test-unistd.c: Likewise.
22054         Reported by Greg Troxel <gdt@ir.bbn.com>
22055         at <https://savannah.gnu.org/support/?106973>.
22056
22057 2009-08-11  Bruno Haible  <bruno@clisp.org>
22058
22059         * modules/dup2-tests (Depends-on): Remove close.
22060
22061         Undo 2009-07-19 commit.
22062         * modules/acl-tests (Depends-on): Remove close.
22063         * modules/binary-io-tests (Depends-on): Likewise.
22064         * modules/closein-tests (Depends-on): Likewise.
22065         * modules/flock-tests (Depends-on): Likewise.
22066         * modules/fsync-tests (Depends-on): Likewise.
22067         * modules/lseek-tests (Depends-on): Likewise.
22068         * modules/pipe-tests (Depends-on): Likewise.
22069         * modules/posix_spawn-tests (Depends-on): Likewise.
22070         * modules/posix_spawnp-tests (Depends-on): Likewise.
22071         * modules/stat-time-tests (Depends-on): Likewise.
22072         * modules/yesno-tests (Depends-on): Likewise.
22073
22074 2009-08-10  Bruno Haible  <bruno@clisp.org>
22075
22076         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
22077
22078 2009-08-10  Bruno Haible  <bruno@clisp.org>
22079
22080         Fix a gcc warning.
22081         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
22082
22083 2009-08-10  Bruno Haible  <bruno@clisp.org>
22084
22085         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
22086         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
22087         not only the first time.
22088         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
22089         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
22090         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
22091         is 1, not only the the first time.
22092
22093 2009-08-10  Bruno Haible  <bruno@clisp.org>
22094
22095         Make it possible to use module 'gethostname' without module 'close'.
22096         * lib/unistd.in.h (close): Evoke a link error only if
22097         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22099         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22100         * modules/unistd (Makefile.am): Substitute
22101         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22102         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
22103         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22104         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22105         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22106         * modules/sys_ioctl (Makefile.am): Substitute
22107         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22108         * modules/socket (configure.ac): On native Windows, set
22109         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
22110         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22111         Reported by Sam Steingold <sds@gnu.org>.
22112
22113 2009-08-10  Bruno Haible  <bruno@clisp.org>
22114
22115         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
22116         * modules/ioctl (configure.ac): Likewise.
22117
22118 2009-08-10  Bruno Haible  <bruno@clisp.org>
22119
22120         Avoid collision between gnulib wrapper and libintl wrapper.
22121         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
22122         already defined in intl/printf.c.
22123         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
22124         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
22125
22126 2009-08-09  Bruno Haible  <bruno@clisp.org>
22127
22128         Make <sys/select.h> really self-contained, also on Solaris 10.
22129         * lib/sys_select.in.h: Include <string.h>.
22130         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
22131         Solaris 10 problem.
22132         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
22133         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
22134         Reported by Jim Meyering.
22135
22136 2009-08-09  Bruno Haible  <bruno@clisp.org>
22137
22138         Avoid warnings from 'aclocal' that are due to a use of macro name
22139         AM_XGETTEXT_OPTION that is not defined in automake.
22140         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
22141         automake.
22142         * modules/error (configure.ac): Likewise.
22143         * modules/propername (configure.ac): Likewise.
22144         * modules/vasprintf (configure.ac): Likewise.
22145         * modules/verror (configure.ac): Likewise.
22146         * modules/xprintf (configure.ac): Likewise.
22147         * modules/xvasprintf (configure.ac): Likewise.
22148
22149 2009-08-08  Bruno Haible  <bruno@clisp.org>
22150
22151         Avoid compilation error in C++ mode.
22152         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
22153         Reported by Sam Steingold <sds@gnu.org>.
22154
22155 2009-08-08  Bruno Haible  <bruno@clisp.org>
22156
22157         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
22158         for the various Unix platforms.
22159         * doc/posix-headers/limits.texi: Update platforms list regarding
22160         HOST_NAME_MAX.
22161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22162
22163 2009-08-07  Jim Meyering  <meyering@redhat.com>
22164
22165         selinux-at: fix typo in a comment
22166         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
22167         Spotted by Paolo Bonzini.
22168
22169         selinux-at: remove redundant m4 code, add documentation
22170         * modules/selinux-at (configure.ac): Remove redundant code.
22171         LIB_SELINUX is already set via the dependent module, selinux-h.
22172         (Include): Add quotes around selinux-at.h.
22173         * lib/selinux-at.h: Add documentation.
22174         Reported by Bruno Haible in
22175         http://marc.info/?l=gnulib-bug&m=124958988300749
22176
22177 2009-08-07  Bruno Haible  <bruno@clisp.org>
22178
22179         Avoid link error on MacOS X 10.3 and 10.4.
22180         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
22181         on non-ELF systems.
22182         * lib/argp-pv.c (argp_program_version): Likewise.
22183         Reported by Simon Josefsson.
22184
22185 2009-08-07  Simon Josefsson  <simon@josefsson.org>
22186
22187         * tests/test-version-etc.sh: Use $EXEEXT.
22188
22189 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
22190
22191         update-copyright: update documentation to point to maint.mk
22192         * build-aux/update-copyright: Here.
22193
22194 2009-08-06  Jim Meyering  <meyering@redhat.com>
22195
22196         maint.mk: support update-copyright-local
22197         * top/maint.mk (update-copyright-local): Define place-holder.
22198         (update-copyright): Depend on $(update-copyright-local).
22199
22200 2009-08-06  Jim Meyering  <meyering@redhat.com>
22201
22202         selinux-at: new module
22203         Initially written for coreutils, this module will soon be
22204         used by findutils, too.
22205         * MODULES.html.sh [Misc]: Add selinux-at.
22206         * lib/selinux-at.h: New file, from coreutils.
22207         * lib/selinux-at.c: Likewise.
22208         * modules/selinux-at: Likewise.
22209         (License): Change from LGPL to GPL, since it depends
22210         on the GPL'd openat module.
22211
22212         doc: update README
22213         * README: Remove references to cogito.
22214         Remove cvs-repo-updating instructions from 2007.
22215         Don't imply that CVS is better if you have limited disk space.
22216
22217 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22218
22219         update-copyright: support C-style comments
22220         * build-aux/update-copyright: Implement and document.
22221         * tests/test-update-copyright.sh: Test.
22222
22223 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22224
22225         update-copyright: support omitted "(C)"
22226         * build-aux/update-copyright: Implement and document.  Also,
22227         allow variable whitespace before "(C)".
22228         * tests/test-update-copyright.sh: Test.
22229
22230 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22231
22232         update-copyright: don't trip on non-FSF copyright statements
22233         * build-aux/update-copyright: Fix so that the first correctly
22234         formatted FSF copyright statement is recognized no matter what
22235         appears before it.  Update documentation.
22236         * tests/test-update-copyright.sh: Test that.
22237
22238 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22239
22240         update-copyright: clean up code a little
22241         * build-aux/update-copyright: Append "_re" to the name of any
22242         variable holding a regular expression.
22243         Replace "old" and "new" with "stmt" in variable names.
22244         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
22245         handled correctly.
22246         Format code more consistently.
22247
22248 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22249
22250         update-copyright-tests: improve portability
22251         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
22252         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
22253
22254 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22255
22256         update-copyright: support @copyright{} and &copy;
22257         * build-aux/update-copyright: Implement and document.
22258         * tests/test-update-copyright.sh: Test.
22259
22260 2009-08-04  Jim Meyering  <meyering@redhat.com>
22261
22262         update-copyright-tests: correctly test EOL=\r\n handling
22263         * tests/test-update-copyright.sh: Put \r at the end of some lines
22264         for the dos-eol tests.  Based on a patch by Joel E. Denny.
22265
22266         maint.mk: make update-copyright exclusion list more configurable
22267         * top/maint.mk (update-copyright): Default to excluding COPYING,
22268         but allow an override, in case someone does want to update that file.
22269
22270         maint.mk: don't update copyright date in COPYING
22271         * top/maint.mk (update-copyright): Exclude COPYING.
22272
22273         maint.mk: add a copyright-updating rule
22274         * top/maint.mk (update-copyright): New rule.
22275         Derived from coreutils/Makefile.am.
22276
22277         update-copyright: rename some variables
22278         * build-aux/update-copyright: Rename a few variables for clarity.
22279         Tweak syntax.  List Joel E. Denny as coauthor.
22280
22281 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22282
22283         update-copyright: fix bug for 2-digit last year and add tests
22284         * build-aux/update-copyright: Fix bug.
22285         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
22286         specified.
22287         * modules/update-copyright-tests: New
22288         * tests/test-update-copyright.sh: New.
22289
22290 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22291
22292         update-copyright: handle leading tabs in line prefix
22293         * build-aux/update-copyright: Count leading tabs as 8 spaces
22294         when computing margin.  This helps with the formatting of
22295         ChangeLogs, for example.
22296         Fix documentation a little.
22297
22298 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22299
22300         update-copyright: support EOL=\r\n
22301         * build-aux/update-copyright: Implement that.
22302
22303 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22304
22305         update-copyright: automatically format copyright statements
22306         * build-aux/update-copyright: Implement that.
22307         Also, be a little more predictable and safer by always failing
22308         when the full copyright format is not perfectly recognized as an
22309         unbroken whole.  Discussed at
22310         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
22311         Rewrite documentation.
22312
22313 2009-08-03  Bruno Haible  <bruno@clisp.org>
22314
22315         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
22316
22317 2009-08-02  Bruno Haible  <bruno@clisp.org>
22318
22319         Tests for module 'uname'.
22320         * modules/uname-tests: New file.
22321         * tests/test-uname.c: New file.
22322
22323         New module 'uname'.
22324         * lib/uname.c: New file.
22325         * m4/uname.m4: New file.
22326         * modules/uname: New file.
22327         * doc/posix-functions/uname.texi: Mention the new module.
22328
22329 2009-08-02  Bruno Haible  <bruno@clisp.org>
22330
22331         Tests for module 'sys_utsname'.
22332         * modules/sys_utsname-tests: New file.
22333         * tests/test-sys_utsname.c: New file.
22334
22335         New module 'sys_utsname'.
22336         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
22337         * m4/sys_utsname_h.m4: New file.
22338         * modules/sys_utsname: New file.
22339         * doc/posix-headers/sys_utsname.texi: Mention the new module.
22340
22341 2009-08-02  Bruno Haible  <bruno@clisp.org>
22342
22343         Implicitly initialize the sockets library.
22344         * lib/gethostname.c: Include sockets.h.
22345         (rpl_gethostname): Invoke gl_sockets_startup.
22346         * lib/socket.c: Include sockets.h.
22347         (rpl_socket): Invoke gl_sockets_startup.
22348         * modules/gethostname (Depends-on): Add sockets.
22349         * modules/socket (Depends-on): Likewise.
22350         * tests/test-poll.c: Don't include sockets.h.
22351         (main): Don't invoke gl_sockets_startup.
22352         * tests/test-select.c: Don't include sockets.h.
22353         (main): Don't invoke gl_sockets_startup.
22354
22355 2009-08-02  Bruno Haible  <bruno@clisp.org>
22356
22357         Allow multiple calls to gl_sockets_startup.
22358         * lib/sockets.c (initialized_sockets_version): New variable.
22359         (gl_sockets_startup): Do nothing if already called for this or a higher
22360         version.
22361         (gl_sockets_cleanup): Reset initialized_sockets_version.
22362
22363 2009-08-03  Simon Josefsson  <simon@josefsson.org>
22364
22365         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
22366         different project/version.
22367
22368 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
22369             Bruno Haible  <bruno@clisp.org>
22370
22371         Tests for module 'pipe-filter-gi'.
22372         * modules/pipe-filter-gi-tests: New file.
22373         * tests/test-pipe-filter-gi1.sh: New file.
22374         * tests/test-pipe-filter-gi1.c: New file.
22375         * tests/test-pipe-filter-gi2.sh: New file.
22376         * tests/test-pipe-filter-gi2-main.c: New file.
22377         * tests/test-pipe-filter-gi2-child.c: New file.
22378
22379         New module 'pipe-filter-gi'.
22380         * lib/pipe-filter-gi.c: New file.
22381         * modules/pipe-filter-gi: New file.
22382
22383 2009-08-02  Bruno Haible  <bruno@clisp.org>
22384             Paolo Bonzini  <bonzini@gnu.org>
22385
22386         Tests for module 'pipe-filter-ii'.
22387         * modules/pipe-filter-ii-tests: New file.
22388         * tests/test-pipe-filter-ii1.sh: New file.
22389         * tests/test-pipe-filter-ii1.c: New file.
22390         * tests/test-pipe-filter-ii2.sh: New file.
22391         * tests/test-pipe-filter-ii2-main.c: New file.
22392         * tests/test-pipe-filter-ii2-child.c: New file.
22393
22394         New module 'pipe-filter-ii'.
22395         * lib/pipe-filter.h: New file.
22396         * lib/pipe-filter-ii.c: New file.
22397         * lib/pipe-filter-aux.h: New file.
22398         * modules/pipe-filter-ii: New file.
22399
22400 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22401
22402         * lib/gc-libgcrypt.c: Change copyright to FSF.
22403         * lib/gc-gnulib.c: Likewise.
22404
22405 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
22406
22407         * lib/gethostname.c: Include limits.h.
22408
22409 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22410             Bruno Haible  <bruno@clisp.org>
22411
22412         Ensure HOST_NAME_MAX as part of the gethostname module.
22413         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22414         define also HOST_NAME_MAX.
22415         * tests/test-gethostname.c: Include <limits.h>.
22416         (main): Check also HOST_NAME_MAX.
22417         * doc/posix-headers/limits.texi: Document the mingw problem.
22418
22419 2009-08-02  Bruno Haible  <bruno@clisp.org>
22420
22421         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22422         Add comments.
22423
22424 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22425
22426         * lib/gethostname.c: Add Windows wrapper.
22427         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22428         * modules/gethostname: Depend on sys_socket & errno, for also
22429         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22430         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22431
22432 2009-07-31  Jim Meyering  <meyering@redhat.com>
22433
22434         getloadavg: fix symbol name in comment
22435         * lib/getloadavg.c: Correct a typo I introduced when adding
22436         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22437         Matt Kraai spotted the problem.
22438
22439 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22440
22441         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22442         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22443         code also if ! defined N_NAME_POINTER.
22444         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22445         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22446         but the n_name member is a 12-byte array.
22447
22448 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
22449
22450         update-copyright: generalize comment handling
22451         * build-aux/update-copyright: Handle copyright statements
22452         within more comment styles.
22453         Document usage.
22454         Report any file with an external copyright holder or parse failure.
22455
22456 2009-07-29  Jim Meyering  <meyering@redhat.com>
22457
22458         mktime: correct setting of REPLACE_MKTIME
22459         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22460
22461         update-copyright: new module
22462         * modules/update-copyright: New file.
22463         * build-aux/update-copyright: New file.
22464         * MODULES.html.sh (maint+release support): Add update-copyright.
22465
22466 2009-07-27  Bruno Haible  <bruno@clisp.org>
22467
22468         Fix compilation error when <ctime> is used and mktime is replaced.
22469         * lib/time.in.h (mktime): New declaration.
22470         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22471         REPLACE_MKTIME instead of defining mktime in config.h.
22472         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22473         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22474         Reported by Ross McFarland <rwmcfa1@neces.com>.
22475
22476 2009-07-27  Bruno Haible  <bruno@clisp.org>
22477
22478         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22479         Reported by Matt Kraai <mkraai@beckman.com>.
22480
22481 2009-07-25  Jim Meyering  <meyering@redhat.com>
22482
22483         maint.mk: avoid warnings about missing files
22484         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22485         diagnostic when .prev-version does not exist.
22486         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22487         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22488         nonexistent cfg.mk.
22489         Suggestions from Simon Josefsson.
22490
22491 2009-07-25  Bruno Haible  <bruno@clisp.org>
22492
22493         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22494         defined as macros. Needed on QNX 6.4.1.
22495         Reported by Matt Kraai <mkraai@beckman.com>.
22496
22497 2009-07-23  Jim Meyering  <meyering@redhat.com>
22498
22499         maint.mk: invoke "make dist" with a working value of XZ_OPT
22500         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22501
22502 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22503
22504         Make fseeko.c compile on QNX.
22505         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22506
22507 2009-07-22  Peter Simons  <simons@cryp.to>
22508
22509         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22510         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22511         * lib/md4.h: Likewise.
22512         * lib/md5.h: Likewise.
22513         * lib/sha1.h: Likewise.
22514         * lib/sha256.h: Likewise.
22515         * lib/sha512.h: Likewise.
22516
22517         tests-sha1: don't assign literal string to 'char *' variable
22518         * tests/test-sha1.c (main): Declare locals with "const" to match
22519         attributes of the right hand side.
22520
22521 2009-07-21  Eric Blake  <ebb9@byu.net>
22522
22523         dup2: fix more mingw problems
22524         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22525         fd to itself.
22526         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22527         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22528         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22529         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22530         care of mingw bugs.
22531
22532 2009-07-21  Jim Meyering  <meyering@redhat.com>
22533
22534         vc-list-files: avoid failure when /bin/sh is dash
22535         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22536         On some Debian based systems, /bin/sh is a symlink to dash, and running
22537         this command would omit the "/" following each 'tests' prefix:
22538           dash -x build-aux/vc-list-files -C . tests
22539         That is because bash and dash work differently:
22540           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22541           bash ok
22542           dash odd
22543
22544 2009-07-21  Eric Blake  <ebb9@byu.net>
22545
22546         dup2-tests: test previous patch
22547         * modules/dup2-tests: New file.
22548         * tests/test-dup2.c: Likewise.
22549         * tests/test-open.c (main): Avoid unspecified behavior.
22550         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22551         test.
22552
22553         dup2: work around mingw and cygwin 1.5 bug
22554         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22556         * modules/unistd (Makefile.am): Substitute it.
22557         * lib/unistd.in.h (dup2): Declare the replacement.
22558         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22559         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22560         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22561         * modules/execute (Depends-on): Add dup2.
22562         * modules/fseterr (Depends-on): Likewise.
22563         * modules/pipe (Depends-on): Likewise.
22564         * modules/posix_spawn-internal (Depends-on): Likewise.
22565
22566 2009-07-21  Bruno Haible  <bruno@clisp.org>
22567
22568         * modules/.gitattributes: New file.
22569
22570 2009-07-20  Bruno Haible  <bruno@clisp.org>
22571
22572         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22573         (main): Use it.
22574
22575 2009-07-20  Eric Blake  <ebb9@byu.net>
22576
22577         test-pipe: make a bit more robust.
22578         * tests/test-pipe.c (myerr): Allow error messages regardless of
22579         what we do to stderr.
22580         (test_pipe): Rearrange to avoid deadlock.
22581         (child_main): Try a larger read, to ensure we avoided deadlock.
22582         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22583         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22584         if misused.
22585
22586 2009-07-19  Jim Meyering  <meyering@redhat.com>
22587
22588         fts: avoid false-positive cycle-detection
22589         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22590         for each new command line argument.
22591
22592 2009-07-19  Bruno Haible  <bruno@clisp.org>
22593
22594         Fix build error on mingw with the modules sys_select and unistd.
22595         * modules/acl-tests (Depends-on): Add close.
22596         * modules/binary-io-tests (Depends-on): Likewise.
22597         * modules/closein-tests (Depends-on): Likewise.
22598         * modules/flock-tests (Depends-on): Likewise.
22599         * modules/fsync-tests (Depends-on): Likewise.
22600         * modules/lseek-tests (Depends-on): Likewise.
22601         * modules/pipe-tests (Depends-on): Likewise.
22602         * modules/posix_spawn-tests (Depends-on): Likewise.
22603         * modules/posix_spawnp-tests (Depends-on): Likewise.
22604         * modules/stat-time-tests (Depends-on): Likewise.
22605         * modules/yesno-tests (Depends-on): Likewise.
22606
22607 2009-07-19  Bruno Haible  <bruno@clisp.org>
22608
22609         Unify conditionals.
22610         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22611         macros, not at the compiler macros.
22612         * lib/pipe.c: Likewise.
22613         * lib/execute.c: Likewise.
22614         * lib/spawni.c: Likewise.
22615
22616 2009-07-19  Bruno Haible  <bruno@clisp.org>
22617
22618         Fix handling of closed stdin/stdout/stderr on mingw.
22619         * lib/w32spawn.h: Include unistd.h.
22620         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22621         file descriptor with O_NOINHERIT flag.
22622         (fd_safer_noinherit): New function, based on fd-safer.c.
22623         (dup_safer_noinherit): New function, based on dup-safer.c.
22624         (undup_safer_noinherit): New function.
22625         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22626         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22627         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22628         instead of fd_safer.
22629         * tests/test-pipe.c: Include <windows.h>.
22630         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22631
22632         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22633         from main.
22634         (test_pipe): Pass an extra argument for disambiguation.
22635         (main): Invoke parent_main or child_main.
22636
22637         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22638         consistently.
22639
22640 2009-07-18  Eric Blake  <ebb9@byu.net>
22641
22642         test-pipe: fix mingw build
22643         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22644
22645 2009-07-18  Bruno Haible  <bruno@clisp.org>
22646
22647         * modules/pipe-tests (Makefile.am): Fix typo.
22648
22649 2009-07-18  Eric Blake  <ebb9@byu.net>
22650
22651         error: fix mingw build
22652         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22653         Reported by Bruno Haible.
22654
22655         error: avoid undefined use of stdout
22656         * lib/error.c (error, error_at_line): Check that fd 1 is open
22657         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22658         is handling faults and the close_stdout module wants to report the
22659         detection of closed stdout as an error.
22660
22661 2009-07-17  Eric Blake  <ebb9@byu.net>
22662
22663         pipe: be robust in face of closed fds
22664         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22665         should cause child to misbehave.
22666         * modules/pipe-tests: New module.
22667         * tests/test-pipe.c: New file.
22668         * tests/test-pipe.sh: New file.
22669         Reported by Akim Demaille.
22670
22671 2009-07-14  Bruno Haible  <bruno@clisp.org>
22672
22673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22674         Reported by anonymous kc.
22675
22676 2009-07-07  Jim Meyering  <meyering@redhat.com>
22677
22678         maint.mk: don't look for translatable strings in *.m4 or *.mk
22679         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22680         when searching for translatable strings.
22681
22682 2009-07-05  Jim Meyering  <meyering@redhat.com>
22683
22684         remove superfluous parentheses in STREQ definition
22685         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22686         * lib/getugroups.c (STREQ): Likewise.
22687         * lib/fnmatch.c (STREQ): Likewise.
22688         Spotted by Bruno Haible.
22689
22690 2009-07-04  Jim Meyering  <meyering@redhat.com>
22691
22692         argv-iter: new module
22693         * MODULES.html.sh: Add argv-iter.
22694         * lib/argv-iter.c, lib/argv-iter.h: New files.
22695         * modules/argv-iter: New file.
22696         * modules/argv-iter-tests: New file.
22697         * tests/test-argv-iter.c: Test it.
22698
22699 2009-07-04  Bruno Haible  <bruno@clisp.org>
22700
22701         Fix assertion.
22702         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22703         contains more exact copies of a given entry than file2, leave the extra
22704         copies unpaired rather than aborting.
22705         Reported by Eric Blake.
22706
22707 2009-07-02  Bruno Haible  <bruno@clisp.org>
22708
22709         Speedup git-merge-changelog for git cherry-pick.
22710         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22711         (entries_mapping_get): New function, extracted from compute_mapping.
22712         (entries_mapping_reverse_get): New function.
22713         (compute_mapping): Add a 'full' argument. Return the result in a
22714         'struct entries_mapping'.
22715         (main): Update. Access the mappings through entries_mapping_get.
22716         Reported by Eric Blake.
22717
22718 2009-07-02  Bruno Haible  <bruno@clisp.org>
22719
22720         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22721         best_i.
22722
22723 2009-07-02  Bruno Haible  <bruno@clisp.org>
22724
22725         Speed up approximate search for matching ChangeLog entries.
22726         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22727         argument. Call fstrcmp_bounded instead of fstrcmp.
22728         (compute_mapping, try_split_merged_entry, main): Update callers.
22729
22730 2009-07-02  Bruno Haible  <bruno@clisp.org>
22731
22732         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22733
22734 2009-06-30  Bruno Haible  <bruno@clisp.org>
22735
22736         Reduce the number of uc_is_cased calls.
22737         * lib/unicase.h (casing_suffix_context_t): Add
22738         'first_char_except_ignorable' field.
22739         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22740         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22741         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22742         Update initializer.
22743         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22744         case-ignorable characters.
22745         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22746         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22747         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22748         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22749         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22750
22751 2009-06-30  Bruno Haible  <bruno@clisp.org>
22752
22753         Tests for module 'unicase/ignorable'.
22754         * modules/unicase/ignorable-tests: New file.
22755         * tests/unicase/test-ignorable.c: New file, generated by
22756         gen-uni-tables.
22757
22758         Tests for module 'unicase/cased'.
22759         * modules/unicase/cased-tests: New file.
22760         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22761         * tests/unicase/test-predicate-part1.h: New file, derived from
22762         tests/unictype/test-predicate-part1.h.
22763         * tests/unicase/test-predicate-part2.h: New file, same as
22764         tests/unictype/test-predicate-part2.h.
22765
22766         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22767         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22768         (output_casing_properties): New function.
22769         (main): Call it.
22770         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22771         * lib/unicase/cased.c: Include unictype/bitmap.h.
22772         (uc_is_cased): Define through a bitmap lookup.
22773         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22774         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22775         (uc_is_case_ignorable): Define through a bitmap lookup.
22776         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22777         lib/unictype/bitmap.h.
22778         (Depends-on): Add inline. Clean up.
22779         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22780         lib/unictype/bitmap.h.
22781         (Depends-on): Add inline. Clean up.
22782         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22783         recognition.
22784         * tests/unicase/test-u16-tolower.c (main): Likewise.
22785         * tests/unicase/test-u32-tolower.c (main): Likewise.
22786
22787 2009-06-30  Bruno Haible  <bruno@clisp.org>
22788
22789         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22790         * lib/unicase/u16-casemap.c: Likewise.
22791         * lib/unicase/u32-casemap.c: Likewise.
22792
22793 2009-06-29  Bruno Haible  <bruno@clisp.org>
22794
22795         Define u32_casefold as a wrapper around u32_ct_casefold.
22796         * lib/unicase/u32-casefold.c: Update.
22797         * modules/unicase/u32-casefold (Depends-on): Add
22798         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22799         unicase/empty-suffix-context. Clean up.
22800
22801         Define u16_casefold as a wrapper around u16_ct_casefold.
22802         * lib/unicase/u16-casefold.c: Update.
22803         * modules/unicase/u16-casefold (Depends-on): Add
22804         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22805         unicase/empty-suffix-context. Clean up.
22806
22807         Define u8_casefold as a wrapper around u8_ct_casefold.
22808         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22809         * lib/unicase/u8-casefold.c: Update.
22810         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22811         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22812
22813         Define u32_totitle as a wrapper around u32_ct_totitle.
22814         * lib/unicase/u32-totitle.c: Update.
22815         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22816         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22817
22818         Define u16_totitle as a wrapper around u16_ct_totitle.
22819         * lib/unicase/u16-totitle.c: Update.
22820         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22821         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22822
22823         Define u8_totitle as a wrapper around u8_ct_totitle.
22824         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22825         functions.
22826         (FUNC): Delegate to U_CT_TOTITLE.
22827         * lib/unicase/u8-totitle.c: Update.
22828         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22829         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22830
22831         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22832         invocation.
22833         * modules/unicase/u32-tolower (Depends-on): Add
22834         unicase/empty-prefix-context, unicase/empty-suffix-context.
22835
22836         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22837         invocation.
22838         * modules/unicase/u16-tolower (Depends-on): Add
22839         unicase/empty-prefix-context, unicase/empty-suffix-context.
22840
22841         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22842         * modules/unicase/u8-tolower (Depends-on): Add
22843         unicase/empty-prefix-context, unicase/empty-suffix-context.
22844
22845         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22846         invocation.
22847         * modules/unicase/u32-toupper (Depends-on): Add
22848         unicase/empty-prefix-context, unicase/empty-suffix-context.
22849
22850         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22851         invocation.
22852         * modules/unicase/u16-toupper (Depends-on): Add
22853         unicase/empty-prefix-context, unicase/empty-suffix-context.
22854
22855         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22856         * modules/unicase/u8-toupper (Depends-on): Add
22857         unicase/empty-prefix-context, unicase/empty-suffix-context.
22858
22859         New module 'unicase/u32-ct-casefold'.
22860         * lib/unicase/u32-ct-casefold.c: New file.
22861         * modules/unicase/u32-ct-casefold: New file.
22862
22863         New module 'unicase/u16-ct-casefold'.
22864         * lib/unicase/u16-ct-casefold.c: New file.
22865         * modules/unicase/u16-ct-casefold: New file.
22866
22867         New module 'unicase/u8-ct-casefold'.
22868         * lib/unicase/u8-ct-casefold.c: New file.
22869         * lib/unicase/u-ct-casefold.h: New file, derived from
22870         lib/unicase/u-casefold.h.
22871         * modules/unicase/u8-ct-casefold: New file.
22872
22873         New module 'unicase/u32-ct-totitle'.
22874         * lib/unicase/u32-ct-totitle.c: New file.
22875         * modules/unicase/u32-ct-totitle: New file.
22876
22877         New module 'unicase/u16-ct-totitle'.
22878         * lib/unicase/u16-ct-totitle.c: New file.
22879         * modules/unicase/u16-ct-totitle: New file.
22880
22881         New module 'unicase/u8-ct-totitle'.
22882         * lib/unicase/u8-ct-totitle.c: New file.
22883         * lib/unicase/u-ct-totitle.h: New file, derived from
22884         lib/unicase/u-totitle.h.
22885         * modules/unicase/u8-ct-totitle: New file.
22886
22887         New module 'unicase/u32-ct-tolower'.
22888         * lib/unicase/u32-ct-tolower.c: New file.
22889         * modules/unicase/u32-ct-tolower: New file.
22890
22891         New module 'unicase/u16-ct-tolower'.
22892         * lib/unicase/u16-ct-tolower.c: New file.
22893         * modules/unicase/u16-ct-tolower: New file.
22894
22895         New module 'unicase/u8-ct-tolower'.
22896         * lib/unicase/u8-ct-tolower.c: New file.
22897         * modules/unicase/u8-ct-tolower: New file.
22898
22899         New module 'unicase/u32-ct-toupper'.
22900         * lib/unicase/u32-ct-toupper.c: New file.
22901         * modules/unicase/u32-ct-toupper: New file.
22902
22903         New module 'unicase/u16-ct-toupper'.
22904         * lib/unicase/u16-ct-toupper.c: New file.
22905         * modules/unicase/u16-ct-toupper: New file.
22906
22907         New module 'unicase/u8-ct-toupper'.
22908         * lib/unicase/u8-ct-toupper.c: New file.
22909         * modules/unicase/u8-ct-toupper: New file.
22910
22911         Add context arguments to u*_casemap functions.
22912         * lib/unicase/unicasemap.h: Include unicase.h.
22913         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22914         suffix_context arguments.
22915         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22916         functions.
22917         (FUNC): Add prefix_context and suffix_context arguments. Use
22918         uc_is_cased and uc_is_case_ignorable.
22919         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22920         * lib/unicase/u16-casemap.c: Likewise.
22921         * lib/unicase/u32-casemap.c: Likewise.
22922         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22923         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22924         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22925         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22926         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22927         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22928
22929         New module 'unicase/u32-suffix-context'.
22930         * lib/unicase/u32-suffix-context.c: New file.
22931         * modules/unicase/u32-suffix-context: New file.
22932
22933         New module 'unicase/u16-suffix-context'.
22934         * lib/unicase/u16-suffix-context.c: New file.
22935         * modules/unicase/u16-suffix-context: New file.
22936
22937         New module 'unicase/u8-suffix-context'.
22938         * lib/unicase/u8-suffix-context.c: New file.
22939         * lib/unicase/u-suffix-context.h: New file.
22940         * modules/unicase/u8-suffix-context: New file.
22941
22942         New module 'unicase/empty-suffix-context'.
22943         * lib/unicase/empty-suffix-context.c: New file.
22944         * modules/unicase/empty-suffix-context: New file.
22945
22946         New module 'unicase/u32-prefix-context'.
22947         * lib/unicase/u32-prefix-context.c: New file.
22948         * modules/unicase/u32-prefix-context: New file.
22949
22950         New module 'unicase/u16-prefix-context'.
22951         * lib/unicase/u16-prefix-context.c: New file.
22952         * modules/unicase/u16-prefix-context: New file.
22953
22954         New module 'unicase/u8-prefix-context'.
22955         * lib/unicase/u8-prefix-context.c: New file.
22956         * lib/unicase/u-prefix-context.h: New file.
22957         * lib/unicase/context.h: New file.
22958         * modules/unicase/u8-prefix-context: New file.
22959
22960         New module 'unicase/empty-prefix-context'.
22961         * lib/unicase/empty-prefix-context.c: New file.
22962         * modules/unicase/empty-prefix-context: New file.
22963
22964         New module 'unicase/ignorable'.
22965         * lib/unicase/ignorable.c: New file.
22966         * modules/unicase/ignorable: New file.
22967
22968         New module 'unicase/cased'.
22969         * lib/unicase/caseprop.h: New file.
22970         * lib/unicase/cased.c: New file.
22971         * modules/unicase/cased: New file.
22972
22973         New functions for case mapping of substrings.
22974         * lib/unicase.h (casing_prefix_context_t): New type.
22975         (unicase_empty_prefix_context): New variable.
22976         (u8_casing_prefix_context, u16_casing_prefix_context,
22977         u32_casing_prefix_context, u8_casing_prefixes_context,
22978         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22979         declarations.
22980         (casing_suffix_context_t): New type.
22981         (unicase_empty_suffix_context): New variable.
22982         (u8_casing_suffix_context, u16_casing_suffix_context,
22983         u32_casing_suffix_context, u8_casing_suffixes_context,
22984         u16_casing_suffixes_context, u32_casing_suffixes_context,
22985         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22986         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22987         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22988         declarations.
22989
22990 2009-06-28  Jim Meyering  <meyering@redhat.com>
22991
22992         boostrap: indent only with spaces
22993         * build-aux/bootstrap: Indent only with spaces, never TABs.
22994
22995         bootstrap: split long lines
22996         * build-aux/bootstrap: Keep line length < 80.
22997
22998         bootstrap: sync from coreutils
22999         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
23000         just as autoreconf does.  Verify a list of prerequisite
23001         package-name,version-number pairs if defined in bootstrap.conf.
23002         Refer to README-prereq, if prerequisites are not satisfied.
23003
23004 2009-06-27  Eric Blake  <ebb9@byu.net>
23005
23006         tests: add test for bogus NULL definition
23007         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
23008         * tests/test-stdlib.c: Likewise.
23009         * tests/test-string.c: Likewise.
23010         * tests/test-locale.c: Likewise.
23011         * tests/test-unistd.c: Likewise.
23012         * modules/stdio-tests (Depends-on): Add verify.
23013         * modules/stdlib-tests (Depends-on): Likewise.
23014         * modules/string-tests (Depends-on): Likewise.
23015         * modules/locale-tests (Depends-on): Likewise.
23016         * modules/unistd-tests (Depends-on): Likewise.
23017
23018 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
23019
23020         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
23021         self-explaining comment.
23022         * m4/selinux-selinux-h: Update serial.
23023         (gl_LIBSELINUX): New macro, adding a warning for missing development
23024         packages to code extracted from...
23025         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
23026         Add warning for missing development packages here, too.
23027
23028 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
23029
23030         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
23031
23032 2009-06-25  Eric Blake  <ebb9@byu.net>
23033
23034         version-etc: fix regression
23035         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
23036         gcc.
23037         (version_etc): Use it, to catch bugs with trailing NULL.
23038         * lib/version-etc.c (version_etc_arn): Delete unused argument.
23039         (version_etc_va): Fix logic bug.
23040         * modules/version-etc-tests: Add test.
23041         * tests/test-version-etc.c: New file.
23042         * tests/test-version-etc.sh: Likewise.
23043
23044 2009-06-25  Sam Steingold  <sds@gnu.org>
23045
23046         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
23047         mbtowc declaration.
23048
23049 2009-06-25  Eric Blake  <ebb9@byu.net>
23050
23051         fpurge: migrate into <stdio.h>
23052         * lib/fpurge.h: Delete...
23053         * lib/stdio.in.h (fpurge): ...and declare here, instead.
23054         * lib/fpurge.c (fpurge): Change declaring header.
23055         * modules/fpurge (Files): Drop deleted file.
23056         (Depends-on): Add stdio.
23057         (configure.ac): Set witness.
23058         * modules/stdio (Makefile.am): Support fpurge macros.
23059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23060         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
23061         * lib/fflush.c: Update client.
23062         * tests/test-fpurge.c: Likewise.
23063         * NEWS: Mention the change.
23064
23065 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23066
23067         * lib/argp-version-etc.c (program_authors): Add const
23068         qualifier.
23069         * lib/version-etc.c: Fix typos in the comments.
23070         * modules/argp-version-etc: Depends on version-etc.
23071
23072 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23073
23074         argp-version-etc: new module.
23075
23076         * lib/argp-version-etc.c: New file.
23077         * lib/argp-version-etc.h: New file.
23078         * modules/argp-version-etc: New file.
23079         * modules/argp-version-etc-tests: New file.
23080         * tests/test-argp-version-etc.c: New test.
23081         * tests/test-argp-version-etc-1.sh: New test.
23082
23083 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23084
23085         Provide additional interfaces and documentation for version-etc
23086         module.
23087
23088         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
23089         interfaces.
23090         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
23091         prototypes.
23092
23093 2009-06-24  Bruno Haible  <bruno@clisp.org>
23094
23095         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
23096         HAVE_LIB${NAME} macro.
23097         Reported by Sam Steingold <sds@gnu.org>.
23098
23099 2009-06-23  Simon Josefsson  <simon@josefsson.org>
23100
23101         * modules/hash-tests (test_hash_LDADD): Link to libintl when
23102         needed.
23103
23104 2009-06-21  Bruno Haible  <bruno@clisp.org>
23105
23106         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
23107         work.
23108         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
23109         together with LIB${NAME}, LTLIB${NAME}.
23110         Reported by Sam Steingold <sds@gnu.org>.
23111
23112 2009-06-20  Jim Meyering  <meyering@redhat.com>
23113
23114         tests: make sc_require_test_exit_idiom more generic
23115         * top/maint.mk (Exit_witness_file): New overridable variable.
23116         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
23117         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
23118
23119 2009-06-19  Jim Meyering  <meyering@redhat.com>
23120
23121         hash: reverse order of src/dst parameters in an internal interface
23122         * lib/hash.c (transfer_entries): Reverse order of parameters to
23123         put DST before SRC.  Adjust callers.
23124
23125         tests: test-hash: avoid wholesale duplication
23126         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
23127         Instead, use a loop and add a single conditional.
23128
23129         tests: test-hash: allow seed selection via a command line argument
23130         * tests/test-hash.c (get_seed): New function.
23131         (main): Use it.
23132
23133 2009-06-19  Eric Blake  <ebb9@byu.net>
23134
23135         hash: avoid memory leak on allocation failure
23136         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
23137         failure.  Factor repeated algorithm...
23138         (transfer_entries): ...into new helper routine.
23139         (hash_delete): React to hash_rehash return value.
23140
23141         hash: reduce memory pressure in hash_rehash no-op case
23142         * lib/hash.c (next_prime): Avoid overflow.
23143         (hash_initialize): Factor bucket size computation...
23144         (compute_bucket_size): ...into new helper function.
23145         (hash_rehash): Use new function and open coding to reduce memory
23146         pressure, and avoid a memory leak in USE_OBSTACK code.
23147         Reported by Jim Meyering.
23148
23149 2009-06-18  Eric Blake  <ebb9@byu.net>
23150
23151         hash: make rotation more obvious
23152         * modules/hash (Depends-on): Add bitrotate and stdint.
23153         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
23154         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
23155         (SIZE_MAX): Rely on headers for definition.
23156         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
23157         (raw_hasher): Use rotr_sz.
23158         Suggested by Jim Meyering.
23159
23160         hash: fix memory leak in last patch
23161         * lib/hash.c (hash_rehash): Avoid memory leak.
23162
23163         hash: avoid no-op rehashing
23164         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
23165
23166         hash: provide default callback functions
23167         * lib/hash.c (raw_hasher, raw_comparator): New functions.
23168         (hash_initialize): Use them as defaults.
23169         * tests/test-hash.c (main): Test this.
23170
23171         hash: minor optimization
23172         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
23173         when possible.
23174         (hash_initialize): Document this promise.
23175         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
23176         * tests/test-hash.c (hash_compare_strings): Test this.
23177
23178 2009-06-18  Bruno Haible  <bruno@clisp.org>
23179
23180         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
23181         going to be replaced anyway.
23182
23183 2009-06-18  Bruno Haible  <bruno@clisp.org>
23184
23185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
23186         in one place.
23187         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
23188         be replaced anyway.
23189
23190 2009-06-18  Eric Blake  <ebb9@byu.net>
23191
23192         hash: check for resize before insertion
23193         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
23194         threshold before insertion, so that a pathological hash_rehash
23195         that fills every bucket can still trigger another rehash.
23196
23197 2009-06-18  Jim Meyering  <meyering@redhat.com>
23198
23199         hash-tests: add a loop around the small tests
23200         * tests/test-hash.c (main): Repeat small tests with selected
23201         small initial table sizes.
23202
23203 2009-06-17  Eric Blake  <ebb9@byu.net>
23204
23205         hash: minor cleanups
23206         * lib/hash.h (hash_entry): Make opaque, by moving...
23207         * lib/hash.c (hash_entry): ...here.
23208         (hash_insert): Clarify restrictions on what can be inserted.
23209         (hash_get_next): Clarify when it is safe to remove an element
23210         during traversal.
23211         (check_tuning): Skip verification when tuning is known safe.
23212         (hash_initialize): Clarify restrictions on tuning.
23213
23214 2009-06-17  Jim Meyering  <jim@meyering.net>
23215         and Eric Blake  <ebb9@byu.net>
23216
23217         hash-tests: new module
23218         * modules/hash-tests: New file.
23219         * tests/test-hash.c: New file.
23220
23221 2009-06-17  Eric Blake  <ebb9@byu.net>
23222
23223         strstr-simple: document new module
23224         * MODULES.html.sh: Document new module.
23225
23226         strstr, strcasestr: replace on platforms with broken memchr
23227         * modules/strstr: Split into...
23228         * modules/strstr-simple: ...new module that does not care about
23229         performance, but does care about glibc bug.
23230         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
23231         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
23232         if platform memchr is broken, per Debian bug 521737.
23233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
23234         memchr.
23235         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
23236         * doc/posix-functions/strstr.texi (strstr): Document the fix.
23237         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23238         * modules/mountlist (Depends-on): Add strstr-simple.
23239         * modules/gen-uni-tables (Depends-on): Likewise.
23240         * modules/argz (Depends-on): Add strstr.
23241
23242 2009-06-17  Bruno Haible  <bruno@clisp.org>
23243
23244         * modules/posix_spawn-internal (Depends-on): Add errno.
23245
23246 2009-06-17  Bruno Haible  <bruno@clisp.org>
23247
23248         Define missing ESTALE on Interix 3.5.
23249         * lib/errno.in.h (ESTALE): Assign a value if missing.
23250         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
23251         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
23252         missing.
23253         * doc/posix-headers/errno.texi: Mention the Interix bug.
23254         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
23255
23256 2009-06-15  Eric Blake  <ebb9@byu.net>
23257
23258         memchr, memchr2: add valgrind exception
23259         * lib/memchr.valgrind: New file.
23260         * lib/memchr2.valgrind: New file.
23261         * modules/memchr (Files): Distribute valgrind file.
23262         * modules/memchr2 (Files): Likewise.
23263
23264         docs: memchr is no longer obsolete
23265         * MODULES.html.sh: Move memchr from obsolete to string.h section.
23266         * lib/string.in.h (memchr): Simplify logic.
23267
23268 2009-06-14  Jim Meyering  <meyering@redhat.com>
23269
23270         link-follow: fix the "checking..." message to not mention trailing slash
23271         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
23272         never considered trailing slashes.
23273
23274 2009-06-14  Bruno Haible  <bruno@clisp.org>
23275
23276         * m4/memchr.m4: Mention also the bug on IA-64.
23277         * doc/posix-functions/memchr.texi: Likewise.
23278
23279 2009-06-12  Eric Blake  <ebb9@byu.net>
23280
23281         memchr: detect broken x86_64 and alpha implementations
23282         * modules/memchr-tests (Depends-on): Move mmap detection...
23283         * modules/memchr (Depends-on): ...here.
23284         (configure.ac): Set indicator.
23285         * lib/string.in.h (memchr): Declare replacement.
23286         * modules/string (Makefile.am): Trigger replacement.
23287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23288         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
23289         bugs.
23290         * doc/posix-functions/memchr.texi (memchr): Document the bug.
23291         * modules/getpagesize (License): Relax license.
23292
23293 2009-06-11  Bruno Haible  <bruno@clisp.org>
23294
23295         * lib/idpriv.h: Add more references.
23296
23297 2009-06-08  Bruno Haible  <bruno@clisp.org>
23298
23299         Tests for module 'idpriv-droptemp'.
23300         * modules/idpriv-droptemp-tests: New file.
23301         * tests/test-idpriv-droptemp.sh: New file.
23302         * tests/test-idpriv-droptemp.su.sh: New file.
23303         * tests/test-idpriv-droptemp.c: New file.
23304
23305         New module 'idpriv-droptemp'.
23306         * lib/idpriv-droptemp.c: New file.
23307         * modules/idpriv-droptemp: New file.
23308
23309 2009-06-08  Bruno Haible  <bruno@clisp.org>
23310
23311         Tests for module 'idpriv-drop'.
23312         * modules/idpriv-drop-tests: New file.
23313         * tests/test-idpriv-drop.sh: New file.
23314         * tests/test-idpriv-drop.su.sh: New file.
23315         * tests/test-idpriv-drop.c: New file.
23316
23317         New module 'idpriv-drop'.
23318         * lib/idpriv.h: New file.
23319         * lib-idpriv-drop.c: New file.
23320         * m4/idpriv.m4: New file.
23321         * modules/idpriv-drop: New file.
23322
23323 2009-06-08  Bruno Haible  <bruno@clisp.org>
23324
23325         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23326         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23327         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23328         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23329         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23330         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23331         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23332
23333 2009-06-08  Eric Blake  <ebb9@byu.net>
23334
23335         test-strstr: use memory fence, when possible
23336         * tests/test-strstr.c (main): Use memory fence, in order to be
23337         more likely to trigger Debian bug 521737.
23338         * modules/strstr-tests (Files): Pull in additional files.
23339
23340         memchr: no longer obsolete, for wider field testing
23341         * modules/memchr (Status, Notice): Delete, this module is no
23342         longer obsolete.
23343         * modules/vasnprintf (Depends-on): Add memchr.
23344
23345 2009-06-07  Jim Meyering  <meyering@redhat.com>
23346
23347         hash: declare some functions with the warn_unused_result attribute
23348         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
23349
23350 2009-06-07  Bruno Haible  <bruno@clisp.org>
23351
23352         * tests/test-alignof.c: Don't test int64_t if it does not exist.
23353         Reported by Eric Blake.
23354
23355 2009-06-06  Eric Blake  <ebb9@byu.net>
23356
23357         test-alignof: fix typo with long double
23358         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
23359         compiler error.
23360
23361 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
23362
23363         Escape non-texinfo { and }s.
23364         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
23365         markup error.
23366
23367 2009-06-04  Jim Meyering  <meyering@redhat.com>
23368
23369         gitlog-to-changelog: don't infloop on an empty commit log
23370         * build-aux/gitlog-to-changelog: Warn about an empty log message.
23371         Reported by Boris Petersen <transacid@centerim.org>.
23372
23373 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
23374
23375         version-etc: extend for packagers
23376         Add three new configure options, intended for packagers:
23377           --with-packager="packager name"
23378           --with-packager-version="packager-specific version"
23379           --with-packager-bug-reports="packager bug reporting"
23380         An example with coreutils:
23381           $ ./configure \
23382             --with-packager=Gentoo \
23383             --with-packager-bug-report=http://bugs.gentoo.org/ \
23384             --with-packager-version="patchset 1.6"
23385           $ ./src/ls --version | head -n2
23386           ls (GNU coreutils) 7.1-dirty
23387           Packaged by Gentoo (patchset 1.6)
23388         Note that the bug reporting info via --help doesn't show up because
23389         coreutils uses its own custom emit_bug_reporting_address() implementation
23390         in src/system.h.  If it didn't, it'd look like:
23391           $ ./src/ls --help | tail -n4
23392           Report bugs to <bug-coreutils@gnu.org>.
23393           Report Gentoo bugs to <http://bugs.gentoo.org/>.
23394           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
23395           General help using GNU software: <http://www.gnu.org/gethelp/>.
23396         * lib/version-etc.c: Print new information, if provided.
23397         * m4/version-etc.m4: New file.
23398         * modules/version-etc (Files): Add m4/version-etc.m4.
23399         (configure.ac): Add gl_VERSION_ETC.
23400
23401 2009-05-31  Bruno Haible  <bruno@clisp.org>
23402
23403         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
23404         and 'int64_t'.
23405         * modules/alignof-tests (Dependencies): Add stdint.
23406         Reported by Eric Blake.
23407
23408 2009-05-31  Bruno Haible  <bruno@clisp.org>
23409
23410         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23411         restriction due to compiler bugs.
23412         Reported by Eric Blake.
23413
23414 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23415             Bruno Haible  <bruno@clisp.org>
23416
23417         Fix test-alignof failure.
23418         * lib/alignof.h (alignof_slot): New macro.
23419         (alignof_type): New macro, with the same semantics as the previous
23420         'alignof'.
23421         (alignof): Alias to alignof_slot.
23422         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23423         check that the results are usable as constant expressions.
23424
23425 2009-05-31  Bruno Haible  <bruno@clisp.org>
23426
23427         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23428         * tests/test-memchr.c (main): Check that memchr does not read past the
23429         first occurrence of the byte.
23430         * tests/test-strstr.c (main): Update comment.
23431         Suggested by Eric Blake.
23432
23433 2009-05-30  Bruno Haible  <bruno@clisp.org>
23434
23435         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23436         detail how to use dumpbin.
23437         Reported by David Byron <dbyron@dbyron.com>.
23438
23439 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23440
23441         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23442
23443 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23444
23445         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23446
23447 2009-05-28  Bruno Haible  <bruno@clisp.org>
23448
23449         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
23450         build-aux/ files.
23451
23452 2009-05-28  Simon Josefsson  <simon@josefsson.org>
23453
23454         * gnulib-tool (func_import): Transform license on build-aux/ files too.
23455
23456 2009-05-27  Simon Josefsson  <simon@josefsson.org>
23457
23458         * gnulib-tool (sed_transform_main_lib_file)
23459         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23460         regexps.
23461
23462 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23463
23464         * tests/test-strstr.c: Add another self-test.
23465         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23466         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23467
23468 2009-05-23  Bruno Haible  <bruno@clisp.org>
23469
23470         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23471         change.
23472
23473 2009-05-21  Bruno Haible  <bruno@clisp.org>
23474
23475         Simplify use of mode_t varargs.
23476         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23477         uses 'mode_t' or 'int'.
23478         * lib/openat.c (openat): Likewise.
23479         * lib/open-safer.c (open_safer): Likewise.
23480         * m4/mode_t.m4: New file.
23481         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23482         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23483         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23484         * modules/open (Files): Add m4/mode_t.m4.
23485         * modules/openat (Files): Likewise.
23486         * modules/fcntl-safer (Files): Likewise.
23487         Suggested by Eric Blake.
23488
23489 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23490
23491         * doc/glibc-functions/fallocate.texi: New file.
23492         * doc/gnulib.texi: Include it.
23493
23494 2009-05-21  Eric Blake  <ebb9@byu.net>
23495             Bruno Haible  <bruno@clisp.org>
23496
23497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23498         invocations.
23499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23500
23501 2009-05-21  Eric Blake  <ebb9@byu.net>
23502             Bruno Haible  <bruno@clisp.org>
23503
23504         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23505         include_next. Fix of 2008-11-20 commit.
23506         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23507         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23508         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23509         NEXT_MATH_H.
23510         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23511         instead of NEXT_MATH_H.
23512
23513 2009-05-21  Bruno Haible  <bruno@clisp.org>
23514
23515         Avoid redefinition warnings for SIZE_MAX.
23516         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23517         Reported by Simon Josefsson.
23518
23519 2009-05-21  Bruno Haible  <bruno@clisp.org>
23520
23521         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23522         AC_CACHE_VAL.
23523
23524 2009-05-20  Bruno Haible  <bruno@clisp.org>
23525
23526         Make zeroptr.h work on mingw.
23527         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23528         mprotect.
23529         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23530         * modules/memchr2-tests (configure.ac): Likewise.
23531         * modules/memcmp-tests (configure.ac): Likewise.
23532         * modules/memmem-tests (configure.ac): Likewise.
23533         * modules/memrchr-tests (configure.ac): Likewise.
23534         Reported by Simon Josefsson.
23535
23536 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23537
23538         * tests/test-glob.c: Include string.h for strcmp prototype.
23539
23540 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23541
23542         * modules/getdelim (Depends-on): Add explicit stdint, although it
23543         was implicitly already pulled in via realloc-posix.
23544         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23545
23546 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23547
23548         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23549         G. Christensen" <tgc@jupiterrise.com>.
23550         * m4/sys_socket_h.m4: Check for sa_family_t.
23551         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23552         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23553         * tests/test-sys_socket.c: Check that sa_family_t works.
23554
23555 2009-05-18  Eric Blake  <ebb9@byu.net>
23556
23557         maint.mk: allow gnulib_dir in VPATH build
23558         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23559
23560 2009-05-15  Jim Meyering  <meyering@redhat.com>
23561
23562         maint.mk: Give gnulib_dir a default definition.
23563         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23564         Thus, most packages no longer need to specify this variable in cfg.mk
23565
23566 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23567
23568         rename.m4: fix typos that would make non-mingw cross-configure fail
23569         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23570
23571 2009-05-13  Eric Blake  <ebb9@byu.net>
23572
23573         mmap-anon: avoid out-of-order autoconf expansion
23574         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23575         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23576         * modules/memchr-tests (Depends-on): Add extensions.
23577         * modules/memchr2-tests (Depends-on): Add extensions.
23578         * modules/memcmp-tests (Depends-on): Add extensions.
23579         * modules/memmem-tests (Depends-on): Add extensions.
23580         * modules/memrchr-tests (Depends-on): Add extensions.
23581
23582 2009-05-13  Bruno Haible  <bruno@clisp.org>
23583
23584         Make some tests ISO C 99 compliant.
23585         * tests/zerosize-ptr.h: New file.
23586         * tests/test-memchr.c: Include zerosize-ptr.h.
23587         (main): Use a zero-size object pointer instead of NULL.
23588         * tests/test-memchr2.c: Include zerosize-ptr.h.
23589         (main): Use a zero-size object pointer instead of NULL.
23590         * tests/test-memcmp.c: Include zerosize-ptr.h.
23591         (main): Use a zero-size object pointer instead of NULL.
23592         * tests/test-memmem.c: Include zerosize-ptr.h.
23593         (main): Use a zero-size object pointer instead of NULL.
23594         * tests/test-memrchr.c: Include zerosize-ptr.h.
23595         (main): Use a zero-size object pointer instead of NULL.
23596         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23597         m4/mmap-anon.m4.
23598         (Depends-on): Add getpagesize.
23599         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23600         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23601         m4/mmap-anon.m4.
23602         (Depends-on): Add getpagesize.
23603         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23604         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23605         m4/mmap-anon.m4.
23606         (Depends-on): Add getpagesize.
23607         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23608         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23609         m4/mmap-anon.m4.
23610         (Depends-on): Add getpagesize.
23611         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23612         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23613         m4/mmap-anon.m4.
23614         (Depends-on): Add getpagesize.
23615         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23616
23617 2009-05-12  Bruno Haible  <bruno@clisp.org>
23618
23619         Tests for module 'alignof'.
23620         * modules/alignof-tests: New file.
23621         * tests/test-alignof.c: New file.
23622
23623 2009-05-12  Bruno Haible  <bruno@clisp.org>
23624
23625         Fix alignof macro.
23626         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23627         vendor compilers that are always correct.
23628
23629 2009-05-12  Bruno Haible  <bruno@clisp.org>
23630
23631         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23632         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23633         not whether its fully works.
23634
23635 2009-05-12  Bruno Haible  <bruno@clisp.org>
23636
23637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23638
23639 2009-05-12  Jim Meyering  <meyering@redhat.com>
23640
23641         * top/maint.mk: Adjust backslash alignment.
23642
23643 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23644
23645         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23646
23647 2009-05-11  Eric Blake  <ebb9@byu.net>
23648
23649         argp: avoid undefined behavior
23650         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23651         macros.
23652
23653 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23654
23655         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23656         user.name to prevent git commit from complaining.
23657
23658 2009-05-10  Bruno Haible  <bruno@clisp.org>
23659
23660         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23661         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23662         it rewrites every file name only once.
23663         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23664
23665 2009-05-08  Bruno Haible  <bruno@clisp.org>
23666
23667         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23668         instead of 'max'.
23669
23670 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23671
23672         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23673         sockaddr_storage test.
23674
23675 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23676
23677         * modules/sys_socket (Makefile.am): Substitute
23678         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23679         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23680         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23681         * tests/test-sys_socket.c: Check sockaddr_storage.
23682
23683 2009-05-08  Bruno Haible  <bruno@clisp.org>
23684
23685         New module 'alignof'.
23686         * lib/alignof.h: New file.
23687         * modules/alignof: New file.
23688
23689 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23690             Bruno Haible  <bruno@clisp.org>
23691
23692         Fix test-file-has-acl on FreeBSD.
23693         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23694         mask is implicitly added.
23695         * tests/test-file-has-acl.c: Include <signal.h>.
23696         (main): Terminate the test after 5 seconds.
23697         * modules/acl-tests (configure.ac): Check for alarm function.
23698
23699 2009-05-04  Bruno Haible  <bruno@clisp.org>
23700
23701         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23702         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23703         * modules/errno (configure.ac): Drop AC_REQUIRE.
23704         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23705         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23706
23707 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23708
23709         * modules/glob-tests: New module.
23710         * tests/test-glob.c: Add.
23711
23712 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23713
23714         * modules/fnmatch-tests: New module.
23715         * tests/test-fnmatch.c: Add.
23716
23717 2009-05-04  Eric Blake  <ebb9@byu.net>
23718
23719         maint: make the new no-submodule-changes rule VPATH-safe
23720         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23721
23722 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23723             Bruno Haible  <bruno@clisp.org>
23724
23725         acl: Fix infinite loop on FreeBSD.
23726         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23727         of return value from acl_get_entry.
23728         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23729         Likewise.
23730
23731 2009-05-03  Bruno Haible  <bruno@clisp.org>
23732
23733         * lib/acl-internal.h (acl_entries): Clarify return value.
23734         * lib/acl_entries.c (acl_entries): Likewise.
23735
23736 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23737
23738         Bug fix in acl module.
23739         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23740
23741 2009-05-03  Bruno Haible  <bruno@clisp.org>
23742
23743         Create gperf-generated file in the source dir, not in the build dir.
23744         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23745         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23746         * modules/unicase/locale-language (unicase/locale-languages.h):
23747         Likewise.
23748         * modules/unicase/special-casing (unicase/special-casing-table.h):
23749         Likewise.
23750         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23751         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23752         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23753         Reported by Ralf Wildenhues.
23754
23755 2009-05-03  Bruno Haible  <bruno@clisp.org>
23756
23757         * modules/fnmatch (Description, configure.ac): Taken from
23758         fnmatch-posix.
23759         * modules/fnmatch-posix: Turn into a symbolic reference to the
23760         'fnmatch' module, and deprecate.
23761         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23762
23763 2009-05-03  Bruno Haible  <bruno@clisp.org>
23764
23765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23766         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23767         Reported by Ralf Wildenhues.
23768
23769 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23770
23771         * m4/fnmatch.m4: Fix fnmatch re-define.
23772
23773 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23774
23775         priv-set: new module and tests; adapt write-any-file
23776         * lib/priv-set.c: New file.
23777         * lib/priv-set.h: New file.
23778         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23779         * lib/write-any-file.c: Simplify by using priv-set module.
23780         * m4/priv-set.m4: New file.
23781         * modules/priv-set: New file.
23782         * modules/unlinkdir: Add dependency on priv-set module.
23783         * modules/write-any-file: Likewise.
23784
23785         Tests for module 'priv-set'.
23786         * modules/priv-set-tests: New file.
23787         * tests/test-priv-set.c: New file.
23788
23789 2009-05-03  Jim Meyering  <meyering@redhat.com>
23790             Bruno Haible  <bruno@clisp.org>
23791
23792         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23793         use the converted UTF-8 variant of the name instead.
23794
23795 2009-05-03  Jim Meyering  <meyering@redhat.com>
23796
23797         tests: tighten some getdate tests
23798         * tests/test-getdate.c (main): Tighten tests: require equality,
23799         not just greater than.  Set TZ envvar to UTC0.
23800
23801 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23802
23803         getdate: correctly interpret "next monday" when run on a Monday
23804         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23805         that e.g., "next tues" (when run on a tuesday) results in a date
23806         that is one week in the future, and not today's date.
23807         I.e., add a week when the wday is the same as the current one.
23808         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23809         and earlier by Martin Bernreuther and Jan Minář.
23810         * tests/test-getdate.c (main): Check that "next DAY" is always in
23811         the future and that "last DAY" is always in the past.
23812
23813 2009-05-02  Jim Meyering  <meyering@redhat.com>
23814
23815         build: ensure that a release build fails when a submodule is unclean
23816         * top/maint.mk (no-submodule-changes): New rule.
23817         (alpha beta major): Depend on it.
23818
23819 2009-05-02  Bruno Haible  <bruno@clisp.org>
23820
23821         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23822         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23823         shell variable gl_fnmatch_required to detect which variant is
23824         requested.
23825         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23826         gl_FUNC_FNMATCH_POSIX.
23827         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23828         exclude fnmatch-posix.
23829
23830 2009-05-02  Bruno Haible  <bruno@clisp.org>
23831
23832         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23833         * modules/mbsrtowcs (License): Change to LGPLv2+.
23834         * modules/strnlen1 (License): Likewise.
23835         Reported by Simon Josefsson.
23836
23837 2009-05-02  Bruno Haible  <bruno@clisp.org>
23838
23839         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23840         "cross".
23841         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23842         gnulib-tool was called with option --source-base=lib.
23843
23844 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23845
23846         Use automake *-local hooks without commands, for extensibility.
23847         * modules/localcharset (Makefile.am): Rename install-exec-local
23848         rule to install-exec-localcharset, and make it a prerequisite of
23849         install-exec-local.  Likewise, rename the uninstall-local rule to
23850         uninstall-localcharset, and make it a prerequisite of the former.
23851
23852 2009-05-01  Bruno Haible  <bruno@clisp.org>
23853
23854         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23855         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23856         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23858         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23859         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23860         m4/locale-zh.m4, m4/codeset.m4.
23861
23862         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23863         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23864         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23865         m4/locale-zh.m4.
23866
23867         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23868         REPLACE_WCRTOMB if mbstate_t must be replaced.
23869         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23870         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23871
23872 2009-05-01  Bruno Haible  <bruno@clisp.org>
23873
23874         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23875         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23876         dngettext, dcngettext, textdomain, bindtextdomain,
23877         bind_textdomain_codeset): Undefine before redefining.
23878
23879 2009-04-30  Bruno Haible  <bruno@clisp.org>
23880
23881         Fix bug introduced on 2009-04-25.
23882         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23883         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23884         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23885         is defined.
23886         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23887         is defined.
23888         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23889         is defined.
23890         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23891
23892 2009-04-28  Bruno Haible  <bruno@clisp.org>
23893
23894         Comment tweaks.
23895         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23896         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23897         * lib/unicase.h (u*_casexfrm): Likewise.
23898         Reported by Paolo Bonzini.
23899
23900 2009-04-28  Bruno Haible  <bruno@clisp.org>
23901
23902         Fix a compilation error.
23903         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23904         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23905         Reported by Jim Meyering.
23906
23907 2009-04-27  Bruno Haible  <bruno@clisp.org>
23908
23909         New module 'libunistring'.
23910         * modules/libunistring: New file.
23911         * m4/libunistring.m4: New file.
23912         * MODULES.html.sh (Unicode string functions): Add it.
23913
23914 2009-04-27  Eric Blake  <ebb9@byu.net>
23915
23916         maint.mk: allow package-specific header to provide <config.h>
23917         * top/maint.mk (sc_require_config_h): New variable.
23918         (sc_require_config_h, sc_require_config_h_first): Use it.
23919
23920 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23921
23922         * top/maint.mk (sc_avoid_if_before_free): Except
23923         useless-if-before-free script.
23924
23925 2009-04-27  Eric Blake  <ebb9@byu.net>
23926
23927         maintainer-makefile: depend on all required helper scripts
23928         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23929         useless-if-before-free.
23930         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23931         version, rather than assuming gnulib checkout is available.
23932         Reported by Simen Josefsson.
23933
23934 2009-04-26  Bruno Haible  <bruno@clisp.org>
23935
23936         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23937         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23938         "../" or "..".
23939
23940 2009-04-26  Bruno Haible  <bruno@clisp.org>
23941
23942         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23943         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23944         AC_LIB_HAVE_LINKFLAGS.
23945
23946 2009-04-26  Bruno Haible  <bruno@clisp.org>
23947
23948         Simplify calling convention of u*_conv_from_encoding.
23949         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23950         u32_conv_from_encoding): Expect a resultbuf argument and return the
23951         result directly as a pointer.
23952         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23953         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23954         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23955         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23956         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23957         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23958         Update.
23959         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23960         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23961         * lib/vasnprintf.c (VASNPRINTF): Update.
23962         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23963         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23964         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23965         * NEWS: Mention the change.
23966
23967 2009-04-26  Bruno Haible  <bruno@clisp.org>
23968
23969         Simplify calling convention of u*_conv_to_encoding.
23970         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23971         u32_conv_to_encoding): Expect a resultbuf argument and return the
23972         result directly as a pointer.
23973         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23974         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23975         freeing scaled_offsets if mem_iconveha failed.
23976         * lib/unicase/u-casexfrm.h (FUNC): Update.
23977         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23978         * lib/vasnprintf.c (VASNPRINTF): Update.
23979         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23980         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23981         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23982         * NEWS: Mention the change.
23983
23984 2009-04-26  Bruno Haible  <bruno@clisp.org>
23985
23986         Avoid test failures on AIX and OSF/1.
23987         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23988         malloc(0).
23989         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23990         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23991         Likewise.
23992         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23993         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23994         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23995         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23996         * doc/posix-functions/malloc.texi: Document the portability problem
23997         related to malloc(0).
23998
23999 2009-04-26  Bruno Haible  <bruno@clisp.org>
24000
24001         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
24002         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
24003         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
24004
24005 2009-04-25  Bruno Haible  <bruno@clisp.org>
24006
24007         Avoid link error when creating a namespace clean library.
24008         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
24009         as macro with arguments if already defined as an alias.
24010         * lib/signbitf.c (gl_signbitf): Don't undefine.
24011         * lib/signbitd.c (gl_signbitd): Don't undefine.
24012         * lib/signbitl.c (gl_signbitl): Don't undefine.
24013
24014 2009-04-25  Jim Meyering  <meyering@redhat.com>
24015
24016         vc-list-files: fix another quoting bug
24017         * build-aux/vc-list-files: Avoid sed backslash expansion
24018         of pathological directory names.
24019
24020 2009-04-25  Eric Blake  <ebb9@byu.net>
24021
24022         vc-list-files: fix shell quoting error
24023         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
24024         timestamp.
24025
24026 2009-04-25  Jim Meyering  <meyering@redhat.com>
24027
24028         vc-list-files: restore lost functionality with subdir argument
24029         * build-aux/vc-list-files: When given a non-"." sub-directory
24030         argument, substitute the $dir/ prefix back onto each resulting name.
24031         Otherwise, coreutils' root_tests check would fail.
24032
24033 2009-04-24  Eric Blake  <ebb9@byu.net>
24034
24035         vc-list-files: ignore git symlinks
24036         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
24037         than ls-files, to ignore git symlinks.
24038
24039         maint.mk: import improvements from m4
24040         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
24041         (move_if_change): Delete unused macro.
24042         (news-date-check, vc-diff-check): Support VPATH builds.
24043         (announcement): Likewise.  Split --bootstrap-tools list...
24044         (boostrap-tools): ...into separate list, which can be overridden
24045         in cfg.mk.
24046         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
24047         requiring dependency on useless-if-before-free module.
24048         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
24049         Support VPATH builds.
24050
24051 2009-04-24  Jim Meyering  <meyering@redhat.com>
24052
24053         maint.mk: remove coreutils-specific rules and variables
24054         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
24055         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
24056         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
24057
24058         maint.mk: remove obsolete rule
24059         * top/maint.mk (rel-check): Remove rule.
24060         (WGET, WGETFLAGS): Remove now-unused variables.
24061
24062 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24063
24064         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
24065         consistency.
24066
24067         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
24068         '$(PATH_SEPARATOR)' instead of ':'.
24069
24070 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24071
24072         * lib/getopt1.c (main): Use 'const' for static array.
24073
24074 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24075
24076         * top/maint.mk: Sync with coreutils.
24077         * NEWS: Explain incompatibilities.
24078
24079 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24080             Bruno Haible  <bruno@clisp.org>
24081
24082         Fix cross-compilation results.
24083         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
24084         statement, as third argument of AC_TRY_RUN.
24085         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24086         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24087         Likewise.
24088         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24089         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24090         Likewise.
24091         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24092         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
24093         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
24094
24095 2009-04-20  Bruno Haible  <bruno@clisp.org>
24096
24097         Avoid test failure on mingw.
24098         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
24099
24100 2009-04-20  Bruno Haible  <bruno@clisp.org>
24101
24102         Avoid compilation error on mingw.
24103         * modules/localename-tests (Depends-on): Add locale.
24104
24105 2009-04-19  Bruno Haible  <bruno@clisp.org>
24106
24107         Support for building a shared library on Windows platforms.
24108         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
24109         (main): Test the presence of UNINORM_NFC here.
24110         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
24111         (main): Test the presence of UNINORM_NFD here.
24112         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
24113         (main): Test the presence of UNINORM_NFKC here.
24114         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
24115         (main): Test the presence of UNINORM_NFKD here.
24116
24117 2009-04-19  Bruno Haible  <bruno@clisp.org>
24118
24119         Avoid a compiler warning.
24120         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
24121         Change type of variable 'sequence'.
24122
24123 2009-04-19  Bruno Haible  <bruno@clisp.org>
24124
24125         * modules/configmake (Makefile.am): When the contents of configmake.h
24126         does not change, arrange to preserve its modification time.
24127
24128 2009-04-17  Simon Josefsson  <simon@josefsson.org>
24129
24130         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
24131         gettext domain.
24132
24133 2009-04-16  Jim Meyering  <meyering@redhat.com>
24134
24135         useless-if-before-free: improve conversion code
24136         * build-aux/useless-if-before-free: Adjust code-in-comment to match
24137         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
24138
24139 2009-04-14  Bruno Haible  <bruno@clisp.org>
24140
24141         * modules/fcntl (Depends-on): Add extensions.
24142         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
24143
24144 2009-04-12  Ben Pfaff  <blp@gnu.org>
24145
24146         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
24147         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
24148
24149 2009-03-20  Ben Pfaff  <blp@gnu.org>
24150
24151         Make rename replace existing destinations on Windows.
24152         * m4/rename.m4: Add test for Mingw.
24153         * lib/rename.c: Add rename replacement that uses MoveFileEx with
24154         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
24155         * doc/posix-functions/rename.texi: Document.
24156
24157 2009-04-10  Bruno Haible  <bruno@clisp.org>
24158
24159         New include file "iconveh.h".
24160         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
24161         * lib/striconveh.h: Include it.
24162         (enum iconv_ilseq_handler): Remove definition.
24163         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
24164         striconveh.h.
24165         * lib/striconveha.c: Include striconveh.h.
24166         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
24167         * modules/striconveh (Files): Add lib/iconveh.h.
24168         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
24169         lib/striconveh.h.
24170
24171 2009-04-10  Bruno Haible  <bruno@clisp.org>
24172
24173         * lib/uniconv.h: Update comment.
24174
24175 2009-04-10  Bruno Haible  <bruno@clisp.org>
24176
24177         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
24178         always.
24179         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24180         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24181         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24182         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
24183         "unistring-notinline.h", so that the function gets defined always.
24184         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24185         * lib/unistr/u8-uctomb.c: Likewise.
24186         * lib/unistr/u16-mbtouc.c: Likewise.
24187         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24188         * lib/unistr/u16-uctomb.c: Likewise.
24189         * lib/unistr/u32-mbtouc.c: Likewise.
24190         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24191         * lib/unistr/u32-uctomb.c: Likewise.
24192
24193 2009-04-10  Bruno Haible  <bruno@clisp.org>
24194
24195         Mark 'utime' obsolete.
24196         * modules/utime (Status, Notice): New sections.
24197         Suggested by Jim Meyering.
24198
24199         Fix cross-compile guess for utime test.
24200         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
24201         autoconf.
24202         * doc/posix-functions/utime.texi: Give more precisions.
24203         Reported by Jan <ipif@ymail.com>.
24204
24205 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
24206
24207         filevercmp: correct today's change
24208         * lib/filevercmp.c: Also handle coreutils' test inputs.
24209         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
24210
24211         Fix regression in 'filevercmp' module. Thanks Sven Joachim
24212         for reporting it.
24213         * lib/filevercmp.c: Special handle for "", "." and "..".
24214         * tests/test-filevercmp.c: Enlarge the set suite.
24215
24216 2009-04-07  Jim Meyering  <meyering@redhat.com>
24217
24218         useless-if-before-free: show how to remove braced useless free, too
24219         * build-aux/useless-if-before-free: still only in a comment, though.
24220
24221 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
24222
24223         maint.mk: import changes to syntax-check macros from coreutils
24224         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
24225         Use them in the relevant macros.
24226
24227 2009-04-06  Bruno Haible  <bruno@clisp.org>
24228
24229         Fix unportable use of bit-fields.
24230         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
24231         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
24232         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
24233
24234 2009-04-06  Bruno Haible  <bruno@clisp.org>
24235
24236         Avoid test failures on AIX and OSF/1.
24237         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
24238         that malloc(0) = NULL.
24239         * tests/unicase/test-u8-tolower.c (check): Likewise.
24240         * tests/unicase/test-u8-totitle.c (check): Likewise.
24241         * tests/unicase/test-u8-toupper.c (check): Likewise.
24242         * tests/unicase/test-u16-casefold.c (check): Likewise.
24243         * tests/unicase/test-u16-tolower.c (check): Likewise.
24244         * tests/unicase/test-u16-totitle.c (check): Likewise.
24245         * tests/unicase/test-u16-toupper.c (check): Likewise.
24246         * tests/unicase/test-u32-casefold.c (check): Likewise.
24247         * tests/unicase/test-u32-tolower.c (check): Likewise.
24248         * tests/unicase/test-u32-totitle.c (check): Likewise.
24249         * tests/unicase/test-u32-toupper.c (check): Likewise.
24250         * tests/uninorm/test-u8-nfc.c (check): Likewise.
24251         * tests/uninorm/test-u8-nfd.c (check): Likewise.
24252         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
24253         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
24254         * tests/uninorm/test-u16-nfc.c (check): Likewise.
24255         * tests/uninorm/test-u16-nfd.c (check): Likewise.
24256         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
24257         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
24258         * tests/uninorm/test-u32-nfc.c (check): Likewise.
24259         * tests/uninorm/test-u32-nfd.c (check): Likewise.
24260         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
24261         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
24262
24263 2009-04-05  Bruno Haible  <bruno@clisp.org>
24264
24265         Work around an autoconf limitation.
24266         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
24267         comment line if it would be longer than 3 KB.
24268
24269 2009-04-05  Bruno Haible  <bruno@clisp.org>
24270
24271         Avoid test failure with libiconv-1.13.
24272         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
24273         of the expected test results.
24274
24275 2009-04-05  Bruno Haible  <bruno@clisp.org>
24276
24277         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
24278         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
24279         that it should be installed.
24280
24281 2009-04-05  Bruno Haible  <bruno@clisp.org>
24282
24283         * gnulib-tool: New option --copy-file.
24284         (func_usage): Document it.
24285         (func_dest_tmpfilename): Moved out of func_import.
24286         (func_add_file, func_update_file): New functions, extracted from
24287         func_import.
24288         (func_import): Update.
24289
24290 2009-04-05  Karl Berry  <karl@gnu.org>
24291
24292         * README: prominently mention gnulib-tool.
24293         Rearrange sections so getting the code is near the top.
24294
24295 2009-04-05  Bruno Haible  <bruno@clisp.org>
24296
24297         * lib/unicase.h: Mention u*_cmp2.
24298         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24299         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
24300         * lib/unicase/ulc-casecmp.c: Likewise.
24301         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
24302         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
24303         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24304         unistr/u8-cmp.
24305         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
24306         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
24307         unistr/u16-cmp.
24308         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
24309         unistr/u32-cmp.
24310
24311         * lib/uninorm.h: Mention u*_cmp2.
24312         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24313         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
24314         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
24315         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
24316         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
24317         unistr/u8-cmp.
24318         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
24319         unistr/u16-cmp.
24320         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
24321         unistr/u32-cmp.
24322
24323         New module 'unistr/u32-cmp2'.
24324         * lib/unistr/u32-cmp2.c: New file.
24325         * modules/unistr/u32-cmp2: New file.
24326
24327         New module 'unistr/u16-cmp2'.
24328         * lib/unistr/u16-cmp2.c: New file.
24329         * modules/unistr/u16-cmp2: New file.
24330
24331         New module 'unistr/u8-cmp2'.
24332         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
24333         * lib/unistr/u8-cmp2.c: New file.
24334         * lib/unistr/u-cmp2.h: New file.
24335         * modules/unistr/u8-cmp2: New file.
24336
24337 2009-04-05  Bruno Haible  <bruno@clisp.org>
24338
24339         * lib/unictype.h (uc_property_is_valid): New macro.
24340         * tests/unictype/test-pr_byname.c (main): Use it.
24341
24342         * lib/unistr.h: Doc fixes.
24343         * lib/uniconv.h: Doc fixes.
24344         * lib/unictype.h: Doc fixes.
24345
24346 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24347
24348         Port coreutils 7.2 to Solaris 8.
24349
24350         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
24351         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
24352         for Solaris 8.  This is a bit of a hack, as it means it's the
24353         caller's responsibility to add -lnsl if needed, but most likely it
24354         won't be needed since only getaddrinfo uses this and getaddrinfo
24355         isn't needed on Solaris 8.
24356
24357         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
24358         problem to Solaris 8 encountered with coreutils 7.2, which
24359         resulted in a message "fnmatch.c:292: warning: passing argument 4
24360         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
24361         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
24362
24363 2009-04-03  Simon Josefsson  <simon@josefsson.org>
24364
24365         * m4/ld-version-script.m4: Add FIXME comment.
24366
24367 2009-04-02  Simon Josefsson  <simon@josefsson.org>
24368
24369         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
24370         SOVERSION variable.
24371
24372 2009-04-02  Bruno Haible  <bruno@clisp.org>
24373
24374         * Makefile (info, html, dvi, pdf): Combine the rules.
24375         Suggested by Jim Meyering.
24376
24377 2009-04-01  Bruno Haible  <bruno@clisp.org>
24378
24379         * Makefile (info, html, dvi, pdf): New targets.
24380         Reported by Reuben Thomas <rrt@sc3d.org>.
24381
24382 2009-04-01  Bruno Haible  <bruno@clisp.org>
24383
24384         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
24385         can be put into PATH.
24386         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
24387
24388 2009-04-01  Bruno Haible  <bruno@clisp.org>
24389
24390         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
24391
24392 2009-04-01  Bruno Haible  <bruno@clisp.org>
24393
24394         Rename module 'visibility'.
24395         * modules/lib-symbol-visibility: Renamed from modules/visibility.
24396         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
24397         * doc/gnulib.texi: Update.
24398         * MODULES.html.sh (Misc): Update.
24399         * NEWS: Mention the change.
24400
24401 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24402
24403         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
24404         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
24405         Eric Blake <ebb9@byu.net> for review.
24406         * MODULES.html.sh: Add lib-msvc-compat.
24407         * doc/gnulib.texi: Link to new section.
24408         * m4/ld-output-def.m4: New file.
24409         * doc/ld-output-def.texi: New file.
24410
24411 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24412
24413         Rename ld-version-script to lib-symbol-versions.  Suggested by
24414         Bruno Haible <bruno@clisp.org>.
24415         * modules/ld-version-script: Renamed to lib-symbol-versions.
24416         * doc/ld-version-script.texi: Fix module name.
24417         * MODULES.html.sh: Add lib-symbol-versions.
24418
24419 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24420
24421         * modules/u64-tests: New file.
24422         * tests/test-u64.c: New file.
24423
24424 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24425
24426         * MODULES.html.sh: Mention u64.
24427         * modules/u64: New module.
24428         * modules/crypto/sha512: Depend on u64 module instead of providing
24429         u64.h.
24430
24431 2009-03-27  Eric Blake  <ebb9@byu.net>
24432
24433         test-strerror: make debugging EAI_SYSTEM easier
24434         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24435         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24436         failure was EAI_SYSTEM.
24437
24438 2009-03-25  Bruno Haible  <bruno@clisp.org>
24439
24440         Fix a problem with --enable-relocatable on Solaris 7.
24441         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24442         since 2008-02-24.
24443
24444 2009-03-25  Eric Blake  <ebb9@byu.net>
24445
24446         test-sockets: avoid gcc warning
24447         * tests/test-sockets.c (main): Silence compiler warning.
24448
24449 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         New modules nproc, pthread, contributed by Glen Lenker.
24452
24453         * MODULES.html.sh: Add pthread, nproc.
24454         * lib/nproc.c: New file.
24455         * lib/nproc.h: New file.
24456         * lib/pthread.in.h: New file.
24457         * m4/pthread.m4: New file.
24458         * modules/nproc: New file.
24459         * modules/pthread: New file.
24460
24461 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24462
24463         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24464         New variable.
24465
24466 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24467
24468         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24469         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24470         * tests/test-filevercmp.c: Add tests for backup suffixes.
24471
24472 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24473
24474         * modules/stdlib (Depends-on): Add stdint, needed when defining
24475         struct random_data on, for example, HP-UX 10.20.  Reported by
24476         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24477
24478 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24479
24480         * lib/readline.c (readline): Call fflush on stdout after printing
24481         prompt.
24482
24483 2009-03-20  Bruno Haible  <bruno@clisp.org>
24484
24485         Remove dependency from 'close' module to -lws2_32 on native Windows.
24486         * lib/close-hook.h: New file.
24487         * lib/close-hook.c: New file.
24488         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24489         w32sock.h.
24490         (_gl_close_fd_maybe_socket): Remove function.
24491         (rpl_close): Invoke execute_all_close_hooks instead of
24492         _gl_close_fd_maybe_socket.
24493         * lib/sockets.c: Include close-hook.h, w32sock.h.
24494         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24495         (close_sockets_hook): New variable.
24496         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24497         (gl_sockets_cleanup): Unregister it.
24498         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24499         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24500         * modules/close-hook: New file.
24501         * modules/close (Files): Remove lib/w32sock.h.
24502         (Depends-on): Add close-hook.
24503         (Link): Remove section.
24504         * modules/sockets (Files): Add lib/w32sock.h.
24505         (Depends-on): Add close-hook.
24506         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24507         invocation.
24508         * NEWS: Mention that LIB_CLOSE is gone.
24509
24510 2009-03-23  Eric Blake  <ebb9@byu.net>
24511
24512         signal-tests: test previous patch
24513         * tests/test-signal.c: New file.
24514         * modules/signal-tests: Likewise.
24515
24516         signal.h: always support 'volatile sig_atomic_t'
24517         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24518         (gl_SIGNAL_H_DEFAULTS): Add a default.
24519         * modules/signal (Makefile.am): Substitute if needed.
24520         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24521         users can blindly add volatile.
24522         * doc/posix-headers/signal.texi (signal.h): Document it.
24523         Reported by Matthew Woehlke.
24524
24525 2009-03-23  Jim Meyering  <meyering@redhat.com>
24526
24527         pathmax: PATH_MAX: use pathconf only when available
24528         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24529         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24530         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24531         This avoids a link failure in a PSP cross-compilation environment
24532         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24533
24534         * lib/vasnprintf.c (divide): Fix typo in comment.
24535
24536 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24537
24538         * gnulib-tool (func_filter_filelist): Fix comment.
24539
24540 2009-03-20  Bruno Haible  <bruno@clisp.org>
24541
24542         Make sockets.h self-contained.
24543         * lib/sockets.c: Include sockets.h first.
24544         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24545
24546 2009-03-19  Eric Blake  <ebb9@byu.net>
24547
24548         doc: mention more functions added in cygwin 1.7.0
24549         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24550         addition.
24551         * doc/posix-functions/log2f.texi: Likewise.
24552
24553 2009-03-19  Jim Meyering  <meyering@redhat.com>
24554
24555         fsusage: avoid syntax error due to statement-before-declaration
24556         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24557         after all declarations.  Reported by Matthew Woehlke in
24558         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24559
24560 2009-03-18  Eric Blake  <ebb9@byu.net>
24561
24562         build-aux/compile: sync from automake
24563         * build-aux/compile: New file, from automake.
24564         * config/srclist.txt: Mention build-aux/compile.
24565
24566 2009-03-17  Bruno Haible  <bruno@clisp.org>
24567
24568         * lib/git-merge-changelog.c: Fix typo in comment.
24569         Reported by Reuben Thomas <rrt@sc3d.org>.
24570
24571 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24572
24573         * m4/regex.m4: update and improve help for
24574         --without-included-regex.
24575
24576 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24577
24578         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24579         failure on missing include files.
24580
24581 2009-03-17  Eric Blake  <ebb9@byu.net>
24582
24583         doc: mention more functions added in cygwin 1.7.0
24584         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24585         addition.
24586         * doc/posix-functions/fwscanf.texi: Likewise.
24587         * doc/posix-functions/swprintf.texi: Likewise.
24588         * doc/posix-functions/swscanf.texi: Likewise.
24589         * doc/posix-functions/vfwprintf.texi: Likewise.
24590         * doc/posix-functions/vfwscanf.texi: Likewise.
24591         * doc/posix-functions/vswprintf.texi: Likewise.
24592         * doc/posix-functions/vswscanf.texi: Likewise.
24593         * doc/posix-functions/vwprintf.texi: Likewise.
24594         * doc/posix-functions/vwscanf.texi: Likewise.
24595         * doc/posix-functions/wcscasecmp.texi: Likewise.
24596         * doc/posix-functions/wcsdup.texi: Likewise.
24597         * doc/posix-functions/wcsftime.texi: Likewise.
24598         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24599         * doc/posix-functions/wprintf.texi: Likewise.
24600         * doc/posix-functions/wscanf.texi: Likewise.
24601         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24602
24603 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24604
24605         maint.mk: really add $(AM_MAKEFLAGS)
24606         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24607         was inadvertently omitted in the last commit.
24608         Spotted by Bruno Haible.
24609
24610         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24611         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24612         $(AM_MAKEFLAGS)' rather than plain `make'.
24613
24614         gnulib-tool: execute $MAKE not make
24615         * gnulib-tool: Default $MAKE to 'make'.
24616         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24617         than make.  Initialize $MAKE in the do-autobuild script.
24618
24619         gnulib-tool: use $MAKE not make in generated files
24620         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24621         make, in generated files.  Initialize $MAKE in the do-autobuild
24622         script.
24623
24624         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24625
24626         GNUmakefile: disable parallelism only for multiple, recursive targets
24627         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24628         additions in the Makefile.
24629         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24630         by Automake.
24631         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24632         are listed on the command line and at least one of them is
24633         listed in $(ALL_RECURSIVE_TARGETS).
24634
24635 2009-03-14  Bruno Haible  <bruno@clisp.org>
24636
24637         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24638         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24639         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24640         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24641         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24642         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24643         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24644         unistr/u8-uctomb.
24645         * modules/unistr/u8-strchr (Depends-on): Likewise.
24646         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24647         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24648         unistr/u16-uctomb.
24649         * modules/unistr/u16-strchr (Depends-on): Likewise.
24650         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24651
24652 2009-03-12  Bruno Haible  <bruno@clisp.org>
24653
24654         Work around select() bug on Interix 3.5.
24655         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24656         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24657         * m4/select.m4: New file.
24658         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24659         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24660         * modules/select (Files): Add m4/select.m4.
24661         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24662         * modules/nanosleep (Depends-on): Add select.
24663         * modules/poll (Depends-on): Likewise.
24664         * doc/posix-functions/select.texi: Mention the Interix bug.
24665         Reported by Markus Duft <mduft@gentoo.org>.
24666
24667         * lib/select.c: Renamed from lib/winsock-select.c.
24668         * modules/select (Files): Add lib/select.c, remove
24669         lib/winsock-select.c.
24670         (configure.ac): Update.
24671
24672 2009-03-12  Jim Meyering  <meyering@redhat.com>
24673
24674         avoid gcc warnings about unused macro definitions
24675         * lib/readtokens.c (STREQ): Remove unused definition.
24676         * lib/xmalloc.c (SIZE_MAX): Likewise.
24677         * lib/openat-die.c (N_): Likewise.
24678         * lib/mountlist.c (SIZE_MAX): Remove definition.
24679         Instead, include <stdint.h>.
24680         * lib/readutmp.c: Likewise.
24681         * modules/readutmp (Depends-on): Add stdint.
24682         * modules/mountlist (Depends-on): Add stdint.
24683         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24684
24685 2009-03-10  Bruno Haible  <bruno@clisp.org>
24686
24687         Tests for module 'mbmemcasecoll'.
24688         * modules/mbmemcasecoll-tests: New file.
24689         * tests/test-mbmemcasecoll1.sh: New file.
24690         * tests/test-mbmemcasecoll2.sh: New file.
24691         * tests/test-mbmemcasecoll3.sh: New file.
24692         * tests/test-mbmemcasecoll.c: New file.
24693
24694         New module 'mbmemcasecoll'.
24695         * lib/mbmemcasecoll.h: New file.
24696         * lib/mbmemcasecoll.c: New file.
24697         * modules/mbmemcasecoll: New file.
24698
24699         * tests/test-mbmemcasecmp.h: New file, extracted from
24700         tests/test-mbmemcasecmp.c.
24701         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24702         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24703         (main): Update.
24704         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24705
24706 2009-03-09  Bruno Haible  <bruno@clisp.org>
24707
24708         Tests for module 'mbmemcasecmp'.
24709         * modules/mbmemcasecmp-tests: New file.
24710         * tests/test-mbmemcasecmp1.sh: New file.
24711         * tests/test-mbmemcasecmp2.sh: New file.
24712         * tests/test-mbmemcasecmp3.sh: New file.
24713         * tests/test-mbmemcasecmp.c: New file.
24714
24715         New module 'mbmemcasecmp'.
24716         * lib/mbmemcasecmp.h: New file.
24717         * lib/mbmemcasecmp.c: New file.
24718         * modules/mbmemcasecmp: New file.
24719
24720 2009-03-09  Bruno Haible  <bruno@clisp.org>
24721
24722         Tests for module 'unicase/ulc-casecoll'.
24723         * modules/unicase/ulc-casecoll-tests: New file.
24724         * tests/unicase/test-ulc-casecoll1.sh: New file.
24725         * tests/unicase/test-ulc-casecoll2.sh: New file.
24726         * tests/unicase/test-ulc-casecoll.c: New file.
24727
24728         New module 'unicase/ulc-casecoll'.
24729         * lib/unicase.h (ulc_casecoll): New declaration.
24730         * lib/unicase/ulc-casecoll.c: New file.
24731         * modules/unicase/ulc-casecoll: New file.
24732
24733         New module 'unicase/ulc-casexfrm'.
24734         * lib/unicase.h (ulc_casexfrm): New declaration.
24735         * lib/unicase/ulc-casexfrm.c: New file.
24736         * modules/unicase/ulc-casexfrm: New file.
24737
24738 2009-03-09  Bruno Haible  <bruno@clisp.org>
24739
24740         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24741         invocations.
24742
24743         * m4/mbscasecmp.m4: Remove file.
24744         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24745         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24746
24747         * m4/mbscasestr.m4: Remove file.
24748         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24749         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24750
24751         * m4/mbschr.m4: Remove file.
24752         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24753         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24754
24755         * m4/mbscspn.m4: Remove file.
24756         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24757         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24758
24759         * m4/mbslen.m4: Remove file.
24760         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24761         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24762
24763         * m4/mbsncasecmp.m4: Remove file.
24764         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24765         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24766
24767         * m4/mbsnlen.m4: Remove file.
24768         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24769         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24770
24771         * m4/mbspbrk.m4: Remove file.
24772         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24773         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24774
24775         * m4/mbspcasecmp.m4: Remove file.
24776         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24777         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24778
24779         * m4/mbsrchr.m4: Remove file.
24780         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24781         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24782
24783         * m4/mbssep.m4: Remove file.
24784         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24785         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24786
24787         * m4/mbsspn.m4: Remove file.
24788         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24789         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24790
24791         * m4/mbsstr.m4: Remove file.
24792         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24793         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24794
24795         * m4/mbstok_r.m4: Remove file.
24796         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24797         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24798
24799         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24800
24801         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24802         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24803
24804         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24805
24806 2009-03-08  Bruno Haible  <bruno@clisp.org>
24807
24808         Tests for module 'unicase/ulc-casecmp'.
24809         * modules/unicase/ulc-casecmp-tests: New file.
24810         * tests/unicase/test-ulc-casecmp1.sh: New file.
24811         * tests/unicase/test-ulc-casecmp2.sh: New file.
24812         * tests/unicase/test-ulc-casecmp.c: New file.
24813
24814         New module 'unicase/ulc-casecmp'.
24815         * lib/unicase.h (ulc_casecmp): New declaration.
24816         * lib/unicase/ulc-casecmp.c: New file.
24817         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24818         'const SRC_UNIT *'.
24819         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24820         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24821         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24822         * modules/unicase/ulc-casecmp: New file.
24823
24824         Tests for module 'unicase/u32-is-cased'.
24825         * modules/unicase/u32-is-cased-tests: New file.
24826         * tests/unicase/test-u32-is-cased.c: New file.
24827
24828         Tests for module 'unicase/u16-is-cased'.
24829         * modules/unicase/u16-is-cased-tests: New file.
24830         * tests/unicase/test-u16-is-cased.c: New file.
24831
24832         Tests for module 'unicase/u8-is-cased'.
24833         * modules/unicase/u8-is-cased-tests: New file.
24834         * tests/unicase/test-u8-is-cased.c: New file.
24835         * tests/unicase/test-is-cased.h: New file.
24836
24837         New module 'unicase/u32-is-cased'.
24838         * lib/unicase/u32-is-cased.c: New file.
24839         * modules/unicase/u32-is-cased: New file.
24840
24841         New module 'unicase/u16-is-cased'.
24842         * lib/unicase/u16-is-cased.c: New file.
24843         * modules/unicase/u16-is-cased: New file.
24844
24845         New module 'unicase/u8-is-cased'.
24846         * lib/unicase/u8-is-cased.c: New file.
24847         * lib/unicase/u-is-cased.h: New file.
24848         * modules/unicase/u8-is-cased: New file.
24849
24850         Tests for module 'unicase/u32-is-casefolded'.
24851         * modules/unicase/u32-is-casefolded-tests: New file.
24852         * tests/unicase/test-u32-is-casefolded.c: New file.
24853
24854         Tests for module 'unicase/u16-is-casefolded'.
24855         * modules/unicase/u16-is-casefolded-tests: New file.
24856         * tests/unicase/test-u16-is-casefolded.c: New file.
24857
24858         Tests for module 'unicase/u8-is-casefolded'.
24859         * modules/unicase/u8-is-casefolded-tests: New file.
24860         * tests/unicase/test-u8-is-casefolded.c: New file.
24861         * tests/unicase/test-is-casefolded.h: New file.
24862
24863         New module 'unicase/u32-is-casefolded'.
24864         * lib/unicase/u32-is-casefolded.c: New file.
24865         * modules/unicase/u32-is-casefolded: New file.
24866
24867         New module 'unicase/u16-is-casefolded'.
24868         * lib/unicase/u16-is-casefolded.c: New file.
24869         * modules/unicase/u16-is-casefolded: New file.
24870
24871         New module 'unicase/u8-is-casefolded'.
24872         * lib/unicase/u8-is-casefolded.c: New file.
24873         * modules/unicase/u8-is-casefolded: New file.
24874
24875         Tests for module 'unicase/u32-is-titlecase'.
24876         * modules/unicase/u32-is-titlecase-tests: New file.
24877         * tests/unicase/test-u32-is-titlecase.c: New file.
24878
24879         Tests for module 'unicase/u16-is-titlecase'.
24880         * modules/unicase/u16-is-titlecase-tests: New file.
24881         * tests/unicase/test-u16-is-titlecase.c: New file.
24882
24883         Tests for module 'unicase/u8-is-titlecase'.
24884         * modules/unicase/u8-is-titlecase-tests: New file.
24885         * tests/unicase/test-u8-is-titlecase.c: New file.
24886         * tests/unicase/test-is-titlecase.h: New file.
24887
24888         New module 'unicase/u32-is-titlecase'.
24889         * lib/unicase/u32-is-titlecase.c: New file.
24890         * modules/unicase/u32-is-titlecase: New file.
24891
24892         New module 'unicase/u16-is-titlecase'.
24893         * lib/unicase/u16-is-titlecase.c: New file.
24894         * modules/unicase/u16-is-titlecase: New file.
24895
24896         New module 'unicase/u8-is-titlecase'.
24897         * lib/unicase/u8-is-titlecase.c: New file.
24898         * modules/unicase/u8-is-titlecase: New file.
24899
24900         Tests for module 'unicase/u32-is-lowercase'.
24901         * modules/unicase/u32-is-lowercase-tests: New file.
24902         * tests/unicase/test-u32-is-lowercase.c: New file.
24903
24904         Tests for module 'unicase/u16-is-lowercase'.
24905         * modules/unicase/u16-is-lowercase-tests: New file.
24906         * tests/unicase/test-u16-is-lowercase.c: New file.
24907
24908         Tests for module 'unicase/u8-is-lowercase'.
24909         * modules/unicase/u8-is-lowercase-tests: New file.
24910         * tests/unicase/test-u8-is-lowercase.c: New file.
24911         * tests/unicase/test-is-lowercase.h: New file.
24912
24913         New module 'unicase/u32-is-lowercase'.
24914         * lib/unicase/u32-is-lowercase.c: New file.
24915         * modules/unicase/u32-is-lowercase: New file.
24916
24917         New module 'unicase/u16-is-lowercase'.
24918         * lib/unicase/u16-is-lowercase.c: New file.
24919         * modules/unicase/u16-is-lowercase: New file.
24920
24921         New module 'unicase/u8-is-lowercase'.
24922         * lib/unicase/u8-is-lowercase.c: New file.
24923         * modules/unicase/u8-is-lowercase: New file.
24924
24925         Tests for module 'unicase/u32-is-uppercase'.
24926         * modules/unicase/u32-is-uppercase-tests: New file.
24927         * tests/unicase/test-u32-is-uppercase.c: New file.
24928
24929         Tests for module 'unicase/u16-is-uppercase'.
24930         * modules/unicase/u16-is-uppercase-tests: New file.
24931         * tests/unicase/test-u16-is-uppercase.c: New file.
24932
24933         Tests for module 'unicase/u8-is-uppercase'.
24934         * modules/unicase/u8-is-uppercase-tests: New file.
24935         * tests/unicase/test-u8-is-uppercase.c: New file.
24936         * tests/unicase/test-is-uppercase.h: New file.
24937
24938         New module 'unicase/u32-is-uppercase'.
24939         * lib/unicase/u32-is-uppercase.c: New file.
24940         * modules/unicase/u32-is-uppercase: New file.
24941
24942         New module 'unicase/u16-is-uppercase'.
24943         * lib/unicase/u16-is-uppercase.c: New file.
24944         * modules/unicase/u16-is-uppercase: New file.
24945
24946         New module 'unicase/u8-is-uppercase'.
24947         * lib/unicase/u8-is-uppercase.c: New file.
24948         * modules/unicase/u8-is-uppercase: New file.
24949
24950         New module 'unicase/u32-is-invariant'.
24951         * lib/unicase/u32-is-invariant.c: New file.
24952         * modules/unicase/u32-is-invariant: New file.
24953
24954         New module 'unicase/u16-is-invariant'.
24955         * lib/unicase/u16-is-invariant.c: New file.
24956         * modules/unicase/u16-is-invariant: New file.
24957
24958         New module 'unicase/u8-is-invariant'.
24959         * lib/unicase/u8-is-invariant.c: New file.
24960         * lib/unicase/invariant.h: New file.
24961         * lib/unicase/u-is-invariant.h: New file.
24962         * modules/unicase/u8-is-invariant: New file.
24963
24964         Tests for module 'unicase/u32-casecoll'.
24965         * modules/unicase/u32-casecoll-tests: New file.
24966         * tests/unicase/test-u32-casecoll.c: New file.
24967
24968         Tests for module 'unicase/u16-casecoll'.
24969         * modules/unicase/u16-casecoll-tests: New file.
24970         * tests/unicase/test-u16-casecoll.c: New file.
24971
24972         Tests for module 'unicase/u8-casecoll'.
24973         * modules/unicase/u8-casecoll-tests: New file.
24974         * tests/unicase/test-u8-casecoll.c: New file.
24975
24976         New module 'unicase/u32-casecoll'.
24977         * lib/unicase/u32-casecoll.c: New file.
24978         * modules/unicase/u32-casecoll: New file.
24979
24980         New module 'unicase/u16-casecoll'.
24981         * lib/unicase/u16-casecoll.c: New file.
24982         * modules/unicase/u16-casecoll: New file.
24983
24984         New module 'unicase/u8-casecoll'.
24985         * lib/unicase/u8-casecoll.c: New file.
24986         * lib/unicase/u-casecoll.h: New file.
24987         * modules/unicase/u8-casecoll: New file.
24988
24989         New module 'unicase/u32-casexfrm'.
24990         * lib/unicase/u32-casexfrm.c: New file.
24991         * modules/unicase/u32-casexfrm: New file.
24992
24993         New module 'unicase/u16-casexfrm'.
24994         * lib/unicase/u16-casexfrm.c: New file.
24995         * modules/unicase/u16-casexfrm: New file.
24996
24997         New module 'unicase/u8-casexfrm'.
24998         * lib/unicase/u8-casexfrm.c: New file.
24999         * lib/unicase/u-casexfrm.h: New file.
25000         * modules/unicase/u8-casexfrm: New file.
25001
25002         Tests for module 'unicase/u32-casecmp'.
25003         * modules/unicase/u32-casecmp-tests: New file.
25004         * tests/unicase/test-u32-casecmp.c: New file.
25005
25006         Tests for module 'unicase/u16-casecmp'.
25007         * modules/unicase/u16-casecmp-tests: New file.
25008         * tests/unicase/test-u16-casecmp.c: New file.
25009
25010         Tests for module 'unicase/u8-casecmp'.
25011         * modules/unicase/u8-casecmp-tests: New file.
25012         * tests/unicase/test-u8-casecmp.c: New file.
25013         * tests/unicase/test-casecmp.h: New file.
25014
25015         New module 'unicase/u32-casecmp'.
25016         * lib/unicase/u32-casecmp.c: New file.
25017         * modules/unicase/u32-casecmp: New file.
25018
25019         New module 'unicase/u16-casecmp'.
25020         * lib/unicase/u16-casecmp.c: New file.
25021         * modules/unicase/u16-casecmp: New file.
25022
25023         New module 'unicase/u8-casecmp'.
25024         * lib/unicase/u8-casecmp.c: New file.
25025         * lib/unicase/u-casecmp.h: New file.
25026         * modules/unicase/u8-casecmp: New file.
25027
25028         Tests for module 'unicase/u32-casefold'.
25029         * modules/unicase/u32-casefold-tests: New file.
25030         * tests/unicase/test-u32-casefold.c: New file.
25031
25032         Tests for module 'unicase/u16-casefold'.
25033         * modules/unicase/u16-casefold-tests: New file.
25034         * tests/unicase/test-u16-casefold.c: New file.
25035
25036         Tests for module 'unicase/u8-casefold'.
25037         * modules/unicase/u8-casefold-tests: New file.
25038         * tests/unicase/test-u8-casefold.c: New file.
25039
25040         New module 'unicase/u32-casefold'.
25041         * lib/unicase/u32-casefold.c: New file.
25042         * modules/unicase/u32-casefold: New file.
25043
25044         New module 'unicase/u16-casefold'.
25045         * lib/unicase/u16-casefold.c: New file.
25046         * modules/unicase/u16-casefold: New file.
25047
25048         New module 'unicase/u8-casefold'.
25049         * lib/unicase/u8-casefold.c: New file.
25050         * lib/unicase/u-casefold.h: New file.
25051         * modules/unicase/u8-casefold: New file.
25052
25053         New module 'unicase/tocasefold'.
25054         * lib/unicase/casefold.h: New file.
25055         * lib/unicase/tocasefold.c: New file.
25056         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
25057         * modules/unicase/tocasefold: New file.
25058
25059         Tests for module 'unicase/u32-totitle'.
25060         * modules/unicase/u32-totitle-tests: New file.
25061         * tests/unicase/test-u32-totitle.c: New file.
25062
25063         Tests for module 'unicase/u16-totitle'.
25064         * modules/unicase/u16-totitle-tests: New file.
25065         * tests/unicase/test-u16-totitle.c: New file.
25066
25067         Tests for module 'unicase/u8-totitle'.
25068         * modules/unicase/u8-totitle-tests: New file.
25069         * tests/unicase/test-u8-totitle.c: New file.
25070
25071         New module 'unicase/u32-totitle'.
25072         * lib/unicase/u32-totitle.c: New file.
25073         * modules/unicase/u32-totitle: New file.
25074
25075         New module 'unicase/u16-totitle'.
25076         * lib/unicase/u16-totitle.c: New file.
25077         * modules/unicase/u16-totitle: New file.
25078
25079         New module 'unicase/u8-totitle'.
25080         * lib/unicase/u8-totitle.c: New file.
25081         * lib/unicase/u-totitle.h: New file.
25082         * modules/unicase/u8-totitle: New file.
25083
25084         Tests for module 'unicase/u32-tolower'.
25085         * modules/unicase/u32-tolower-tests: New file.
25086         * tests/unicase/test-u32-tolower.c: New file.
25087
25088         Tests for module 'unicase/u16-tolower'.
25089         * modules/unicase/u16-tolower-tests: New file.
25090         * tests/unicase/test-u16-tolower.c: New file.
25091
25092         Tests for module 'unicase/u8-tolower'.
25093         * modules/unicase/u8-tolower-tests: New file.
25094         * tests/unicase/test-u8-tolower.c: New file.
25095
25096         New module 'unicase/u32-tolower'.
25097         * lib/unicase/u32-tolower.c: New file.
25098         * modules/unicase/u32-tolower: New file.
25099
25100         New module 'unicase/u16-tolower'.
25101         * lib/unicase/u16-tolower.c: New file.
25102         * modules/unicase/u16-tolower: New file.
25103
25104         New module 'unicase/u8-tolower'.
25105         * lib/unicase/u8-tolower.c: New file.
25106         * modules/unicase/u8-tolower: New file.
25107
25108         Tests for module 'unicase/u32-toupper'.
25109         * modules/unicase/u32-toupper-tests: New file.
25110         * tests/unicase/test-u32-toupper.c: New file.
25111
25112         Tests for module 'unicase/u16-toupper'.
25113         * modules/unicase/u16-toupper-tests: New file.
25114         * tests/unicase/test-u16-toupper.c: New file.
25115
25116         Tests for module 'unicase/u8-toupper'.
25117         * modules/unicase/u8-toupper-tests: New file.
25118         * tests/unicase/test-u8-toupper.c: New file.
25119
25120         New module 'unicase/u32-toupper'.
25121         * lib/unicase/u32-toupper.c: New file.
25122         * modules/unicase/u32-toupper: New file.
25123
25124         New module 'unicase/u16-toupper'.
25125         * lib/unicase/u16-toupper.c: New file.
25126         * modules/unicase/u16-toupper: New file.
25127
25128         New module 'unicase/u8-toupper'.
25129         * lib/unicase/u8-toupper.c: New file.
25130         * modules/unicase/u8-toupper: New file.
25131
25132         New module 'unicase/u32-casemap'.
25133         * lib/unicase/u32-casemap.c: New file.
25134         * modules/unicase/u32-casemap: New file.
25135
25136         New module 'unicase/u16-casemap'.
25137         * lib/unicase/u16-casemap.c: New file.
25138         * modules/unicase/u16-casemap: New file.
25139
25140         New module 'unicase/u8-casemap'.
25141         * lib/unicase/unicasemap.h: New file.
25142         * lib/unicase/u8-casemap.c: New file.
25143         * lib/unicase/u-casemap.h: New file.
25144         * modules/unicase/u8-casemap: New file.
25145
25146         New module 'unicase/special-casing'.
25147         * lib/unicase/special-casing.h: New file.
25148         * lib/unicase/special-casing.c: New file.
25149         * lib/unicase/special-casing-table.gperf: New file, generated by
25150         gen-uni-tables.c.
25151         * modules/unicase/special-casing: New file.
25152
25153         Tests for module 'unicase/locale-language'.
25154         * modules/unicase/locale-language-tests: New file.
25155         * tests/unicase/test-locale-language.sh: New file.
25156         * tests/unicase/test-locale-language.c: New file.
25157
25158         New module 'unicase/locale-language'.
25159         * lib/unicase/locale-language.c: New file.
25160         * lib/unicase/locale-languages.gperf: New file.
25161         * modules/unicase/locale-language: New file.
25162
25163         Generate more tables for case conversion and case folding.
25164         * lib/gen-uni-tables.c (SCC_*): New enum items.
25165         (struct special_casing_rule): New type.
25166         (casing_rules, num_casing_rules, allocated_casing_rules): New
25167         variables.
25168         (add_casing_rule, fill_casing_rules): New functions.
25169         (struct casefold_rule): New type.
25170         (casefolding_rules, num_casefolding_rules,
25171         allocated_casefolding_rules): New variables.
25172         (fill_casefolding_rules): New function.
25173         (unicode_casefold): New variable.
25174         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
25175         sort_casing_rules, output_casing_rules): New functions.
25176         (main): Accept to more arguments: SpecialCasing.txt and
25177         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
25178         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
25179         Output mapping for casefolding.
25180
25181         * lib/unicase.h: Include stdbool.h, uninorm.h.
25182         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
25183         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
25184         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
25185         arguments.
25186         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
25187         resultp arguments.
25188         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
25189         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
25190         resultp arguments.
25191         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
25192         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
25193         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
25194         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
25195         declarations.
25196         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
25197
25198 2009-03-08  Bruno Haible  <bruno@clisp.org>
25199
25200         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25201         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
25202         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
25203         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25204
25205 2009-03-07  Bruno Haible  <bruno@clisp.org>
25206
25207         Adjust u*_normcmp, u*_normcoll API.
25208         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25209         u16_normcoll, u32_normcoll): Change failure conventions.
25210         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
25211         errno and return -1.
25212         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25213
25214 2009-03-07  Bruno Haible  <bruno@clisp.org>
25215
25216         Tests for module 'uninorm/u32-normcoll'.
25217         * modules/uninorm/u32-normcoll-tests: New file.
25218         * tests/uninorm/test-u32-normcoll.c: New file.
25219
25220         Tests for module 'uninorm/u16-normcoll'.
25221         * modules/uninorm/u16-normcoll-tests: New file.
25222         * tests/uninorm/test-u16-normcoll.c: New file.
25223
25224         Tests for module 'uninorm/u8-normcoll'.
25225         * modules/uninorm/u8-normcoll-tests: New file.
25226         * tests/uninorm/test-u8-normcoll.c: New file.
25227
25228 2009-03-07  Bruno Haible  <bruno@clisp.org>
25229
25230         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
25231         tests/uninorm/test-u32-normcmp.c.
25232         * tests/uninorm/test-u32-normcmp.c: Include it.
25233         (test_nonascii): New function, extracted from main. Add some more
25234         tests.
25235         (main): Invoke test_ascii and test_nonascii.
25236         * modules/uninorm/u32-normcmp-tests (Files): Add
25237         tests/uninorm/test-u32-normcmp.h.
25238         (Depends-on): Remove uninorm/u32-normcmp.
25239
25240         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
25241         tests/uninorm/test-u16-normcmp.c.
25242         * tests/uninorm/test-u16-normcmp.c: Include it.
25243         (test_nonascii): New function, extracted from main. Add some more
25244         tests.
25245         (main): Invoke test_ascii and test_nonascii.
25246         * modules/uninorm/u16-normcmp-tests (Files): Add
25247         tests/uninorm/test-u16-normcmp.h.
25248         (Depends-on): Remove uninorm/u16-normcmp.
25249
25250         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
25251         tests/uninorm/test-u8-normcmp.c.
25252         * tests/uninorm/test-u8-normcmp.c: Include it.
25253         (test_nonascii): New function, extracted from main. Add some more
25254         tests.
25255         (main): Invoke test_ascii and test_nonascii.
25256         * modules/uninorm/u8-normcmp-tests (Files): Add
25257         tests/uninorm/test-u8-normcmp.h.
25258         (Depends-on): Remove uninorm/u8-normcmp.
25259
25260 2009-03-07  Bruno Haible  <bruno@clisp.org>
25261
25262         New module 'uninorm/u32-normcoll'.
25263         * lib/uninorm/u32-normcoll.c: New file.
25264         * modules/uninorm/u32-normcoll: New file.
25265
25266         New module 'uninorm/u16-normcoll'.
25267         * lib/uninorm/u16-normcoll.c: New file.
25268         * modules/uninorm/u16-normcoll: New file.
25269
25270         New module 'uninorm/u8-normcoll'.
25271         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
25272         declarations.
25273         * lib/uninorm/u8-normcoll.c: New file.
25274         * lib/uninorm/u-normcoll.h: New file.
25275         * modules/uninorm/u8-normcoll: New file.
25276
25277         New module 'uninorm/u32-normxfrm'.
25278         * lib/uninorm/u32-normxfrm.c: New file.
25279         * modules/uninorm/u32-normxfrm: New file.
25280
25281         New module 'uninorm/u16-normxfrm'.
25282         * lib/uninorm/u16-normxfrm.c: New file.
25283         * modules/uninorm/u16-normxfrm: New file.
25284
25285         New module 'uninorm/u8-normxfrm'.
25286         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
25287         declarations.
25288         * lib/uninorm/u8-normxfrm.c: New file.
25289         * lib/uninorm/u-normxfrm.h: New file.
25290         * modules/uninorm/u8-normxfrm: New file.
25291
25292 2009-03-07  Bruno Haible  <bruno@clisp.org>
25293
25294         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
25295         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
25296         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
25297
25298 2009-03-07  Bruno Haible  <bruno@clisp.org>
25299
25300         New module 'memxfrm'.
25301         * lib/memxfrm.h: New file.
25302         * lib/memxfrm.c: New file.
25303         * modules/memxfrm: New file.
25304
25305 2009-03-07  Bruno Haible  <bruno@clisp.org>
25306
25307         New module 'memcmp2'.
25308         * lib/memcmp2.h: New file.
25309         * lib/memcmp2.c: New file.
25310         * modules/memcmp2: New file.
25311
25312 2009-03-07  Bruno Haible  <bruno@clisp.org>
25313
25314         Tests for module 'uninorm/decomposing-form'.
25315         * modules/uninorm/decomposing-form-tests: New file.
25316         * tests/uninorm/test-decomposing-form.c: New file.
25317
25318         New module 'uninorm/decomposing-form'.
25319         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
25320         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
25321         Add 'decomposing_variant' field.
25322         * lib/uninorm/decomposing-form.c: New file.
25323         * lib/uninorm/nfc.c (uninorm_nfc): Update.
25324         * lib/uninorm/nfd.c (uninorm_nfd): Update.
25325         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25326         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25327         * modules/uninorm/decomposing-form: New file.
25328         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
25329         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
25330
25331 2009-03-07  Bruno Haible  <bruno@clisp.org>
25332
25333         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
25334         strings.
25335
25336 2009-03-06  Bruno Haible  <bruno@clisp.org>
25337
25338         Tests for module 'uninorm/u32-normcmp'.
25339         * tests/uninorm/test-u32-normcmp.c: New file.
25340         * modules/uninorm/u32-normcmp-tests: New file.
25341
25342         Tests for module 'uninorm/u16-normcmp'.
25343         * tests/uninorm/test-u16-normcmp.c: New file.
25344         * modules/uninorm/u16-normcmp-tests: New file.
25345
25346         Tests for module 'uninorm/u8-normcmp'.
25347         * tests/uninorm/test-u8-normcmp.c: New file.
25348         * modules/uninorm/u8-normcmp-tests: New file.
25349
25350         New module 'uninorm/u32-normcmp'.
25351         * lib/uninorm/u32-normcmp.c: New file.
25352         * modules/uninorm/u32-normcmp: New file.
25353
25354         New module 'uninorm/u16-normcmp'.
25355         * lib/uninorm/u16-normcmp.c: New file.
25356         * modules/uninorm/u16-normcmp: New file.
25357
25358         New module 'uninorm/u8-normcmp'.
25359         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
25360         declarations.
25361         * lib/uninorm/u8-normcmp.c: New file.
25362         * lib/uninorm/u-normcmp.h: New file.
25363         * modules/uninorm/u8-normcmp: New file.
25364
25365 2009-03-06  Bruno Haible  <bruno@clisp.org>
25366
25367         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
25368         Reported by Eric Blake.
25369
25370 2009-03-06  Eric Blake  <ebb9@byu.net>
25371             Bruno Haible  <bruno@clisp.org>
25372
25373         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
25374         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
25375         condition.
25376         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25377         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
25378         condition.
25379         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25380
25381 2009-03-06  Eric Blake  <ebb9@byu.net>
25382
25383         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
25384         to avoid compiler warnings.
25385         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
25386
25387 2009-03-05  Bruno Haible  <bruno@clisp.org>
25388
25389         * tests/test-ftell.c (main): Disable test beyond end of file on
25390         FreeMiNT.
25391         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25392
25393 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
25394
25395         * lib/filevercmp.c: Move hidden files up in ordering.
25396         * tests/test-filevercmp.c: Add tests for hidden files.
25397
25398 2009-03-04  Bruno Haible  <bruno@clisp.org>
25399
25400         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
25401         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
25402         AM_CFLAGS.
25403         Reported by Simon Josefsson.
25404
25405 2009-03-03  Bruno Haible  <bruno@clisp.org>
25406
25407         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25408         Reported by Simon Josefsson.
25409
25410         * doc/ld-version-script.texi: Update node reference.
25411
25412 2009-03-03  Bruno Haible  <bruno@clisp.org>
25413
25414         * modules/visibility (License): Change to 'unlimited'.
25415         Suggested by Simon Josefsson.
25416
25417 2009-03-03  Jim Meyering  <meyering@redhat.com>
25418
25419         unlinkdir: cannot_unlink_dir may modify process state
25420         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25421         it's neither thread-safe nor appropriate for use in a library.
25422
25423 2009-03-03  Eric Blake  <ebb9@byu.net>
25424
25425         test-closein: silence test under Darwin
25426         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25427         care if it dies from EPIPE or EBADF.
25428
25429 2009-03-03  Bruno Haible  <bruno@clisp.org>
25430
25431         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25432         earlier.
25433         * doc/visibility.texi: Fix @node and @section.
25434
25435 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25436
25437         * doc/gnulib.texi: Link to sections for ld version script and
25438         visibility.
25439         * doc/visibility.texi: Add @node and @section.
25440         * modules/ld-version-script: New module.
25441         * m4/ld-version-script.m4: New file.
25442         * doc/ld-version-script.texi: New file.
25443
25444 2009-03-02  David Lutterkort  <lutter@redhat.com>
25445
25446         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25447         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25448
25449 2009-03-02  Bruno Haible  <bruno@clisp.org>
25450
25451         * doc/visibility.texi: Mention libtool's -export-symbols option.
25452
25453 2009-03-02  Jim Meyering  <meyering@redhat.com>
25454
25455         announce-gen: new option: --no-print-checksums
25456         * build-aux/announce-gen (usage): Describe it.
25457         (print_checksums): Print a newline here, not in the [*] footnote.
25458         (main): Honor it.
25459
25460 2009-03-01  Bruno Haible  <bruno@clisp.org>
25461
25462         Use socklen_t in the native Windows replacements prototypes.
25463         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25464         instead of 'int'.
25465         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25466         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25467         * modules/getsockopt (Depends-on): Add socklen.
25468         * modules/setsockopt (Depends-on): Add socklen.
25469
25470 2009-03-01  Bruno Haible  <bruno@clisp.org>
25471
25472         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25473         least 4.2.
25474
25475 2009-03-01  Eric Blake  <ebb9@byu.net>
25476             Bruno Haible  <bruno@clisp.org>
25477
25478         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25479         error messages.
25480         * lib/wait-process.c (wait_subprocess): Omit error message about
25481         deadly signal sent to the child of termsigp != NULL.
25482
25483 2009-03-01  Eric Blake  <ebb9@byu.net>
25484
25485         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25486
25487 2009-03-01  Bruno Haible  <bruno@clisp.org>
25488
25489         Avoid a gcc warning.
25490         * tests/test-sched.c (b): Make global.
25491         Reported by Eric Blake.
25492
25493 2009-01-19  Martin Lambers  <marlam@marlam.de>
25494
25495         Provide POSIX semantics for socket timeout options on W32.
25496         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25497         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25498         * modules/setsockopt: Depend on sys_time module for struct timeval.
25499         * modules/getsockopt: Depend on sys_time module for struct timeval.
25500
25501 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25502
25503         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25504         __USE_GNU, for consistency with netdb.in.h.
25505         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25506
25507 2009-03-01  Bruno Haible  <bruno@clisp.org>
25508
25509         More support for FreeMiNT.
25510         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25511         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25512
25513 2009-03-01  Bruno Haible  <bruno@clisp.org>
25514
25515         More support for FreeMiNT.
25516         * lib/fpurge.c (fpurge): Correct last commit.
25517         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25518
25519 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25520
25521         Fix unportable awk script in vc-list-files.
25522         * build-aux/vc-list-files: In the replacement awk script, use
25523         substr with a second argument of 1, not zero.
25524         Report by Simon Josefsson.
25525
25526 2009-02-28  Bruno Haible  <bruno@clisp.org>
25527
25528         More support for FreeMiNT.
25529         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25530         to FreeMiNT today.
25531         * lib/fwriting.c (fwriting): Likewise.
25532         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25533
25534 2009-02-28  Bruno Haible  <bruno@clisp.org>
25535
25536         * tests/test-freadseek.c (main): Disable test beyond end of file on
25537         FreeMiNT.
25538         * tests/test-ftello.c (main): Likewise.
25539         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25540
25541 2009-02-28  Bruno Haible  <bruno@clisp.org>
25542
25543         Add tentative support for FreeMiNT.
25544         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25545         * lib/fpurge.c (fpurge): Likewise.
25546         * lib/freadable.c (freadable): Likewise.
25547         * lib/freading.c (freading): Likewise.
25548         * lib/freadptr.c (freadptr): Likewise.
25549         * lib/freadseek.c (freadptrinc): Likewise.
25550         * lib/fseeko.c (rpl_fseeko): Likewise.
25551         * lib/fseterr.c (fseterr): Likewise.
25552         * lib/fwritable.c (fwritable): Likewise.
25553         * lib/fwriting.c (fwriting): Likewise.
25554         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25555         Hourihane.
25556         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25557
25558 2009-02-28  Bruno Haible  <bruno@clisp.org>
25559
25560         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25561         SIGCHLD.
25562         Reported by Jim Meyering.
25563
25564 2009-02-28  Bruno Haible  <bruno@clisp.org>
25565
25566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25567         Mention the results of these tests on various platforms.
25568         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25569         order.
25570         * doc/posix-functions/printf.texi: Likewise.
25571         * doc/posix-functions/snprintf.texi: Likewise.
25572         * doc/posix-functions/sprintf.texi: Likewise.
25573         * doc/posix-functions/vfprintf.texi: Likewise.
25574         * doc/posix-functions/vprintf.texi: Likewise.
25575         * doc/posix-functions/vsnprintf.texi: Likewise.
25576         * doc/posix-functions/vsprintf.texi: Likewise.
25577         * doc/glibc-functions/obstack_printf.texi: Likewise.
25578         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25579
25580 2009-02-28  Bruno Haible  <bruno@clisp.org>
25581
25582         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25583         Reported by Loïc Minier <lool@dooz.org>.
25584
25585 2009-02-27  Bruno Haible  <bruno@clisp.org>
25586
25587         * gnulib-tool (func_import): Make the sed expression used to create the
25588         sed script for updating the .gitignore file POSIX compliant.
25589         Reported by Eric Blake.
25590
25591 2009-02-27  Bruno Haible  <bruno@clisp.org>
25592
25593         * gnulib-tool (sed): Don't alias as "sed --posix".
25594         Reported by Eric Blake.
25595
25596 2009-02-27  Bruno Haible  <bruno@clisp.org>
25597
25598         Avoid test link errors.
25599         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25600         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25601         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25602         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25604
25605 2009-02-27  Bruno Haible  <bruno@clisp.org>
25606
25607         Avoid spurious "(cached)" in configure output.
25608         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25609         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25610         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25611         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25612         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25613         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25614         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25615         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25616         Reported by Eric Blake.
25617
25618 2009-02-27  Eric Blake  <ebb9@byu.net>
25619
25620         printf: fix regression in previous patch
25621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25622
25623 2009-02-27  Bruno Haible  <bruno@clisp.org>
25624
25625         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25626         value.
25627         * lib/stdint.in.h: Likewise.
25628         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25629
25630 2009-02-27  Eric Blake  <ebb9@byu.net>
25631
25632         doc: mention more functions added in cygwin 1.7.0
25633         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25634         addition.
25635         * doc/posix-functions/open_wmemstream.texi: Likewise.
25636         * doc/posix-functions/wcsnlen.texi: Likewise.
25637         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25638         * doc/posix-functions/wcstod.texi: Likewise.
25639         * doc/posix-functions/wcstof.texi: Likewise.
25640         * doc/posix-functions/wcstoimax.texi: Likewise.
25641         * doc/posix-functions/wcstok.texi: Likewise.
25642         * doc/posix-functions/wcstoumax.texi: Likewise.
25643
25644         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25646         * doc/posix-functions/fprintf.texi: Update.
25647         * doc/posix-functions/printf.texi: Update.
25648         * doc/posix-functions/snprintf.texi: Update.
25649         * doc/posix-functions/sprintf.texi: Update.
25650         * doc/posix-functions/vfprintf.texi: Update.
25651         * doc/posix-functions/vprintf.texi: Update.
25652         * doc/posix-functions/vsnprintf.texi: Update.
25653         * doc/posix-functions/vsprintf.texi: Update.
25654         * doc/glibc-functions/obstack_printf.texi: Update.
25655         * doc/glibc-functions/obstack_vprintf.texi: Update.
25656
25657 2009-02-26  Eric Blake  <ebb9@byu.net>
25658
25659         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25660         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25661         compilation bug by using runtime conversion.
25662         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25663         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25664         * modules/ceill-tests (Files): Use nan.h.
25665         * modules/floorl-tests (Files): Likewise.
25666         * modules/frexpl-tests (Files): Likewise.
25667         * modules/isnanl-tests (Files): Likewise.
25668         * modules/ldexpl-tests (Files): Likewise.
25669         * modules/roundl-tests (Files): Likewise.
25670         * modules/truncl-tests (Files): Likewise.
25671         * tests/test-ceill.c (main): Use a working NaN.
25672         * tests/test-floorl.c (main): Likewise.
25673         * tests/test-frexpl.c (main): Likewise.
25674         * tests/test-isnan.c (test_long_double): Likewise.
25675         * tests/test-isnanl.h (main): Likewise.
25676         * tests/test-ldexpl.h (main): Likewise.
25677         * tests/test-roundl.h (main): Likewise.
25678         * tests/test-truncl.h (main): Likewise.
25679         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25680
25681 2009-02-26  Eric Blake  <ebb9@byu.net>
25682             Bruno Haible  <bruno@clisp.org>
25683
25684         Work around a *printf bug with %ls on Solaris.
25685         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25686         precision is specified, sprintf stops converting the wide string
25687         argument when the number of bytes that have been produced by this
25688         conversion equals or exceeds the precision.
25689         * doc/posix-functions/fprintf.texi: Update.
25690         * doc/posix-functions/printf.texi: Update.
25691         * doc/posix-functions/snprintf.texi: Update.
25692         * doc/posix-functions/sprintf.texi: Update.
25693         * doc/posix-functions/vfprintf.texi: Update.
25694         * doc/posix-functions/vprintf.texi: Update.
25695         * doc/posix-functions/vsnprintf.texi: Update.
25696         * doc/posix-functions/vsprintf.texi: Update.
25697         * doc/glibc-functions/obstack_printf.texi: Update.
25698         * doc/glibc-functions/obstack_vprintf.texi: Update.
25699
25700 2009-02-26  Eric Blake  <ebb9@byu.net>
25701
25702         stdlib: favor compiler check of random.h
25703         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25704         to avoid an ObjC random.h installed by Swarm.
25705
25706 2009-02-26  Bruno Haible  <bruno@clisp.org>
25707
25708         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25709         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25710         Reported by Gary V. Vaughan <gary@gnu.org>.
25711
25712 2009-02-26  Bruno Haible  <bruno@clisp.org>
25713
25714         Fix *printf behaviour regarding the %ls directive.
25715         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25716         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25717         NEED_PRINTF_DIRECTIVE_LS.
25718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25719         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25720         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25721         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25722         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25723         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25724         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25726         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25727         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25728         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25729         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25730         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25732         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25733         * doc/posix-functions/fprintf.texi: Update.
25734         * doc/posix-functions/printf.texi: Update.
25735         * doc/posix-functions/snprintf.texi: Update.
25736         * doc/posix-functions/sprintf.texi: Update.
25737         * doc/posix-functions/vfprintf.texi: Update.
25738         * doc/posix-functions/vprintf.texi: Update.
25739         * doc/posix-functions/vsnprintf.texi: Update.
25740         * doc/posix-functions/vsprintf.texi: Update.
25741         * doc/glibc-functions/obstack_printf.texi: Update.
25742         * doc/glibc-functions/obstack_vprintf.texi: Update.
25743         Reported by Eric Blake.
25744
25745 2009-02-25  Bruno Haible  <bruno@clisp.org>
25746
25747         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25748         with known value.
25749         Reported by Gary V. Vaughan <gary@gnu.org>.
25750
25751 2009-02-25  Bruno Haible  <bruno@clisp.org>
25752
25753         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25754         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25755         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25756         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25757         Reported by Gary V. Vaughan <gary@gnu.org>.
25758
25759 2009-02-25  Bruno Haible  <bruno@clisp.org>
25760
25761         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25762         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25763         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25764         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25765         Reported by Gary V. Vaughan <gary@gnu.org>.
25766
25767 2009-02-25  Eric Blake  <ebb9@byu.net>
25768
25769         tests: skip fseek/ftell tests if ungetc is broken
25770         * m4/ungetc.m4: New file.
25771         * modules/fseek-tests: Split test, so ungetc dependency is
25772         separate from rest of test.
25773         * modules/fseeko-tests: Likewise.
25774         * modules/ftell-tests: Likewise.
25775         * modules/ftello-tests: Likewise.
25776         * tests/test-fseek.c (main): Isolate ungetc dependency.
25777         * tests/test-fseeko.c (main): Likewise.
25778         * tests/test-ftell.c (main): Likewise.
25779         * tests/test-ftello.c (main): Likewise.
25780         * tests/test-fseek2.sh: New file.
25781         * tests/test-fseeko2.sh: Likewise.
25782         * tests/test-ftell2.sh: Likewise.
25783         * tests/test-ftello2.sh: Likewise.
25784
25785 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
25786
25787         test-getaddrinfo: fix usage of skip return code 77
25788         * tests/test-gettaddrinfo.c: Return skip code 77 only
25789         for first occurance of skip (4x77 is not 77)
25790
25791 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25792
25793         strtod: avoid C99 decl-after-statement
25794         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25795
25796 2009-02-24  Eric Blake  <ebb9@byu.net>
25797
25798         strtod: detect HP-UX 11.31 bug
25799         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25800         Reported by Gary V. Vaughan.
25801
25802 2009-02-23  Bruno Haible  <bruno@clisp.org>
25803
25804         Fix invalid read past end of memory block.
25805         * lib/vasnprintf.c (DCHAR_SET): Define.
25806         (local_wcslen): Define only when needed.
25807         (local_strnlen, local_wcsnlen): New functions.
25808         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25809         directives that involve a conversion ourselves.
25810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25811         wcsnlen, mbrtowc, wcrtomb.
25812         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25813         * tests/test-vasprintf-posix.c (test_function): Likewise.
25814         * tests/test-snprintf-posix.h (test_function): Likewise.
25815         * tests/test-sprintf-posix.h (test_function): Likewise.
25816         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25817
25818 2009-02-22  Bruno Haible  <bruno@clisp.org>
25819
25820         Implement new clarified decomposition of Hangul syllables.
25821         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25822         of type LTV, return only a pairwise decomposition.
25823         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25824         Likewise.
25825         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25826         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25827         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25828
25829 2009-02-22  Bruno Haible  <bruno@clisp.org>
25830
25831         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25832         zero-length results and shrink excess allocated memory.
25833         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25834         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25835         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25836         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25837         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25838         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25839         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25840         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25841         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25842         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25843         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25844         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25845
25846 2009-02-21  Bruno Haible  <bruno@clisp.org>
25847
25848         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25849         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25850         spaces after a period. Put a space between a macro name and its
25851         argument list. Trivial rewordings.
25852         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25853         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25854         (main): Return 0 explicitly.
25855
25856 2009-02-21  Bruno Haible  <bruno@clisp.org>
25857
25858         Tests for module 'uninorm/filter'.
25859         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25860         * modules/uninorm/filter-tests: New file.
25861
25862         New module 'uninorm/filter'.
25863         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25864         uninorm_filter_flush, uninorm_filter_free): New declarations.
25865         * lib/uninorm/uninorm-filter.c: New file.
25866         * modules/uninorm/filter: New file.
25867
25868 2009-02-21  Bruno Haible  <bruno@clisp.org>
25869
25870         Tests for module 'uninorm/nfkc'.
25871         * tests/uninorm/test-nfkc.c: New file.
25872         * tests/uninorm/test-u8-nfkc.c: New file.
25873         * tests/uninorm/test-u16-nfkc.c: New file.
25874         * tests/uninorm/test-u32-nfkc.c: New file.
25875         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25876         * tests/uninorm/test-u32-nfkc-big.c: New file.
25877         * modules/uninorm/nfkc-tests: New file.
25878
25879         New module 'uninorm/nfkc'.
25880         * lib/uninorm/nfkc.c: New file.
25881         * modules/uninorm/nfkc: New file.
25882
25883         Tests for module 'uninorm/nfkd'.
25884         * tests/uninorm/test-nfkd.c: New file.
25885         * tests/uninorm/test-u8-nfkd.c: New file.
25886         * tests/uninorm/test-u16-nfkd.c: New file.
25887         * tests/uninorm/test-u32-nfkd.c: New file.
25888         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25889         * tests/uninorm/test-u32-nfkd-big.c: New file.
25890         * modules/uninorm/nfkd-tests: New file.
25891
25892         New module 'uninorm/nfkd'.
25893         * lib/uninorm/nfkd.c: New file.
25894         * modules/uninorm/nfkd: New file.
25895
25896         Tests for module 'uninorm/nfc'.
25897         * tests/uninorm/test-nfc.c: New file.
25898         * tests/uninorm/test-u8-nfc.c: New file.
25899         * tests/uninorm/test-u16-nfc.c: New file.
25900         * tests/uninorm/test-u32-nfc.c: New file.
25901         * tests/uninorm/test-u32-nfc-big.sh: New file.
25902         * tests/uninorm/test-u32-nfc-big.c: New file.
25903         * modules/uninorm/nfc-tests: New file.
25904
25905         New module 'uninorm/nfc'.
25906         * lib/uninorm/nfc.c: New file.
25907         * modules/uninorm/nfc: New file.
25908
25909         Tests for module 'uninorm/nfd'.
25910         * tests/uninorm/test-nfd.c: New file.
25911         * tests/uninorm/test-u8-nfd.c: New file.
25912         * tests/uninorm/test-u16-nfd.c: New file.
25913         * tests/uninorm/test-u32-nfd.c: New file.
25914         * tests/uninorm/test-u32-nfd-big.sh: New file.
25915         * tests/uninorm/test-u32-nfd-big.c: New file.
25916         * tests/uninorm/test-u32-normalize-big.h: New file.
25917         * tests/uninorm/test-u32-normalize-big.c: New file.
25918         * tests/uninorm/NormalizationTest.txt: New file, created from
25919         Unicode 5.1.0 NormalizationTest.txt.
25920         * modules/uninorm/nfd-tests: New file.
25921
25922         New module 'uninorm/nfd'.
25923         * lib/uninorm/nfd.c: New file.
25924         * modules/uninorm/nfd: New file.
25925
25926         New module 'uninorm/u32-normalize'.
25927         * lib/uninorm/u32-normalize.c: New file.
25928         * modules/uninorm/u32-normalize: New file.
25929
25930         New module 'uninorm/u16-normalize'.
25931         * lib/uninorm/u16-normalize.c: New file.
25932         * modules/uninorm/u16-normalize: New file.
25933
25934         New module 'uninorm/u8-normalize'.
25935         * lib/uninorm/u8-normalize.c: New file.
25936         * lib/uninorm/normalize-internal.h: New file.
25937         * lib/uninorm/u-normalize-internal.h: New file.
25938         * modules/uninorm/u8-normalize: New file.
25939
25940         New module 'uninorm/decompose-internal'.
25941         * lib/uninorm/decompose-internal.c: New file.
25942         * modules/uninorm/decompose-internal: New file.
25943
25944         Tests for module 'uninorm/composition'.
25945         * tests/uninorm/test-composition.c: New file.
25946         * modules/uninorm/composition-tests: New file.
25947
25948         New module 'uninorm/composition'.
25949         * lib/uninorm/composition.c: New file.
25950         * lib/uninorm/composition-table.gperf: New file, generated by
25951         gen-uni-tables.
25952         * modules/uninorm/composition: New file.
25953
25954         Tests for module 'uninorm/compat-decomposition'.
25955         * tests/uninorm/test-compat-decomposition.c: New file.
25956         * modules/uninorm/compat-decomposition-tests: New file.
25957
25958         New module 'uninorm/compat-decomposition'.
25959         * lib/uninorm/decompose-internal.h: New file.
25960         * lib/uninorm/compat-decomposition.c: New file.
25961         * modules/uninorm/compat-decomposition: New file.
25962
25963         Tests for module 'uninorm/canonical-decomposition'.
25964         * tests/uninorm/test-canonical-decomposition.c: New file.
25965         * modules/uninorm/canonical-decomposition-tests: New file.
25966
25967         New module 'uninorm/canonical-decomposition'.
25968         * lib/uninorm/canonical-decomposition.c: New file.
25969         * modules/uninorm/canonical-decomposition: New file.
25970
25971         Tests for module 'uninorm/decomposition'.
25972         * tests/uninorm/test-decomposition.c: New file.
25973         * modules/uninorm/decomposition-tests: New file.
25974
25975         New module 'uninorm/decomposition'.
25976         * lib/uninorm/decomposition.c: New file.
25977         * modules/uninorm/decomposition: New file.
25978
25979         New module 'uninorm/decomposition-table'.
25980         * lib/uninorm/decomposition-table.h: New file.
25981         * lib/uninorm/decomposition-table.c: New file.
25982         * lib/uninorm/decomposition-table1.h: New file, generated by
25983         gen-uni-tables.
25984         * lib/uninorm/decomposition-table2.h: New file, generated by
25985         gen-uni-tables.
25986         * modules/uninorm/decomposition-table: New file.
25987
25988         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25989         (UC_DECOMP_*): New enumeration items.
25990         (get_decomposition): New function.
25991         (struct decomp_table): New type.
25992         (output_decomposition, output_decomposition_tables): New functions.
25993         (unicode_composition_exclusions): New variable.
25994         (fill_composition_exclusions, debug_output_composition_tables): New
25995         functions.
25996         (main): Accept one more argument. Invoke fill_composition_exclusions.
25997         Output decomposition and composition tables.
25998
25999         New module 'uninorm/base'.
26000         * lib/uninorm.h: New file.
26001         * lib/unictype.h: Update comment.
26002         * modules/uninorm/base: New file.
26003
26004 2009-02-21  David Lutterkort  <lutter@redhat.com>
26005
26006         Tests for module 'safe-alloc'.
26007         * tests/test-safe-alloc.c: New file.
26008         * modules/safe-alloc-tests: New file.
26009
26010         New module 'safe-alloc'.
26011         * lib/safe-alloc.h: New file.
26012         * lib/safe-alloc.c: New file.
26013         * m4/safe-alloc.m4: New file.
26014         * modules/safe-alloc: New file.
26015         * doc/safe-alloc.texi: New file.
26016         * doc/gnulib.texi: Include it.
26017         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26018         safe-alloc.
26019
26020 2009-02-18  Bruno Haible  <bruno@clisp.org>
26021
26022         Fix link error on non-glibc systems.
26023         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
26024         variable.
26025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26026
26027 2009-02-18  Jim Meyering  <meyering@redhat.com>
26028
26029         fts: avoid used-uninitialized error due to recent change
26030         * lib/fts.c (fts_read): Guard uses of the new member,
26031         parent->fts_n_dirs_remaining, since it's not relevant for
26032         the parent of a directory specified on the command-line.
26033
26034 2009-02-17  James Youngman  <jay@gnu.org>
26035             Bruno Haible  <bruno@clisp.org>
26036
26037         * m4/include_next.m4: Reformulate comment.
26038
26039 2009-02-16  Jim Meyering  <meyering@redhat.com>
26040
26041         fts: add #if guards so that the fts_lgpl module still builds
26042         * lib/fts.c: Guard just-added hash-table-using parts with
26043         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
26044         Reported by Simon Josefsson.
26045
26046 2009-02-15  Bruno Haible  <bruno@clisp.org>
26047
26048         * modules/array-mergesort-tests: New file.
26049         * tests/test-array-mergesort.c: New file.
26050
26051         New module 'array-mergesort'.
26052         * modules/array-mergesort: New file.
26053         * lib/array-mergesort.h: New file.
26054
26055 2009-02-15  Bruno Haible  <bruno@clisp.org>
26056
26057         Fix 2009-02-07 commit.
26058         * lib/gen-uni-tables.c (output_predicate, output_category,
26059         output_combclass, output_bidi_category, output_decimal_digit,
26060         output_digit, output_numeric, output_mirror, output_scripts,
26061         output_ident_category, output_simple_mapping): Fix format directives.
26062         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
26063
26064 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
26065
26066         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
26067         fixes are available from IBM.
26068
26069 2009-02-13  Jim Meyering  <meyering@redhat.com>
26070
26071         fts: arrange not to stat non-directories in more cases
26072         This makes GNU find (when it doesn't need to stat each file)
26073         *much* more efficient at traversing reiserfs file systems.
26074         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
26075         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
26076         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
26077         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
26078         (leaf_optimization_applies): New function.
26079         (LCO_hash, LCO_compare): New helper functions.
26080         (link_count_optimize_ok): New function.
26081         (fts_stat): Initialize new member (if dir).
26082         (fts_read): Decrement parent's fts_n_dirs_remaining count if
26083         we've just stat'ed a directory.  Skip the stat call when possible.
26084         ---
26085         Note this AFS-related exchange:
26086         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
26087         and note find's pioctl call in find/fstype.c.
26088         But that is necessary only if you want to enable the
26089         optimization for AFS, and for now, I don't.
26090
26091         fts: move a function definition "up" (no semantic change)
26092         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
26093         "up" to precede upcoming use of a related function.
26094
26095 2009-02-11  Jim Meyering  <meyering@redhat.com>
26096
26097         fts: correct internal computation of nlinks (optimization-related)
26098         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
26099         whether the current entry is a directory, so don't test it.
26100
26101 2009-02-10  Bruno Haible  <bruno@clisp.org>
26102
26103         Tests for module 'uniwbrk/ulc-wordbreaks'.
26104         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
26105         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
26106         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
26107
26108         Tests for module 'uniwbrk/u32-wordbreaks'.
26109         * modules/uniwbrk/u32-wordbreaks-tests: New file.
26110         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
26111
26112         Tests for module 'uniwbrk/u16-wordbreaks'.
26113         * modules/uniwbrk/u16-wordbreaks-tests: New file.
26114         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
26115
26116         Tests for module 'uniwbrk/u8-wordbreaks'.
26117         * modules/uniwbrk/u8-wordbreaks-tests: New file.
26118         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
26119
26120 2009-02-10  Bruno Haible  <bruno@clisp.org>
26121
26122         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
26123         property.
26124         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
26125         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
26126         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
26127
26128 2009-02-10  Simon Josefsson  <simon@josefsson.org>
26129
26130         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
26131         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
26132
26133 2009-02-10  Bruno Haible  <bruno@clisp.org>
26134
26135         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
26136         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
26137         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
26138         * lib/unilbrk/u8-possible-linebreaks.c: Update.
26139         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
26140         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
26141
26142 2009-02-09  Simon Josefsson  <simon@josefsson.org>
26143
26144         * lib/sockets.h (gl_fd_to_handle): New function.
26145
26146         * tests/test-sockets.c: Call gl_fd_to_handle.
26147
26148 2009-02-09  Bruno Haible  <bruno@clisp.org>
26149
26150         * doc/havelib.texi: Document the conventions on bi-arch systems.
26151
26152 2009-02-08  Bruno Haible  <bruno@clisp.org>
26153
26154         Document the AC_LIB_LINKFLAGS macro.
26155         * doc/havelib.texi: New file, mostly written on 2005-05-24.
26156         * doc/gnulib.texi: Include it.
26157
26158 2009-02-08  Bruno Haible  <bruno@clisp.org>
26159
26160         Fix wrong order of sections, compared to TOC.
26161         * doc/gnulib.texi: Include relocatable-maint.texi after the
26162         "Regular expressions" node, not before.
26163
26164 2009-02-08  Bruno Haible  <bruno@clisp.org>
26165
26166         Tests for module 'unicase/totitle'.
26167         * modules/unicase/totitle-tests: New file.
26168
26169         Tests for module 'unicase/tolower'.
26170         * modules/unicase/tolower-tests: New file.
26171
26172         Tests for module 'unicase/toupper'.
26173         * modules/unicase/toupper-tests: New file.
26174         * tests/unicase/test-mapping-part1.h: New file.
26175         * tests/unicase/test-mapping-part2.h: New file.
26176
26177         New module 'unicase/totitle'.
26178         * modules/unicase/totitle: New file.
26179         * lib/unicase/totitle.c: New file.
26180
26181         New module 'unicase/tolower'.
26182         * modules/unicase/tolower: New file.
26183         * lib/unicase/tolower.c: New file.
26184
26185         New module 'unicase/toupper'.
26186         * modules/unicase/toupper: New file.
26187         * lib/unicase/toupper.c: New file.
26188         * lib/unicase/simple-mapping.h: New file.
26189
26190         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
26191         (mapping_table): New structure.
26192         (output_simple_mapping): New function.
26193         (main): Invoke output_simple_mapping_test and output_simple_mapping.
26194         * modules/gen-uni-tables (Description): Update.
26195         * lib/unicase/toupper.h: New file, automatically generated by
26196         gen-uni-tables.
26197         * lib/unicase/tolower.h: New file, automatically generated by
26198         gen-uni-tables.
26199         * lib/unicase/totitle.h: New file, automatically generated by
26200         gen-uni-tables.
26201         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
26202         gen-uni-tables.
26203         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
26204         gen-uni-tables.
26205         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
26206         gen-uni-tables.
26207
26208         New module 'unicase/base'.
26209         * modules/unicase/base: New file.
26210         * lib/unicase.h: New file.
26211
26212 2009-02-08  Bruno Haible  <bruno@clisp.org>
26213
26214         New module 'uniwbrk/ulc-wordbreaks'.
26215         * modules/uniwbrk/ulc-wordbreaks: New file.
26216         * lib/uniwbrk/ulc-wordbreaks.c: New file.
26217
26218         New module 'uniwbrk/u32-wordbreaks'.
26219         * modules/uniwbrk/u32-wordbreaks: New file.
26220         * lib/uniwbrk/u32-wordbreaks.c: New file.
26221
26222         New module 'uniwbrk/u16-wordbreaks'.
26223         * modules/uniwbrk/u16-wordbreaks: New file.
26224         * lib/uniwbrk/u16-wordbreaks.c: New file.
26225
26226         New module 'uniwbrk/u8-wordbreaks'.
26227         * modules/uniwbrk/u8-wordbreaks: New file.
26228         * lib/uniwbrk/u8-wordbreaks.c: New file.
26229         * lib/uniwbrk/u-wordbreaks.h: New file.
26230
26231         New module 'uniwbrk/table'.
26232         * modules/uniwbrk/table: New file.
26233         * lib/uniwbrk/wbrktable.h: New file.
26234         * lib/uniwbrk/wbrktable.c: New file.
26235
26236         New module 'uniwbrk/wordbreak-property'.
26237         * modules/uniwbrk/wordbreak-property: New file.
26238         * lib/uniwbrk/wordbreak-property.c: New file.
26239
26240         * lib/gen-uni-tables.c (WBP_*): New enum items.
26241         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
26242         (unicode_org_wbp): New variable.
26243         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
26244         New functions.
26245         (wbp_table): New structure.
26246         (output_wbp, output_wbrk_tables): New functions.
26247         (main): Accept additional argument. Invoke fill_org_wbp,
26248         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
26249         output_wbrk_tables.
26250         * modules/gen-uni-tables (Description): Update.
26251         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
26252         gen-uni-tables.
26253
26254         New module 'uniwbrk/base'.
26255         * modules/uniwbrk/base: New file.
26256         * lib/uniwbrk.h: New file.
26257
26258 2009-02-08  Bruno Haible  <bruno@clisp.org>
26259
26260         Update to Unicode 5.1.0.
26261         * lib/gen-uni-tables.c (is_property_alphabetic): Include
26262         U+2185..U+2188.
26263         (is_property_default_ignorable_code_point): Don't include characters
26264         of category Cc or Cs and not-a-characters.
26265         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
26266         U+0D79, U+109E, U+109F, U+A60C.
26267         * lib/unictype/bidi_of.h: Regenerated.
26268         * lib/unictype/blocks.h: Regenerated.
26269         * lib/unictype/categ_C.h: Regenerated.
26270         * lib/unictype/categ_Cf.h: Regenerated.
26271         * lib/unictype/categ_Cn.h: Regenerated.
26272         * lib/unictype/categ_L.h: Regenerated.
26273         * lib/unictype/categ_Ll.h: Regenerated.
26274         * lib/unictype/categ_Lm.h: Regenerated.
26275         * lib/unictype/categ_Lo.h: Regenerated.
26276         * lib/unictype/categ_Lu.h: Regenerated.
26277         * lib/unictype/categ_M.h: Regenerated.
26278         * lib/unictype/categ_Mc.h: Regenerated.
26279         * lib/unictype/categ_Me.h: Regenerated.
26280         * lib/unictype/categ_Mn.h: Regenerated.
26281         * lib/unictype/categ_N.h: Regenerated.
26282         * lib/unictype/categ_Nd.h: Regenerated.
26283         * lib/unictype/categ_Nl.h: Regenerated.
26284         * lib/unictype/categ_No.h: Regenerated.
26285         * lib/unictype/categ_P.h: Regenerated.
26286         * lib/unictype/categ_Pd.h: Regenerated.
26287         * lib/unictype/categ_Pe.h: Regenerated.
26288         * lib/unictype/categ_Pf.h: Regenerated.
26289         * lib/unictype/categ_Pi.h: Regenerated.
26290         * lib/unictype/categ_Po.h: Regenerated.
26291         * lib/unictype/categ_Ps.h: Regenerated.
26292         * lib/unictype/categ_S.h: Regenerated.
26293         * lib/unictype/categ_Sk.h: Regenerated.
26294         * lib/unictype/categ_Sm.h: Regenerated.
26295         * lib/unictype/categ_So.h: Regenerated.
26296         * lib/unictype/categ_of.h: Regenerated.
26297         * lib/unictype/combining.h: Regenerated.
26298         * lib/unictype/ctype_alnum.h: Regenerated.
26299         * lib/unictype/ctype_alpha.h: Regenerated.
26300         * lib/unictype/ctype_graph.h: Regenerated.
26301         * lib/unictype/ctype_lower.h: Regenerated.
26302         * lib/unictype/ctype_print.h: Regenerated.
26303         * lib/unictype/ctype_punct.h: Regenerated.
26304         * lib/unictype/ctype_upper.h: Regenerated.
26305         * lib/unictype/decdigit.h: Regenerated.
26306         * lib/unictype/digit.h: Regenerated.
26307         * lib/unictype/mirror.h: Regenerated.
26308         * lib/unictype/numeric.h: Regenerated.
26309         * lib/unictype/pr_alphabetic.h: Regenerated.
26310         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
26311         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
26312         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
26313         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
26314         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
26315         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
26316         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
26317         * lib/unictype/pr_combining.h: Regenerated.
26318         * lib/unictype/pr_dash.h: Regenerated.
26319         * lib/unictype/pr_decimal_digit.h: Regenerated.
26320         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
26321         * lib/unictype/pr_deprecated.h: Regenerated.
26322         * lib/unictype/pr_diacritic.h: Regenerated.
26323         * lib/unictype/pr_extender.h: Regenerated.
26324         * lib/unictype/pr_format_control.h: Regenerated.
26325         * lib/unictype/pr_grapheme_base.h: Regenerated.
26326         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26327         * lib/unictype/pr_grapheme_link.h: Regenerated.
26328         * lib/unictype/pr_id_continue.h: Regenerated.
26329         * lib/unictype/pr_id_start.h: Regenerated.
26330         * lib/unictype/pr_ideographic.h: Regenerated.
26331         * lib/unictype/pr_ignorable_control.h: Regenerated.
26332         * lib/unictype/pr_lowercase.h: Regenerated.
26333         * lib/unictype/pr_math.h: Regenerated.
26334         * lib/unictype/pr_numeric.h: Regenerated.
26335         * lib/unictype/pr_other_alphabetic.h: Regenerated.
26336         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
26337         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
26338         * lib/unictype/pr_other_id_continue.h: Regenerated.
26339         * lib/unictype/pr_other_lowercase.h: Regenerated.
26340         * lib/unictype/pr_other_math.h: Regenerated.
26341         * lib/unictype/pr_punctuation.h: Regenerated.
26342         * lib/unictype/pr_sentence_terminal.h: Regenerated.
26343         * lib/unictype/pr_soft_dotted.h: Regenerated.
26344         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
26345         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
26346         * lib/unictype/pr_unified_ideograph.h: Regenerated.
26347         * lib/unictype/pr_uppercase.h: Regenerated.
26348         * lib/unictype/pr_xid_continue.h: Regenerated.
26349         * lib/unictype/pr_xid_start.h: Regenerated.
26350         * lib/unictype/pr_zero_width.h: Regenerated.
26351         * lib/unictype/scripts.h: Regenerated.
26352         * lib/unictype/scripts_byname.gperf: Regenerated.
26353         * lib/unictype/sy_java_ident.h: Regenerated.
26354         * lib/unilbrk/lbrkprop1.h: Regenerated.
26355         * lib/unilbrk/lbrkprop2.h: Regenerated.
26356         * tests/unictype/test-categ_C.c: Regenerated.
26357         * tests/unictype/test-categ_Cf.c: Regenerated.
26358         * tests/unictype/test-categ_Cn.c: Regenerated.
26359         * tests/unictype/test-categ_L.c: Regenerated.
26360         * tests/unictype/test-categ_Ll.c: Regenerated.
26361         * tests/unictype/test-categ_Lm.c: Regenerated.
26362         * tests/unictype/test-categ_Lo.c: Regenerated.
26363         * tests/unictype/test-categ_Lu.c: Regenerated.
26364         * tests/unictype/test-categ_M.c: Regenerated.
26365         * tests/unictype/test-categ_Mc.c: Regenerated.
26366         * tests/unictype/test-categ_Me.c: Regenerated.
26367         * tests/unictype/test-categ_Mn.c: Regenerated.
26368         * tests/unictype/test-categ_N.c: Regenerated.
26369         * tests/unictype/test-categ_Nd.c: Regenerated.
26370         * tests/unictype/test-categ_Nl.c: Regenerated.
26371         * tests/unictype/test-categ_No.c: Regenerated.
26372         * tests/unictype/test-categ_P.c: Regenerated.
26373         * tests/unictype/test-categ_Pd.c: Regenerated.
26374         * tests/unictype/test-categ_Pe.c: Regenerated.
26375         * tests/unictype/test-categ_Pf.c: Regenerated.
26376         * tests/unictype/test-categ_Pi.c: Regenerated.
26377         * tests/unictype/test-categ_Po.c: Regenerated.
26378         * tests/unictype/test-categ_Ps.c: Regenerated.
26379         * tests/unictype/test-categ_S.c: Regenerated.
26380         * tests/unictype/test-categ_Sk.c: Regenerated.
26381         * tests/unictype/test-categ_Sm.c: Regenerated.
26382         * tests/unictype/test-categ_So.c: Regenerated.
26383         * tests/unictype/test-ctype_alnum.c: Regenerated.
26384         * tests/unictype/test-ctype_alpha.c: Regenerated.
26385         * tests/unictype/test-ctype_graph.c: Regenerated.
26386         * tests/unictype/test-ctype_lower.c: Regenerated.
26387         * tests/unictype/test-ctype_print.c: Regenerated.
26388         * tests/unictype/test-ctype_punct.c: Regenerated.
26389         * tests/unictype/test-ctype_upper.c: Regenerated.
26390         * tests/unictype/test-decdigit.h: Regenerated.
26391         * tests/unictype/test-digit.h: Regenerated.
26392         * tests/unictype/test-numeric.h: Regenerated.
26393         * tests/unictype/test-pr_alphabetic.c: Regenerated.
26394         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
26395         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
26396         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
26397         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
26398         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
26399         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
26400         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
26401         * tests/unictype/test-pr_combining.c: Regenerated.
26402         * tests/unictype/test-pr_dash.c: Regenerated.
26403         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
26404         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
26405         * tests/unictype/test-pr_deprecated.c: Regenerated.
26406         * tests/unictype/test-pr_diacritic.c: Regenerated.
26407         * tests/unictype/test-pr_extender.c: Regenerated.
26408         * tests/unictype/test-pr_format_control.c: Regenerated.
26409         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26410         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26411         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26412         * tests/unictype/test-pr_id_continue.c: Regenerated.
26413         * tests/unictype/test-pr_id_start.c: Regenerated.
26414         * tests/unictype/test-pr_ideographic.c: Regenerated.
26415         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26416         * tests/unictype/test-pr_lowercase.c: Regenerated.
26417         * tests/unictype/test-pr_math.c: Regenerated.
26418         * tests/unictype/test-pr_numeric.c: Regenerated.
26419         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26420         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26421         Regenerated.
26422         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26423         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26424         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26425         * tests/unictype/test-pr_other_math.c: Regenerated.
26426         * tests/unictype/test-pr_punctuation.c: Regenerated.
26427         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26428         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26429         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26430         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26431         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26432         * tests/unictype/test-pr_uppercase.c: Regenerated.
26433         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26434         * tests/unictype/test-pr_xid_start.c: Regenerated.
26435         * tests/unictype/test-pr_zero_width.c: Regenerated.
26436
26437         Update to Unicode 5.1.0.
26438         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26439         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26440         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26441         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26442         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26443         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26444         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26445         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26446         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26447         (nonspacing_table_ind): Update.
26448         * tests/uniwidth/test-uc_width2.sh: Update expected result.
26449
26450         Update to Unicode 5.1.0.
26451         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
26452         code transform.
26453         * lib/uniname/uniname.c (unicode_character_name,
26454         unicode_name_character): Add the range 0x1Fxxx to the code transform.
26455         * lib/uniname/uninames.h: Regenerated.
26456         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
26457
26458 2009-02-07  Bruno Haible  <bruno@clisp.org>
26459
26460         Merge gen-ctype and gen-lbrk into a single program.
26461         * lib/gen-uni-tables.c: New file, incorporating
26462         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26463         Add directory prefixes to the names of the generated files.
26464         * lib/unictype/gen-ctype.c: Remove file.
26465         * lib/unilbrk/gen-lbrk.c: Remove file.
26466         * modules/gen-uni-tables: New file.
26467         * modules/unictype/gen-ctype: Remove file.
26468         * modules/unilbrk/gen-lbrk: Remove file.
26469
26470 2009-02-07  Bruno Haible  <bruno@clisp.org>
26471
26472         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26473
26474         New module 'unistr/u32-strcoll'.
26475         * modules/unistr/u32-strcoll: New file.
26476         * lib/unistr/u32-strcoll.c: New file.
26477
26478         New module 'unistr/u16-strcoll'.
26479         * modules/unistr/u16-strcoll: New file.
26480         * lib/unistr/u16-strcoll.c: New file.
26481
26482         New module 'unistr/u8-strcoll'.
26483         * modules/unistr/u8-strcoll: New file.
26484         * lib/unistr/u8-strcoll.c: New file.
26485         * lib/unistr/u-strcoll.h: New file.
26486
26487 2009-02-07  Bruno Haible  <bruno@clisp.org>
26488
26489         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26490         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26491         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26492         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26493         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26494         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26495
26496 2009-02-07  Bruno Haible  <bruno@clisp.org>
26497
26498         Make 64-bit clean.
26499         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26500         output_combclass, output_bidi_category, output_decimal_digit,
26501         output_digit, output_numeric, output_mirror, output_scripts,
26502         output_ident_category): Use proper width specifier in format strings.
26503
26504 2009-02-07  Bruno Haible  <bruno@clisp.org>
26505
26506         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26507         failure behaviour.
26508
26509 2009-02-07  Jim Meyering  <meyering@redhat.com>
26510
26511         regex: avoid compilation failure with upcoming gcc-4.4
26512         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26513         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26514         "... error: integer overflow in preprocessor expression".
26515
26516 2009-02-05  Ben Pfaff  <blp@gnu.org>
26517
26518         Fix link errors on Windows when close module is used.
26519         * modules/close: Add $(LIB_CLOSE) to Link section.
26520         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26521         $(LIB_CLOSE) on Windows.
26522
26523 2009-02-05  Jim Meyering  <meyering@redhat.com>
26524
26525         still avoid unused-parameter warnings, but do it cleanly
26526         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26527         (get_fs_usage): Cast to void instead.
26528         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26529         (dev_from_mount_options, read_file_system_list): Cast to void.
26530         Prompted by Bruno Haible.
26531
26532 2009-02-04  Jim Meyering  <meyering@redhat.com>
26533
26534         fsusage.c: correct copyright year
26535         * lib/fsusage.c: Reflect year in which the change is pushed into
26536
26537         avoid misc. warnings
26538         * lib/fsusage.c (UNUSED_PARAM): Define.
26539         (get_fs_usage): Mark parameter "disk" as unused.
26540         * lib/getugroups.c (getgrent): Use "void" in prototype.
26541         * lib/mountlist.c: Mark unused parameters.
26542         (read_file_system_list): Declare a local with "const".
26543         * lib/nanosleep.c (getnow): Declare static.
26544         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26545
26546         dirfd: set errno upon failure
26547         * lib/dirfd.c: Include <errno.h>.
26548         Set errno to ENOTSUP when returning -1.
26549         * modules/dirfd (Depends-on): Add errno.
26550         Suggested by John Kodis <kodis@comcast.net>.
26551
26552 2009-02-01  Bruno Haible  <bruno@clisp.org>
26553
26554         Don't assume sizeof (long) >= sizeof (void *).
26555         * lib/memcmp.c: Include stdint.h.
26556         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26557         srcp2 to 'const byte *'.
26558         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26559         types to uintptr_t.
26560         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26561         * modules/memcmp (Depends-on): Add stdint.
26562         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26563
26564 2009-01-30  Eric Blake  <ebb9@byu.net>
26565
26566         fix more require-before-expand issues
26567         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26568         expand, AC_PROG_AWK.
26569         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26570
26571 2009-01-28  Eric Blake  <ebb9@byu.net>
26572
26573         version-etc: use consistent URL formatting
26574         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26575         Improve formatting.  Use fputs for string without %.
26576
26577 2009-01-28  Jim Meyering  <meyering@redhat.com>
26578
26579         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26580         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26581         "underquoted definition of NAME" from autoconf-2.59.
26582
26583 2009-01-28  Bruno Haible  <bruno@clisp.org>
26584
26585         * doc/gnulib.texi: Add "Obsolete modules" to index.
26586
26587 2009-01-28  Jim Meyering  <meyering@redhat.com>
26588
26589         useless-if-before-free: recognize more variants
26590         * build-aux/useless-if-before-free: Also recognize e.g.,
26591         if (NULL != p) free (p);
26592
26593 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26594
26595         test-getaddrinfo: skip (don't fail) this test when there's no network
26596         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26597         on the presumption that it means you lack network access.
26598
26599 2009-01-26  Jim Meyering  <meyering@redhat.com>
26600
26601         fflush: avoid warnings on modern systems
26602         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26603         pos and result, into scopes where they're used.
26604
26605 2009-01-26  Eric Blake  <ebb9@byu.net>
26606
26607         Silence warning reintroduced by recent extensions patch.
26608         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26609         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26610         autoconf.
26611
26612         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26613         * m4/00gnulib.m4: New file.
26614         * gnulib-tool (func_get_filelist): Always use it.
26615         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26616         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26617
26618 2009-01-25  Bruno Haible  <bruno@clisp.org>
26619
26620         Make test-quotearg work on MacOS X and AIX.
26621         * tests/test-quotearg.sh: New file.
26622         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26623         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26624         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26625         include <libintl.h>.
26626         (fake_locale): Remove variable.
26627         (gettext, dgettext, dcgettext): Remove functions.
26628         (main): Instead of setting a fake locale, set a real locale. Call
26629         textdomain and bindtextdomain.
26630         * modules/quotearg-tests (Files): Add the new files.
26631         (Depends-on): Add gettext, setenv, unsetenv.
26632         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26633         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26634         Augment TESTS_ENVIRONMENT.
26635
26636 2009-01-25  Bruno Haible  <bruno@clisp.org>
26637
26638         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26639         fr_FR.ISO8859-1 locale on MacOS X.
26640         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26641         ja_JP.eucJP locale on MacOS X.
26642         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26643         zh_CN.GB18030 locale on MacOS X.
26644
26645 2009-01-25  Bruno Haible  <bruno@clisp.org>
26646
26647         Avoid link errors on MacOS X 10.3.
26648         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26649         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26650
26651 2009-01-25  Bruno Haible  <bruno@clisp.org>
26652
26653         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26654         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26655         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26656         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26657         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26658         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26659         posix_spawnattr_init, posix_spawnattr_setsigmask,
26660         posix_spawnattr_setflags, posix_spawnattr_destroy.
26661
26662         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26663         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26664         * modules/execute (Files): Remove m4/posix_spawn.m4.
26665         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26666         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26667         posix_spawnattr_init, posix_spawnattr_setsigmask,
26668         posix_spawnattr_setflags, posix_spawnattr_destroy.
26669
26670 2009-01-25  Bruno Haible  <bruno@clisp.org>
26671
26672         * lib/glthread/threadlib.c: Include <stdlib.h>.
26673
26674 2009-01-25  Bruno Haible  <bruno@clisp.org>
26675
26676         * lib/glthread/threadlib.c (dummy): New declaration.
26677
26678 2009-01-25  Bruno Haible  <bruno@clisp.org>
26679
26680         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26681         multibyte characters also for the GB18030 encoding. Don't crash when
26682         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26683
26684 2009-01-25  Bruno Haible  <bruno@clisp.org>
26685
26686         Avoid redefining 'struct random_data' on OSF/1 5.1.
26687         * lib/stdlib.in.h: Include <random.h> if it exists.
26688         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26689         HAVE_RANDOM_H. Include <random.h> when testing whether
26690         'struct random_data' exists.
26691         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26692
26693 2009-01-25  Bruno Haible  <bruno@clisp.org>
26694
26695         Don't install charset.alias on MacOS X >= 10.3.
26696         * lib/localcharset.c (DARWIN7): New macro.
26697         (get_charset_aliases): Hardcode the result for Darwin7.
26698         * modules/localcharset (install-exec-local): Don't install
26699         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26700
26701 2009-01-25  Bruno Haible  <bruno@clisp.org>
26702
26703         Don't install charset.alias on mingw and Cygwin.
26704         * modules/localcharset (install-exec-local): Don't install
26705         charset.alias on mingw and Cygwin, if the file does not yet exist.
26706         The result for these platforms is hardcoded in localcharset.c.
26707
26708 2009-01-25  Bruno Haible  <bruno@clisp.org>
26709
26710         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26711         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26712         before requiring AC_USE_SYSTEM_EXTENSIONS.
26713
26714 2009-01-25  Jim Meyering  <meyering@redhat.com>
26715
26716         c-strtod: avoid warnings
26717         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26718         "assignment discards qualifiers from pointer target type" warnings.
26719
26720 2009-01-24  Bruno Haible  <bruno@clisp.org>
26721
26722         Add support for non-UTF-8 locales on MacOS X.
26723         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26724         canonical encodings. For Darwin 7 and newer, don't map traditional
26725         encodings to UTF-8.
26726         Reported by Vincent Lefevre <vincent@vinc17.org>
26727         at <http://savannah.gnu.org/bugs/?25235>.
26728
26729 2009-01-24  Bruno Haible  <bruno@clisp.org>
26730
26731         * doc/gnulib.texi (Obsolete modules): New section.
26732         Reported by Mike Frysinger <vapier@gentoo.org>.
26733
26734 2009-01-24  Bruno Haible  <bruno@clisp.org>
26735
26736         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26737         (%.dvi): New rule.
26738
26739 2009-01-24  Bruno Haible  <bruno@clisp.org>
26740
26741         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26742         Reported by Eric Blake.
26743
26744 2009-01-24  Bruno Haible  <bruno@clisp.org>
26745
26746         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26747         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26748         Reported by Gary V. Vaughan <gary@gnu.org>.
26749
26750 2009-01-24  Bruno Haible  <bruno@clisp.org>
26751
26752         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26753
26754 2009-01-23  Bruno Haible  <bruno@clisp.org>
26755
26756         Make c-strtod, c-strtold usable in libraries.
26757         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26758         (C_STRTOD): Call strdup instead of xstrdup.
26759         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26760         * modules/c-strtold (Depends-on): Likewise.
26761         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26762         * NEWS: Mention the change.
26763         Reported by Michael Gold <mgold@ncf.ca>.
26764
26765 2009-01-23  Jim Meyering  <meyering@redhat.com>
26766
26767         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26768         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26769         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26770
26771 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26772
26773         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26774         GNU CoreUtils.
26775         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26776         * modules/version-etc (Description): Update.
26777
26778 2009-01-22  Bruno Haible  <bruno@clisp.org>
26779
26780         Cache the C locale object.
26781         * lib/c-strtod.c (c_locale_cache): New variable.
26782         (c_locale): New function.
26783         (C_STRTOD): Use it, and don't call freelocale.
26784         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26785         Suggested by Paolo Bonzini.
26786
26787 2009-01-21  Bruno Haible  <bruno@clisp.org>
26788
26789         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26790         conditions other than overflow.
26791
26792 2009-01-21  Bruno Haible  <bruno@clisp.org>
26793
26794         * lib/c-strtod.c: Include errno.h.
26795         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26796         value from STRTOD_L and STRTOD.
26797
26798 2009-01-21  Bruno Haible  <bruno@clisp.org>
26799         and Jim Meyering  <meyering@redhat.com>
26800
26801         nanosleep: skip configure test (fail it) for apple universal builds
26802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26803         universal builds, assume that nanosleep does not work.
26804         * modules/nanosleep (Depends-on): Add multiarch.
26805
26806         mktime: skip configure test (fail it) for apple universal builds
26807         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26808         universal builds, assume that mktime does not work.
26809         * modules/mktime (Depends-on): Add multiarch.
26810
26811 2009-01-21  Eric Blake  <ebb9@byu.net>
26812
26813         multiarch: avoid expand-before-require warning
26814         * modules/multiarch (configure.ac): Require, rather than expand,
26815         gl_MULTIARCH.
26816         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26817         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26818         enforce that all clients require it.  Partial reversion of
26819         2008-12-29 patch.
26820
26821         error: avoid expand-before-require warning
26822         * modules/errno (configure.ac): Require, rather than expand,
26823         gl_HEADER_ERRNO_H.
26824         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26825         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26826         enforce that all clients require it.
26827
26828         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26829         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26830         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26831         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26832
26833 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26834
26835         Revert:
26836         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26837
26838         regex: do not depend on obsolete modules.
26839         * modules/regex: Remove memcmp and memmove.
26840
26841 2009-01-20  Bruno Haible  <bruno@clisp.org>
26842
26843         Make the 'link' module link on Windows NT 4.
26844         * lib/link.c (_WIN32_WINNT): Don't define.
26845         (CreateHardLinkFuncType): New type.
26846         (CreateHardLinkFunc, initialized): New variables.
26847         (initialize): New function.
26848         (link): Invoke CreateHardLink indirectly through the function pointer.
26849
26850 2009-01-20  Bruno Haible  <bruno@clisp.org>
26851
26852         Fix compilation failure on mingw.
26853         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26854
26855 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26856
26857         * doc/c-strtod.texi: Mention a couple of restrictions.
26858
26859 2009-01-20  Jim Meyering  <meyering@redhat.com>
26860
26861         gettimeofday: move more declarations out of functions
26862         * lib/gettimeofday.c: Move extern declarations of tzset and
26863         gmtime out of containing functions.  Prompted by Bruno Haible.
26864
26865 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26866
26867         regex: do not depend on obsolete modules.
26868         * modules/regex: Remove memcmp and memmove.
26869
26870 2009-01-19  Bruno Haible  <bruno@clisp.org>
26871
26872         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26873         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26874         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26875         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26876         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26877
26878 2009-01-19  Bruno Haible  <bruno@clisp.org>
26879
26880         * tests/test-link.c: Include <errno.h>.
26881         (main): Exit with code 77 when a hard link cannot be created due to
26882         the file system.
26883         * tests/test-link.sh: Skip test when a hard link cannot be created due
26884         to the file system.
26885         Suggested by Eric Blake.
26886
26887 2009-01-19  Martin Lambers  <marlam@marlam.de>
26888
26889         * modules/link-tests: New file.
26890         * tests/test-link.sh: New file.
26891         * tests/test-link.c: New file.
26892
26893 2009-01-19  Eric Blake  <ebb9@byu.net>
26894
26895         doc: mention another function added in cygwin 1.7.0
26896         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26897         Another new function in cygwin 1.7.
26898
26899 2009-01-19  Bruno Haible  <bruno@clisp.org>
26900
26901         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26902         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26903         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26904         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26905         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26906         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26907         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26908         * m4/md4.m4 (gl_MD4): Likewise.
26909         * m4/md5.m4 (gl_MD5): Likewise.
26910         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26911         * m4/sha1.m4 (gl_SHA1): Likewise.
26912         * m4/sha256.m4 (gl_SHA256): Likewise.
26913         * m4/sha512.m4 (gl_SHA512): Likewise.
26914
26915 2009-01-19  Bruno Haible  <bruno@clisp.org>
26916
26917         * modules/uniname/uniname-tests (Depends-on): Add progname.
26918         * tests/uniname/test-uninames.c: Include progname.h.
26919         (main): Call set_program_name.
26920
26921         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26922         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26923         (main): Call set_program_name.
26924
26925         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26926         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26927         (main): Call set_program_name.
26928
26929         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26930         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26931         (main): Call set_program_name.
26932
26933         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26934         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26935         (main): Call set_program_name.
26936
26937         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26938         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26939         (main): Call set_program_name.
26940
26941         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26942         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26943         (main): Call set_program_name.
26944
26945         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26946         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26947         (main): Call set_program_name.
26948
26949         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26950         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26951         (main): Call set_program_name.
26952
26953 2009-01-19  Eric Blake  <ebb9@byu.net>
26954
26955         test-unistd: test previous patch
26956         * tests/test-unistd.c: Test *_FILENO macros.
26957
26958         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26959         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26960         Guarantee a definition.
26961         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26962         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26963         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26964         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26965         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26966         Likewise.
26967         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26968         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26969         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26970         Likewise.
26971         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26972         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26973         (STDERR_FILENO): Likewise.
26974         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26975         (STDERR_FILENO): Likewise.
26976         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26977         (STDERR_FILENO): Likewise.
26978         Reported by Elbert Pol.
26979
26980 2009-01-19  Eric Blake  <ebb9@byu.net>
26981
26982         doc: mention more functions added in cygwin 1.7.0
26983         * doc/posix-functions/abort.texi (abort): Update wording related
26984         to cygwin.
26985         * doc/posix-functions/daylight.texi (daylight): Likewise.
26986         * doc/posix-functions/optarg.texi (optarg): Likewise.
26987         * doc/posix-functions/optarg.texi (opterr): Likewise.
26988         * doc/posix-functions/optarg.texi (optind): Likewise.
26989         * doc/posix-functions/optarg.texi (optopt): Likewise.
26990         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26991         worked in 1.5.x, and was withdrawn in 1.7.
26992         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26993         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26994         cygwin versions.
26995         * doc/posix-functions/perror.texi (perror): Likewise.
26996         * doc/posix-functions/printf.texi (printf): Likewise.
26997         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26998         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26999         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
27000         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
27001         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27002         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
27003         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27004         Likewise.
27005         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27006         Likewise.
27007         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
27008         this function.
27009         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
27010         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
27011         Likewise.
27012         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
27013         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
27014         * doc/posix-functions/confstr.texi (confstr): Likewise.
27015         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
27016         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
27017         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
27018         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
27019         * doc/posix-functions/fputws.texi (fputws): Likewise.
27020         * doc/posix-functions/fwide.texi (fwide): Likewise.
27021         * doc/posix-functions/getwc.texi (getwc): Likewise.
27022         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
27023         * doc/posix-functions/putwc.texi (putwc): Likewise.
27024         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
27025         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
27026         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
27027         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
27028         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
27029         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
27030         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
27031         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
27032         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
27033         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
27034         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
27035
27036 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27037
27038         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
27039         * lib/ioctl.c: Include <sys/ioctl.h>.
27040
27041 2009-01-19  Simon Josefsson  <simon@josefsson.org>
27042
27043         * modules/getdate-tests (Depends-on): Add progname.
27044         * tests/test-getdate.c: Use progname module, to avoid link errors
27045         on non-glibc systems.
27046
27047 2009-01-18  Simon Josefsson  <simon@josefsson.org>
27048
27049         * modules/filenamecat-tests (Depends-on): Add progname.
27050         * modules/fstrcmp-tests (Depends-on): Likewise.
27051
27052         * tests/test-filenamecat.c: Use progname module, to avoid link
27053         errors on non-glibc systems.
27054         * tests/test-fstrcmp.c: Likewise.
27055
27056 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27057
27058         gettimeofday: avoid warning: nested extern declaration of 'localtime'
27059         * lib/gettimeofday.c: Move extern declaration out of function.
27060
27061 2009-01-18  Bruno Haible  <bruno@clisp.org>
27062
27063         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
27064         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
27065         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
27066
27067 2009-01-18  Bruno Haible  <bruno@clisp.org>
27068
27069         * lib/strftime.c (MEMPCPY): Remove unused macro.
27070         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
27071
27072 2009-01-18  Martin Lambers  <marlam@marlam.de>
27073
27074         New module 'link'.
27075         * lib/unistd.in.h (link): New declaration.
27076         * lib/link.c: New file.
27077         * m4/link.m4: New file.
27078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
27079         HAVE_LINK.
27080         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
27081         * modules/link: New file.
27082         * doc/posix-functions/link.texi: Mention the new module.
27083
27084 2009-01-18  Bruno Haible  <bruno@clisp.org>
27085
27086         * tests/test-avltree_list.c (main): Call set_program_name.
27087         * tests/test-avltree_oset.c (main): Likewise.
27088         * tests/test-obstack-printf.c: Include progname.h.
27089         (main): Call set_program_name.
27090         * tests/test-quotearg.c: Include progname.h.
27091         (main): Call set_program_name.
27092         * tests/test-xmemdup0.c: Include progname.h.
27093         (main): Call set_program_name.
27094
27095 2009-01-18  Bruno Haible  <bruno@clisp.org>
27096
27097         New module 'alphasort'.
27098         * lib/dirent.in.h (alphasort): New declaration.
27099         * lib/alphasort.c: New file, from glibc with modifications.
27100         * m4/alphasort.m4: New file.
27101         * modules/alphasort: New file.
27102         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
27103         HAVE_ALPHASORT.
27104         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
27105         HAVE_ALPHASORT.
27106         * doc/posix-functions/alphasort.texi: Mention the new module and the
27107         portability problems.
27108
27109 2009-01-18  Bruno Haible  <bruno@clisp.org>
27110
27111         New module 'scandir'.
27112         * lib/dirent.in.h (scandir): New declaration.
27113         * lib/scandir.c: New file, from glibc with modifications.
27114         * m4/scandir.m4: New file.
27115         * modules/scandir: New file.
27116         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
27117         HAVE_SCANDIR.
27118         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
27119         HAVE_SCANDIR.
27120         * doc/posix-functions/scandir.texi: Mention the new module and the
27121         portability problems.
27122
27123 2009-01-17  Bruno Haible  <bruno@clisp.org>
27124
27125         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
27126         Update documentation.
27127         (func_remove_suffix): Escape all dots in the suffix. Update
27128         documentation.
27129         (func_filter_filelist): Update documentation.
27130         Reported by Ralf Wildenhues.
27131
27132 2009-01-17  Bruno Haible  <bruno@clisp.org>
27133
27134         * modules/dprintf-posix-tests: New file.
27135         * tests/test-dprintf-posix.sh: New file.
27136         * tests/test-dprintf-posix.c: New file.
27137
27138         New modules 'dprintf', 'dprintf-posix'.
27139         * lib/stdio.in.h (dprintf): New declaration.
27140         * lib/dprintf.c: New file.
27141         * m4/dprintf.m4: New file.
27142         * m4/dprintf-posix.m4: New file.
27143         * modules/dprintf: New file.
27144         * modules/dprintf-posix: New file.
27145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
27146         HAVE_DPRINTF, REPLACE_DPRINTF.
27147         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
27148         HAVE_DPRINTF, REPLACE_DPRINTF.
27149         * doc/posix-functions/dprintf.texi: Mention the new modules.
27150
27151 2009-01-17  Bruno Haible  <bruno@clisp.org>
27152
27153         * modules/vdprintf-posix-tests: New file.
27154         * tests/test-vdprintf-posix.sh: New file.
27155         * tests/test-vdprintf-posix.c: New file.
27156
27157         New modules 'vdprintf', 'vdprintf-posix'.
27158         * lib/stdio.in.h (vdprintf): New declaration.
27159         * lib/vdprintf.c: New file.
27160         * m4/vdprintf.m4: New file.
27161         * m4/vdprintf-posix.m4: New file.
27162         * modules/vdprintf: New file.
27163         * modules/vdprintf-posix: New file.
27164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
27165         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27166         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
27167         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27168         * doc/posix-functions/vdprintf.texi: Mention the new modules.
27169
27170 2009-01-17  Bruno Haible  <bruno@clisp.org>
27171
27172         Fix replacement of fopen on mingw.
27173         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
27174         mingw.
27175
27176 2009-01-17  Bruno Haible  <bruno@clisp.org>
27177
27178         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
27179         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
27180
27181 2009-01-17  Bruno Haible  <bruno@clisp.org>
27182
27183         Avoid test-fflush2.sh failure on mingw.
27184         * tests/test-fflush2.c: Include binary-io.h.
27185         (main): Put standard input into binary mode.
27186         * modules/fflush-tests (Depends-on): Add binary-io.
27187
27188 2009-01-17  Bruno Haible  <bruno@clisp.org>
27189
27190         * lib/wchar.in.h: In another particular situation, include only the
27191         system's <wchar.h> file.
27192         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
27193         Reported by Albert Chin-A-Young <china@thewrittenword.com>
27194         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
27195
27196 2009-01-17  Bruno Haible  <bruno@clisp.org>
27197
27198         Support for stripping executables in --enable-relocatable.
27199         * build-aux/install-reloc: Expect one more argument, or an environment
27200         variable RELOC_STRIP_PROG. If set, strip the destination program and
27201         its wrapper.
27202         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
27203         RELOC_STRIP_PROG.
27204         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
27205         to set RELOCATABLE_STRIP.
27206         * NEWS: Mention the new Makefile requirement.
27207
27208 2009-01-17  Bruno Haible  <bruno@clisp.org>
27209
27210         * build-aux/install-reloc: Remove debugging information left over by
27211         C compiler on MacOS X.
27212
27213 2009-01-17  Bruno Haible  <bruno@clisp.org>
27214
27215         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
27216         * lib/progreloc.c (find_executable): Fix type of pointer passed to
27217         _NSGetExecutablePath.
27218
27219 2009-01-16  Jim Meyering  <meyering@redhat.com>
27220
27221         strerror: avoid warnings about discarding "const"
27222         * lib/strerror.c (rpl_strerror): Instead of returning a const
27223         string from each and every "case", use a variable, and add a single
27224         cast after the switch.
27225
27226 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
27227
27228         * lib/arpa_inet.in.h: Add extern "C" block for C++.
27229
27230 2009-01-16  Bruno Haible  <bruno@clisp.org>
27231
27232         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
27233         array initializer syntax that also works in C++ mode.
27234         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27235
27236 2009-01-16  Jim Meyering  <meyering@redhat.com>
27237
27238         poll: suppress a warning
27239         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
27240         to ignore "...unsigned expression < 0 is always false" warnings.
27241
27242 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
27243
27244         poll: remove declarations of unused variables
27245         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
27246         sockbuf and optlen.
27247
27248 2009-01-15  Bruno Haible  <bruno@clisp.org>
27249
27250         Make fflush-after-ungetc POSIX compliant on BSD systems.
27251         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
27252         (clear_ungetc_buffer): Implement also for other systems.
27253         (rpl_fflush): On glibc systems, invoke
27254         clear_ungetc_buffer_preserving_position. Otherwise, invoke
27255         clear_ungetc_buffer after fetching the stream's position, not before.
27256
27257 2009-01-15  Bruno Haible  <bruno@clisp.org>
27258
27259         Make fflush-after-ungetc POSIX compliant on glibc systems.
27260         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
27261         after ungetc.
27262         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
27263         (rpl_fflush): On glibc systems, simply call the system's fflush
27264         function after clearing the ungetc buffer.
27265         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
27266         Instead, lseek only to the end of file, then use the system's fseeko
27267         for the rest. On glibc systems, reset the EOF indicator bit.
27268
27269 2009-01-15  Jim Meyering  <meyering@redhat.com>
27270
27271         openmp.m4: revert quote-adding change, for portability to older autoconf
27272         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
27273         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
27274         Simon Josefsson noticed the problem when using autoconf-2.61.
27275
27276 2009-01-15  Bruno Haible  <bruno@clisp.org>
27277
27278         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
27279         * tests/test-fflush2.c (ASSERT): Always fail.
27280         (main): Add two tests for fflush() after ungetc(), taking into account
27281         the Austin Group's clarification.
27282         Suggested by Eric Blake.
27283
27284 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
27285
27286         mktime.m4: remove K&R-style function prototypes
27287         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
27288         for the Sun C++ compiler.
27289
27290 2009-01-14  Bruno Haible  <bruno@clisp.org>
27291
27292         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
27293         while including <wchar.h>.
27294         * lib/wchar.in.h: In two particular situations on HP-UX, include only
27295         the system's <wchar.h> file.
27296         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27297
27298 2009-01-14  Bruno Haible  <bruno@clisp.org>
27299
27300         * m4/csharp.m4: Don't mention gettext on the serial number line.
27301         * m4/csharpexec.m4: Likewise.
27302         * m4/eaccess.m4: Likewise.
27303         * m4/javaexec.m4: Likewise.
27304         * m4/sig_atomic_t.m4: Likewise.
27305         * m4/tmpdir.m4: Likewise.
27306         * m4/intldir.m4: Bump gettext version.
27307         * m4/lib-ld.m4: Likewise.
27308
27309 2009-01-14  Bruno Haible  <bruno@clisp.org>
27310
27311         * lib/progname.c (set_program_name): Add more comments.
27312         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27313
27314 2009-01-14  Simon Josefsson  <simon@josefsson.org>
27315
27316         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
27317         were sys/stat.h does not define it.
27318
27319 2009-01-14  Jim Meyering  <meyering@redhat.com>
27320
27321         many *.m4 files: improve m4 quoting
27322         99% of this change was performed by running the following commands:
27323         git ls-files | grep '\.m4$' | xargs perl -pi \
27324           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
27325           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27326           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27327           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
27328         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
27329         The remainder were to add Copyright dates, increment serial numbers,
27330         undo some changes in comments, exclude m4/intl.m4, and add quotes
27331         around the "1" in ",1" where the unusual spacing prohibited the
27332         above regexps from doing the job.  For more details, see
27333         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
27334         * m4/acl.m4: Modified.
27335         * m4/afs.m4: Likewise.
27336         * m4/alloca.m4: Likewise.
27337         * m4/argp.m4: Likewise.
27338         * m4/argz.m4: Likewise.
27339         * m4/atexit.m4: Likewise.
27340         * m4/bison-i18n.m4: Likewise.
27341         * m4/bison.m4: Likewise.
27342         * m4/byteswap.m4: Likewise.
27343         * m4/c-stack.m4: Likewise.
27344         * m4/c-strtod.m4: Likewise.
27345         * m4/calloc.m4: Likewise.
27346         * m4/canonicalize-lgpl.m4: Likewise.
27347         * m4/chown.m4: Likewise.
27348         * m4/clock_time.m4: Likewise.
27349         * m4/codeset.m4: Likewise.
27350         * m4/copy-file.m4: Likewise.
27351         * m4/csharp.m4: Likewise.
27352         * m4/csharpcomp.m4: Likewise.
27353         * m4/csharpexec.m4: Likewise.
27354         * m4/d-ino.m4: Likewise.
27355         * m4/d-type.m4: Likewise.
27356         * m4/dirfd.m4: Likewise.
27357         * m4/double-slash-root.m4: Likewise.
27358         * m4/eaccess.m4: Likewise.
27359         * m4/eealloc.m4: Likewise.
27360         * m4/environ.m4: Likewise.
27361         * m4/errno_h.m4: Likewise.
27362         * m4/euidaccess.m4: Likewise.
27363         * m4/execute.m4: Likewise.
27364         * m4/fatal-signal.m4: Likewise.
27365         * m4/fchdir.m4: Likewise.
27366         * m4/fcntl_h.m4: Likewise.
27367         * m4/fileblocks.m4: Likewise.
27368         * m4/filenamecat.m4: Likewise.
27369         * m4/findprog.m4: Likewise.
27370         * m4/flexmember.m4: Likewise.
27371         * m4/fnmatch.m4: Likewise.
27372         * m4/fopen.m4: Likewise.
27373         * m4/fpending.m4: Likewise.
27374         * m4/fprintf-posix.m4: Likewise.
27375         * m4/free.m4: Likewise.
27376         * m4/frexp.m4: Likewise.
27377         * m4/frexpl.m4: Likewise.
27378         * m4/fsusage.m4: Likewise.
27379         * m4/ftruncate.m4: Likewise.
27380         * m4/gc-camellia.m4: Likewise.
27381         * m4/gc-random.m4: Likewise.
27382         * m4/gc.m4: Likewise.
27383         * m4/getaddrinfo.m4: Likewise.
27384         * m4/getcwd-abort-bug.m4: Likewise.
27385         * m4/getcwd-path-max.m4: Likewise.
27386         * m4/getdate.m4: Likewise.
27387         * m4/getdomainname.m4: Likewise.
27388         * m4/getgroups.m4: Likewise.
27389         * m4/gethostname.m4: Likewise.
27390         * m4/gethrxtime.m4: Likewise.
27391         * m4/getline.m4: Likewise.
27392         * m4/getloadavg.m4: Likewise.
27393         * m4/getndelim2.m4: Likewise.
27394         * m4/getpass.m4: Likewise.
27395         * m4/gettext.m4: Likewise.
27396         * m4/gettime.m4: Likewise.
27397         * m4/gettimeofday.m4: Likewise.
27398         * m4/gnulib-common.m4: Likewise.
27399         * m4/group-member.m4: Likewise.
27400         * m4/host-os.m4: Likewise.
27401         * m4/iconv.m4: Likewise.
27402         * m4/iconv_open.m4: Likewise.
27403         * m4/inet_ntop.m4: Likewise.
27404         * m4/inet_pton.m4: Likewise.
27405         * m4/inline.m4: Likewise.
27406         * m4/intldir.m4: Likewise.
27407         * m4/intlmacosx.m4: Likewise.
27408         * m4/intmax.m4: Likewise.
27409         * m4/intmax_t.m4: Likewise.
27410         * m4/inttypes.m4: Likewise.
27411         * m4/inttypes_h.m4: Likewise.
27412         * m4/inttypes-pri.m4: Likewise.
27413         * m4/isapipe.m4: Likewise.
27414         * m4/isnand.m4: Likewise.
27415         * m4/isnanf.m4: Likewise.
27416         * m4/isnanl.m4: Likewise.
27417         * m4/javacomp.m4: Likewise.
27418         * m4/javaexec.m4: Likewise.
27419         * m4/jm-winsz1.m4: Likewise.
27420         * m4/jm-winsz2.m4: Likewise.
27421         * m4/lchown.m4: Likewise.
27422         * m4/lcmessage.m4: Likewise.
27423         * m4/ldexpl.m4: Likewise.
27424         * m4/lib-ld.m4: Likewise.
27425         * m4/lib-link.m4: Likewise.
27426         * m4/libsigsegv.m4: Likewise.
27427         * m4/link-follow.m4: Likewise.
27428         * m4/localcharset.m4: Likewise.
27429         * m4/locale-fr.m4: Likewise.
27430         * m4/locale-ja.m4: Likewise.
27431         * m4/locale-tr.m4: Likewise.
27432         * m4/locale-zh.m4: Likewise.
27433         * m4/lock.m4: Likewise.
27434         * m4/longlong.m4: Likewise.
27435         * m4/ls-mntd-fs.m4: Likewise.
27436         * m4/lstat.m4: Likewise.
27437         * m4/malloc.m4: Likewise.
27438         * m4/mathl.m4: Likewise.
27439         * m4/mbrtowc.m4: Likewise.
27440         * m4/mbstate_t.m4: Likewise.
27441         * m4/mbswidth.m4: Likewise.
27442         * m4/memchr.m4: Likewise.
27443         * m4/memcmp.m4: Likewise.
27444         * m4/memcpy.m4: Likewise.
27445         * m4/memmem.m4: Likewise.
27446         * m4/memmove.m4: Likewise.
27447         * m4/mempcpy.m4: Likewise.
27448         * m4/memrchr.m4: Likewise.
27449         * m4/memset.m4: Likewise.
27450         * m4/minmax.m4: Likewise.
27451         * m4/mkdir-slash.m4: Likewise.
27452         * m4/mkdtemp.m4: Likewise.
27453         * m4/mktime.m4: Likewise.
27454         * m4/mmap-anon.m4: Likewise.
27455         * m4/mountlist.m4: Likewise.
27456         * m4/nanosleep.m4: Likewise.
27457         * m4/nls.m4: Likewise.
27458         * m4/nocrash.m4: Likewise.
27459         * m4/open.m4: Likewise.
27460         * m4/openat.m4: Likewise.
27461         * m4/openmp.m4: Likewise.
27462         * m4/pathmax.m4: Likewise.
27463         * m4/perl.m4: Likewise.
27464         * m4/physmem.m4: Likewise.
27465         * m4/pipe.m4: Likewise.
27466         * m4/po.m4: Likewise.
27467         * m4/poll.m4: Likewise.
27468         * m4/posixtm.m4: Likewise.
27469         * m4/posixver.m4: Likewise.
27470         * m4/printf-frexp.m4: Likewise.
27471         * m4/printf-frexpl.m4: Likewise.
27472         * m4/printf-posix.m4: Likewise.
27473         * m4/printf-posix-rpl.m4: Likewise.
27474         * m4/printf.m4: Likewise.
27475         * m4/progtest.m4: Likewise.
27476         * m4/putenv.m4: Likewise.
27477         * m4/readline.m4: Likewise.
27478         * m4/readlink.m4: Likewise.
27479         * m4/readutmp.m4: Likewise.
27480         * m4/realloc.m4: Likewise.
27481         * m4/regex.m4: Likewise.
27482         * m4/relocatable.m4: Likewise.
27483         * m4/relocatable-lib.m4: Likewise.
27484         * m4/rename-dest-slash.m4: Likewise.
27485         * m4/rename.m4: Likewise.
27486         * m4/rmdir-errno.m4: Likewise.
27487         * m4/rmdir.m4: Likewise.
27488         * m4/roundf.m4: Likewise.
27489         * m4/roundl.m4: Likewise.
27490         * m4/rpmatch.m4: Likewise.
27491         * m4/save-cwd.m4: Likewise.
27492         * m4/selinux-selinux-h.m4: Likewise.
27493         * m4/setenv.m4: Likewise.
27494         * m4/settime.m4: Likewise.
27495         * m4/sig2str.m4: Likewise.
27496         * m4/sig_atomic_t.m4: Likewise.
27497         * m4/signalblocking.m4: Likewise.
27498         * m4/signbit.m4: Likewise.
27499         * m4/sigpipe.m4: Likewise.
27500         * m4/sockets.m4: Likewise.
27501         * m4/sockpfaf.m4: Likewise.
27502         * m4/st_dm_mode.m4: Likewise.
27503         * m4/stat-time.m4: Likewise.
27504         * m4/stdbool.m4: Likewise.
27505         * m4/stdint.m4: Likewise.
27506         * m4/stdint_h.m4: Likewise.
27507         * m4/stpcpy.m4: Likewise.
27508         * m4/stpncpy.m4: Likewise.
27509         * m4/strcase.m4: Likewise.
27510         * m4/strchrnul.m4: Likewise.
27511         * m4/strcspn.m4: Likewise.
27512         * m4/strdup.m4: Likewise.
27513         * m4/strftime.m4: Likewise.
27514         * m4/strndup.m4: Likewise.
27515         * m4/strnlen.m4: Likewise.
27516         * m4/strpbrk.m4: Likewise.
27517         * m4/strptime.m4: Likewise.
27518         * m4/strsep.m4: Likewise.
27519         * m4/strtod.m4: Likewise.
27520         * m4/strtoimax.m4: Likewise.
27521         * m4/strtok_r.m4: Likewise.
27522         * m4/strtol.m4: Likewise.
27523         * m4/strtoll.m4: Likewise.
27524         * m4/strtoul.m4: Likewise.
27525         * m4/strtoull.m4: Likewise.
27526         * m4/strtoumax.m4: Likewise.
27527         * m4/strverscmp.m4: Likewise.
27528         * m4/threadlib.m4: Likewise.
27529         * m4/timegm.m4: Likewise.
27530         * m4/tm_gmtoff.m4: Likewise.
27531         * m4/tmpdir.m4: Likewise.
27532         * m4/tmpfile.m4: Likewise.
27533         * m4/tzset.m4: Likewise.
27534         * m4/uintmax_t.m4: Likewise.
27535         * m4/unlinkdir.m4: Likewise.
27536         * m4/unlocked-io.m4: Likewise.
27537         * m4/uptime.m4: Likewise.
27538         * m4/userspec.m4: Likewise.
27539         * m4/utimbuf.m4: Likewise.
27540         * m4/utime.m4: Likewise.
27541         * m4/utimes-null.m4: Likewise.
27542         * m4/utimes.m4: Likewise.
27543         * m4/vararrays.m4: Likewise.
27544         * m4/vasnprintf.m4: Likewise.
27545         * m4/vfprintf-posix.m4: Likewise.
27546         * m4/vprintf-posix.m4: Likewise.
27547         * m4/wait-process.m4: Likewise.
27548         * m4/wchar_t.m4: Likewise.
27549         * m4/wint_t.m4: Likewise.
27550         * m4/write-any-file.m4: Likewise.
27551         * m4/yield.m4: Likewise.
27552
27553 2009-01-13  Bruno Haible  <bruno@clisp.org>
27554
27555         Avoid test-copy-file.sh failures when ACL support insufficient.
27556         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27557         TESTS_ENVIRONMENT.
27558         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27559         Reported by Jim Meyering.
27560
27561 2009-01-13  Bruno Haible  <bruno@clisp.org>
27562
27563         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27564         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27565         * modules/unistdio/u8-printf-parse (Files): Likewise.
27566         * modules/unistdio/u32-printf-parse (Files): Likewise.
27567         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27568
27569 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27570
27571         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27572         and m4/inttypes_h.m4 too.
27573
27574 2009-01-12  Eric Blake  <ebb9@byu.net>
27575
27576         tests: IRIX 6.2 cc can't compile -0.0 into .data
27577         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27578         rather than at compile-time.
27579         * tests/test-floorl.c (minus_zero): Likewise.
27580         * tests/test-frexpl.c (minus_zero): Likewise.
27581         * tests/test-isnan.c (minus_zerol): Likewise.
27582         * tests/test-isnanl.h (minus_zero): Likewise.
27583         * tests/test-ldexpl.c (minus_zero): Likewise.
27584         * tests/test-roundl.c (minus_zero): Likewise.
27585         * tests/test-signbit.c (minus_zerol): Likewise.
27586         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27587         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27588         * tests/test-truncl.c (minus_zero): Likewise.
27589         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27590         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27591         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27592
27593 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27594
27595         regex: fix glibc bug 9697
27596         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27597         handling.
27598
27599 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27600
27601         regex: fix glibc bug 697
27602         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27603         being NULL also if there are no backreferences.
27604
27605 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27606
27607         regex: merge glibc changes
27608         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27609         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27610         re_string_skip_chars, re_string_reconstruct): Likewise.
27611         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27612
27613 2009-01-07  Jim Meyering  <meyering@redhat.com>
27614
27615         poll: filter through cppi
27616         * lib/poll.c: Indent cpp directives to reflect nesting.
27617
27618 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27619
27620         poll: don't return uninitialized
27621         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27622
27623 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27624
27625         avoid compile failure on AIX 6.1
27626         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27627         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27628
27629 2009-01-04  Jim Meyering  <meyering@redhat.com>
27630
27631         remove duplicate inclusion of <stdio.h>
27632         * tests/test-fprintf-posix.c: Likewise.
27633         * tests/test-printf-posix.c: Likewise.
27634         * tests/test-snprintf-posix.c: Likewise.
27635         * tests/test-sprintf-posix.c: Likewise.
27636         * tests/test-vasprintf-posix.c: Likewise.
27637         * tests/test-vfprintf-posix.c: Likewise.
27638         * tests/test-vprintf-posix.c: Likewise.
27639         * tests/test-vsnprintf-posix.c: Likewise.
27640         * tests/test-vsprintf-posix.c: Likewise.
27641
27642 2009-01-03  Jim Meyering  <meyering@redhat.com>
27643
27644         gnulib-tool: fix sed-based filtering
27645         * gnulib-tool (func_filter_filelist): Remove extra backslash
27646         in sed_fff_filter definition.
27647
27648 2009-01-02  Jim Meyering  <meyering@redhat.com>
27649
27650         strftime: avoid compilation failure on Solaris 2.6
27651         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27652         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27653         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27654         be available.  Reported by Tom G. Christensen.  Details in
27655         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27656
27657 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27658             Bruno Haible  <bruno@clisp.org>
27659
27660         Speed up gnulib-tool by doing more string processing through shell
27661         built-ins.
27662         * gnulib-tool (fast_func_append): New variable.
27663         (func_remove_prefix, func_remove_suffix): New functions.
27664         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27665         (func_filter_filelist): New function.
27666         (func_get_dependencies): Use func_remove_suffix instead of sed.
27667         (func_get_automake_snippet): Use func_filter_filelist instead of a
27668         subshell and sed invocation.
27669
27670 2009-01-01  Bruno Haible  <bruno@clisp.org>
27671
27672         Fix a security bug.
27673         * gnulib-tool (func_import, import, update): Don't allow the characters
27674         '"', '$', '`', '\' in macro arguments that become part of commands that
27675         are evaluated.
27676
27677 2009-01-01  Bruno Haible  <bruno@clisp.org>
27678
27679         * gnulib-tool (func_reset_sigpipe): Add more comments.
27680
27681 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27682
27683         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27684         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27685         already know the answer.
27686
27687 2009-01-01  Jim Meyering  <meyering@redhat.com>
27688
27689         * lib/version-etc.c (version_etc_va): Update copyright year.
27690
27691 2008-12-30  Bruno Haible  <bruno@clisp.org>
27692
27693         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27694         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27695         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27696
27697 2008-12-29  Eric Blake  <ebb9@byu.net>
27698
27699         multiarch: avoid autoconf AC_REQUIRE bug
27700         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27701         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27702         2.63 and older.
27703         Reported by Bruno Haible, and analyzed in
27704         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27705
27706 2008-12-29  Bruno Haible  <bruno@clisp.org>
27707
27708         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27709         files in subdirectories correctly.
27710         Reported by Ralf Wildenhues.
27711
27712 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27713
27714         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27715         rather than 'join FILE -', for Solaris join.
27716
27717 2008-12-29  Bruno Haible  <bruno@clisp.org>
27718
27719         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27720         quoting.
27721         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27722         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27723         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27724         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27725         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27726         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27727         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27728         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27729         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27730         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27731         * m4/nls.m4 (AM_NLS): Likewise.
27732         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27733         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27734         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27735         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27736         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27737         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27738         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27739         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27740         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27741         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27742         * m4/xsize.m4 (gl_XSIZE): Likewise.
27743         Suggested by Jim Meyering.
27744
27745 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27746
27747         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27748         * lib/parse-duration.c: use a switch instead of cascading if's.
27749
27750 2008-12-29  Eric Blake  <ebb9@byu.net>
27751
27752         wchar.h: supply WEOF on Irix 5.3
27753         * lib/wchar.in.h (wint_t): Also supply WEOF.
27754         * lib/wctype.in.h (wint_t): Likewise.
27755         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27756         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27757         Reported by Tom G. Christensen.
27758
27759 2008-12-26  Bruno Haible  <bruno@clisp.org>
27760
27761         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27762         i486, i586, i686.
27763
27764 2008-12-26  Bruno Haible  <bruno@clisp.org>
27765
27766         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27767
27768 2008-12-26  Bruno Haible  <bruno@clisp.org>
27769
27770         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27771         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27772         not __STDC_CONSTANT_MACROS.
27773         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27774
27775 2008-12-25  Bruno Haible  <bruno@clisp.org>
27776
27777         Add support for universal builds to vasnprintf.
27778         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27779         universal builds, guess no.
27780         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27781         * modules/vasprintf-posix (Depends-on): Likewise.
27782         * modules/fprintf-posix (Depends-on): Likewise.
27783         * modules/vfprintf-posix (Depends-on): Likewise.
27784         * modules/snprintf-posix (Depends-on): Likewise.
27785         * modules/vsnprintf-posix (Depends-on): Likewise.
27786         * modules/sprintf-posix (Depends-on): Likewise.
27787         * modules/vsprintf-posix (Depends-on): Likewise.
27788         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27789         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27790         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27791         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27792         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27793         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27794         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27795
27796         Add support for universal builds to <inttypes.h>.
27797         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27798         _SCNu64_PREFIX): In Apple
27799         universal builds, define directly, using _LP64.
27800         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27801         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27802         * modules/inttypes (Depends-on): Add multiarch.
27803         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27804
27805         Add support for universal builds to <stdint.h>.
27806         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27807         universal builds, define directly, using _LP64.
27808         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27809         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27810         and size_t.
27811         * modules/stdint (Depends-on): Add multiarch.
27812         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27813
27814         New module 'multiarch'.
27815         * modules/multiarch: New file.
27816         * m4/multiarch.m4: New file.
27817
27818 2008-12-25  Bruno Haible  <bruno@clisp.org>
27819
27820         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27821
27822 2008-12-25  Bruno Haible  <bruno@clisp.org>
27823
27824         * modules/btowc (License): Relicense under LGPLv2+.
27825         * modules/mbsinit (License): Likewise.
27826         * modules/mbrtowc (License): Likewise.
27827         * modules/wcrtomb (License): Likewise.
27828         * modules/streq (License): Likewise.
27829         Reported by David Lutterkort <lutter@redhat.com>.
27830
27831 2008-12-23  Bruno Haible  <bruno@clisp.org>
27832
27833         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27834
27835 2008-12-23  Bruno Haible  <bruno@clisp.org>
27836
27837         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27838         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27839         GETADDRINFO_LIB, not in LIBS.
27840         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27841         * modules/canon-host (Link): Likewise.
27842         * NEWS: Mention the change.
27843         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27844         GETADDRINFO_LIB.
27845
27846 2008-12-22  Bruno Haible  <bruno@clisp.org>
27847
27848         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27849         * doc/posix-functions/iswalpha_l.texi: Likewise.
27850         * doc/posix-functions/iswblank_l.texi: Likewise.
27851         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27852         * doc/posix-functions/iswctype_l.texi: Likewise.
27853         * doc/posix-functions/iswdigit_l.texi: Likewise.
27854         * doc/posix-functions/iswgraph_l.texi: Likewise.
27855         * doc/posix-functions/iswlower_l.texi: Likewise.
27856         * doc/posix-functions/iswprint_l.texi: Likewise.
27857         * doc/posix-functions/iswpunct_l.texi: Likewise.
27858         * doc/posix-functions/iswspace_l.texi: Likewise.
27859         * doc/posix-functions/iswupper_l.texi: Likewise.
27860         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27861         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27862         * doc/posix-functions/open_wmemstream.texi: Likewise.
27863         * doc/posix-functions/swscanf.texi: Likewise.
27864         * doc/posix-functions/towctrans_l.texi: Likewise.
27865         * doc/posix-functions/towlower.texi: Likewise.
27866         * doc/posix-functions/towlower_l.texi: Likewise.
27867         * doc/posix-functions/towupper.texi: Likewise.
27868         * doc/posix-functions/towupper_l.texi: Likewise.
27869         * doc/posix-functions/vfwprintf.texi: Likewise.
27870         * doc/posix-functions/vfwscanf.texi: Likewise.
27871         * doc/posix-functions/vswscanf.texi: Likewise.
27872         * doc/posix-functions/vwprintf.texi: Likewise.
27873         * doc/posix-functions/vwscanf.texi: Likewise.
27874         * doc/posix-functions/wcpcpy.texi: Likewise.
27875         * doc/posix-functions/wcpncpy.texi: Likewise.
27876         * doc/posix-functions/wcscasecmp.texi: Likewise.
27877         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27878         * doc/posix-functions/wcscoll_l.texi: Likewise.
27879         * doc/posix-functions/wcsdup.texi: Likewise.
27880         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27881         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27882         * doc/posix-functions/wcsnlen.texi: Likewise.
27883         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27884         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27885         * doc/posix-functions/wctrans_l.texi: Likewise.
27886         * doc/posix-functions/wctype_l.texi: Likewise.
27887         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27888         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27889         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27890         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27891         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27892         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27893         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27894         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27895         * doc/glibc-functions/wcschrnul.texi: Likewise.
27896         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27897         * doc/glibc-functions/wcstod_l.texi: Likewise.
27898         * doc/glibc-functions/wcstof_l.texi: Likewise.
27899         * doc/glibc-functions/wcstol_l.texi: Likewise.
27900         * doc/glibc-functions/wcstold_l.texi: Likewise.
27901         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27902         * doc/glibc-functions/wcstoq.texi: Likewise.
27903         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27904         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27905         * doc/glibc-functions/wcstouq.texi: Likewise.
27906         * doc/glibc-functions/wmempcpy.texi: Likewise.
27907
27908 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27909             Eric Blake  <ebb9@byu.net>
27910             Paolo Bonzini  <bonzini@gnu.org>
27911             Bruno Haible  <bruno@clisp.org>
27912
27913         Make c-stack work on Haiku.
27914         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27915         (c_stack_action): Use SA_ONSTACK flag.
27916
27917 2008-12-22  Bruno Haible  <bruno@clisp.org>
27918
27919         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27920
27921 2008-12-22  Bruno Haible  <bruno@clisp.org>
27922
27923         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27924         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27925         being overridden.
27926         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27927         New macros.
27928         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27930         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27931         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27932
27933 2008-12-22  Bruno Haible  <bruno@clisp.org>
27934
27935         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27936         from test code.
27937
27938 2008-12-22  Eric Blake  <ebb9@byu.net>
27939
27940         Avoid gcc warnings on cygwin.
27941         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27942         Avoid unused variable.
27943         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27944         Likewise.
27945
27946 2008-12-22  Bruno Haible  <bruno@clisp.org>
27947
27948         Remove HAVE_MBRTOWC conditionals.
27949         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27950         (mbscasecmp): Assume mbrtowc function.
27951         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27952         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27953         * lib/mbschr.c: Include mbuiter.h unconditionally.
27954         (mbschr): Assume mbrtowc function.
27955         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27956         (mbscspn): Assume mbrtowc function.
27957         * lib/mbslen.c: Include mbuiter.h unconditionally.
27958         (mbslen): Assume mbrtowc function.
27959         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27960         (mbsncasecmp): Assume mbrtowc function.
27961         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27962         (mbsnlen): Assume mbrtowc function.
27963         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27964         (mbspbrk): Assume mbrtowc function.
27965         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27966         (mbspcasecmp): Assume mbrtowc function.
27967         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27968         (mbsrchr): Assume mbrtowc function.
27969         * lib/mbssep.c: Include mbuiter.h unconditionally.
27970         (mbssep): Assume mbrtowc function.
27971         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27972         (mbsspn): Assume mbrtowc function.
27973         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27974         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27975         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27976         (mbstok_r): Assume mbrtowc function.
27977         * lib/propername.c: Include mbuiter.h unconditionally.
27978         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27979         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27980         (trim2): Assume mbrtowc function.
27981         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27982         (mbsnwidth): Assume mbrtowc function.
27983         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27984         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27985         fallback definitions.
27986         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27987
27988 2008-12-22  Bruno Haible  <bruno@clisp.org>
27989
27990         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27991
27992 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27993
27994         * modules/regex: Request emulations for the mb*/wc* functions we need.
27995         * m4/regex.m4: Don't look for those functions here.
27996         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27997
27998 2008-12-22  Bruno Haible  <bruno@clisp.org>
27999
28000         * modules/fnmatch (Depends-on): Remove duplicated dependency.
28001
28002 2008-12-21  Bruno Haible  <bruno@clisp.org>
28003
28004         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
28005         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
28006         (Include): Remove conditionalization.
28007         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
28008         (Include): Remove conditionalization.
28009         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
28010         (Include): Remove conditionalization.
28011         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
28012         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28013         * NEWS: Mention the change.
28014         Reported by Alan Hourihane <alanh@fairlite.co.uk>
28015         via Sergey Poznyakoff <gray@gnu.org.ua>.
28016
28017 2008-12-21  Bruno Haible  <bruno@clisp.org>
28018
28019         * MODULES.html.sh (Extended multibyte and wide character utilities
28020         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
28021         wcrtomb, wcsrtombs.
28022         (Support for systems lacking POSIX:2008): Add accept, bind, close,
28023         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
28024         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
28025         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
28026
28027 2008-12-21  Bruno Haible  <bruno@clisp.org>
28028
28029         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
28030
28031 2008-12-21  Bruno Haible  <bruno@clisp.org>
28032
28033         * modules/wcsnrtombs-tests: New file.
28034         * tests/test-wcsnrtombs1.sh: New file.
28035         * tests/test-wcsnrtombs2.sh: New file.
28036         * tests/test-wcsnrtombs3.sh: New file.
28037         * tests/test-wcsnrtombs4.sh: New file.
28038         * tests/test-wcsnrtombs.c: New file.
28039
28040         New module 'wcsnrtombs'.
28041         * lib/wchar.in.h (wcsnrtombs): New declaration.
28042         * lib/wcsnrtombs.c: New file.
28043         * lib/wcsrtombs-state.c: New file.
28044         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
28045         (internal_state): Remove variable.
28046         * m4/wcsnrtombs.m4: New file.
28047         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
28048         compilation units.
28049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
28050         HAVE_WCSNRTOMBS.
28051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
28052         HAVE_WCSNRTOMBS.
28053         * modules/wcsnrtombs: New file.
28054         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
28055         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
28056
28057 2008-12-21  Bruno Haible  <bruno@clisp.org>
28058
28059         * modules/wcsrtombs-tests: New file.
28060         * tests/test-wcsrtombs1.sh: New file.
28061         * tests/test-wcsrtombs2.sh: New file.
28062         * tests/test-wcsrtombs3.sh: New file.
28063         * tests/test-wcsrtombs4.sh: New file.
28064         * tests/test-wcsrtombs.c: New file.
28065
28066         New module 'wcsrtombs'.
28067         * lib/wchar.in.h (wcsrtombs): New declaration.
28068         * lib/wcsrtombs.c: New file.
28069         * m4/wcsrtombs.m4: New file.
28070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
28071         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28072         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
28073         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28074         * modules/wcsrtombs: New file.
28075         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
28076         bugs.
28077
28078 2008-12-21  Bruno Haible  <bruno@clisp.org>
28079
28080         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
28081         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
28082         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
28083         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
28084         if not correct.
28085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
28086         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
28087         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28088         m4/locale-zh.m4, m4/codeset.m4.
28089         * doc/posix-functions/wcrtomb.texi: Document the bug.
28090
28091 2008-12-21  Bruno Haible  <bruno@clisp.org>
28092
28093         Work around a btowc() bug on IRIX 6.5.
28094         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
28095         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
28096         REPLACE_WTOBC if not.
28097         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
28098         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
28099         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
28100
28101 2008-12-21  Bruno Haible  <bruno@clisp.org>
28102
28103         * modules/wcrtomb-tests: New file.
28104         * tests/test-wcrtomb.sh: New file.
28105         * tests/test-wcrtomb.c: New file.
28106
28107         New module 'wcrtomb'.
28108         * lib/wchar.in.h (wcrtomb): New declaration.
28109         * lib/wcrtomb.c: New file.
28110         * m4/wcrtomb.m4: New file.
28111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
28112         HAVE_WCRTOMB.
28113         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
28114         HAVE_WCRTOMB.
28115         * modules/wcrtomb: New file.
28116         * doc/posix-functions/wcrtomb.texi: Mention the new module.
28117
28118 2008-12-21  Bruno Haible  <bruno@clisp.org>
28119
28120         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
28121         * modules/mbsrtowcs (Files): Likewise.
28122         * modules/wctob (Files): Likewise.
28123         * modules/c-strcase-tests (Files): Likewise.
28124         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28125         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28126         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28127         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28128         * modules/vasnprintf-posix-tests (Files): Likewise.
28129
28130 2008-12-21  William Pursell  <bill.pursell@gmail.com>
28131
28132         gitlog-to-changelog: pass all command-line arguments to git-log
28133         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
28134         it is sometimes convenient to filter the commits in various ways.
28135         gitlog-to-changelog only allows --since to specify a start date,
28136         but git-log itself supports many other filtering mechanisms.
28137         At the moment, I want to filter by branch name.  Rather than
28138         adding a --branch option to gitlog-to-changelog, it seems more
28139         flexible to simply pass all options directly to git-log and let
28140         git do the work.  Notice that this effectively makes --since a
28141         redundant option for gitlog-to-changelog, but removing it would
28142         require current usage to change since calls would then require
28143         an additional '--'.
28144
28145 2008-12-21  Bruno Haible  <bruno@clisp.org>
28146
28147         * modules/mbsnrtowcs-tests: New file.
28148         * tests/test-mbsnrtowcs1.sh: New file.
28149         * tests/test-mbsnrtowcs2.sh: New file.
28150         * tests/test-mbsnrtowcs3.sh: New file.
28151         * tests/test-mbsnrtowcs4.sh: New file.
28152         * tests/test-mbsnrtowcs.c: New file.
28153
28154         New module 'mbsnrtowcs'.
28155         * lib/wchar.in.h (mbsnrtowcs): New declaration.
28156         * lib/mbsnrtowcs.c: New file.
28157         * lib/mbsrtowcs-state.c: New file.
28158         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
28159         (internal_state): Remove variable.
28160         * m4/mbsnrtowcs.m4: New file.
28161         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
28162         compilation units.
28163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
28164         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28165         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
28166         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28167         * modules/mbsnrtowcs: New file.
28168         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
28169         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
28170         portability problem.
28171
28172 2008-12-21  Bruno Haible  <bruno@clisp.org>
28173
28174         Work around mbsrtowcs bug.
28175         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
28176         (gl_FUNC_MBSRTOWCS): Invoke it.
28177         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28178         m4/locale-zh.m4.
28179         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
28180
28181 2008-12-21  Bruno Haible  <bruno@clisp.org>
28182
28183         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
28184
28185 2008-12-21  Bruno Haible  <bruno@clisp.org>
28186
28187         Update doc for AIX.
28188         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
28189         16-bit wchar_t type.
28190         * doc/posix-functions/btowc.texi: Likewise.
28191         * doc/posix-functions/fgetwc.texi: Likewise.
28192         * doc/posix-functions/fgetws.texi: Likewise.
28193         * doc/posix-functions/fputwc.texi: Likewise.
28194         * doc/posix-functions/fputws.texi: Likewise.
28195         * doc/posix-functions/fwide.texi: Likewise.
28196         * doc/posix-functions/fwprintf.texi: Likewise.
28197         * doc/posix-functions/fwscanf.texi: Likewise.
28198         * doc/posix-functions/getwchar.texi: Likewise.
28199         * doc/posix-functions/getwc.texi: Likewise.
28200         * doc/posix-functions/iswalnum.texi: Likewise.
28201         * doc/posix-functions/iswalpha.texi: Likewise.
28202         * doc/posix-functions/iswblank.texi: Likewise.
28203         * doc/posix-functions/iswcntrl.texi: Likewise.
28204         * doc/posix-functions/iswctype.texi: Likewise.
28205         * doc/posix-functions/iswdigit.texi: Likewise.
28206         * doc/posix-functions/iswgraph.texi: Likewise.
28207         * doc/posix-functions/iswlower.texi: Likewise.
28208         * doc/posix-functions/iswprint.texi: Likewise.
28209         * doc/posix-functions/iswpunct.texi: Likewise.
28210         * doc/posix-functions/iswspace.texi: Likewise.
28211         * doc/posix-functions/iswupper.texi: Likewise.
28212         * doc/posix-functions/iswxdigit.texi: Likewise.
28213         * doc/posix-functions/mbrtowc.texi: Likewise.
28214         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28215         * doc/posix-functions/mbstowcs.texi: Likewise.
28216         * doc/posix-functions/mbtowc.texi: Likewise.
28217         * doc/posix-functions/putwchar.texi: Likewise.
28218         * doc/posix-functions/putwc.texi: Likewise.
28219         * doc/posix-functions/swprintf.texi: Likewise.
28220         * doc/posix-functions/tolower.texi: Likewise.
28221         * doc/posix-functions/toupper.texi: Likewise.
28222         * doc/posix-functions/towctrans.texi: Likewise.
28223         * doc/posix-functions/ungetwc.texi: Likewise.
28224         * doc/posix-functions/vswprintf.texi: Likewise.
28225         * doc/posix-functions/wcrtomb.texi: Likewise.
28226         * doc/posix-functions/wcscat.texi: Likewise.
28227         * doc/posix-functions/wcschr.texi: Likewise.
28228         * doc/posix-functions/wcscmp.texi: Likewise.
28229         * doc/posix-functions/wcscoll.texi: Likewise.
28230         * doc/posix-functions/wcscpy.texi: Likewise.
28231         * doc/posix-functions/wcscspn.texi: Likewise.
28232         * doc/posix-functions/wcsftime.texi: Likewise.
28233         * doc/posix-functions/wcslen.texi: Likewise.
28234         * doc/posix-functions/wcsncat.texi: Likewise.
28235         * doc/posix-functions/wcsncmp.texi: Likewise.
28236         * doc/posix-functions/wcsncpy.texi: Likewise.
28237         * doc/posix-functions/wcspbrk.texi: Likewise.
28238         * doc/posix-functions/wcsrchr.texi: Likewise.
28239         * doc/posix-functions/wcsrtombs.texi: Likewise.
28240         * doc/posix-functions/wcsspn.texi: Likewise.
28241         * doc/posix-functions/wcsstr.texi: Likewise.
28242         * doc/posix-functions/wcstod.texi: Likewise.
28243         * doc/posix-functions/wcstof.texi: Likewise.
28244         * doc/posix-functions/wcstoimax.texi: Likewise.
28245         * doc/posix-functions/wcstok.texi: Likewise.
28246         * doc/posix-functions/wcstold.texi: Likewise.
28247         * doc/posix-functions/wcstoll.texi: Likewise.
28248         * doc/posix-functions/wcstol.texi: Likewise.
28249         * doc/posix-functions/wcstombs.texi: Likewise.
28250         * doc/posix-functions/wcstoull.texi: Likewise.
28251         * doc/posix-functions/wcstoul.texi: Likewise.
28252         * doc/posix-functions/wcstoumax.texi: Likewise.
28253         * doc/posix-functions/wcswidth.texi: Likewise.
28254         * doc/posix-functions/wcsxfrm.texi: Likewise.
28255         * doc/posix-functions/wctob.texi: Likewise.
28256         * doc/posix-functions/wctomb.texi: Likewise.
28257         * doc/posix-functions/wctrans.texi: Likewise.
28258         * doc/posix-functions/wctype.texi: Likewise.
28259         * doc/posix-functions/wcwidth.texi: Likewise.
28260         * doc/posix-functions/wmemchr.texi: Likewise.
28261         * doc/posix-functions/wmemcmp.texi: Likewise.
28262         * doc/posix-functions/wmemcpy.texi: Likewise.
28263         * doc/posix-functions/wmemmove.texi: Likewise.
28264         * doc/posix-functions/wmemset.texi: Likewise.
28265         * doc/posix-functions/wprintf.texi: Likewise.
28266         * doc/posix-functions/wscanf.texi: Likewise.
28267
28268 2008-12-21  Bruno Haible  <bruno@clisp.org>
28269
28270         Update doc for HP-UX 11.11.
28271         * doc/posix-functions/btowc.texi: Clarify that the function is missing
28272         in HP-UX version 11.00, not in all versions of HP-UX 11.
28273         * doc/posix-functions/fwide.texi: Likewise.
28274         * doc/posix-functions/fwprintf.texi: Likewise.
28275         * doc/posix-functions/fwscanf.texi: Likewise.
28276         * doc/posix-functions/inet_ntop.texi: Likewise.
28277         * doc/posix-functions/inet_pton.texi: Likewise.
28278         * doc/posix-functions/mbrlen.texi: Likewise.
28279         * doc/posix-functions/mbrtowc.texi: Likewise.
28280         * doc/posix-functions/mbsinit.texi: Likewise.
28281         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28282         * doc/posix-functions/swprintf.texi: Likewise.
28283         * doc/posix-functions/swscanf.texi: Likewise.
28284         * doc/posix-functions/towctrans.texi: Likewise.
28285         * doc/posix-functions/vfwprintf.texi: Likewise.
28286         * doc/posix-functions/vswprintf.texi: Likewise.
28287         * doc/posix-functions/vwprintf.texi: Likewise.
28288         * doc/posix-functions/wcrtomb.texi: Likewise.
28289         * doc/posix-functions/wcsrtombs.texi: Likewise.
28290         * doc/posix-functions/wcsstr.texi: Likewise.
28291         * doc/posix-functions/wctob.texi: Likewise.
28292         * doc/posix-functions/wctrans.texi: Likewise.
28293         * doc/posix-functions/wmemchr.texi: Likewise.
28294         * doc/posix-functions/wmemcmp.texi: Likewise.
28295         * doc/posix-functions/wmemcpy.texi: Likewise.
28296         * doc/posix-functions/wmemmove.texi: Likewise.
28297         * doc/posix-functions/wmemset.texi: Likewise.
28298         * doc/posix-functions/wprintf.texi: Likewise.
28299         * doc/posix-functions/wscanf.texi: Likewise.
28300
28301 2008-12-21  Bruno Haible  <bruno@clisp.org>
28302
28303         Work around a portability problem.
28304         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
28305         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
28306
28307 2008-12-20  Bruno Haible  <bruno@clisp.org>
28308
28309         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
28310         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
28311         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
28312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
28313         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
28314
28315         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
28316         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
28317         set.
28318         (GNULIB_defined_mbstate_t): New macro.
28319         (mbsinit): Redefine if REPLACE_MBSINIT is set.
28320         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
28321         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
28322         reuses the system's mbrtowc function but works around the bugs.
28323         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
28324         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
28325         macros.
28326         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28327         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
28328         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
28329         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
28330         REPLACE_MBSINIT if mbsinit needs to be overridden.
28331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
28332         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28333         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
28334         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28335         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28336         m4/locale-zh.m4.
28337         (Depends): Add mbsinit.
28338         * modules/mbsinit (Depends): Add mbrtowc.
28339         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
28340
28341 2008-12-20  Bruno Haible  <bruno@clisp.org>
28342
28343         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
28344         so that there are no conversion errors on AIX.
28345         * tests/test-mbsrtowcs.c (main): LIkewise.
28346
28347 2008-12-20  Bruno Haible  <bruno@clisp.org>
28348
28349         Work around wctob bug on Solaris <= 9.
28350         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
28351         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
28352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
28353         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
28354         * modules/wctob (Files): Add m4/locale-fr.m4.
28355         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
28356
28357 2008-12-20  Bruno Haible  <bruno@clisp.org>
28358
28359         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
28360         /dev/null.
28361         * tests/test-select-in.sh: Likewise.
28362         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28363
28364 2008-12-20  Bruno Haible  <bruno@clisp.org>
28365
28366         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
28367         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
28368         Cygwin 1.5.x.
28369
28370 2008-12-20  Bruno Haible  <bruno@clisp.org>
28371
28372         Ensure mbstate_t is defined on HP-UX 11.11.
28373         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
28374         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
28375         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
28376         AC_USE_SYSTEM_EXTENSIONS.
28377         * modules/fnmatch (Depends-on): Add extensions.
28378         * modules/mbrlen (Depends-on): Likewise.
28379         * modules/mbrtowc (Depends-on): Likewise.
28380         * modules/mbsinit (Depends-on): Likewise.
28381         * modules/mbsrtowcs (Depends-on): Likewise.
28382         * modules/mbswidth (Depends-on): Likewise.
28383         * modules/quotearg (Depends-on): Likewise.
28384         * modules/strftime (Depends-on): Likewise.
28385
28386 2008-12-20  Bruno Haible  <bruno@clisp.org>
28387
28388         Ensure wctob is declared on IRIX 6.5.
28389         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
28390         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
28391         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
28392         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
28393         of HAVE_WCTOB.
28394         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
28395         HAVE_WCTOB.
28396         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
28397
28398 2008-12-19  Bruno Haible  <bruno@clisp.org>
28399
28400         * modules/mbsrtowcs-tests: New file.
28401         * tests/test-mbsrtowcs1.sh: New file.
28402         * tests/test-mbsrtowcs2.sh: New file.
28403         * tests/test-mbsrtowcs3.sh: New file.
28404         * tests/test-mbsrtowcs4.sh: New file.
28405         * tests/test-mbsrtowcs.c: New file.
28406
28407         New module 'mbsrtowcs'.
28408         * lib/wchar.in.h (mbsrtowcs): New declaration.
28409         * lib/mbsrtowcs.c: New file.
28410         * m4/mbsrtowcs.m4: New file.
28411         * modules/mbsrtowcs: New file.
28412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28413         HAVE_MBSRTOWCS.
28414         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28415         HAVE_MBSRTOWCS.
28416         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28417
28418 2008-12-19  Bruno Haible  <bruno@clisp.org>
28419
28420         New module 'mbrlen'.
28421         * lib/wchar.in.h (mbrlen): New declaration.
28422         * lib/mbrlen.c: New file.
28423         * m4/mbrlen.m4: New file.
28424         * modules/mbrlen: New file.
28425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28426         HAVE_MBRLEN.
28427         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28428         HAVE_MBRLEN.
28429         * doc/posix-functions/mbrlen.texi: Document the new module.
28430
28431 2008-12-19  Bruno Haible  <bruno@clisp.org>
28432
28433         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28434         * modules/mbrtowc (Depends-on): Add verify.
28435         Suggested by Paul Eggert.
28436
28437 2008-12-18  Bruno Haible  <bruno@clisp.org>
28438
28439         * modules/mbsinit-tests: New file.
28440         * tests/test-mbsinit.sh: New file.
28441         * tests/test-mbsinit.c: New file.
28442
28443 2008-12-18  Bruno Haible  <bruno@clisp.org>
28444
28445         * modules/mbrtowc-tests: New file.
28446         * tests/test-mbrtowc1.sh: New file.
28447         * tests/test-mbrtowc2.sh: New file.
28448         * tests/test-mbrtowc3.sh: New file.
28449         * tests/test-mbrtowc4.sh: New file.
28450         * tests/test-mbrtowc.c: New file.
28451
28452         New module 'mbrtowc'.
28453         * lib/wchar.in.h (mbstate_t): Override when the system does not have
28454         mbsinit and mbrtowc.
28455         (mbrtowc): New declaration.
28456         * lib/mbrtowc.c: New file.
28457         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
28458         * modules/mbrtowc: New file.
28459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28460         HAVE_MBRTOWC.
28461         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28462         HAVE_MBRTOWC.
28463         * doc/posix-functions/mbrtowc.texi: Document the new module.
28464
28465 2008-12-18  Bruno Haible  <bruno@clisp.org>
28466
28467         New module 'wctob'.
28468         * lib/wchar.in.h (wctob): New declaration.
28469         * lib/wctob.c: New file.
28470         * m4/wctob.m4: New file.
28471         * modules/wctob: New file.
28472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28473         HAVE_WCTOB.
28474         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28475         * doc/posix-functions/wctob.texi: Document the new module.
28476
28477 2008-12-18  Bruno Haible  <bruno@clisp.org>
28478
28479         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28480         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28481
28482 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28483
28484         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28485         G. Christensen" <tgc@jupiterrise.com>.
28486
28487         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28488         G. Christensen" <tgc@jupiterrise.com>.
28489
28490         * lib/flock.c: Need to include string.h.  Reported by "Tom
28491         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28492         <ebb9@byu.net>.
28493
28494 2008-12-18  Bruno Haible  <bruno@clisp.org>
28495
28496         * m4/locale-ja.m4: New file, from GNU gettext.
28497
28498 2008-12-17  Bruno Haible  <bruno@clisp.org>
28499
28500         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28501         Suggested by Eric Blake.
28502
28503 2008-12-17  Bruno Haible  <bruno@clisp.org>
28504
28505         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28506
28507 2008-12-17  Bruno Haible  <bruno@clisp.org>
28508
28509         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28510         * modules/mbsinit (Depends-on): Add verify.
28511         Suggested by Paul Eggert.
28512
28513 2008-12-17  Bruno Haible  <bruno@clisp.org>
28514
28515         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28516         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28517         gl_FUNC_MBRTOWC.
28518         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28519         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28520         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28521         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28522         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28523         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28524         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28525         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28526         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28527         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28528         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28529         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28530         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28531         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28532         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28533         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28534         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28535         * modules/trim (configure.ac): Likewise.
28536
28537 2008-12-17  Bruno Haible  <bruno@clisp.org>
28538
28539         * modules/btowc-tests: New file.
28540         * tests/test-btowc1.sh: New file.
28541         * tests/test-btowc2.sh: New file.
28542         * tests/test-btowc.c: New file.
28543
28544         New module 'btowc'.
28545         * lib/wchar.in.h (btowc): New declaration.
28546         * lib/btowc.c: New file.
28547         * m4/btowc.m4: New file.
28548         * modules/btowc: New file.
28549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28550         HAVE_BTOWC.
28551         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28552         * doc/posix-functions/btowc.texi: Document the new module.
28553
28554 2008-12-17  Bruno Haible  <bruno@clisp.org>
28555
28556         New module 'mbsinit'.
28557         * lib/wchar.in.h (mbsinit): New declaration.
28558         * lib/mbsinit.c: New file.
28559         * m4/mbsinit.m4: New file.
28560         * modules/mbsinit: New file.
28561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28562         HAVE_MBSINIT.
28563         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28564         HAVE_MBSINIT.
28565         * doc/posix-functions/mbsinit.texi: Document the new module.
28566
28567 2008-12-16  Bruno Haible  <bruno@clisp.org>
28568
28569         * lib/unistd.in.h: Add comment.
28570         * tests/test-environ.c: Don't include <stdlib.h>.
28571
28572 2008-12-16  Bruno Haible  <bruno@clisp.org>
28573
28574         * lib/parse-duration.h (parse_duration): Document return value
28575         convention.
28576         * lib/parse-duration.c: Include specification header first. Add
28577         comments.
28578         (_): Remove macro.
28579         (parse_year_month_day, parse_hour_minute_second): Move side effects
28580         outside of strchr call.
28581         (parse_non_iso8601): Move side effects outside of isspace call.
28582         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28583         call.
28584
28585 2008-12-16  Bruno Haible  <bruno@clisp.org>
28586
28587         * tests/test-parse-duration.sh: Produce no output when the test
28588         succeeds.
28589
28590 2008-12-16  Bruno Haible  <bruno@clisp.org>
28591
28592         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28593         expressions.
28594
28595 2008-12-15  Bruno Haible  <bruno@clisp.org>
28596
28597         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28598         * doc/glibc-functions/flistxattr.texi: Likewise.
28599         * doc/glibc-functions/fopencookie.texi: Likewise.
28600         * doc/glibc-functions/fremovexattr.texi: Likewise.
28601         * doc/glibc-functions/fsetxattr.texi: Likewise.
28602         * doc/glibc-functions/getxattr.texi: Likewise.
28603         * doc/glibc-functions/lgetxattr.texi: Likewise.
28604         * doc/glibc-functions/listxattr.texi: Likewise.
28605         * doc/glibc-functions/llistxattr.texi: Likewise.
28606         * doc/glibc-functions/lremovexattr.texi: Likewise.
28607         * doc/glibc-functions/lsetxattr.texi: Likewise.
28608         * doc/glibc-functions/removexattr.texi: Likewise.
28609         * doc/glibc-functions/setxattr.texi: Likewise.
28610         * doc/posix-functions/open_memstream.texi: Likewise.
28611
28612 2008-12-15  Eric Blake  <ebb9@byu.net>
28613
28614         Update doc for cygwin 1.7.
28615         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28616         functions.
28617         * doc/posix-functions/fchmodat.texi: Likewise.
28618         * doc/posix-functions/fchownat.texi: Likewise.
28619         * doc/posix-functions/fdopendir.texi: Likewise.
28620         * doc/posix-functions/fmemopen.texi: Likewise.
28621         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28622         * doc/posix-functions/fstatat.texi: Likewise.
28623         * doc/posix-functions/futimens.texi: Likewise.
28624         * doc/posix-functions/gai_strerror.texi: Likewise.
28625         * doc/posix-functions/getaddrinfo.texi: Likewise.
28626         * doc/posix-functions/getnameinfo.texi: Likewise.
28627         * doc/posix-functions/if_freenameindex.texi: Likewise.
28628         * doc/posix-functions/if_indextoname.texi: Likewise.
28629         * doc/posix-functions/if_nameindex.texi: Likewise.
28630         * doc/posix-functions/if_nametoindex.texi: Likewise.
28631         * doc/posix-functions/insque.texi: Likewise.
28632         * doc/posix-functions/linkat.texi: Likewise.
28633         * doc/posix-functions/llrint.texi: Likewise.
28634         * doc/posix-functions/llrintf.texi: Likewise.
28635         * doc/posix-functions/llrintl.texi: Likewise.
28636         * doc/posix-functions/lockf.texi: Likewise.
28637         * doc/posix-functions/lrintl.texi: Likewise.
28638         * doc/posix-functions/mkdirat.texi: Likewise.
28639         * doc/posix-functions/mkfifoat.texi: Likewise.
28640         * doc/posix-functions/mknodat.texi: Likewise.
28641         * doc/posix-functions/mq_close.texi: Likewise.
28642         * doc/posix-functions/mq_getattr.texi: Likewise.
28643         * doc/posix-functions/mq_notify.texi: Likewise.
28644         * doc/posix-functions/mq_open.texi: Likewise.
28645         * doc/posix-functions/mq_receive.texi: Likewise.
28646         * doc/posix-functions/mq_send.texi: Likewise.
28647         * doc/posix-functions/mq_setattr.texi: Likewise.
28648         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28649         * doc/posix-functions/mq_timedsend.texi: Likewise.
28650         * doc/posix-functions/mq_unlink.texi: Likewise.
28651         * doc/posix-functions/open_memstream.texi: Likewise.
28652         * doc/posix-functions/openat.texi: Likewise.
28653         * doc/posix-functions/posix_fadvise.texi: Likewise.
28654         * doc/posix-functions/posix_fallocate.texi: Likewise.
28655         * doc/posix-functions/posix_madvise.texi: Likewise.
28656         * doc/posix-functions/posix_memalign.texi: Likewise.
28657         * doc/posix-functions/posix_openpt.texi: Likewise.
28658         * doc/posix-functions/readlinkat.texi: Likewise.
28659         * doc/posix-functions/remque.texi: Likewise.
28660         * doc/posix-functions/renameat.texi: Likewise.
28661         * doc/posix-functions/rintl.texi: Likewise.
28662         * doc/posix-functions/sem_unlink.texi: Likewise.
28663         * doc/posix-functions/shm_open.texi: Likewise.
28664         * doc/posix-functions/shm_unlink.texi: Likewise.
28665         * doc/posix-functions/signgam.texi: Likewise.
28666         * doc/posix-functions/sigset.texi: Likewise.
28667         * doc/posix-functions/stpcpy.texi: Likewise.
28668         * doc/posix-functions/stpncpy.texi: Likewise.
28669         * doc/posix-functions/strerror.texi: Likewise.
28670         * doc/posix-functions/strtod.texi: Likewise.
28671         * doc/posix-functions/symlinkat.texi: Likewise.
28672         * doc/posix-functions/unlinkat.texi: Likewise.
28673         * doc/posix-functions/utimensat.texi: Likewise.
28674         * doc/glibc-functions/bindresvport.texi: Likewise.
28675         * doc/glibc-functions/dn_expand.texi: Likewise.
28676         * doc/glibc-functions/exp10.texi: Likewise.
28677         * doc/glibc-functions/exp10f.texi: Likewise.
28678         * doc/glibc-functions/fgetxattr.texi: Likewise.
28679         * doc/glibc-functions/flistxattr.texi: Likewise.
28680         * doc/glibc-functions/fopencookie.texi: Likewise.
28681         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28682         * doc/glibc-functions/fremovexattr.texi: Likewise.
28683         * doc/glibc-functions/fsetxattr.texi: Likewise.
28684         * doc/glibc-functions/getifaddrs.texi: Likewise.
28685         * doc/glibc-functions/getxattr.texi: Likewise.
28686         * doc/glibc-functions/lgetxattr.texi: Likewise.
28687         * doc/glibc-functions/listxattr.texi: Likewise.
28688         * doc/glibc-functions/llistxattr.texi: Likewise.
28689         * doc/glibc-functions/lremovexattr.texi: Likewise.
28690         * doc/glibc-functions/lsetxattr.texi: Likewise.
28691         * doc/glibc-functions/pow10.texi: Likewise.
28692         * doc/glibc-functions/pow10f.texi: Likewise.
28693         * doc/glibc-functions/rcmd_af.texi: Likewise.
28694         * doc/glibc-functions/removexattr.texi: Likewise.
28695         * doc/glibc-functions/res_init.texi: Likewise.
28696         * doc/glibc-functions/res_mkquery.texi: Likewise.
28697         * doc/glibc-functions/res_query.texi: Likewise.
28698         * doc/glibc-functions/res_querydomain.texi: Likewise.
28699         * doc/glibc-functions/res_send.texi: Likewise.
28700         * doc/glibc-functions/rresvport_af.texi: Likewise.
28701         * doc/glibc-functions/setxattr.texi: Likewise.
28702         * doc/glibc-functions/strcasestr.texi: Likewise.
28703
28704 2008-12-15  Bruno Haible  <bruno@clisp.org>
28705
28706         Fix compilation error on OSF/1 4.0.
28707         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28708         <sys/time.h>, simply delegate to the system header.
28709         Reported by Daniel Richard G. <oss@teragram.com>.
28710
28711 2008-12-15  Bruno Haible  <bruno@clisp.org>
28712
28713         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28714         * doc/posix-functions/fchmodat.texi: Likewise.
28715         * doc/posix-functions/fchownat.texi: Likewise.
28716         * doc/posix-functions/fdopendir.texi: Likewise.
28717         * doc/posix-functions/fstatat.texi: Likewise.
28718         * doc/posix-functions/mkdirat.texi: Likewise.
28719         * doc/posix-functions/unlinkat.texi: Likewise.
28720
28721 2008-12-14  Bruno Haible  <bruno@clisp.org>
28722
28723         Update doc for POSIX:2008.
28724         * doc/posix-functions/faccessat.texi: New file.
28725         * doc/posix-functions/fchmodat.texi: New file.
28726         * doc/posix-functions/fchownat.texi: New file.
28727         * doc/posix-functions/fdopendir.texi: New file.
28728         * doc/posix-functions/fstatat.texi: New file.
28729         * doc/posix-functions/futimens.texi: New file.
28730         * doc/posix-functions/linkat.texi: New file.
28731         * doc/posix-functions/mkdirat.texi: New file.
28732         * doc/posix-functions/mkfifoat.texi: New file.
28733         * doc/posix-functions/mknodat.texi: New file.
28734         * doc/posix-functions/open_wmemstream.texi: New file.
28735         * doc/posix-functions/openat.texi: New file.
28736         * doc/posix-functions/psiginfo.texi: New file.
28737         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28738         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28739         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28740         * doc/posix-functions/readlinkat.texi: New file.
28741         * doc/posix-functions/renameat.texi: New file.
28742         * doc/posix-functions/strerror_l.texi: New file.
28743         * doc/posix-functions/symlinkat.texi: New file.
28744         * doc/posix-functions/unlinkat.texi: New file.
28745         * doc/posix-functions/utimensat.texi: New file.
28746         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28747
28748 2008-12-14  Bruno Haible  <bruno@clisp.org>
28749
28750         Update doc for POSIX:2008.
28751         * doc/posix-functions/alphasort.texi: Renamed from
28752         doc/glibc-functions/alphasort.texi.
28753         * doc/posix-functions/dirfd.texi: Renamed from
28754         doc/glibc-functions/dirfd.texi.
28755         * doc/posix-functions/dprintf.texi: Renamed from
28756         doc/glibc-functions/dprintf.texi.
28757         * doc/posix-functions/duplocale.texi: Renamed from
28758         doc/glibc-functions/duplocale.texi.
28759         * doc/posix-functions/fexecve.texi: Renamed from
28760         doc/glibc-functions/fexecve.texi.
28761         * doc/posix-functions/fmemopen.texi: Renamed from
28762         doc/glibc-functions/fmemopen.texi.
28763         * doc/posix-functions/freelocale.texi: Renamed from
28764         doc/glibc-functions/freelocale.texi.
28765         * doc/posix-functions/getdate_err.texi: Renamed from
28766         doc/glibc-functions/getdate_err.texi.
28767         * doc/posix-functions/isalnum_l.texi: Renamed from
28768         doc/glibc-functions/isalnum_l.texi.
28769         * doc/posix-functions/isalpha_l.texi: Renamed from
28770         doc/glibc-functions/isalpha_l.texi.
28771         * doc/posix-functions/isblank_l.texi: Renamed from
28772         doc/glibc-functions/isblank_l.texi.
28773         * doc/posix-functions/iscntrl_l.texi: Renamed from
28774         doc/glibc-functions/iscntrl_l.texi.
28775         * doc/posix-functions/isdigit_l.texi: Renamed from
28776         doc/glibc-functions/isdigit_l.texi.
28777         * doc/posix-functions/isgraph_l.texi: Renamed from
28778         doc/glibc-functions/isgraph_l.texi.
28779         * doc/posix-functions/islower_l.texi: Renamed from
28780         doc/glibc-functions/islower_l.texi.
28781         * doc/posix-functions/isprint_l.texi: Renamed from
28782         doc/glibc-functions/isprint_l.texi.
28783         * doc/posix-functions/ispunct_l.texi: Renamed from
28784         doc/glibc-functions/ispunct_l.texi.
28785         * doc/posix-functions/isspace_l.texi: Renamed from
28786         doc/glibc-functions/isspace_l.texi.
28787         * doc/posix-functions/isupper_l.texi: Renamed from
28788         doc/glibc-functions/isupper_l.texi.
28789         * doc/posix-functions/iswalnum_l.texi: Renamed from
28790         doc/glibc-functions/iswalnum_l.texi.
28791         * doc/posix-functions/iswalpha_l.texi: Renamed from
28792         doc/glibc-functions/iswalpha_l.texi.
28793         * doc/posix-functions/iswblank_l.texi: Renamed from
28794         doc/glibc-functions/iswblank_l.texi.
28795         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28796         doc/glibc-functions/iswcntrl_l.texi.
28797         * doc/posix-functions/iswctype_l.texi: Renamed from
28798         doc/glibc-functions/iswctype_l.texi.
28799         * doc/posix-functions/iswdigit_l.texi: Renamed from
28800         doc/glibc-functions/iswdigit_l.texi.
28801         * doc/posix-functions/iswgraph_l.texi: Renamed from
28802         doc/glibc-functions/iswgraph_l.texi.
28803         * doc/posix-functions/iswlower_l.texi: Renamed from
28804         doc/glibc-functions/iswlower_l.texi.
28805         * doc/posix-functions/iswprint_l.texi: Renamed from
28806         doc/glibc-functions/iswprint_l.texi.
28807         * doc/posix-functions/iswpunct_l.texi: Renamed from
28808         doc/glibc-functions/iswpunct_l.texi.
28809         * doc/posix-functions/iswspace_l.texi: Renamed from
28810         doc/glibc-functions/iswspace_l.texi.
28811         * doc/posix-functions/iswupper_l.texi: Renamed from
28812         doc/glibc-functions/iswupper_l.texi.
28813         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28814         doc/glibc-functions/iswxdigit_l.texi.
28815         * doc/posix-functions/isxdigit_l.texi: Renamed from
28816         doc/glibc-functions/isxdigit_l.texi.
28817         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28818         doc/glibc-functions/mbsnrtowcs.texi.
28819         * doc/posix-functions/mkdtemp.texi: Renamed from
28820         doc/glibc-functions/mkdtemp.texi.
28821         * doc/posix-functions/newlocale.texi: Renamed from
28822         doc/glibc-functions/newlocale.texi.
28823         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28824         doc/glibc-functions/nl_langinfo_l.texi.
28825         * doc/posix-functions/open_memstream.texi: Renamed from
28826         doc/glibc-functions/open_memstream.texi.
28827         * doc/posix-functions/opterr.texi: Renamed from
28828         doc/glibc-functions/opterr.texi.
28829         * doc/posix-functions/optind.texi: Renamed from
28830         doc/glibc-functions/optind.texi.
28831         * doc/posix-functions/optopt.texi: Renamed from
28832         doc/glibc-functions/optopt.texi.
28833         * doc/posix-functions/psignal.texi: Renamed from
28834         doc/glibc-functions/psignal.texi.
28835         * doc/posix-functions/scandir.texi: Renamed from
28836         doc/glibc-functions/scandir.texi.
28837         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28838         doc/glibc-functions/sched_get_priority_min.texi.
28839         * doc/posix-functions/signgam.texi: Renamed from
28840         doc/glibc-functions/signgam.texi.
28841         * doc/posix-functions/stpcpy.texi: Renamed from
28842         doc/glibc-functions/stpcpy.texi.
28843         * doc/posix-functions/stpncpy.texi: Renamed from
28844         doc/glibc-functions/stpncpy.texi.
28845         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28846         doc/glibc-functions/strcasecmp_l.texi.
28847         * doc/posix-functions/strcoll_l.texi: Renamed from
28848         doc/glibc-functions/strcoll_l.texi.
28849         * doc/posix-functions/strfmon_l.texi: Renamed from
28850         doc/glibc-functions/strfmon_l.texi.
28851         * doc/posix-functions/strftime_l.texi: Renamed from
28852         doc/glibc-functions/strftime_l.texi.
28853         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28854         doc/glibc-functions/strncasecmp_l.texi.
28855         * doc/posix-functions/strndup.texi: Renamed from
28856         doc/glibc-functions/strndup.texi.
28857         * doc/posix-functions/strnlen.texi: Renamed from
28858         doc/glibc-functions/strnlen.texi.
28859         * doc/posix-functions/strsignal.texi: Renamed from
28860         doc/glibc-functions/strsignal.texi.
28861         * doc/posix-functions/strxfrm_l.texi: Renamed from
28862         doc/glibc-functions/strxfrm_l.texi.
28863         * doc/posix-functions/timer_gettime.texi: Renamed from
28864         doc/glibc-functions/timer_gettime.texi.
28865         * doc/posix-functions/tolower_l.texi: Renamed from
28866         doc/glibc-functions/tolower_l.texi.
28867         * doc/posix-functions/toupper_l.texi: Renamed from
28868         doc/glibc-functions/toupper_l.texi.
28869         * doc/posix-functions/towctrans_l.texi: Renamed from
28870         doc/glibc-functions/towctrans_l.texi.
28871         * doc/posix-functions/towlower_l.texi: Renamed from
28872         doc/glibc-functions/towlower_l.texi.
28873         * doc/posix-functions/towupper_l.texi: Renamed from
28874         doc/glibc-functions/towupper_l.texi.
28875         * doc/posix-functions/uselocale.texi: Renamed from
28876         doc/glibc-functions/uselocale.texi.
28877         * doc/posix-functions/vdprintf.texi: Renamed from
28878         doc/glibc-functions/vdprintf.texi.
28879         * doc/posix-functions/wcpcpy.texi:
28880         Renamed from doc/glibc-functions/wcpcpy.texi.
28881         * doc/posix-functions/wcpncpy.texi: Renamed from
28882         doc/glibc-functions/wcpncpy.texi.
28883         * doc/posix-functions/wcscasecmp.texi: Renamed from
28884         doc/glibc-functions/wcscasecmp.texi.
28885         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28886         doc/glibc-functions/wcscasecmp_l.texi.
28887         * doc/posix-functions/wcscoll_l.texi: Renamed from
28888         doc/glibc-functions/wcscoll_l.texi.
28889         * doc/posix-functions/wcsdup.texi: Renamed from
28890         doc/glibc-functions/wcsdup.texi.
28891         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28892         doc/glibc-functions/wcsncasecmp.texi.
28893         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28894         doc/glibc-functions/wcsncasecmp_l.texi.
28895         * doc/posix-functions/wcsnlen.texi: Renamed from
28896         doc/glibc-functions/wcsnlen.texi.
28897         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28898         doc/glibc-functions/wcsnrtombs.texi.
28899         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28900         doc/glibc-functions/wcsxfrm_l.texi.
28901         * doc/posix-functions/wctrans_l.texi: Renamed from
28902         doc/glibc-functions/wctrans_l.texi.
28903         * doc/posix-functions/wctype_l.texi: Renamed from
28904         doc/glibc-functions/wctype_l.texi.
28905         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28906         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28907         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28908         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28909         these subsections.
28910         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28911         Remove sections.
28912
28913 2008-12-14  Bruno Haible  <bruno@clisp.org>
28914
28915         Update doc for POSIX:2008.
28916         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28917
28918 2008-12-14  Bruno Haible  <bruno@clisp.org>
28919
28920         Update doc for POSIX:2008.
28921         * doc/pastposix-functions/bcmp.texi: Renamed from
28922         doc/posix-functions/bcmp.texi.
28923         * doc/pastposix-functions/bcopy.texi: Renamed from
28924         doc/posix-functions/bcopy.texi.
28925         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28926         doc/posix-functions/bsd_signal.texi.
28927         * doc/pastposix-functions/bzero.texi: Renamed from
28928         doc/posix-functions/bzero.texi.
28929         * doc/pastposix-functions/ecvt.texi: Renamed from
28930         doc/posix-functions/ecvt.texi.
28931         * doc/pastposix-functions/fcvt.texi: Renamed from
28932         doc/posix-functions/fcvt.texi.
28933         * doc/pastposix-functions/ftime.texi: Renamed from
28934         doc/posix-functions/ftime.texi.
28935         * doc/pastposix-functions/gcvt.texi: Renamed from
28936         doc/posix-functions/gcvt.texi.
28937         * doc/pastposix-functions/getcontext.texi: Renamed from
28938         doc/posix-functions/getcontext.texi.
28939         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28940         doc/posix-functions/gethostbyaddr.texi.
28941         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28942         doc/posix-functions/gethostbyname.texi.
28943         * doc/pastposix-functions/getwd.texi: Renamed from
28944         doc/posix-functions/getwd.texi.
28945         * doc/pastposix-functions/h_errno.texi: Renamed from
28946         doc/posix-functions/h_errno.texi.
28947         * doc/pastposix-functions/index.texi: Renamed from
28948         doc/posix-functions/index.texi.
28949         * doc/pastposix-functions/makecontext.texi: Renamed from
28950         doc/posix-functions/makecontext.texi.
28951         * doc/pastposix-functions/mktemp.texi: Renamed from
28952         doc/posix-functions/mktemp.texi.
28953         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28954         doc/posix-functions/pthread_attr_getstackaddr.texi.
28955         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28956         doc/posix-functions/pthread_attr_setstackaddr.texi.
28957         * doc/pastposix-functions/rindex.texi: Renamed from
28958         doc/posix-functions/rindex.texi.
28959         * doc/pastposix-functions/scalb.texi: Renamed from
28960         doc/posix-functions/scalb.texi.
28961         * doc/pastposix-functions/setcontext.texi: Renamed from
28962         doc/posix-functions/setcontext.texi.
28963         * doc/pastposix-functions/swapcontext.texi: Renamed from
28964         doc/posix-functions/swapcontext.texi.
28965         * doc/pastposix-functions/ualarm.texi: Renamed from
28966         doc/posix-functions/ualarm.texi.
28967         * doc/pastposix-functions/usleep.texi: Renamed from
28968         doc/posix-functions/usleep.texi.
28969         * doc/pastposix-functions/vfork.texi: Renamed from
28970         doc/posix-functions/vfork.texi.
28971         * doc/pastposix-functions/wcswcs.texi: Renamed from
28972         doc/posix-functions/wcswcs.texi.
28973         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28974         (Function Substitutes): Update.
28975
28976 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28977
28978         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28979         m4/strerror.m4.
28980
28981 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28982             Bruno Haible  <bruno@clisp.org>
28983
28984         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28985
28986 2008-12-13  Bruno Haible  <bruno@clisp.org>
28987
28988         * modules/strtoull (Depends-on): Remove unistd.
28989
28990 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28991
28992         * modules/strtoull (Depends-on): Add stdlib.
28993
28994 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28995
28996         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28997
28998 2008-12-10  Jim Meyering  <meyering@redhat.com>
28999
29000         gl_ASSERT: don't say assertions are disabled when they're not
29001         * m4/assert.m4 (gl_ASSERT): Do not make configure report
29002         "checking whether to enable assertions... no", when they are in
29003         fact enabled.  This is solely a bug in the output of configure.
29004         In spite of saying "no", NDEBUG was not defined in that case.
29005         Also, as noted by Eric Blake, leave assertions enabled upon
29006         --enable-assert=INVALID.
29007
29008 2008-12-10  Bruno Haible  <bruno@clisp.org>
29009
29010         Change MODULES.html to refer to POSIX:2008 where possible.
29011         * MODULES.html.sh (POSIX2008_URL): New variable.
29012         (posix_headers): Remove sys/timeb, ucontext.
29013         (posix2001_headers): New variable.
29014         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
29015         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
29016         index, makecontext, mktemp, pthread_attr_getstackaddr,
29017         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
29018         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
29019         (posix2001_functions): New variable.
29020         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
29021         otherwise.
29022
29023 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29024
29025         add missing include to parse-duration.c
29026         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
29027         * modules/parse-duration (Depends-on): Add xalloc.
29028
29029         fix sed script reading maint.mk
29030         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
29031         (syntax-check-rules): Use it.
29032
29033 2008-12-09  Bruno Haible  <bruno@clisp.org>
29034
29035         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
29036         MacOS X 10.4/PowerPC.
29037         Reported by Simon Josefsson.
29038
29039 2008-12-08  Jim Meyering  <meyering@redhat.com>
29040
29041         work around mingw's lack of some S_IF definitions
29042         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
29043         Reported by Simon Josefsson.
29044
29045 2008-12-08  Bruno Haible  <bruno@clisp.org>
29046
29047         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
29048         applied to variables. Needed on MacOS X 10.4/PowerPC.
29049         Reported by Simon Josefsson.
29050
29051 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
29052         and Eric Blake  <ebb9@byu.net>
29053
29054         assert: honor --enable-assert
29055         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
29056         order to honor --enable-assert, rather than treating it as a
29057         synonym for --disable-assert.
29058
29059 2008-12-08  Jim Meyering  <meyering@redhat.com>
29060
29061         * lib/posixtm.c: Remove now-useless declaration of mktime.
29062
29063         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
29064
29065 2008-12-07  Bruno Haible  <bruno@clisp.org>
29066
29067         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
29068         test_once): Mark functions as static.
29069         * tests/test-tls.c (test_tls): Likewise.
29070
29071 2008-12-07  Bruno Haible  <bruno@clisp.org>
29072
29073         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
29074         iconv_register_autodetect.
29075
29076 2008-12-07  Jim Meyering  <meyering@redhat.com>
29077
29078         posixtm.c: avoid a warning
29079         * lib/posixtm.c (posixtime): Don't initialize tm0.
29080         It's no longer needed to placate gcc4's -Wuninitialized,
29081         and the attempt to placate would elicit a new warning.
29082
29083         unicodeio.c: mark unused parameters
29084         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29085         (fallback_failure_callback): Likewise.
29086
29087 2008-12-07  Bruno Haible  <bruno@clisp.org>
29088
29089         * gnulib-tool (func_create_testdir): When building the tests
29090         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
29091         Reported by Simon Josefsson.
29092
29093 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29094
29095         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
29096
29097 2008-12-06  Bruno Haible  <bruno@clisp.org>
29098
29099         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
29100         Suggested by Eric Blake.
29101
29102 2008-12-06  Bruno Haible  <bruno@clisp.org>
29103
29104         Fix a c-stack test failure on MacOS X.
29105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
29106         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
29107         handler for SIGBUS as well.
29108         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
29109         install a signal handler for SIGBUS as well.
29110         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
29111
29112 2008-12-06  Bruno Haible  <bruno@clisp.org>
29113
29114         Advocacy documentation.
29115         * doc/gnulib-intro.texi (Benefits): New section.
29116         * doc/gnulib.texi: Update.
29117
29118 2008-12-06  Bruno Haible  <bruno@clisp.org>
29119
29120         Document the 'manywarnings' module.
29121         * doc/manywarnings.texi: New file.
29122         * doc/gnulib.texi: Include it.
29123
29124 2008-12-05  Eric Blake  <ebb9@byu.net>
29125
29126         tests: silence some gcc warnings
29127         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
29128         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
29129         type mismatches.
29130
29131 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29132             Bruno Haible  <bruno@clisp.org>
29133
29134         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
29135
29136 2008-11-29  Jim Meyering  <meyering@redhat.com>
29137
29138         unicodeio.c: mark unused parameters
29139         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29140         (fallback_failure_callback): Likewise.
29141
29142         fts: fix a thinko
29143         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
29144         (set_stat_type): Return S_IF*-valued "type" directly.
29145         Prompted by James Youngman's spotting a related bug.
29146         Confirmed by further testing through find.
29147
29148         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
29149         * lib/fts.c (D_TYPE): Define.
29150         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
29151         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
29152         (s_ifmt_shift_bits): New function.
29153         (set_stat_type): New function.
29154         (fts_build): When not calling fts_stat, call set_stat_type
29155         to propagate dirent.d_type info to fts_read caller.
29156         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
29157         fts_statp->st_mode type information may be valid.
29158
29159 2008-11-28  Simon Josefsson  <simon@josefsson.org>
29160
29161         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
29162         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
29163         <sds@gnu.org>.
29164
29165 2008-11-20  Bruno Haible  <bruno@clisp.org>
29166
29167         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
29168         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
29169         INCLUDE_NEXT.
29170         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
29171         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
29172         * modules/math (Makefile.am): Substitute
29173         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
29174         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29175
29176 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29177             Bruno Haible  <bruno@clisp.org>
29178
29179         * lib/stdint.in.h: Define all type macros so that their expansion is
29180         a single typedef'ed token. Fixes a compilation failure in Boost which
29181         does "using ::int8_t;".
29182
29183 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29184
29185         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
29186         gl_MANYWARN_ALL_GCC.
29187         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
29188         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
29189         * modules/manywarnings: New file.
29190         * MODULES.html.sh: Mention manywarnings module.
29191
29192 2008-11-18  Bruno Haible  <bruno@clisp.org>
29193
29194         * doc/gnulib-tool.texi (Unit tests): New section.
29195
29196 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29197
29198         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
29199         paths like 'lib/po/foo.po'.
29200
29201 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29202
29203         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
29204         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
29205
29206 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29207
29208         * m4/warnings.m4: Use CPPFLAGS to really check whether the
29209         parameter works.
29210
29211 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29212
29213         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
29214
29215 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29216
29217         * modules/parse-duration-tests: New file.
29218         * tests/test-parse-duration.sh: New file.
29219         * tests/test-parse-duration.c: New file.
29220
29221         New module 'parse-duration'.
29222         * lib/parse-duration.h: New file.
29223         * lib/parse-duration.c: New file.
29224         * modules/parse-duration: New file.
29225
29226 2008-11-17  Bruno Haible  <bruno@clisp.org>
29227
29228         * tests/test-select-out.sh: Comment out the first pipe test.
29229         Reported by Simon Josefsson.
29230
29231 2008-11-17  Bruno Haible  <bruno@clisp.org>
29232
29233         * modules/getaddrinfo (Depends-on): Add servent, hostent.
29234         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
29235         gl_HOSTENT.
29236
29237 2008-11-17  Bruno Haible  <bruno@clisp.org>
29238
29239         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
29240         -lnetwork and -lnet. Needed for Haiku and BeOS.
29241
29242 2008-11-16  Bruno Haible  <bruno@clisp.org>
29243
29244         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
29245
29246 2008-11-16  Bruno Haible  <bruno@clisp.org>
29247
29248         Avoid test failure on Haiku.
29249         * tests/test-fsync.c: Include <errno.h>.
29250         (main): Don't require that fsync (0) fails.
29251
29252 2008-11-15  Bruno Haible  <bruno@clisp.org>
29253
29254         New module 'hostent'.
29255         * modules/hostent: New file.
29256         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
29257
29258 2008-11-15  Bruno Haible  <bruno@clisp.org>
29259
29260         New module 'servent'.
29261         * modules/servent: New file.
29262         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
29263
29264 2008-11-15  Bruno Haible  <bruno@clisp.org>
29265
29266         Avoid generating same test program with two different rules.
29267         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
29268         test-frexp to test-frexp-nolibm.
29269         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29270         test-frexpl to test-frexpl-nolibm.
29271
29272 2008-11-15  Bruno Haible  <bruno@clisp.org>
29273
29274         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
29275         $(FREXPL_LIBM).
29276
29277 2008-11-15  Bruno Haible  <bruno@clisp.org>
29278
29279         * lib/netdb.in.h: Activate the definitions also when the system's
29280         <netdb.h> has 'struct addrinfo'.
29281         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
29282         EAI_OVERFLOW or AI_NUMERICSERV.
29283         * doc/posix-headers/netdb.texi: Document the problem.
29284
29285 2008-11-15  Bruno Haible  <bruno@clisp.org>
29286
29287         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
29288
29289         Make the 'sched' module work on platforms where <sched.h> exists but
29290         is incomplete (such as Haiku).
29291         * lib/sched.in.h; Include the system's <sched.h> if it exists.
29292         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
29293         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
29294         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
29295         HAVE_STRUCT_SCHED_PARAM.
29296         * modules/sched (Depends-on): Add include_next.
29297         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
29298         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
29299         * doc/posix-headers/sched.texi: Document the issue.
29300
29301 2008-11-13  Jim Meyering  <meyering@redhat.com>
29302
29303         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
29304         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
29305         test would fail due to the difference in the Report bugs to ...
29306         line.  The expected address is empty, "<>", while the actual
29307         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
29308
29309 2008-11-12  Bruno Haible  <bruno@clisp.org>
29310
29311         lstat: don't compile lstat.c on systems lacking lstat
29312         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
29313         which don't have lstat; this is handled by lib/sys_stat.in.h already.
29314         Reported by Daniel P. Berrange via Jim Meyering.
29315
29316 2008-11-12  Jim Meyering  <meyering@redhat.com>
29317
29318         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
29319
29320 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29321
29322         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
29323         instead.
29324
29325 2008-11-12  Bruno Haible  <bruno@clisp.org>
29326
29327         * lib/unicodeio.c: Include unistr.h.
29328         (utf8_wctomb): Remove function.
29329         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
29330
29331 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29332
29333         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
29334         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
29335         <bruno@clisp.org>.
29336         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
29337
29338 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29339
29340         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
29341         * doc/gnulib.texi: Add section for warnings.
29342
29343 2008-11-11  Bruno Haible  <bruno@clisp.org>
29344
29345         * lib/sockets.h: Add a comment.
29346
29347 2008-11-11  Karl Berry  <karl@gnu.org>
29348
29349         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
29350
29351 2008-11-11  Eric Blake  <ebb9@byu.net>
29352
29353         fdl.texi: avoid git symlinks
29354         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
29355
29356 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29357
29358         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
29359
29360 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29361
29362         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
29363         (gl_WARN_ADD): Substitute $2 if literal.
29364
29365 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29366
29367         * m4/warning.m4: Remove.
29368
29369 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29370
29371         * m4/warnings.m4: Almost complete rewrite. :-)
29372
29373 2008-11-10  Simon Josefsson  <simon@josefsson.org>
29374
29375         * modules/warnings: New module.
29376         * m4/warnings.m4: New file.
29377         * MODULES.html.sh: Mention warnings module.
29378         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
29379         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29380
29381 2008-11-10  Eric Blake  <ebb9@byu.net>
29382
29383         fdl.texi: make a symlink to the latest version
29384         * doc/standards.texi: Revert today's earlier change.
29385         * doc/fdl-1.2.texi: Rename from old fdl.texi...
29386         * doc/fdl.texi: ...and replace this with a symlink to the newer
29387         fdl-1.3.texi.
29388
29389 2008-11-10  Bruno Haible  <bruno@clisp.org>
29390
29391         * tests/test-select-fd.c (main): Accept the result file name as fourth
29392         argument.
29393         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
29394         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
29395
29396 2008-11-10  Bruno Haible  <bruno@clisp.org>
29397
29398         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
29399         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
29400         as autoconf-substituted macros.
29401         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
29402         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
29403         gl_NETDB_H_DEFAULTS. Set these variables.
29404         * modules/netdb (Makefile.am): Substitute these variables.
29405
29406 2008-11-10  Eric Blake  <ebb9@byu.net>
29407
29408         standards.texi: include correct file for FDL 1.3
29409         * doc/standards.texi (GNU Free Documentation License): Change
29410         include file to pull in FDL 1.3, not 1.2.
29411
29412         fdl.texi: revert accidental change to license
29413         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29414
29415 2008-11-10  Bruno Haible  <bruno@clisp.org>
29416
29417         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29418         cross-compiling guesses also when the native compile gives no result.
29419
29420 2008-11-10  Bruno Haible  <bruno@clisp.org>
29421
29422         * lib/spawni.c (__spawni): Force variable into the stack.
29423
29424 2008-11-10  Bruno Haible  <bruno@clisp.org>
29425
29426         Add support for Haiku.
29427         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29428         glibc and BeOS, but also on Haiku.
29429         * lib/fpurge.c (fpurge): Likewise.
29430         * lib/freadable.c (freadable): Likewise.
29431         * lib/freadahead.c (freadahead): Likewise.
29432         * lib/freading.c (freading): Likewise.
29433         * lib/freadptr.c (freadptr): Likewise.
29434         * lib/freadseek.c (freadptrinc): Likewise.
29435         * lib/fseeko.c (rpl_fseeko): Likewise.
29436         * lib/fseterr.c (fseterr): Likewise.
29437         * lib/fwritable.c (fwritable): Likewise.
29438         * lib/fwriting.c (fwriting): Likewise.
29439         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29440
29441 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29442
29443         * lib/config.charset: Treat Haiku like BeOS.
29444
29445 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29446
29447         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29448         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
29449
29450 2008-11-08  Bruno Haible  <bruno@clisp.org>
29451
29452         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
29453         AC_CACHE_CHECK.
29454
29455 2008-11-08  Bruno Haible  <bruno@clisp.org>
29456
29457         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
29458
29459 2008-11-08  Bruno Haible  <bruno@clisp.org>
29460
29461         * tests/test-select-fd.c: New file.
29462         * tests/test-select-in.sh: New file.
29463         * tests/test-select-out.sh: New file.
29464         * tests/test-select-stdin.c: New file.
29465         * modules/select-tests (Files): Add the new files.
29466         (Depends-on): Add gettimeofday.
29467         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29468         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29469         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29470
29471 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29472             Bruno Haible  <bruno@clisp.org>
29473
29474         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29475
29476 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29477
29478         * build-aux/pmccabe2html: Added support for C++ source files.
29479
29480 2008-11-05  Ben Pfaff  <blp@gnu.org>
29481
29482         Fix lib/close.c build on Windows.
29483         * modules/close (Files): Add lib/w32sock.h.
29484
29485 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29486
29487         Accept Bison's NEWS format.
29488         * build-aux/announce-gen (print_news_deltas): Tweak
29489         $re_prefix.
29490
29491 2008-11-04  Bruno Haible  <bruno@clisp.org>
29492
29493         * modules/random_r (Maintainer): Add glibc.
29494
29495 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29496
29497         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29498         by karl@freefriends.org (Karl Berry).
29499         * doc/alloca.texi: Likewise.
29500         * doc/c-ctype.texi: Likewise.
29501         * doc/c-strcase.texi: Likewise.
29502         * doc/c-strcaseeq.texi: Likewise.
29503         * doc/c-strcasestr.texi: Likewise.
29504         * doc/c-strstr.texi: Likewise.
29505         * doc/c-strtod.texi: Likewise.
29506         * doc/c-strtold.texi: Likewise.
29507         * doc/ctime.texi: Likewise.
29508         * doc/error.texi: Likewise.
29509         * doc/fdl.texi: Likewise.
29510         * doc/gcd.texi: Likewise.
29511         * doc/getdate.texi: Likewise.
29512         * doc/gnulib-intro.texi: Likewise.
29513         * doc/gnulib-tool.texi: Likewise.
29514         * doc/gnulib.texi: Likewise.
29515         * doc/inet_ntoa.texi: Likewise.
29516         * doc/maintain.texi: Likewise.
29517         * doc/make-stds.texi: Likewise.
29518         * doc/quote.texi: Likewise.
29519         * doc/regexprops-generic.texi: Likewise.
29520         * doc/standards.texi: Likewise.
29521         * doc/verify.texi: Likewise.
29522         * doc/visibility.texi: Likewise.
29523         * doc/gnulib.texi (GNU Free Documentation License): Include
29524         fdl-1.3.texi instead of fdl.texi.
29525
29526 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29527
29528         * doc/fdl-1.3.texi: New file, from
29529         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29530         * modules/fdl-1.3: Add.
29531         * MODULES.html.sh: Add fdl-1.3.
29532
29533 2008-11-03  Bruno Haible  <bruno@clisp.org>
29534
29535         Make determination of absolute name of header file work with AIX xlc.
29536         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29537         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29538         preprocessing.
29539         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29540         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29541
29542 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29543
29544         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29545         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29546         <ludo@gnu.org>.
29547
29548 2008-11-02  Bruno Haible  <bruno@clisp.org>
29549
29550         Mark 'strpbrk' obsolete.
29551         * modules/strpbrk (Status, Notice): New sections.
29552         * modules/strtok_r (Depends-on): Add strpbrk.
29553
29554 2008-11-02  Bruno Haible  <bruno@clisp.org>
29555
29556         Mark 'strdup' obsolete.
29557         * modules/strdup (Status, Notice): New sections.
29558         * modules/findprog (Depends-on): Add strdup.
29559         * modules/getaddrinfo (Depends-on): Likewise.
29560         * modules/localename (Depends-on): Likewise.
29561         * modules/relocatable-lib (Depends-on): Likewise.
29562         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29563         * modules/relocatable-prog (Depends-on): Likewise.
29564         * modules/trim (Depends-on): Likewise.
29565         * modules/unictype/gen-ctype (Depends-on): Likewise.
29566         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29567
29568 2008-11-02  Bruno Haible  <bruno@clisp.org>
29569
29570         Mark 'strcspn' obsolete.
29571         * modules/strcspn (Status, Notice): New sections.
29572
29573 2008-11-02  Bruno Haible  <bruno@clisp.org>
29574
29575         Mark 'rmdir' obsolete.
29576         * modules/rmdir (Status, Notice): New sections.
29577         * modules/clean-temp (Depends-on): Add rmdir.
29578         * modules/openat (Depends-on): Likewise.
29579
29580 2008-11-02  Bruno Haible  <bruno@clisp.org>
29581
29582         Mark 'raise' obsolete.
29583         * modules/raise (Status, Notice): New sections.
29584         (Include): Specify <signal.h>.
29585         * modules/stdio (Depends-on): Add raise.
29586         * modules/write (Depends-on): Likewise.
29587
29588 2008-11-02  Bruno Haible  <bruno@clisp.org>
29589
29590         Mark 'memset' obsolete.
29591         * modules/memset (Status, Notice): New sections.
29592
29593 2008-11-02  Bruno Haible  <bruno@clisp.org>
29594
29595         Mark 'memmove' obsolete.
29596         * modules/memmove (Status, Notice): New sections.
29597         * modules/argp (Depends-on): Add memmove.
29598         * modules/argz (Depends-on): Likewise.
29599         * modules/canonicalize (Depends-on): Likewise.
29600         * modules/canonicalize-lgpl (Depends-on): Likewise.
29601         * modules/fts (Depends-on): Likewise.
29602         * modules/getcwd (Depends-on): Likewise.
29603         * modules/human (Depends-on): Likewise.
29604         * modules/regex (Depends-on): Likewise.
29605         * modules/striconveh (Depends-on): Likewise.
29606         * modules/trim (Depends-on): Likewise.
29607         * modules/unistr/u8-move (Depends-on): Likewise.
29608         * modules/unistr/u16-move (Depends-on): Likewise.
29609         * modules/unistr/u32-move (Depends-on): Likewise.
29610
29611 2008-11-02  Bruno Haible  <bruno@clisp.org>
29612
29613         Mark 'memcpy' obsolete.
29614         * modules/memcpy (Status, Notice): New sections.
29615
29616 2008-11-02  Bruno Haible  <bruno@clisp.org>
29617
29618         Mark 'memcmp' obsolete.
29619         * modules/memcmp (Status, Notice): New sections.
29620         * modules/argmatch (Depends-on): Add memchr.
29621         * modules/backupfile (Depends-on): Likewise.
29622         * modules/c-strcasestr (Depends-on): Likewise.
29623         * modules/crypto/des (Depends-on): Likewise.
29624         * modules/csharpcomp (Depends-on): Likewise.
29625         * modules/fnmatch (Depends-on): Likewise.
29626         * modules/git-merge-changelog (Depends-on): Likewise.
29627         * modules/isnand (Depends-on): Likewise.
29628         * modules/isnand-nolibm (Depends-on): Likewise.
29629         * modules/isnanf (Depends-on): Likewise.
29630         * modules/isnanf-nolibm (Depends-on): Likewise.
29631         * modules/isnanl (Depends-on): Likewise.
29632         * modules/isnanl-nolibm (Depends-on): Likewise.
29633         * modules/mbchar (Depends-on): Likewise.
29634         * modules/memcoll (Depends-on): Likewise.
29635         * modules/quotearg (Depends-on): Likewise.
29636         * modules/regex (Depends-on): Likewise.
29637         * modules/relocatable-prog (Depends-on): Likewise.
29638         * modules/same (Depends-on): Likewise.
29639         * modules/signbit (Depends-on): Likewise.
29640         * modules/strcasestr-simple (Depends-on): Likewise.
29641         * modules/unictype/gen-ctype (Depends-on): Likewise.
29642         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29643         * modules/uniname/uniname (Depends-on): Likewise.
29644         * modules/unistr/u8-cmp (Depends-on): Likewise.
29645
29646 2008-11-02  Bruno Haible  <bruno@clisp.org>
29647
29648         Mark 'memchr' obsolete.
29649         * modules/memchr (Status, Notice): New sections.
29650         * modules/argp (Depends-on): Add memchr.
29651         * modules/base64 (Depends-on): Likewise.
29652         * modules/c-strcasestr (Depends-on): Likewise.
29653         * modules/chdir-long (Depends-on): Likewise.
29654         * modules/fnmatch (Depends-on): Likewise.
29655         * modules/getsubopt (Depends-on): Likewise.
29656         * modules/git-merge-changelog (Depends-on): Likewise.
29657         * modules/glob (Depends-on): Likewise.
29658         * modules/strcasestr-simple (Depends-on): Likewise.
29659         * modules/strnlen (Depends-on): Likewise.
29660
29661 2008-11-02  Bruno Haible  <bruno@clisp.org>
29662
29663         Mark 'atexit' obsolete.
29664         * modules/atexit (Status, Notice): New sections.
29665         * modules/chdir-long (Depends-on): Add atexit.
29666         * modules/wait-process (Depends-on): Likewise.
29667
29668 2008-11-02  Bruno Haible  <bruno@clisp.org>
29669
29670         * gnulib-tool: New option --with-obsolete.
29671         (func_usage): Document it.
29672         (func_modules_transitive_closure): Drop obsolete dependencies if
29673         incobsolete is not true.
29674         (func_import): Read and save the incobsolete variable to the cache.
29675
29676 2008-11-02  Bruno Haible  <bruno@clisp.org>
29677
29678         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29679         * gnulib-tool: New option --extract-status.
29680         (func_usage): Document it.
29681         (sed_extract_prog): Recognize it.
29682         (func_get_status): New function.
29683
29684 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29685
29686         * modules/sockets (License): Change from LGPL to LGPLv2+.
29687
29688 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29689
29690         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29691
29692 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29693
29694         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29695         Mention times and sys_times.
29696         * modules/sys_times, modules/sys_times-tests: New modules.
29697         * modules/times, modules/times-tests: Likewise
29698         * m4/sys_times_h.m4: New file.
29699         * lib/sys_times.in.h: Likewise
29700         * lib/times.c: Likewise.
29701         * tests/test-sys_times.c: Likewise.
29702         * tests/test-times.c: Likewise.
29703         * doc/posix-headers/sys_times.texi: Update.
29704         * doc/posix-functions/times.texi: Update.
29705
29706 2008-10-28  Jim Meyering  <meyering@redhat.com>
29707
29708         * modules/tempname (Depends-on): Add lstat.
29709
29710         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29711
29712 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29713
29714         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29715         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29716         using idiom used elsewhere in gnulib.
29717
29718 2008-10-27  Jim Meyering  <meyering@redhat.com>
29719
29720         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29721
29722 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29723
29724         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29725         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29726         programs.
29727         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29728
29729 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29730
29731         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29732
29733 2008-10-27  Bruno Haible  <bruno@clisp.org>
29734
29735         * tests/test-lstat.c: Include <stdio.h>.
29736
29737 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29738
29739         * modules/lstat-tests: New module.
29740         * tests/test-lstat.c: New file.
29741
29742 2008-10-26  Jim Meyering  <meyering@redhat.com>
29743
29744         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29745
29746 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29747             Bruno Haible  <bruno@clisp.org>
29748
29749         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29750         * modules/configmake (Include): Add a note that the include must come
29751         after all system headers.
29752         * lib/javaversion.c: Include configmake.h after all other includes.
29753
29754 2008-10-26  Bruno Haible  <bruno@clisp.org>
29755
29756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29757         HAVE_STRUCT_RANDOM_DATA to 1.
29758         (gl_STDLIB_H): Simplify.
29759
29760 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29761
29762         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29763         substitute HAVE_STRUCT_RANDOM_DATA.
29764         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29765         random_data.
29766         * modules/stdlib (Makefile.am): Substitute
29767         HAVE_STRUCT_RANDOM_DATA.
29768
29769 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29770
29771         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29772         * doc/gnulib-intro.texi (Copyright): Likewise.
29773
29774 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29775
29776         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29777         findings.
29778
29779 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29780             Bruno Haible  <bruno@clisp.org>
29781
29782         * lib/unistd.in.h: Include <winsock2.h>.
29783         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29784         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29785         Provide dummy declarations.
29786         (gethostname): Override.
29787         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29788         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29789         gl_PREREQ_SYS_H_WINSOCK2.
29790         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29791         * doc/posix-functions/gethostname.texi: More details.
29792
29793 2008-10-25  Bruno Haible  <bruno@clisp.org>
29794
29795         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29796         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29797         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29798
29799         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29800         here ...
29801         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29802         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29803         gl_UNISTD_H_DEFAULTS.
29804
29805 2008-10-25  Eric Blake  <ebb9@byu.net>
29806
29807         signbit: avoid spurious compiler failure
29808         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29809         declarations inside function.
29810
29811 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29812             Bruno Haible  <bruno@clisp.org>
29813
29814         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29815         * modules/random_r (Depends-on): Add stdint.
29816
29817 2008-10-24  Bruno Haible  <bruno@clisp.org>
29818
29819         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29820         Eggert.
29821         * modules/strerror (License): Likewise.
29822
29823 2008-10-24  Jim Meyering  <meyering@redhat.com>
29824
29825         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29826         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29827
29828 2008-10-24  Eric Blake  <ebb9@byu.net>
29829
29830         getgroups: fix compilation when getgroups is available
29831         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29832         but with <config.h> override of getgroups disabled.
29833
29834 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29835
29836         * doc/gnulib.texi (Header files): Add note about C++ problems.
29837         Explained by Bruno Haible <bruno@clisp.org>.
29838
29839 2008-10-23  Bruno Haible  <bruno@clisp.org>
29840
29841         Define a dummy SA_NODEFER macro on Interix.
29842         * lib/signal.in.h (SA_NODEFER): Define fallback.
29843         Reported by Aleksey Cheusov <cheusov@tut.by> via
29844         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29845
29846 2008-10-23  Bruno Haible  <bruno@clisp.org>
29847
29848         * modules/freadahead (License): Change to LGPLv2+.
29849         Suggested by Simon Josefsson.
29850
29851 2008-10-23  Jim Meyering  <meyering@redhat.com>
29852
29853         random_r: new module
29854         * modules/random_r: New file.
29855         * m4/random_r.m4: New file.
29856         * lib/random_r.c: New file, from glibc.
29857         * modules/random_r-tests: New file.
29858         * tests/test-random_r.c: New file.
29859         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29860          Declare.
29861         (RAND_MAX): Define.
29862         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29863         * modules/stdlib: Substitute them, too.
29864         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29865         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29866         * doc/glibc-functions/random_r.texi: Likewise.
29867         * doc/glibc-functions/setstate_r.texi: Likewise.
29868         * doc/glibc-functions/srandom_r.texi: Likewise.
29869         * config/srclist.txt: Mention it.
29870
29871 2008-10-23  David Lutterkort  <lutter@redhat.com>
29872
29873         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29874         link requirement
29875
29876 2008-10-23  Jim Meyering  <meyering@redhat.com>
29877
29878         selinux-h: mark parameters of stub functions as intentionally unused
29879         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29880         * lib/se-context.in.h: Likewise.
29881
29882 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29883
29884         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29885
29886 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29887
29888         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29889
29890 2008-10-22  Eric Blake  <ebb9@byu.net>
29891
29892         glthread/thread: avoid compiler warning
29893         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29894         Add unreachable abort to silence compiler.
29895
29896 2008-10-22  Eric Blake  <ebb9@byu.net>
29897
29898         netdb: also supply struct addrinfo for cygwin 1.5.x
29899         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29900         older cygwin.
29901         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29902         cygwin.
29903         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29904
29905 2008-10-22  Bruno Haible  <bruno@clisp.org>
29906
29907         * users.txt: Update entry about pspp.
29908
29909 2008-10-21  Bruno Haible  <bruno@clisp.org>
29910
29911         Simplification.
29912         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29913         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29914
29915         Simplification.
29916         * lib/ioctl.c (ioctl): Don't undefine.
29917         * lib/socket.c (socket): Don't undefine.
29918
29919         Remove unused module indicator macros.
29920         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29921         GNULIB_$1 as a C macro.
29922
29923         * doc/posix-functions/close.texi: Undo last change.
29924         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29925         Windows platforms.
29926
29927 2008-10-21  Bruno Haible  <bruno@clisp.org>
29928
29929         Add gethostname() declaration to <unistd.h>.
29930         * lib/unistd.in.h (gethostname): New declaration.
29931         * lib/gethostname.c: Include <unistd.h>.
29932         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29933         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29935         and HAVE_GETHOSTNAME.
29936         * modules/gethostname (Depends-on): Add unistd.
29937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29938         (Include): Specify <unistd.h>.
29939         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29940         HAVE_GETHOSTNAME.
29941         * tests/test-gethostname.c: Include <unistd.h> first.
29942
29943 2008-10-21  Bruno Haible  <bruno@clisp.org>
29944
29945         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29946         * modules/select-tests (Depends-on): Likewise.
29947         Reported by Simon Josefsson.
29948
29949 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29950
29951         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29952         * lib/accept.c: New file, based on winsock.c.
29953         * lib/bind.c: New file, based on winsock.c.
29954         * lib/connect.c: New file, based on winsock.c.
29955         * lib/getpeername.c: New file, based on winsock.c.
29956         * lib/getsockname.c: New file, based on winsock.c.
29957         * lib/getsockopt.c: New file, based on winsock.c.
29958         * lib/ioctl.c: New file, based on winsock.c.
29959         * lib/listen.c: New file, based on winsock.c.
29960         * lib/recv.c: New file, based on winsock.c.
29961         * lib/recvfrom.c: New file, based on winsock.c.
29962         * lib/send.c: New file, based on winsock.c.
29963         * lib/sendto.c: New file, based on winsock.c.
29964         * lib/setsockopt.c: New file, based on winsock.c.
29965         * lib/shutdown.c: New file, based on winsock.c.
29966         * lib/socket.c: New file, based on winsock.c.
29967         * lib/w32sock.h: New file, based on winsock.c.
29968         * lib/winsock.c: Remove file.
29969         * modules/accept: Likewise.
29970         * modules/bind: Likewise.
29971         * modules/connect: Likewise.
29972         * modules/getpeername: Likewise.
29973         * modules/getsockname: Likewise.
29974         * modules/getsockopt: Likewise.
29975         * modules/ioctl: Likewise.
29976         * modules/listen: Likewise.
29977         * modules/recv: Likewise.
29978         * modules/recvfrom: Likewise.
29979         * modules/send: Likewise.
29980         * modules/sendto: Likewise.
29981         * modules/setsockopt: Likewise.
29982         * modules/shutdown: Likewise.
29983         * modules/socket: Use socket.c instead of winsock.c.
29984         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29985         * doc/posix-functions/accept.texi: Doc fix.
29986         * doc/posix-functions/bind.texi: Doc fix.
29987         * doc/posix-functions/close.texi: Doc fix.
29988         * doc/posix-functions/connect.texi: Doc fix.
29989         * doc/posix-functions/getpeername.texi: Doc fix.
29990         * doc/posix-functions/getsockname.texi: Doc fix.
29991         * doc/posix-functions/getsockopt.texi: Doc fix.
29992         * doc/posix-functions/ioctl.texi: Doc fix.
29993         * doc/posix-functions/listen.texi: Doc fix.
29994         * doc/posix-functions/recv.texi: Doc fix.
29995         * doc/posix-functions/recvfrom.texi: Doc fix.
29996         * doc/posix-functions/send.texi: Doc fix.
29997         * doc/posix-functions/sendto.texi: Doc fix.
29998         * doc/posix-functions/setsockopt.texi: Doc fix.
29999         * doc/posix-functions/shutdown.texi: Doc fix.
30000         * doc/posix-functions/socket.texi: Doc fix.
30001
30002 2008-10-20  Bruno Haible  <bruno@clisp.org>
30003
30004         Take into account the role of SIGABRT_COMPAT on Windows 2008.
30005         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
30006         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
30007         as an alias for SIGABRT.
30008         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
30009         (sigaction): Map it to SIGABRT.
30010         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
30011
30012 2008-10-20  Bruno Haible  <bruno@clisp.org>
30013
30014         * lib/fts.c: Don't include lstat.h.
30015         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
30016
30017         Move the lstat() declaration to <sys/stat.h>.
30018         * lib/lstat.h: Remove file.
30019         * lib/sys_stat.in.h: Add special invocation convention.
30020         (lstat): New declaration.
30021         * lib/lstat.c (orig_lstat): New function.
30022         (rpl_lstat): Use orig_lstat instead of lstat.
30023         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
30024         AC_C_INLINE. Set REPLACE_LSTAT.
30025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
30026         and REPLACE_LSTAT.
30027         * modules/lstat (Files): Remove lib/lstat.h.
30028         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30029         (Include): Specify <sys/stat.h> instead of lstat.h.
30030         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
30031         REPLACE_LSTAT.
30032         * NEWS: Mention the change.
30033
30034 2008-10-20  Bruno Haible  <bruno@clisp.org>
30035
30036         * modules/posix_spawn-tests: New file.
30037         * tests/test-posix_spawn3.c: New file.
30038
30039 2008-10-20  Bruno Haible  <bruno@clisp.org>
30040
30041         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
30042         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30043         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
30044         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30045         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
30046
30047 2008-10-20  Bruno Haible  <bruno@clisp.org>
30048
30049         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
30050         of posix_spawn on AIX 5.3.
30051
30052 2008-10-20  Bruno Haible  <bruno@clisp.org>
30053
30054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
30055
30056 2008-10-20  Bruno Haible  <bruno@clisp.org>
30057
30058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
30059         of AC_LANG_PROGRAM.
30060
30061 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30062
30063         * lib/netdb.in.h: Don't define GNU specific constants until they
30064         are supported or needed.  Reported by Bruno Haible
30065         <bruno@clisp.org>.
30066
30067 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30068
30069         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
30070
30071 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30072
30073         * lib/getaddrinfo.h: Remove file.
30074         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
30075         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
30076         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
30077         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
30078         * modules/netdb: Substitute GNULIB_GETADDRINFO.
30079         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
30080         * tests/test-getaddrinfo.c: Likewise.
30081         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
30082         * NEWS: Mention change.
30083
30084 2008-10-19  Bruno Haible  <bruno@clisp.org>
30085
30086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
30087
30088 2008-10-19  Bruno Haible  <bruno@clisp.org>
30089
30090         * lib/wait-process.c: Include simply <sys/wait.h>.
30091         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
30092         WIFSTOPPED): Remove fallback definitions.
30093         * modules/wait-process (Depends-on): Add sys_wait.
30094
30095         New module 'sys_wait'.
30096         * modules/sys_wait: New file.
30097         * lib/sys_wait.in.h: New file, partially copied from
30098         lib/wait-process.c.
30099         * m4/sys_wait_h.m4: New file.
30100         * doc/posix-headers/sys_wait.texi: Mention the new module.
30101
30102 2008-10-19  Bruno Haible  <bruno@clisp.org>
30103
30104         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
30105
30106 2008-10-19  Bruno Haible  <bruno@clisp.org>
30107
30108         Assume that waitpid() fills an 'int' status, not a 'union wait'.
30109         * lib/wait-process.c (WAIT_T): Remove type.
30110         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
30111         (wait_subprocess): Update.
30112
30113 2008-10-19  Bruno Haible  <bruno@clisp.org>
30114
30115         New module 'atoll'.
30116         * modules/atoll: New file.
30117         * lib/stdlib.in.h (atoll): New declaration.
30118         * lib/atoll.c: New file, from glibc with modifications.
30119         * m4/atoll.m4: New file.
30120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
30121         HAVE_ATOLL.
30122         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
30123         * doc/posix-functions/atoll.texi: Mention the new module.
30124
30125 2008-10-19  Bruno Haible  <bruno@clisp.org>
30126
30127         Add strtoull() declaration to <stdlib.h>.
30128         * lib/stdlib.in.h (strtoull): New declaration.
30129         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30130         Set HAVE_STRTOULL.
30131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
30132         HAVE_STRTOULL.
30133         * modules/strtoull (Depends-on): Add stdlib.
30134         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30135         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
30136         HAVE_STRTOULL.
30137
30138 2008-10-19  Bruno Haible  <bruno@clisp.org>
30139
30140         Add strtoll() declaration to <stdlib.h>.
30141         * lib/stdlib.in.h (strtoll): New declaration.
30142         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30143         Set HAVE_STRTOLL.
30144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
30145         HAVE_STRTOLL.
30146         * modules/strtoll (Depends-on): Add stdlib.
30147         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30148         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
30149
30150 2008-10-19  Bruno Haible  <bruno@clisp.org>
30151
30152         * modules/bcopy (Depends-on): Add strings.
30153         (Include): Specify <strings.h>.
30154
30155 2008-10-19  Bruno Haible  <bruno@clisp.org>
30156
30157         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
30158
30159 2008-10-19  Bruno Haible  <bruno@clisp.org>
30160
30161         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
30162         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
30163         mingw.
30164
30165 2008-10-19  Bruno Haible  <bruno@clisp.org>
30166
30167         * lib/atanl.c: Don't include isnanl.h.
30168         * lib/cosl.c: Likewise.
30169         * lib/ldexpl.c: Likewise.
30170         * lib/logl.c: Likewise.
30171         * lib/sinl.c: Likewise.
30172         * lib/sqrtl.c: Likewise.
30173         * lib/tanl.c: Likewise.
30174
30175         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
30176         * lib/isnanf.h: Remove file.
30177         * lib/isnand.h: Remove file.
30178         * lib/isnanl.h: Remove file.
30179         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
30180         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
30181         macros.
30182         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
30183         HAVE_ISNANF, don't define it as a C macro.
30184         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
30185         HAVE_ISNAND, don't define it as a C macro.
30186         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
30187         HAVE_ISNANL, don't define it as a C macro.
30188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
30189         HAVE_ISNAN[FDL].
30190         * modules/isnanf (Files): Remove lib/isnanf.h.
30191         (Depends-on): Add math.
30192         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30193         (Include): Specify <math.h> instead of isnanf.h.
30194         * modules/isnand (Files): Remove lib/isnand.h.
30195         (Depends-on): Add math.
30196         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30197         (Include): Specify <math.h> instead of isnand.h.
30198         * modules/isnanl (Files): Remove lib/isnanl.h.
30199         (Depends-on): Add math.
30200         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30201         (Include): Specify <math.h> instead of isnanl.h.
30202         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
30203         HAVE_ISNAN[FDL].
30204         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
30205         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
30206         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
30207         * NEWS: Mention the change.
30208
30209 2008-10-18  Bruno Haible  <bruno@clisp.org>
30210
30211         Add getusershell(), setusershell(), endusershell() declarations to
30212         <unistd.h>.
30213         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
30214         declarations.
30215         * lib/getusershell.c: Include unistd.h.
30216         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
30217         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30218         HAVE_GETUSERSHELL.
30219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
30220         and HAVE_GETUSERSHELL.
30221         * modules/getusershell (Depends-on): Add unistd, extensions.
30222         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30223         (Include): Specify <unistd.h>.
30224         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
30225         HAVE_GETUSERSHELL.
30226
30227 2008-10-18  Bruno Haible  <bruno@clisp.org>
30228
30229         Add a getloadavg() declaration to <stdlib.h>.
30230         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
30231         getloadavg declaration.
30232         (getloadavg): New declaration.
30233         * lib/getloadavg.c: Include <stdlib.h> first.
30234         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
30235         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
30236         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
30237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30238         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30239         * modules/getloadavg (Depends-on): Add stdlib, extensions.
30240         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30241         (Include): Specify <stdlib.h>.
30242         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
30243         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30244
30245 2008-10-18  Bruno Haible  <bruno@clisp.org>
30246
30247         * lib/dirchownmod.c: Don't include lchmod.h.
30248
30249         Move the lchmod() declaration to <sys/stat.h>.
30250         * lib/lchmod.h: Remove file.
30251         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
30252         (lchmod): New declaration, moved here from lib/lchown.h.
30253         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
30254         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
30255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30256         and HAVE_LCHMOD.
30257         * modules/lchmod (Files): Remove lib/lchmod.h.
30258         (Depends-on): Add sys_stat, extensions.
30259         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30260         (Include): Specify <sys/stat.h> instead of lchmod.h.
30261         * modules/sys_stat (Depends-on): Add link-warning.
30262         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
30263         definition of GL_LINK_WARNING.
30264         * NEWS: Mention the change.
30265
30266 2008-10-18  Bruno Haible  <bruno@clisp.org>
30267
30268         * lib/fchdir.c: Don't include dirfd.h.
30269         * lib/fts.c: Likewise.
30270         * lib/getcwd.c: Likewise.
30271         * lib/glob.c: Likewise.
30272
30273         Move the dirfd() declaration to <dirent.h>.
30274         * lib/dirfd.h: Remove file.
30275         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
30276         (dirfd): New declaration.
30277         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
30278         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
30279         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
30280         HAVE_DECL_DIRFD.
30281         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
30282         HAVE_DECL_DIRFD.
30283         * modules/dirfd (Files): Remove lib/dirfd.h.
30284         (Depends-on): Add dirent, extensions.
30285         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
30286         (Include): Specify <dirent.h> instead of dirfd.h.
30287         * modules/dirent (Depends-on): Add link-warning.
30288         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
30289         definition of GL_LINK_WARNING.
30290         * NEWS: Mention the change.
30291
30292 2008-10-18  Bruno Haible  <bruno@clisp.org>
30293
30294         Move the euidaccess() declaration to <unistd.h>.
30295         * lib/euidaccess.h: Remove file.
30296         * lib/unistd.in.h (euidaccess): New declaration.
30297         * lib/euidaccess.c: Don't include euidaccess.h.
30298         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
30299         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
30300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
30301         and HAVE_EUIDACCESS.
30302         * modules/euidaccess (Files): Remove lib/euidaccess.h.
30303         (Depends-on): Add unistd.
30304         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30305         (Include): Specify <unistd.h> instead of euidaccess.h.
30306         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
30307         HAVE_EUIDACCESS.
30308         * NEWS: Mention the change.
30309
30310 2008-10-18  Bruno Haible  <bruno@clisp.org>
30311
30312         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
30313
30314         Move the getdomainname() declaration to <unistd.h>.
30315         * lib/getdomainname.h: Remove file.
30316         * lib/unistd.in.h (getdomainname): New declaration.
30317         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
30318         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
30319         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30320         HAVE_GETDOMAINNAME.
30321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30322         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
30323         * modules/getdomainname (Files): Remove lib/getdomainname.h.
30324         (Depends-on): Add unistd, extensions.
30325         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30326         (Includes): Specify <unistd.h> instead of getdomainname.h.
30327         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
30328         HAVE_GETDOMAINNAME.
30329         * NEWS: Mention the change.
30330
30331 2008-10-18  Bruno Haible  <bruno@clisp.org>
30332
30333         * modules/dirent: New file.
30334         * m4/dirent_h.m4: New file.
30335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
30336         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
30337         * modules/fchdir (Files): Remove lib/dirent.in.h.
30338         (Depends-on): Add dirent.
30339         (Makefile.am): Move rules to modules/dirent.
30340         * doc/posix-headers/dirent.texi: Mention the new module.
30341
30342 2008-10-18  Bruno Haible  <bruno@clisp.org>
30343
30344         Avoid -Wunused-parameter warnings in public gnulib header files.
30345         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
30346         macro.
30347         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
30348
30349 2008-10-18  Bruno Haible  <bruno@clisp.org>
30350
30351         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
30352         * doc/glibc-functions/error.texi: Mention the module 'error'.
30353         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
30354         * doc/glibc-functions/getdomainname.texi: Mention the module
30355         'getdomainname'.
30356         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
30357         * doc/glibc-functions/getpagesize.texi: Mention the module
30358         'getpagesize'.
30359         * doc/glibc-functions/getusershell.texi: Mention the module
30360         'getusershell'.
30361         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
30362         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
30363         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
30364         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
30365         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
30366         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
30367         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
30368         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
30369         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
30370         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
30371         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
30372         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
30373         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
30374         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
30375
30376 2008-10-17  Bruno Haible  <bruno@clisp.org>
30377
30378         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
30379         HP-UX and IRIX, use -0.0L.
30380         * tests/test-ceill.c (minus_zero): Likewise.
30381         * tests/test-floorl.c (minus_zero): Likewise.
30382         * tests/test-frexpl.c (minus_zero): Likewise.
30383         * tests/test-isnan.c (minus_zerol): Likewise.
30384         * tests/test-isnanl.h (minus_zero): Likewise.
30385         * tests/test-ldexpl.c (minus_zero): Likewise.
30386         * tests/test-roundl.c (minus_zero): Likewise.
30387         * tests/test-signbit.c (minus_zerol): Likewise.
30388         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30389         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30390         * tests/test-truncl.c (minus_zero): Likewise.
30391         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30392         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30393         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
30394         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30395
30396 2008-10-17  Bruno Haible  <bruno@clisp.org>
30397
30398         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
30399         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
30400         that it gets activated only for gcc >= 3.0.
30401         * lib/dirent.in.h: Likewise.
30402         * lib/errno.in.h: Likewise.
30403         * lib/fcntl.in.h: Likewise.
30404         * lib/float.in.h: Likewise.
30405         * lib/iconv.in.h: Likewise.
30406         * lib/inttypes.in.h: Likewise.
30407         * lib/locale.in.h: Likewise.
30408         * lib/math.in.h: Likewise.
30409         * lib/netdb.in.h: Likewise.
30410         * lib/netinet_in.in.h: Likewise.
30411         * lib/search.in.h: Likewise.
30412         * lib/signal.in.h: Likewise.
30413         * lib/spawn.in.h: Likewise.
30414         * lib/stdarg.in.h: Likewise.
30415         * lib/stdint.in.h: Likewise.
30416         * lib/stdio.in.h: Likewise.
30417         * lib/stdlib.in.h: Likewise.
30418         * lib/string.in.h: Likewise.
30419         * lib/strings.in.h: Likewise.
30420         * lib/sys_file.in.h: Likewise.
30421         * lib/sys_ioctl.in.h: Likewise.
30422         * lib/sys_select.in.h: Likewise.
30423         * lib/sys_socket.in.h: Likewise.
30424         * lib/sys_stat.in.h: Likewise.
30425         * lib/sys_time.in.h: Likewise.
30426         * lib/sysexits.in.h: Likewise.
30427         * lib/time.in.h: Likewise.
30428         * lib/unistd.in.h: Likewise.
30429         * lib/wchar.in.h: Likewise.
30430         * lib/wctype.in.h: Likewise.
30431         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30432
30433 2008-10-17  Jim Meyering  <meyering@redhat.com>
30434
30435         ignore-value: don't depend on inline module
30436         * modules/ignore-value (Depends-on): Remove 'inline'.
30437         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30438         Suggestion from Bruno Haible.
30439
30440 2008-10-17  Bruno Haible  <bruno@clisp.org>
30441
30442         New implementation of condition variables for Win32.
30443         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30444         (gl_linked_waitqueue_t): New type.
30445         (gl_cond_t): Use it.
30446         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30447         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30448         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
30449         (glthread_cond_init_func, glthread_cond_wait_func,
30450         glthread_cond_timedwait_func, glthread_cond_signal_func,
30451         glthread_cond_broadcast_func, glthread_cond_destroy_func):
30452         Reimplemented on the basis of gl_linked_waitqueue_t.
30453         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
30454         gl_waitqueue_t.
30455         (gl_rwlock_t): Update.
30456         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
30457
30458 2008-10-17  Simon Josefsson  <simon@josefsson.org>
30459
30460         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30461         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30462
30463 2008-10-17  Jim Meyering  <meyering@redhat.com>
30464
30465         ignore-value: new module
30466         * modules/ignore-value: New file.
30467         * lib/ignore-value.h: New file.
30468         * MODULES.html.sh (Compiler warning management): New section,
30469         just for this module.  More to come.
30470
30471 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30472
30473         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30474         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30475         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30476
30477 2008-10-16  Jim Meyering  <meyering@redhat.com>
30478
30479         openat-die.c: avoid 'no previous prototype' warning
30480         * lib/openat-die.c: Include "openat.h".
30481         Reported by Reuben Thomas <rrt@sc3d.org>.
30482
30483 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30484
30485         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30486         * lib/netdb.in.h: Fix typo.
30487         Reported by Bruno Haible  <bruno@clisp.org>
30488
30489         * lib/netdb.in.h: Include sys/socket.h for platforms without
30490         netdb.h, to get structures like hostent on MinGW.
30491         * modules/netdb (Depends-on): Add sys_socket.
30492
30493 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30494
30495         * modules/netdb, modules/netdb-tests: New file.
30496         * m4/netdb_h.m4: New file.
30497         * lib/netdb.in.h: Add, currently just an empty file pending
30498         definitions.
30499         * tests/test-netdb.c: New file.
30500         * doc/posix-headers/netdb.texi: Mention that we replace it if
30501         needed.
30502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30503         netdb.
30504
30505 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30506
30507         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30508         with code.
30509
30510 2008-10-13  Bruno Haible  <bruno@clisp.org>
30511
30512         * lib/glthread/cond.c (glthread_cond_wait_func,
30513         glthread_cond_timedwait_func): Add a comment.
30514
30515 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30516
30517         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30518         * tests/test-select.c: Likewise,
30519
30520 2008-10-13  Bruno Haible  <bruno@clisp.org>
30521
30522         * lib/glthread/cond.c (glthread_cond_wait_func,
30523         glthread_cond_timedwait_func): Fix variable name.
30524         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30525
30526 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30527
30528         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30530         struct sockaddr.sa_len.
30531         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30532
30533 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30534
30535         * build-aux/pmccabe2html: Add css and css_url parameters.
30536
30537 2008-10-12  Bruno Haible  <bruno@clisp.org>
30538
30539         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30540         calling aclx_get.
30541         Reported by Rainer Tammer <tammer@tammer.net>.
30542
30543 2008-10-12  Bruno Haible  <bruno@clisp.org>
30544
30545         Use msvcrt aware primitives for creation/termination of Win32 threads.
30546         * lib/glthread/thread.c: Include <process.h>.
30547         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30548         (wrapper_func): Update signature.
30549         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30550
30551 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30552             Bruno Haible  <bruno@clisp.org>
30553
30554         Provide a Win32 implementation of the 'cond' module.
30555         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30556         * lib/glthread/cond.c (glthread_cond_init_func,
30557         glthread_cond_wait_func, glthread_cond_timedwait_func,
30558         glthread_cond_signal_func, glthread_cond_broadcast_func,
30559         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30560         * modules/cond (Dependencies): Add gettimeofday.
30561
30562 2008-10-11  Bruno Haible  <bruno@clisp.org>
30563
30564         Make sleep work on older versions of mingw.
30565         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30566         only whether it exists.
30567         * doc/posix-functions/sleep.texi: Mention the problem with older
30568         versions of mingw.
30569
30570 2008-10-11  Bruno Haible  <bruno@clisp.org>
30571
30572         New module 'shutdown'.
30573         * modules/shutdown: New file.
30574         * lib/sys_socket.in.h (shutdown): New declaration.
30575         * lib/winsock.c (shutdown): New function.
30576         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30577         GNULIB_SHUTDOWN.
30578         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30579         * doc/posix-functions/shutdown.texi: Document the new module.
30580
30581 2008-10-11  Jim Meyering  <meyering@redhat.com>
30582
30583         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30584
30585 2008-10-11  Bruno Haible  <bruno@clisp.org>
30586
30587         New module 'fclose'.
30588         * modules/fclose: New file.
30589         * lib/stdio.in.h (fclose): New declaration.
30590         * lib/fclose.c: New file.
30591         * m4/fclose.m4: New file.
30592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30593         REPLACE_FCLOSE.
30594         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30595         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30596         REPLACE_FCLOSE.
30597         * modules/close (Depends-on): fclose.
30598         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30599
30600 2008-10-11  Bruno Haible  <bruno@clisp.org>
30601
30602         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30603         set errno and don't call _close.
30604
30605 2008-10-10  Bruno Haible  <bruno@clisp.org>
30606
30607         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30608         ACL, not afterwards. Fixes test failure on Cygwin.
30609
30610 2008-10-09  Ben Pfaff  <blp@gnu.org>
30611
30612         * build-aux/announce-gen: Fix gnulib version related part of usage
30613         message.  Die with a useful error message if no tarballs are
30614         found.
30615
30616 2008-10-10  Jim Meyering  <meyering@redhat.com>
30617
30618         bootstrap: use git's --depth=N option only if it's supported
30619         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30620         recognize the --depth option.  Reported by Pádraig Brady.
30621
30622 2008-10-09  Bruno Haible  <bruno@clisp.org>
30623
30624         New module 'ioctl'.
30625         * modules/ioctl: New file.
30626         * lib/sys_socket.in.h (ioctl): Remove declaration.
30627         * lib/winsock.c: Include <sys/ioctl.h>.
30628         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30629         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30630         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30631         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30632         * doc/posix-functions/ioctl.texi: Mention the new module.
30633
30634 2008-10-09  Bruno Haible  <bruno@clisp.org>
30635
30636         New module 'sys_ioctl'.
30637         * lib/sys_ioctl.in.h: New file.
30638         * m4/sys_ioctl_h.m4: New file.
30639         * modules/sys_ioctl: New file.
30640         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30641
30642 2008-10-09  Bruno Haible  <bruno@clisp.org>
30643
30644         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30645         * lib/winsock.c: Include <stdarg.h>.
30646         (rpl_ioctl): Change to second argument 'int' and then varargs.
30647
30648 2008-10-09  Bruno Haible  <bruno@clisp.org>
30649
30650         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30651         when the sys_socket module is present and the system has <winsock2.h>.
30652
30653 2008-10-09  Bruno Haible  <bruno@clisp.org>
30654
30655         * doc/posix-functions/close.texi: Mention module 'close' instead of
30656         module 'sys_socket'.
30657
30658 2008-10-09  Bruno Haible  <bruno@clisp.org>
30659
30660         * doc/glibc-headers/sys_ioctl.texi: New file.
30661         * doc/gnulib.texi: Include it.
30662
30663 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30664             Bruno Haible  <bruno@clisp.org>
30665
30666         Combine the two replacements of 'close'.
30667         * lib/sys_socket.in.h (close): Define to a reminder to include
30668         <unistd.h>.
30669         (_gl_close_fd_maybe_socket): New declaration.
30670         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30671         * lib/winsock.c (close): Remove undefinition.
30672         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30673         needed for the gnulib module 'close'.
30674         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30675         define to an error symbol or to a warning, if suitable.
30676         * lib/close.c: Include <sys/socket.h>.
30677         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30678         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30679         UNISTD_H_HAVE_WINSOCK2_H.
30680         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30682         UNISTD_H_HAVE_WINSOCK2_H.
30683         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30684         (configure.ac): Set a module indicator.
30685         (Makefile.am): Substitute GNULIB_CLOSE.
30686         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30687         * modules/poll-tests (Depends-on): Add close.
30688         * modules/select-tests (Depends-on): Likewise.
30689
30690 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30691             Bruno Haible  <bruno@clisp.org>
30692
30693         New module 'close'.
30694         * modules/close: New file.
30695         * lib/unistd.in.h (close): Move declaration out of the
30696         FCHDIR_REPLACEMENT scope.
30697         (_gl_unregister_fd): New declaration.
30698         * lib/close.c: New file.
30699         * lib/fchdir.c (rpl_close): Remove function.
30700         * m4/close.m4: New file.
30701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30702         close.
30703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30704         REPLACE_CLOSE.
30705         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30706         REPLACE_CLOSE.
30707         * modules/fchdir (Depends-on): Add close.
30708
30709 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30710             Bruno Haible  <bruno@clisp.org>
30711
30712         * lib/fcntl.in.h (open): Simplify conditionals.
30713         (_gl_register_fd): New declaration.
30714         * lib/fchdir.c (rpl_open): Remove function.
30715         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30716         also.
30717         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30719         open.
30720
30721 2008-10-09  Jim Meyering  <meyering@redhat.com>
30722
30723         GNUmakefile: use the more name-space-friendly "_version"
30724         * top/GNUmakefile (_dummy): Update.
30725         (_version): Rename from "version".
30726
30727 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30728             Bruno Haible  <bruno@clisp.org>
30729
30730         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30731         rpl_close.
30732         (_gl_register_fd): New function, extracted from rpl_open.
30733         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30734         (rpl_open, rpl_opendir): Use _gl_register_fd.
30735
30736 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30737
30738         Fix organization of 'open' replacement.
30739         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30740         (gl_FUNC_OPEN): Use it.
30741         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30742
30743 2008-10-08  Bruno Haible  <bruno@clisp.org>
30744
30745         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30746
30747 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30748
30749         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30750         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30751         listen).
30752
30753 2008-10-08  Eric Blake  <ebb9@byu.net>
30754
30755         GNUmakefile: add 'make version' target
30756         * top/GNUmakefile (_curr-ver): Split version update rules...
30757         (version): ...into a target.
30758
30759 2008-10-07  Bruno Haible  <bruno@clisp.org>
30760
30761         Use a more portable replacement expression for -0.0L.
30762         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30763         instead of -0.0L. Fix m4 quotation.
30764
30765         * tests/test-signbit.c: Include <float.h>.
30766         (minus_zero): New variable.
30767         (test_signbitl): Use minus_zero instead of -zero.
30768         * modules/signbit-tests (Depends-on): Add float.
30769
30770         * tests/test-ceill.c: Include <float.h>.
30771         (zero): Remove variable.
30772         (minus_zero): New variable.
30773         (main): Use minus_zero instead of -zero.
30774         * modules/ceill-tests (Depends-on): Add float.
30775
30776         * tests/test-floorl.c: Include <float.h>.
30777         (zero): Remove variable.
30778         (minus_zero): New variable.
30779         (main): Use minus_zero instead of -zero.
30780         * modules/floorl-tests (Depends-on): Add float.
30781
30782         * tests/test-roundl.c: Include <float.h>.
30783         (zero): Remove variable.
30784         (minus_zero): New variable.
30785         (main): Use minus_zero instead of -zero.
30786         * modules/roundl-tests (Depends-on): Add float.
30787
30788         * tests/test-truncl.c: Include <float.h>.
30789         (zero): Remove variable.
30790         (minus_zero): New variable.
30791         (main): Use minus_zero instead of -zero.
30792         * modules/truncl-tests (Depends-on): Add float.
30793
30794         * tests/test-frexpl.c (zero): Remove variable.
30795         (minus_zero): New variable.
30796         (main): Use minus_zero instead of -zero.
30797         * modules/frexpl-tests (Depends-on): Add float.
30798
30799         * tests/test-isnan.c (zerol): Remove variable.
30800         (minus_zerol): New variable.
30801         (test_long_double): Use minus_zerol instead of -zerol.
30802         * modules/isnan-tests (Depends-on): Add float.
30803
30804         * tests/test-isnanl.h (zero): Remove variable.
30805         (minus_zero): New variable.
30806         (main): Use minus_zero instead of -zero.
30807         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30808         * modules/isnanl-tests (Depends-on): Add float.
30809
30810         * tests/test-ldexpl.c (zero): Remove variable.
30811         (minus_zero): New variable.
30812         (main): Use minus_zero instead of -zero.
30813         * modules/ldexpl-tests (Depends-on): Add float.
30814
30815         * tests/test-snprintf-posix.h (zerol): Remove variable.
30816         (minus_zerol): New variable.
30817         (test_function): Use minus_zerol instead of -zerol.
30818         * modules/snprintf-posix-tests (Depends-on): Add float.
30819         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30820
30821         * tests/test-sprintf-posix.h (zerol): Remove variable.
30822         (minus_zerol): New variable.
30823         (test_function): Use minus_zerol instead of -zerol.
30824         * modules/sprintf-posix-tests (Depends-on): Add float.
30825         * modules/vsprintf-posix-tests (Depends-on): Add float.
30826
30827         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30828         (minus_zerol): New variable.
30829         (test_function): Use minus_zerol instead of -zerol.
30830         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30831
30832         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30833         (minus_zerol): New variable.
30834         (test_function): Use minus_zerol instead of -zerol.
30835         * modules/vasprintf-posix-tests (Depends-on): Add float.
30836
30837 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30838
30839         * MODULES.html.sh (Support for building documentation): Mention
30840         pmccabe2html.  Sort entries.
30841
30842         Add pmccabe2html module, from gnupdf.
30843         * build-aux/pmccabe.css: New file.
30844         * build-aux/pmccabe2html: New file.
30845         * m4/pmccabe2html.m4: New file.
30846         * modules/pmccabe2html: New file.
30847
30848 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30849
30850         flock: new module
30851         * MODULES.html.sh: Add to list of modules.
30852         * lib/flock.c: flock implementation for Windows and Unix systems
30853         which have fcntl.
30854         * doc/glibc-functions/flock.texi: Update documentation.
30855         * lib/sys_file.in.h: <sys/file.h> header file.
30856         * m4/flock.m4: M4 macros.
30857         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30858         * modules/flock: flock module.
30859         * modules/flock-tests: flock tests module.
30860         * modules/sys_file: sys/file.h module.
30861         * tests/test-flock.c: test suite for flock.
30862
30863 2008-10-06  Jim Meyering  <meyering@redhat.com>
30864
30865         bootstrap: check for LT_INIT more portably still ;-)
30866         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30867         Spotted by Bruno Haible.
30868
30869 2008-10-06  Eric Blake  <ebb9@byu.net>
30870
30871         test-signbit: avoid tripping Irix cc bug on -0.0L
30872         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30873         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30874         entire testsuite consistent and avoids an Irix 6.2 bug.
30875
30876 2008-10-05  Bruno Haible  <bruno@clisp.org>
30877             Jim Meyering  <jim@meyering.net>
30878
30879         Add an option for ignoring EPIPE during close_stdout.
30880         * lib/closeout.h: Include <stdbool.h>.
30881         (close_stdout_set_ignore_EPIPE): New declaration.
30882         * lib/closeout.c: Include <stdbool.h>.
30883         (ignore_EPIPE): New variable.
30884         (close_stdout_set_ignore_EPIPE): New function.
30885         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30886         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30887         failure.
30888         * modules/closeout (Depends-on): Add stdbool.
30889
30890 2008-10-05  Bruno Haible  <bruno@clisp.org>
30891
30892         * modules/accept: New file.
30893         * modules/bind: New file.
30894         * modules/connect: New file.
30895         * modules/getpeername: New file.
30896         * modules/getsockname: New file.
30897         * modules/getsockopt: New file.
30898         * modules/listen: New file.
30899         * modules/recv: New file.
30900         * modules/recvfrom: New file.
30901         * modules/send: New file.
30902         * modules/sendto: New file.
30903         * modules/setsockopt: New file.
30904         * modules/socket: New file.
30905         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30906         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30907         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30908         the particular module is requested. Add a link warning when the
30909         particular module is not requested.
30910         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30911         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30912         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30913         the particular module is requested.
30914         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30915         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30916         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30917         * modules/sys_socket (Depends-on): Add link-warning.
30918         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30919         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30920         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30921         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30922         GL_LINK_WARNING.
30923         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30924         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30925         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30926         * doc/posix-functions/getpeername.texi: Mention the new module
30927         'getpeername'.
30928         * doc/posix-functions/getsockname.texi: Mention the new module
30929         'getsockname'.
30930         * doc/posix-functions/getsockopt.texi: Mention the new module
30931         'getsockopt'.
30932         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30933         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30934         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30935         * doc/posix-functions/send.texi: Mention the new module 'send'.
30936         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30937         * doc/posix-functions/setsockopt.texi: Mention the new module
30938         'setsockopt'.
30939         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30940         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30941         listen, connect, accept.
30942         * modules/select-tests (Depends-on): Likewise.
30943
30944 2008-10-05  Bruno Haible  <bruno@clisp.org>
30945
30946         * lib/winsock.c (strerror): Remove unused #undef.
30947         (rpl_close): Remove unused local variable.
30948
30949         * modules/sys_socket (Depends-on); Add errno.
30950
30951 2008-10-05  Bruno Haible  <bruno@clisp.org>
30952
30953         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30954         (select): Add a link warning when the 'select' module is not used.
30955         * modules/sys_select (Depends-on): Add link-warning.
30956         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30957         Suggested by Paolo Bonzini.
30958
30959 2008-10-05  Jim Meyering  <meyering@redhat.com>
30960
30961         bootstrap: check for LT_INIT more portably
30962         * build-aux/bootstrap: Avoid using grep -E, since it's not
30963         portable enough.  Suggestion from Bruno Haible.
30964
30965 2008-10-05  Bruno Haible  <bruno@clisp.org>
30966
30967         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30968         as being fixed by gnulib.
30969
30970 2008-10-05  Bruno Haible  <bruno@clisp.org>
30971
30972         * modules/select-tests: New file, mostly copied from
30973         modules/sys_select-tests.
30974         * tests/test-select.c: New file, mostly copied from
30975         tests/test-sys_select.c.
30976         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30977         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30978         (Makefile.am): Remove test_sys_select_LDADD.
30979
30980         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30981         to an undefined symbol, for an error message.
30982         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30983         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30984         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30985         winsock-select.c here.
30986         * modules/sys_select (Files): Remove lib/winsock-select.c.
30987         (Depends-on): Remove alloca.
30988         (Makefile.am): Substitute GNULIB_SELECT.
30989         * modules/select: New file.
30990         * doc/posix-functions/select.texi: Update.
30991
30992 2008-10-05  Bruno Haible  <bruno@clisp.org>
30993
30994         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30995         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30996         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30997         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30998         getdtablesize.
30999         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
31000         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
31001
31002 2008-10-05  Bruno Haible  <bruno@clisp.org>
31003
31004         * modules/getdtablesize-tests: New file.
31005         * tests/test-getdtablesize.c: New file.
31006
31007         New module 'getdtablesize'.
31008         * lib/unistd.in.h (getdtablesize): New declaration.
31009         * lib/getdtablesize.c: New file.
31010         * m4/getdtablesize.m4: New file.
31011         * modules/getdtablesize: New file.
31012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31013         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
31014         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
31015         HAVE_GETDTABLESIZE.
31016         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
31017
31018 2008-10-05  Bruno Haible  <bruno@clisp.org>
31019
31020         * modules/sched (Makefile.am): Fix typo.
31021         Reported by Simon Josefsson.
31022
31023 2008-10-05  Jim Meyering  <meyering@redhat.com>
31024
31025         bootstrap: check for LT_INIT, too
31026         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
31027         are deprecated.  Suggestion from Ralf Wildenhues.
31028
31029 2008-10-05  Bruno Haible  <bruno@clisp.org>
31030
31031         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
31032         overriding them by ours.
31033         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
31034
31035 2008-10-05  Jim Meyering  <meyering@redhat.com>
31036
31037         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
31038         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
31039         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
31040
31041 2008-10-04  Bruno Haible  <bruno@clisp.org>
31042
31043         * modules/dup2 (License): Change to LGPLv2+.
31044         * modules/sleep (License): Likewise.
31045         * modules/perror (License): Likewise.
31046         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
31047         Blake.
31048         * modules/signal (License): Likewise.
31049         * modules/sigprocmask (License): Likewise.
31050         * modules/raise (License): Change to LGPLv2+, with approval by Jim
31051         Meyering.
31052
31053 2008-10-04  Bruno Haible  <bruno@clisp.org>
31054
31055         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
31056         Reported by Rainer Tammer <tammer@tammer.net>.
31057
31058 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
31059             Bruno Haible  <bruno@clisp.org>
31060
31061         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
31062         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
31063         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
31064
31065 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
31066
31067         filevercmp: new module
31068         * lib/filevercmp.h: New function filevercmp comparing version strings.
31069         * lib/filevercmp.c: Implementation of filevercmp function.
31070         * modules/filevercmp: Module metadata.
31071         * tests/test-filevercmp.c: Unit test for new module.
31072         * modules/filevercmp-tests: Unit test metadata.
31073         * MODULES.html.sh: Add filevercmp module.
31074
31075 2008-10-03  Bruno Haible  <bruno@clisp.org>
31076
31077         * lib/c-ctype.h: Add comment.
31078         Reported by Jim Meyering.
31079
31080 2008-10-02  Bruno Haible  <bruno@clisp.org>
31081
31082         * modules/posix_spawn-internal (Depends-on): Add 'open'.
31083
31084 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31085
31086         * build-aux/bootstrap: Allow renaming bootstrap, and change the
31087         name of bootstrap.conf accordingly.
31088
31089 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31090
31091         * build-aux/bootstrap: Install git-merge-changelog configuration
31092         items into .gitconfig if needed.
31093
31094 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31095
31096         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
31097         git repository, and initialize/update it accordingly.
31098
31099 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
31100
31101         * modules/fsync-tests: New file.
31102         * tests/test-fsync.c: New file.
31103
31104         New module 'fsync'.
31105         * lib/fsync.c: New file.
31106         * m4/fsync.m4: New file.
31107         * modules/fsync: New file.
31108         * lib/unistd.in.h (fsync): New declaration.
31109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
31110         GNULIB_FSYNC and HAVE_FSYNC.
31111         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
31112         * MODULES.html.sh (posix_functions): Add fsync.
31113         * doc/posix-functions/fsync.texi: Mention the new module.
31114
31115 2008-10-02  Jim Meyering  <meyering@redhat.com>
31116
31117         fts.c: sync with similar code from coreutils' remove.c
31118         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
31119         Guard also with "#if defined __linux__", since for now at least,
31120         this code is Linux-kernel-specific.
31121
31122 2008-10-02  Jim Meyering  <meyering@redhat.com>
31123
31124         fts: bug fixes
31125         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
31126         Include <sys/vfs.h>, not <sys/statfs.h>.
31127
31128         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
31129         Include <sys/vfs.h>, not <sys/statfs.h>.
31130
31131 2008-10-01  Bruno Haible  <bruno@clisp.org>
31132
31133         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
31134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
31135         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
31136         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
31137         * doc/posix-functions/posix_spawnp.texi: Likewise.
31138         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
31139         whether posix_spawn actually works.
31140         * m4/pipe.m4 (gl_PIPE): Likewise.
31141         * modules/execute (Files): Add m4/posix_spawn.m4.
31142         * modules/pipe (Files): Add m4/posix_spawn.m4.
31143         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
31144
31145 2008-10-01  Jim Meyering  <meyering@redhat.com>
31146
31147         remove trailing spaces
31148         * NEWS: Likewise.
31149         * lib/poll.c (poll): Likewise.
31150         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
31151         * lib/winsock.c (rpl_close): Likewise.
31152         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
31153         * modules/yield: Likewise.
31154         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
31155         * tests/test-sys_select.c (connect_to_socket): Likewise.
31156
31157         fts.c: adjust a new interface to be more generally useful
31158         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
31159         (fts_build): Adjust caller.
31160
31161 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31162
31163         * modules/cond-tests: New file.
31164         * tests/test-cond.c: New file.
31165
31166 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31167             Bruno Haible  <bruno@clisp.org>
31168
31169         * modules/cond (Dependencies): Add errno, time.
31170         * lib/glthread/cond.h: Include <time.h>.
31171         (gl_cond_define, gl_cond_define_initialized): Use the same definition
31172         across platforms.
31173
31174 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31175             Bruno Haible  <bruno@clisp.org>
31176
31177         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
31178
31179 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31180             Bruno Haible  <bruno@clisp.org>
31181
31182         * modules/tls-tests (Depends-on): Add thread, yield.
31183         (configure.ac): Remove all checks.
31184         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
31185         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31186         gl_thread_self): Remove definitions. Include glthread/thread.h and
31187         glthread/yield.h instead.
31188         (test_tls): Pass an additional NULL argument to gl_thread_join.
31189
31190 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31191             Bruno Haible  <bruno@clisp.org>
31192
31193         * modules/lock-tests (Depends-on): Add thread, yield.
31194         (configure.ac): Remove all checks.
31195         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
31196         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31197         gl_thread_self): Remove definitions. Include glthread/thread.h and
31198         glthread/yield.h instead.
31199         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
31200         additional NULL argument to gl_thread_join.
31201
31202 2008-09-30  Bruno Haible  <bruno@clisp.org>
31203
31204         Fix the Win32 implementation of the 'thread' module.
31205         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
31206         pointer type.
31207         (gl_thread_self): Invoke gl_thread_self_func.
31208         (gl_thread_self_func): New declaration.
31209         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
31210         (do_init_self_key, init_self_key): New functions.
31211         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
31212         Remove some fields.
31213         (running_threads, running_lock): Remove variables.
31214         (get_current_thread_handle): New function.
31215         (gl_thread_self_func, wrapper_func, glthread_create_func,
31216         glthread_join_func, gl_thread_exit_func): Largely rewritten and
31217         simplified.
31218
31219 2008-09-30  Bruno Haible  <bruno@clisp.org>
31220
31221         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
31222         files.
31223
31224 2008-09-30  Jim Meyering  <meyering@redhat.com>
31225
31226         fts.m4: correct the test for statfs.f_type
31227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
31228         when checking for statfs.f_type.
31229
31230 2008-09-15  Simon Josefsson  <simon@josefsson.org>
31231
31232         tests: avoid some compiler warnings
31233         * tests/test-memchr.c (main): Pass NULL indirectly.
31234         * tests/test-getdate.c (main): Remove unused variable 'ret'.
31235
31236 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
31237
31238         getdate.y: disallow countable dayshifts like "4 yesterday ago"
31239         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
31240         exactly specified dayshifts.
31241         (dayshift): New rule.
31242         (rel): Add dayshift.
31243         (relative_time_table) [tomorrow, yesterday, today, now]:
31244         Use tDAY_SHIFT in place of tDAY_UNIT.
31245         * tests/test-getdate.c: Add tests for now-disallowed countable
31246         dayshifts, e.g., "4 yesterday ago".
31247
31248 2008-09-29  Bruno Haible  <bruno@clisp.org>
31249
31250         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
31251         * tests/test-posix_spawn1.in.sh: Renamed from
31252         tests/test-posix_spawn.in.sh.
31253         * tests/test-posix_spawn2.c: New file.
31254         * tests/test-posix_spawn2.in.sh: New file.
31255         * modules/posix_spawnp-tests (Files): Update.
31256         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
31257
31258 2008-09-29  Bruno Haible  <bruno@clisp.org>
31259
31260         Propagate effects of putenv/setenv/unsetenv to child processes.
31261         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
31262         * lib/pipe.c (create_pipe): Likewise.
31263
31264 2008-09-29  Bruno Haible  <bruno@clisp.org>
31265
31266         Enable use of shell scripts as executables in mingw.
31267         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
31268         run the program as a shell script.
31269         * lib/pipe.c (create_pipe): Likewise.
31270         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
31271         resulting array.
31272
31273 2008-09-29  Eric Blake  <ebb9@byu.net>
31274
31275         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
31276
31277 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
31278
31279         * doc/posix-functions/accept.texi: Update mingw problems.
31280         * doc/posix-functions/bind.texi: Update mingw problems.
31281         * doc/posix-functions/close.texi: Update mingw problems.
31282         * doc/posix-functions/connect.texi: Update mingw problems.
31283         * doc/posix-functions/getpeername.texi: Update mingw problems.
31284         * doc/posix-functions/getsockname.texi: Update mingw problems.
31285         * doc/posix-functions/getsockopt.texi: Update mingw problems.
31286         * doc/posix-functions/ioctl.texi: Update mingw problems.
31287         * doc/posix-functions/listen.texi: Update mingw problems.
31288         * doc/posix-functions/recv.texi: Update mingw problems.
31289         * doc/posix-functions/recvfrom.texi: Update mingw problems.
31290         * doc/posix-functions/select.texi: Update mingw problems.
31291         * doc/posix-functions/send.texi: Update mingw problems.
31292         * doc/posix-functions/sendto.texi: Update mingw problems.
31293         * doc/posix-functions/setsockopt.texi: Update mingw problems.
31294         * doc/posix-functions/socket.texi: Update mingw problems.
31295
31296 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
31297             Bruno Haible  <bruno@clisp.org>
31298
31299         * lib/sys_select.in.h: Include sys/time.h.
31300         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
31301         * modules/sys_select: Depend on sys_time.
31302         * tests/test-sys_select.c: Test that sys/select.h defines struct
31303         timeval fully.
31304
31305 2008-09-29  Bruno Haible  <bruno@clisp.org>
31306
31307         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
31308         * lib/sys_select.in.h: Likewise.
31309
31310 2008-09-29  Bruno Haible  <bruno@clisp.org>
31311
31312         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
31313
31314 2008-09-29  Bruno Haible  <bruno@clisp.org>
31315
31316         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
31317         Set LIBSOCKET instead of augmenting LIBS.
31318         * modules/sockets (Link): New section.
31319         * modules/sockets-tests (test_sockets_LDADD): New variable.
31320         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
31321         * modules/poll-tests (test_poll_LDADD): New variable.
31322         * NEWS: Document the change.
31323
31324 2008-09-29  Bruno Haible  <bruno@clisp.org>
31325
31326         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31327         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
31328         ARPA_INET_H directly.
31329         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31330
31331 2008-09-28  Bruno Haible  <bruno@clisp.org>
31332
31333         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
31334         from gl_HEADER_SYS_SOCKET.
31335         (gl_HEADER_SYS_SOCKET): Invoke it.
31336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31337
31338 2008-09-28  Bruno Haible  <bruno@clisp.org>
31339
31340         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
31341         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
31342         Needed on OSF/1 4.0.
31343
31344 2008-09-28  Bruno Haible  <bruno@clisp.org>
31345
31346         Override open more carefully.
31347         * lib/open.c (orig_open): New function.
31348         (rpl_open): Use orig_open instead of open.
31349         * lib/fcntl.in.h: Add special invocation convention.
31350         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
31351         (gl_FUNC_OPEN): Invoke it.
31352
31353         Override freopen more carefully.
31354         * lib/freopen.c (orig_freopen): New function.
31355         (rpl_freopen): Use orig_freopen instead of freopen.
31356         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
31357         (gl_FUNC_FREOPEN): Invoke it.
31358
31359         Override fopen more carefully.
31360         * lib/fopen.c (orig_fopen): New function.
31361         (rpl_fopen): Use orig_fopen instead of fopen.
31362         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
31363         (gl_FUNC_FOPEN): Invoke it.
31364         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
31365
31366 2008-09-28  Bruno Haible  <bruno@clisp.org>
31367
31368         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
31369         SIGPIPE.
31370
31371 2008-09-28  Bruno Haible  <bruno@clisp.org>
31372
31373         * tests/test-sigaction.c (handler, main): Disable the check whether
31374         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
31375         glibc systems with LinuxThreads.
31376
31377 2008-09-28  Bruno Haible  <bruno@clisp.org>
31378
31379         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
31380
31381         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
31382         with AIX xlc.
31383         * lib/fcntl.in.h (open): Likewise.
31384         Reported by Rainer Tammer <tammer@tammer.net>.
31385
31386 2008-09-28  Bruno Haible  <bruno@clisp.org>
31387
31388         * modules/posix_spawnp-tests: New file.
31389         * tests/test-posix_spawn.c: New file.
31390         * tests/test-posix_spawn.in.sh: New file.
31391
31392         New module 'posix_spawnp'.
31393         * modules/posix_spawnp: New file.
31394         * lib/spawnp.c: New file, from GNU libc with modifications.
31395         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
31396
31397         New module 'posix_spawn'.
31398         * modules/posix_spawn: New file.
31399         * lib/spawn.c: New file, from GNU libc with modifications.
31400         * doc/posix-functions/posix_spawn.texi: Mention the new module.
31401
31402         New module 'posix_spawnattr_destroy'.
31403         * modules/posix_spawnattr_destroy: New file.
31404         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
31405         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
31406         module.
31407
31408         New module 'posix_spawnattr_setsigmask'.
31409         * modules/posix_spawnattr_setsigmask: New file.
31410         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31411         modifications.
31412         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31413         new module.
31414
31415         New module 'posix_spawnattr_getsigmask'.
31416         * modules/posix_spawnattr_getsigmask: New file.
31417         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31418         modifications.
31419         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31420         new module.
31421
31422         New module 'posix_spawnattr_setsigdefault'.
31423         * modules/posix_spawnattr_setsigdefault: New file.
31424         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31425         modifications.
31426         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31427         new module.
31428
31429         New module 'posix_spawnattr_getsigdefault'.
31430         * modules/posix_spawnattr_getsigdefault: New file.
31431         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31432         modifications.
31433         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31434         new module.
31435
31436         New module 'posix_spawnattr_setschedpolicy'.
31437         * modules/posix_spawnattr_setschedpolicy: New file.
31438         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31439         modifications.
31440         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31441         new module.
31442
31443         New module 'posix_spawnattr_getschedpolicy'.
31444         * modules/posix_spawnattr_getschedpolicy: New file.
31445         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31446         modifications.
31447         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31448         new module.
31449
31450         New module 'posix_spawnattr_setschedparam'.
31451         * modules/posix_spawnattr_setschedparam: New file.
31452         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
31453         modifications.
31454         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
31455         new module.
31456
31457         New module 'posix_spawnattr_getschedparam'.
31458         * modules/posix_spawnattr_getschedparam: New file.
31459         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31460         modifications.
31461         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31462         new module.
31463
31464         New module 'posix_spawnattr_setpgroup'.
31465         * modules/posix_spawnattr_setpgroup: New file.
31466         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31467         modifications.
31468         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31469         module.
31470
31471         New module 'posix_spawnattr_getpgroup'.
31472         * modules/posix_spawnattr_getpgroup: New file.
31473         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31474         modifications.
31475         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31476         module.
31477
31478         New module 'posix_spawnattr_setflags'.
31479         * modules/posix_spawnattr_setflags: New file.
31480         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31481         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31482         module.
31483
31484         New module 'posix_spawnattr_getflags'.
31485         * modules/posix_spawnattr_getflags: New file.
31486         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31487         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31488         module.
31489
31490         New module 'posix_spawnattr_init'.
31491         * modules/posix_spawnattr_init: New file.
31492         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31493         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31494         module.
31495
31496         New module 'posix_spawn_file_actions_destroy'.
31497         * modules/posix_spawn_file_actions_destroy: New file.
31498         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31499         modifications.
31500         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31501         the new module.
31502
31503         New module 'posix_spawn_file_actions_addopen'.
31504         * modules/posix_spawn_file_actions_addopen: New file.
31505         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31506         modifications.
31507         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31508         the new module.
31509
31510         New module 'posix_spawn_file_actions_adddup2'.
31511         * modules/posix_spawn_file_actions_adddup2: New file.
31512         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31513         modifications.
31514         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31515         the new module.
31516
31517         New module 'posix_spawn_file_actions_addclose'.
31518         * modules/posix_spawn_file_actions_addclose: New file.
31519         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31520         modifications.
31521         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31522         the new module.
31523
31524         New module 'posix_spawn_file_actions_init'.
31525         * modules/posix_spawn_file_actions_init: New file.
31526         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31527         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31528         new module.
31529
31530         New module 'posix_spawn-internal'.
31531         * modules/posix_spawn-internal: New file.
31532         * lib/spawn_int.h: New file, from GNU libc with modifications.
31533         * lib/spawni.c: New file, from GNU libc with modifications.
31534         * m4/posix_spawn.m4: New file.
31535
31536         New module 'spawn'.
31537         * modules/spawn: New file.
31538         * lib/spawn.in.h: New file, from GNU libc with modifications.
31539         * m4/spawn_h.m4: New file.
31540         * doc/posix-headers/spawn.texi: Mention the new module.
31541
31542 2008-09-28  Bruno Haible  <bruno@clisp.org>
31543
31544         * modules/sched-tests: New file.
31545         * tests/test-sched.c: New file.
31546
31547         New module 'sched'.
31548         * modules/sched: New file.
31549         * lib/sched.in.h: New file.
31550         * m4/sched_h.m4: New file.
31551         * doc/posix-headers/sched.texi: Mention the new module.
31552
31553 2008-09-27  Eric Blake  <ebb9@byu.net>
31554
31555         Fix previous patch, and tweak references to $0.
31556         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31557         (func_version, func_gnulib_dir): Don't call this program
31558         gnulib-tool.
31559         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31560         with using $0 in function.
31561         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31562         (func_fatal_error): Reuse the name the user invoked us with.
31563
31564 2008-09-27  Bruno Haible  <bruno@clisp.org>
31565
31566         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31567         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31568         (gl_ICONV_H): Not here.
31569         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31570         instead of assigning ICONV_H directly.
31571
31572         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31574         WCHAR_H directly.
31575
31576 2008-09-27  Bruno Haible  <bruno@clisp.org>
31577
31578         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31579         * modules/arpa_inet (Depends-on): Add link-warning.
31580         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31581         * modules/unistd (Makefile.am): Likewise.
31582
31583 2008-09-26  Bruno Haible  <bruno@clisp.org>
31584
31585         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31586         variables.
31587         (func_version): Essentially copied from gnulib-tool.
31588         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31589         func_readlink): Copied from gnulib-tool.
31590
31591 2008-09-26  Bruno Haible  <bruno@clisp.org>
31592
31593         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31594         invoking git-version-gen.
31595
31596 2008-09-26  Bruno Haible  <bruno@clisp.org>
31597
31598         * posix-modules: Update to directory names changed on 2008-01-19.
31599         Remove commas in output before splitting into words. No more need to
31600         avoid 'ftruncate' since 2007-02-19.
31601
31602 2008-09-26  Bruno Haible  <bruno@clisp.org>
31603
31604         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31605
31606 2008-09-26  Bruno Haible  <bruno@clisp.org>
31607
31608         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31609         * modules/fwriteerror (Depends-on): Add errno.
31610
31611 2008-09-26  Bruno Haible  <bruno@clisp.org>
31612
31613         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31614         * tests/test-vc-list-files-cvs.sh: Likewise.
31615
31616 2008-09-26  Bruno Haible  <bruno@clisp.org>
31617
31618         * doc/posix-headers/sys_resource.texi: Reorder items.
31619
31620 2008-09-26  Jim Meyering  <meyering@redhat.com>
31621
31622         fts: tweak inode comparison function
31623         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31624         inode numbers, as documented.
31625
31626         fts: sort dirent entries on inode number before traversing
31627         This avoids a quadratic, seek-related performance penalty when
31628         operating on a directory containing many entries (measurable at 10k;
31629         3.5 hours at 2 million entries with a cold cache) on certain types
31630         of file systems, including ext3 and ext4, but not tmpfs.
31631         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31632         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31633         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31634         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31635         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31636         (fts_build): Set the stat.st_ino member from D_INO.
31637         If it is likely to be useful, sort dirent entries on inode number.
31638
31639         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31640         and the struct statfs.f_type member.
31641         * modules/fts (Depends-on): Add d-ino.
31642
31643 2008-09-26  Bruno Haible  <bruno@clisp.org>
31644
31645         * modules/sigpipe-die (Depends-on): Add sigpipe.
31646
31647         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31648         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31649         and GNULIB_STDIO_H_SIGPIPE are set.
31650         * lib/stdio-write.c: New file.
31651         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31652         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31653         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31654         REPLACE_STDIO_WRITE_FUNCS.
31655         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31656         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31657         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31658         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31659         * modules/stdio (Files): Add lib/stdio-write.c.
31660         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31661         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31662         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31663         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31664         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31665         REPLACE_FPRINTF_POSIX.
31666         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31667         REPLACE_PRINTF_POSIX.
31668         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31669         REPLACE_VFPRINTF_POSIX.
31670         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31671         REPLACE_VPRINTF_POSIX.
31672         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31673         SIGPIPE issue.
31674         * doc/posix-functions/fputc.texi: Likewise.
31675         * doc/posix-functions/fputs.texi: Likewise.
31676         * doc/posix-functions/fwrite.texi: Likewise.
31677         * doc/posix-functions/printf.texi: Likewise.
31678         * doc/posix-functions/putc.texi: Likewise.
31679         * doc/posix-functions/putchar.texi: Likewise.
31680         * doc/posix-functions/puts.texi: Likewise.
31681         * doc/posix-functions/vfprintf.texi: Likewise.
31682         * doc/posix-functions/vprintf.texi: Likewise.
31683
31684         * modules/safe-write (Depends-on): Add write.
31685
31686         * modules/sigpipe-tests: New file.
31687         * tests/test-sigpipe.c: New file.
31688         * tests/test-sigpipe.sh: New file.
31689
31690         * modules/write: New file.
31691         * lib/unistd.in.h: Include <sys/types.h>.
31692         (write): New declaration.
31693         * lib/write.c: New file.
31694         * m4/write.m4: New file.
31695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31696         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31697         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31698         GNULIB_WRITE, REPLACE_WRITE.
31699         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31700         and the SIGPIPE issue.
31701
31702         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31703         (raise): New declaration.
31704         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31705         (ext_signal): New function.
31706         (rpl_raise): New function.
31707         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31708         GNULIB_SIGNAL_H_SIGPIPE.
31709         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31710         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31711
31712         * modules/sigpipe: New file.
31713         * m4/sigpipe.m4: New file.
31714
31715 2008-09-25  Derek Price  <derek@ximbiot.com>
31716             Bruno Haible  <bruno@clisp.org>
31717
31718         * gnulib-tool (func_import): Report all license incompatibilities, not
31719         just the first one.
31720
31721 2008-09-25  Bruno Haible  <bruno@clisp.org>
31722
31723         * gnulib-tool (func_import): When computing the edits, consider not
31724         only the Makefile.ams that exist but also those that will be generated.
31725
31726 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31727
31728         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31729         fixes gnulib-tool --test warning about duplicate dependency.
31730
31731 2008-09-25  Bruno Haible  <bruno@clisp.org>
31732
31733         * gnulib-tool: Don't ask the user to perform edits in the generated
31734         Makefile.ams.
31735         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31736         apply to the Makefile.am being generated.
31737         (func_emit_tests_Makefile_am): Execute edits that apply to the
31738         Makefile.am being generated.
31739         (func_import): Setup list of Makefile.am edits before emitting the
31740         Makefile.ams, not at the end.
31741         (func_create_testdir): Update.
31742         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31743
31744 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31745
31746         * gnulib-tool (func_import): Store the --tests-base option in the
31747         comment in gnulib-cache.m4.
31748
31749 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31750
31751         * NEWS: Document increased portability that sys_select now provides.
31752
31753         * lib/sys_select.in.h: Install select wrapper.
31754         * lib/sys_socket.in.h: Use more descriptive name when there is no
31755         select wrapper.
31756         * lib/winsock-select.c: New.
31757         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31758         Require gl_HEADER_SYS_SOCKET.
31759         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31760         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31761         * tests/test-sys_select.c: Add functional tests.
31762
31763 2008-09-24  Eric Blake  <ebb9@byu.net>
31764
31765         open, fopen: close fd leak in last patch
31766         * lib/open.c (rpl_open): Close fd before returning error.
31767         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31768         * doc/posix-functions/open.texi (open): Document that Irix also
31769         has the bug.
31770         * doc/posix-functions/fopen.texi (fopen): Likewise.
31771         Reported by Paolo Bonzini.
31772
31773 2008-09-24  Bruno Haible  <bruno@clisp.org>
31774
31775         Ensure that a filename ending in a slash cannot be used to access a
31776         non-directory.
31777         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31778         to check whether it's really a directory.
31779         * lib/fopen.c: Include fcntl.h, unistd.h.
31780         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31781         and fdopen().
31782         * modules/fopen (Depends-on): Add unistd.
31783         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31784         * tests/test-fopen.c (main): Likewise.
31785         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31786         * doc/posix-functions/fopen.texi: Likewise.
31787         Reported by Eric Blake.
31788
31789 2008-09-23  Eric Blake  <ebb9@byu.net>
31790
31791         c-stack: avoid compiler optimizations when provoking overflow
31792         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31793         recursion harder to optimize, to ensure a stack overflow occurs.
31794         * tests/test-c-stack.c (recurse): Likewise.
31795         Borrowed from libsigsegv.
31796
31797         c-stack: work around Irix sigaltstack bug
31798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31799         whether sigaltstack uses wrong end of stack_t (copied in part from
31800         libsigsegv).
31801         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31802         Irix bug, without requiring an over-allocation.
31803         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31804         bug.
31805
31806         fopen: document mingw bug on directories
31807         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31808         not allowing a stream visiting a directory, even though reading
31809         from such a stream is not portable.
31810
31811 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31812
31813         * lib/poll.c: Rewrite.
31814         * modules/poll: Depend on alloca.
31815
31816 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31817
31818         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31819         instead define prototypes for a full set of wrappers.  Ensure
31820         that Cygwin does not use the compatibility code, which is only
31821         for MinGW.
31822         * lib/winsock.c: New.
31823         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31824         * modules/sys_socket: Add lib/winsock.c.
31825
31826         * modules/poll-tests: Add errno and perror.
31827         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31828
31829 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31830
31831         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31832
31833 2008-09-23  Bruno Haible  <bruno@clisp.org>
31834
31835         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31836         * doc/glibc-functions/*: Likewise.
31837
31838 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31839
31840         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31841         success.
31842
31843 2008-09-22  Eric Blake  <ebb9@byu.net>
31844             Bruno Haible  <bruno@clisp.org>
31845
31846         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31847         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31848         supply %A but mishandle pseudo-NaN.
31849         Reported by Simon Josefsson.
31850
31851 2008-09-21  Bruno Haible  <bruno@clisp.org>
31852
31853         * tests/test-lock.c (main): Tweak skip message.
31854         * tests/test-tls.c (main): Likewise.
31855
31856 2008-09-21  Bruno Haible  <bruno@clisp.org>
31857
31858         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31859         whether 'struct sigaction' has sa_sigaction here...
31860         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31861         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31862
31863 2008-09-21  Bruno Haible  <bruno@clisp.org>
31864
31865         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31866         section.
31867         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31868         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31869         the new section.
31870         (Support for obsolete systems lacking POSIX:2001): New section.
31871         (String handling <string.h>): Move strdup to the new section.
31872         Suggested by Simon Josefsson and Paolo Bonzini.
31873
31874 2008-09-21  Bruno Haible  <bruno@clisp.org>
31875
31876         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31877         exponents in %e and %g results on 'long double'. Needed for mingw's
31878         improved *printf functions.
31879         * tests/test-vasprintf-posix.c (test_function): Likewise.
31880         * tests/test-snprintf-posix.h (test_function): Likewise.
31881         * tests/test-sprintf-posix.h (test_function): Likewise.
31882         Reported by Eric Blake.
31883
31884 2008-09-21  Bruno Haible  <bruno@clisp.org>
31885
31886         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31887         * tests/test-sprintf-posix.h (test_function): Likewise.
31888
31889 2008-09-21  Bruno Haible  <bruno@clisp.org>
31890
31891         * modules/getpass (Depends-on): Add strdup-posix.
31892
31893         New module 'strdup-posix'.
31894         * modules/strdup-posix: New file.
31895         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31896         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31898         REPLACE_STRDUP.
31899         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31900         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31901         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31902         strdup-posix.
31903
31904         * modules/strdup (Depends-on): Remove malloc-posix.
31905
31906 2008-09-20  Bruno Haible  <bruno@clisp.org>
31907
31908         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31909         Wildenhues.
31910
31911 2008-09-20  Bruno Haible  <bruno@clisp.org>
31912
31913         Ensure that wint_t gets defined on IRIX 5.3.
31914         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31915         * lib/wctype.in.h (wint_t): Likewise.
31916         (__wctype_wint_t): Remove type.
31917         (isw*): Use wint_t instead of __wctype_wint_t.
31918         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31919         * modules/wchar (Files): Add m4/wint_t.m4.
31920         (Makefile.am): Substitute HAVE_WINT_T.
31921         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31922         * tests/test-wctype.c: Check that wint_t is defined.
31923         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31924         * doc/posix-headers/wctype.texi: Likewise.
31925         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31926
31927 2008-09-18  Bruno Haible  <bruno@clisp.org>
31928
31929         * gnulib-tool (func_exit): Update comment.
31930
31931 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31932
31933         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31934         assumes strdup exists and does not depend on strdup to return
31935         ENOMEM on out of memory conditions.
31936
31937 2008-09-18  Bruno Haible  <bruno@clisp.org>
31938
31939         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
31940         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31941         digits for the exponent.
31942
31943 2008-09-18  Jim Meyering  <meyering@redhat.com>
31944             Bruno Haible  <bruno@clisp.org>
31945
31946         * lib/vasnprintf.c (decimal_point_char): Define also if
31947         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31948
31949 2008-09-16  Bruno Haible  <bruno@clisp.org>
31950         and Eric Blake  <ebb9@byu.net>
31951
31952         vasnprintf: support Irix 5.3
31953         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31954         that mishandle long double infinity.
31955         Reported by Tom G. Christensen.
31956
31957 2008-09-16  Bruno Haible  <bruno@clisp.org>
31958
31959         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31960         Solaris 9.
31961         * doc/glibc-functions/alphasort.texi: Likewise.
31962         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31963
31964 2008-09-16  Jim Meyering  <meyering@redhat.com>
31965
31966         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31967         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31968         a umask modification leak out of a subshell.  Otherwise, the
31969         opensolaris /bin/sh would be accepted and thus cause unwarranted
31970         failures in the coreutils test suite.
31971
31972 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31973
31974         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31975         to succeed.
31976
31977 2008-09-16  Jim Meyering  <meyering@redhat.com>
31978
31979         avoid spurious test failure when library is built without ACL support
31980         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31981         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31982         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31983         * tests/test-copy-acl.sh: Likewise.
31984
31985 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31986
31987         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31988         based on character occurrence counts.
31989
31990 2008-09-15  Eric Blake  <ebb9@byu.net>
31991
31992         tests: avoid some compiler warnings
31993         * tests/test-memchr.c (main): Pass NULL indirectly.
31994         * tests/test-closein.c (main): Avoid unused variable.
31995
31996 2008-09-15  Bruno Haible  <bruno@clisp.org>
31997
31998         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31999         are missing on OpenBSD 4.0 individually.
32000         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32001
32002 2008-09-15  Bruno Haible  <bruno@clisp.org>
32003
32004         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
32005         * doc/posix-functions/strerror.texi: Mention also Cygwin.
32006         * doc/posix-functions/perror.texi: Likewise.
32007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
32008         is missing.
32009         Reported by Eric Blake.
32010
32011         * lib/errno.in.h: Use replacement values >= 2000.
32012         Reported by Eric Blake.
32013
32014 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32015
32016         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
32017         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
32018         limit.
32019         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
32020         compareseq was aborted.
32021
32022 2008-09-14  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
32025         yvec_edit_count.
32026         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
32027         (fstrcmp_bounded): Simplify result computation accordingly.
32028
32029 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32030
32031         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
32032         (fstrcmp): Define in terms of fstrcmp_bounded.
32033         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
32034         lower_bound argument.
32035         Return quickly if the result is certainly < lower_bound.
32036         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
32037
32038 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32039
32040         * lib/diffseq.h (EARLY_ABORT): New macro.
32041         (compareseq): Change return type to bool. Return true when EARLY_ABORT
32042         evaluates to true.
32043
32044 2008-09-14  Bruno Haible  <bruno@clisp.org>
32045
32046         * modules/perror-tests: New file.
32047         * tests/test-perror.sh: New file.
32048         * tests/test-perror.c: New file.
32049
32050         New module 'perror'.
32051         * lib/stdio.in.h (perror): New declaration.
32052         * lib/perror.c: New file.
32053         * m4/perror.m4: New file.
32054         * modules/perror: New file.
32055         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
32056         * doc/posix-functions/perror.texi: Mention the perror module.
32057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
32058         REPLACE_PERROR.
32059         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
32060         REPLACE_PERROR.
32061
32062 2008-09-14  Bruno Haible  <bruno@clisp.org>
32063
32064         * modules/stdio (Makefile.am): Reorder to match the order in
32065         lib/stdio.in.h.
32066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32067
32068 2008-09-13  Bruno Haible  <bruno@clisp.org>
32069
32070         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
32071
32072 2008-09-13  Bruno Haible  <bruno@clisp.org>
32073
32074         Extend strerror to cover the added errno values.
32075         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
32076         (rpl_strerror): Provide error messages for the added errno values and
32077         for the WSA* values.
32078         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
32079         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
32080         strerror.
32081         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
32082         * modules/strerror (Depends-on): Add errno.
32083         * doc/posix-functions/strerror.texi: Document the change.
32084         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
32085         and EOVERFLOW.
32086
32087 2008-09-13  Bruno Haible  <bruno@clisp.org>
32088
32089         * modules/EOVERFLOW: Remove file.
32090         * m4/eoverflow.m4: Remove file.
32091         * modules/EOVERFLOW-tests: Remove file.
32092         * tests/test-EOVERFLOW.c: Remove file.
32093         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
32094         * modules/ftell (Depends-on): Likewise.
32095         * modules/getdelim (Depends-on): Likewise.
32096         * modules/getugroups (Depends-on): Likewise.
32097         * modules/poll (Depends-on): Likewise.
32098         * modules/snprintf (Depends-on): Likewise.
32099         * modules/sprintf-posix (Depends-on): Likewise.
32100         * modules/vasnprintf (Depends-on): Likewise.
32101         * modules/vasprintf (Depends-on): Likewise.
32102         * modules/vfprintf-posix (Depends-on): Likewise.
32103         * modules/vsnprintf (Depends-on): Likewise.
32104         * modules/vsprintf-posix (Depends-on): Likewise.
32105         * modules/xvasprintf (Depends-on): Likewise.
32106         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32107         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
32108         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
32109         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
32110         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32111         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
32112         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
32113         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
32114         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32115         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
32116         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
32117         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
32118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32119         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
32120         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
32121         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
32122         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32123         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
32124         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
32125         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
32126         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32127         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
32128         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
32129         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
32130         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
32131         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32132         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
32133         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
32134         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
32135         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
32136         * MODULES.html.sh: Remove EOVERFLOW.
32137         * NEWS: Mention the change.
32138
32139 2008-09-13  Bruno Haible  <bruno@clisp.org>
32140
32141         * modules/errno-tests: New file.
32142         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
32143
32144         * lib/errno.in.h: New file.
32145         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
32146         * modules/errno: New file.
32147         * doc/posix-headers/errno.texi: Update documentation.
32148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
32149
32150 2008-09-13  Bruno Haible  <bruno@clisp.org>
32151
32152         * tests/test-poll.c: Use #if for native Windows, rather than testing
32153         __MSVCRT__.
32154
32155 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32156             Bruno Haible  <bruno@clisp.org>
32157
32158         * lib/glob.c: Don't include <pwd.h> on native Windows.
32159         (WINDOWS32): New macro.
32160         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
32161
32162 2008-09-13  Bruno Haible  <bruno@clisp.org>
32163
32164         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
32165         (ETIMEDOUT): Remove macro.
32166         (glthread_cond_timedwait_multithreaded): New declaration.
32167         (glthread_cond_timedwait): Use it.
32168         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
32169         (glthread_cond_timedwait_multithreaded): New function.
32170
32171 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32172
32173         * modules/poll-tests: Do not check for io.h.
32174         * tests/test-poll.c: Check for __MSVCRT__ instead.
32175
32176 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32177
32178         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
32179         * modules/poll-tests: Add inet_pton, stdbool, sockets.
32180         * tests/test-poll.c: Use them.  Use _pipe on Windows.
32181
32182 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32183
32184         * modules/poll-tests: New.
32185         * tests/test-poll.c: New.
32186
32187 2008-09-12  Eric Blake  <ebb9@byu.net>
32188
32189         frexp: test for NetBSD failure on -0.0
32190         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
32191         not all, bugs from NetBSD 3.0 have been fixed.
32192         * doc/posix-functions/frexp.texi (frexp): Document bug.
32193         Reported by Thomas Klausner.
32194
32195         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
32196         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
32197         literal -0.0.
32198         Reported by Jonathan C. Patschke <jp@centtech.com>.
32199
32200 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32201
32202         * lib/glthread/cond.h: Use dummy implementation also if
32203         USE_WIN32_THREADS.
32204
32205 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32206
32207         * modules/fnmatch-posix (License): Change to LGPLv2+.
32208         * modules/fnmatch-gnu (License): Likewise.
32209
32210 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32211
32212         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
32213
32214 2008-09-11  Jim Meyering  <meyering@redhat.com>
32215
32216         * users.txt: Add gtk-vnc.
32217
32218 2008-09-08  Simon Josefsson  <simon@josefsson.org>
32219
32220         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
32221         rotate amounts.
32222
32223         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
32224         required for 16-bit and 8-bit rotates.
32225         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
32226         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
32227         UINT8_MAX instead of hard-coded constants.
32228         Suggested by Paul Eggert.
32229
32230 2008-09-07  Bruno Haible  <bruno@clisp.org>
32231
32232         * tests/test-striconveh.c (main): Check behaviour when converting from
32233         UTF-7.
32234
32235         Make striconveh work better with stateful encodings.
32236         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
32237         that iconv does not increment the inptr when returning -1/EINVAL.
32238
32239 2008-09-07  Bruno Haible  <bruno@clisp.org>
32240
32241         * build-aux/config.rpath: Update according to libtool-2.2.6.
32242         * build-aux/config.libpath: Likewise.
32243
32244 2008-09-06  Bruno Haible  <bruno@clisp.org>
32245
32246         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
32247         * lib/freadptr.c (freadptr): Likewise.
32248         * lib/freadseek.c (freadptrinc): Likewise.
32249         Reported by Simon Josefsson.
32250
32251 2008-09-06  Bruno Haible  <bruno@clisp.org>
32252
32253         * modules/freadptr (License): Change to LGPLv2+.
32254         * modules/freadseek (License): Likewise.
32255         Suggested by Eric Blake.
32256
32257         * modules/memchr2 (License): Change to LGPLv2+.
32258         Approved by Eric Blake.
32259
32260 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32261             Bruno Haible  <bruno@clisp.org>
32262
32263         Make gnulib-tool work with native 'sed' on AIX.
32264         * gnulib-tool (sed_noop): New variable.
32265         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
32266         func_add_or_update, func_create_testdir): Use it to initialize sed
32267         script variables.
32268         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32269
32270 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
32271             Bruno Haible  <bruno@clisp.org>
32272
32273         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
32274         also works after #include directives.
32275
32276 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
32277
32278         getdate.y: reject an out-of-range timezone value
32279         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
32280         the range [-24...+24].  When specified with only one or two digits,
32281         * tests/test-getdate.c: Tests for the fix.
32282         * doc/getdate.texi: Document this change.
32283
32284 2008-09-03  Bruno Haible  <bruno@clisp.org>
32285
32286         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
32287
32288 2008-09-02  Simon Josefsson  <simon@josefsson.org>
32289
32290         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
32291         <bruce.korb@gmail.com> with ideas from Ben Pfaff
32292         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
32293         Blake <ebb9@byu.net>.
32294
32295         * tests/test-bitrotate.c: Add more test vectors.
32296
32297 2008-09-02  Eric Blake  <ebb9@byu.net>
32298
32299         vasnprintf-posix: handle large precision via %.*d
32300         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
32301         when handling it ourselves.
32302         * tests/test-vasnprintf-posix.c (test_function): Add test.
32303         * tests/test-snprintf-posix.h (test_function): Likewise.
32304         * tests/test-sprintf-posix.h (test_function): Likewise.
32305         * tests/test-vasprintf-posix.c (test_function): Likewise.
32306         Reported by Alain Guibert.
32307
32308 2008-09-01  Eric Blake  <ebb9@byu.net>
32309
32310         c-stack: make configure-time check more robust
32311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
32312         successful sigaction call.
32313         Reported by Tom G. Christensen.
32314
32315 2008-09-01  Bruno Haible  <bruno@clisp.org>
32316
32317         New module 'findprog-lgpl'.
32318         * modules/findprog-lgpl: New file.
32319         * lib/findprog-lgpl.c: New file.
32320         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
32321         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
32322         to decide whether to use strdup or xstrdup, concatenated_filename or
32323         xconcatenated_filename.
32324
32325 2008-09-01  Bruno Haible  <bruno@clisp.org>
32326
32327         Split module 'concat-filename' into 'concat-filename' (LGPL) and
32328         'xconcat-filename' (GPL).
32329         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
32330         (License): Change to LGPLv2+.
32331         * modules/xconcat-filename: New file.
32332         * lib/concat-filename.h (concatenated_filename): Change specification.
32333         (xconcatenated_filename): New declaration.
32334         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
32335         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
32336         memory situations.
32337         * lib/xconcat-filename.c: New file.
32338         * NEWS: Mention the change.
32339         * lib/findprog.c: Include concat-filename.h, not filename.h.
32340         (find_in_path): Use xconcatenated_filename instead of
32341         concatenated_filename.
32342         * lib/javacomp.c: Include concat-filename.h, not filename.h.
32343         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32344         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32345         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32346         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
32347         instead of concatenated_filename.
32348         * lib/javaexec.c: Include concat-filename.h, not filename.h.
32349         (execute_java_class): Use xconcatenated_filename instead of
32350         concatenated_filename.
32351         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
32352         * modules/javacomp (Depends-on): Likewise.
32353         * modules/javaexec (Depends-on): Likewise.
32354
32355 2008-09-01  Bruno Haible  <bruno@clisp.org>
32356
32357         Split module 'filename' into 'filename' and 'concat-filename'.
32358         * modules/filename: Keep only lib/filename.h.
32359         (License): Change to LGPLv2+.
32360         * modules/concat-filename: New file, extracted from modules/filename.
32361         * lib/filename.h (concatenated_filename): Remove declaration.
32362         * lib/concat-filename.h: New file, extracted from lib/filename.h.
32363         * lib/concat-filename.c: Include concat-filename.h.
32364         * NEWS: Mention the change.
32365
32366 2008-09-01  Simon Josefsson  <simon@josefsson.org>
32367
32368         * lib/bitrotate.h (rotl8, rotr8): Add.
32369
32370         * modules/bitrotate (configure.ac): Need
32371         AC_REQUIRE([AC_C_INLINE]).
32372         (Description): Mention stdint.h.  Reported by Bruno Haible
32373         <bruno@clisp.org>.
32374
32375         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
32376         Paolo Bonzini <bonzini@gnu.org>.
32377
32378 2008-08-31  Bruno Haible  <bruno@clisp.org>
32379
32380         Assume Solaris specific bi-arch conventions on Solaris systems.
32381         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
32382         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
32383         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
32384         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
32385         like acl_libdirstem.
32386         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
32387         acl_libdirstem.
32388         * NEWS: Mention the change.
32389         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
32390
32391 2008-08-31  Jim Meyering  <meyering@redhat.com>
32392
32393         * lib/strftime.h: Add comments describing the two added arguments.
32394
32395         remove duplicate #include directives
32396         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
32397         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
32398
32399 2008-08-31  Bruno Haible  <bruno@clisp.org>
32400
32401         New module 'sigpipe-die'.
32402         * modules/sigpipe-die: New file.
32403         * lib/sigpipe-die.h: New file.
32404         * lib/sigpipe-die.c: New file.
32405         * MODULES.html.sh (Signal handling): Add sigpipe-die.
32406
32407 2008-08-31  Bruno Haible  <bruno@clisp.org>
32408
32409         Don't override previously installed signal handlers.
32410         * lib/fatal-signal.c (saved_sigactions): New variable.
32411         (uninstall_handlers): Reset the signal to the saved handler, not
32412         to SIG_DFL (except when ignored).
32413         (install_handlers): Save the previous handlers.
32414
32415 2008-08-30  Bruno Haible  <bruno@clisp.org>
32416
32417         * gnulib-tool (func_reset_sigpipe): New function.
32418         (func_get_automake_snippet, func_modules_transitive_closure,
32419         func_import): Invoke it before a join command that reads from stdin,
32420         to avoid "echo: write error: Broken pipe" error messages on stderr.
32421         Reported by Sam Steingold <sds@gnu.org>.
32422
32423 2008-08-30  Bruno Haible  <bruno@clisp.org>
32424
32425         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32426         Code copied from m4/open.m4.
32427         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32428         access and the filename ends in a slash. Code copied from lib/open.c.
32429         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32430         * tests/test-fopen.c (main): Check against bug with trailing slash.
32431
32432 2008-08-29  Bruno Haible  <bruno@clisp.org>
32433
32434         Avoid some "gcc -pedantic" warnings.
32435         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32436         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32437         * lib/dirent.in.h: Likewise.
32438         * lib/fcntl.in.h: Likewise.
32439         * lib/float.in.h: Likewise.
32440         * lib/iconv.in.h: Likewise.
32441         * lib/inttypes.in.h: Likewise.
32442         * lib/locale.in.h: Likewise.
32443         * lib/math.in.h: Likewise.
32444         * lib/netinet_in.in.h: Likewise.
32445         * lib/search.in.h: Likewise.
32446         * lib/signal.in.h: Likewise.
32447         * lib/stdarg.in.h: Likewise.
32448         * lib/stdint.in.h: Likewise.
32449         * lib/stdio.in.h: Likewise.
32450         * lib/stdlib.in.h: Likewise.
32451         * lib/string.in.h: Likewise.
32452         * lib/strings.in.h: Likewise.
32453         * lib/sys_select.in.h: Likewise.
32454         * lib/sys_socket.in.h: Likewise.
32455         * lib/sys_stat.in.h: Likewise.
32456         * lib/sys_time.in.h: Likewise.
32457         * lib/sysexits.in.h: Likewise.
32458         * lib/time.in.h: Likewise.
32459         * lib/unistd.in.h: Likewise.
32460         * lib/wchar.in.h: Likewise.
32461         * lib/wctype.in.h: Likewise.
32462         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32463         * modules/fchdir (Makefile.am): Likewise.
32464         * modules/fcntl (Makefile.am): Likewise.
32465         * modules/float (Makefile.am): Likewise.
32466         * modules/iconv_open (Makefile.am): Likewise.
32467         * modules/inttypes (Makefile.am): Likewise.
32468         * modules/locale (Makefile.am): Likewise.
32469         * modules/math (Makefile.am): Likewise.
32470         * modules/netinet_in (Makefile.am): Likewise.
32471         * modules/search (Makefile.am): Likewise.
32472         * modules/signal (Makefile.am): Likewise.
32473         * modules/stdarg (Makefile.am): Likewise.
32474         * modules/stdint (Makefile.am): Likewise.
32475         * modules/stdio (Makefile.am): Likewise.
32476         * modules/stdlib (Makefile.am): Likewise.
32477         * modules/string (Makefile.am): Likewise.
32478         * modules/strings (Makefile.am): Likewise.
32479         * modules/sys_select (Makefile.am): Likewise.
32480         * modules/sys_socket (Makefile.am): Likewise.
32481         * modules/sys_stat (Makefile.am): Likewise.
32482         * modules/sys_time (Makefile.am): Likewise.
32483         * modules/sysexits (Makefile.am): Likewise.
32484         * modules/time (Makefile.am): Likewise.
32485         * modules/unistd (Makefile.am): Likewise.
32486         * modules/wchar (Makefile.am): Likewise.
32487         * modules/wctype (Makefile.am): Likewise.
32488         Reported by Reuben Thomas <rrt@sc3d.org>.
32489
32490 2008-08-29  Bruno Haible  <bruno@clisp.org>
32491
32492         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32493         any more.
32494
32495 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32496
32497         * MODULES.html.sh (Misc): Add bitrotate.
32498
32499         * modules/bitrotate: New file.
32500
32501         * lib/bitrotate.h: New file.
32502
32503         * modules/bitrotate-tests: New file.
32504
32505         * tests/test-bitrotate.c: New file.
32506
32507         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32508         on the bitrotate module.
32509
32510         * lib/arctwo.c: Use new bitrotate module.
32511
32512 2008-08-29  Jim Meyering  <meyering@redhat.com>
32513
32514         bootstrap: merge changes from coreutils
32515         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32516         of copied files.  Remove a kludge, now that this is fixed.
32517         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32518         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32519         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32520
32521 2008-08-29  Bruno Haible  <bruno@clisp.org>
32522
32523         * MODULES.html.sh: Remove --cvs-urls option.
32524
32525 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32526
32527         maint.mk: adjust to file name change
32528         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32529
32530 2008-08-28  Jim Meyering  <meyering@redhat.com>
32531
32532         * modules/getndelim2 (License): Relicense to LGPLv2+.
32533         Approved by Richard Stallman for the version of 1995, and by
32534         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32535
32536 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32537
32538         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32539         dummy if one is not available.  Do not touch them if
32540         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32541         (getc_maybe_unlocked): New.
32542         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32543
32544 2008-08-26  Eric Blake  <ebb9@byu.net>
32545
32546         doc/INSTALL: resync from autoconf
32547         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32548         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32549         moving...
32550         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32551         * INSTALL: Regenerate.
32552         * INSTALL.ISO: New file.
32553         * INSTALL.UTF-8: Likewise.
32554
32555 2008-08-26  Jim Meyering  <meyering@redhat.com>
32556
32557         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32558         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32559         these definitions conditional, so that they may be overridden, too.
32560
32561 2008-08-26  Bruno Haible  <bruno@clisp.org>
32562
32563         Generate INSTALL file variants with prettier quotes.
32564         * doc/Makefile (INSTALL_PRELUDE): New macro.
32565         (INSTALL): Use it.
32566         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32567
32568 2008-08-26  Bruno Haible  <bruno@clisp.org>
32569
32570         Run makeinfo in an English locale.
32571         * doc/Makefile (MAKEINFO): New variable.
32572
32573 2008-08-26  Bruno Haible  <bruno@clisp.org>
32574
32575         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32576         Suggested by Eric Blake.
32577
32578 2008-08-25  Bruno Haible  <bruno@clisp.org>
32579
32580         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32581
32582 2008-08-25  Eric Blake  <ebb9@byu.net>
32583
32584         c-stack: test that stack overflow can be caught
32585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32586         that platform allows handling stack overflow; at least OS/2 EMX
32587         has sigaltstack, but crashes before transferring control to
32588         handler on stack overflow.
32589         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32590         check for HAVE_STACK_OVERFLOW_HANDLING.
32591         Reported by Elbert Pol.
32592
32593 2008-08-25  Bruno Haible  <bruno@clisp.org>
32594
32595         * doc/posix-functions/strftime.texi: Fix description of strftime
32596         module.
32597
32598 2008-08-24  Bruno Haible  <bruno@clisp.org>
32599
32600         * tests/uniwidth/test-uc_width2.c: New file.
32601         * tests/uniwidth/test-uc_width2.sh: New file.
32602         * modules/uniwidth/width-tests (Files): Add the new files.
32603         (TESTS): Add uniwidth/test-uc_width2.sh.
32604         (TESTS_ENVIRONMENT): New variable.
32605         (check_PROGRAMS): Add test-uc_width2.
32606         (test_uc_width2_SOURCES): New variable.
32607
32608         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32609         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32610         not 0x00AB.
32611         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32612
32613 2008-08-22  Eric Blake  <ebb9@byu.net>
32614
32615         test-lock, test-tls: mention why a test is skipped
32616         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32617         skipped.
32618         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32619
32620         count-one-bits: relax license
32621         * modules/count-one-bits (License): Relicense to LGPLv2+.
32622         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32623
32624 2008-08-22  Andreas Schwab  <schwab@suse.de>
32625
32626         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32627         Remove spurious space in assignment.
32628
32629 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32630
32631         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32632         Paul Eggert <eggert@CS.UCLA.EDU>.
32633
32634 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32635
32636         * modules/gettext: Add m4/threadlib.m4.
32637
32638 2008-08-19  Eric Blake  <ebb9@byu.net>
32639
32640         test-c-stack: fix compilation failure on FreeBSD 5.0
32641         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32642         headers before <sys/resource.h>.
32643         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32644         the bug.
32645         Reported by Nelson H. F. Beebe.
32646
32647         strverscmp: migrate from "strverscmp.h" to <string.h>
32648         * modules/string (Makefile.am): Add new hooks.
32649         * modules/strverscmp (Files): Remove strverscmp.h.
32650         (Depends-on): Add string.
32651         (configure.ac): Add indicator.
32652         (Include): Mention new header.
32653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32654         defaults.
32655         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32656         results.
32657         * lib/strverscmp.h: Delete.
32658         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32659         * tests/test-strverscmp.c (includes): Adjust client.
32660         * lib/check-version.c (includes): Likewise.
32661         * NEWS: Document the change.
32662
32663         strverscmp: add unit test
32664         * modules/strverscmp-tests: New file.
32665         * tests/test-strverscmp.c: Likewise.
32666
32667 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32668
32669         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32670         regarding Windows crypto stuff, from Mono.
32671
32672 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32673
32674         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32675         if present, for intel RND.  Return error on failures.
32676
32677 2008-08-18  Ben Pfaff  <blp@gnu.org>
32678
32679         gitlog-to-changelog: give better diagnostic for failed pipe-open
32680         * build-aux/gitlog-to-changelog: Improve error message: suggest
32681         that the version of Git may be too old.
32682
32683 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32684
32685         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32686         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32687
32688 2008-08-18  Bruno Haible  <bruno@clisp.org>
32689
32690         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32691         pthread_in_use().
32692
32693 2008-08-18  Bruno Haible  <bruno@clisp.org>
32694
32695         * lib/glthread/threadlib.c: Include <pthread.h>.
32696
32697 2008-08-18  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32700         glthread_recursive_lock_* macros.
32701         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32702         Fix syntax error.
32703
32704 2008-08-18  Bruno Haible  <bruno@clisp.org>
32705
32706         * lib/glthread/thread.c: Avoid forcing a context switch right after
32707         thread creation.
32708
32709 2008-08-17  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32712         * lib/glthread/thread.h: Provide Win32 specific implementation.
32713         * modules/thread (Files): Add lib/glthread/thread.c.
32714         (Depends-on): Add lock.
32715         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32716
32717 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32718
32719         New module 'yield'.
32720         * modules/yield: New file.
32721         * lib/glthread/yield.h: New file.
32722         * m4/yield.m4: New file.
32723         * MODULES.html.sh (Multithreading): Add yield.
32724
32725 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32726
32727         New module 'thread'.
32728         * modules/thread: New file.
32729         * lib/glthread/thread.h: New file.
32730         * m4/thread.m4: New file.
32731         * MODULES.html.sh (Multithreading): Add thread.
32732
32733 2008-08-17  Bruno Haible  <bruno@clisp.org>
32734
32735         * lib/glthread/lock.h: Include <stdlib.h> always.
32736         * lib/glthread/tls.h: Likewise.
32737         * lib/glthread/cond.h: Likewise.
32738
32739 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32740
32741         New module 'cond'.
32742         * modules/cond: New file.
32743         * lib/glthread/cond.h: New file.
32744         * lib/glthread/cond.c: New file.
32745         * m4/cond.m4: New file.
32746         * MODULES.html.sh (Multithreading): Add cond.
32747
32748 2008-08-16  Eric Blake  <ebb9@byu.net>
32749
32750         c-stack: fix regression on Irix 5.3 from 2008-06-21
32751         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32752         sa_sigaction...
32753         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32754         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32755         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32756         * modules/signal (Makefile.am): Use the value.
32757         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32758         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32759         * doc/posix-headers/signal.texi (signal.h): Document this
32760         portability issue.
32761         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32762         Reported by Tom G. Christensen.
32763
32764 2008-08-17  Bruno Haible  <bruno@clisp.org>
32765
32766         New module 'threadlib'.
32767         * modules/threadlib: New file.
32768         * lib/glthread/threadlib.c: New file, extracted from
32769         lib/glthread/lock.c.
32770         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32771         functions.
32772         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32773         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32774         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32775         macros.
32776         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32777         (gl_DISABLE_THREADS): Remove macro.
32778         * modules/lock (Files): Remove build-aux/config.rpath.
32779         (Depends-on): Remove havelib. Add threadlib.
32780         (configure.ac-early): Remove section.
32781         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32782         * modules/tls (Depends-on): Remove lock. Add threadlib.
32783         (Link): New section, copied from threadlib.
32784         * MODULES.html.sh (Multithreading): Add threadlib.
32785
32786 2008-08-14  Bruno Haible  <bruno@clisp.org>
32787
32788         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32789         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32790         glthread_rwlock_unlock, glthread_rwlock_destroy,
32791         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32792         glthread_recursive_lock_destroy): Define as macros always.
32793         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32794         glthread_lock_lock.
32795         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32796         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32797         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32798         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32799         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32800         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32801         (glthread_recursive_lock_lock_func): Renamed from
32802         glthread_recursive_lock_lock.
32803         (glthread_recursive_lock_unlock_func): Renamed from
32804         glthread_recursive_lock_unlock.
32805         (glthread_recursive_lock_destroy_func): Renamed from
32806         glthread_recursive_lock_destroy.
32807
32808 2008-08-14  Bruno Haible  <bruno@clisp.org>
32809
32810         * lib/glthread/lock.h: Renamed from lib/lock.h.
32811         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32812         * lib/glthread/tls.h: Renamed from lib/tls.h.
32813         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32814         * lib/fstrcmp.c: Update includes.
32815         * lib/strsignal.c: Update includes.
32816         * modules/lock (Files, Makefile.am): Update.
32817         (Include): Change to "glthread/lock.h".
32818         * modules/tls (Files, Makefile.am): Update.
32819         (Include): Change to "glthread/tls.h".
32820         * tests/test-lock.c: Update includes.
32821         * tests/test-tls.c: Update includes.
32822         * NEWS: Mention the renamed header files.
32823
32824 2008-08-11  Jim Meyering  <meyering@redhat.com>
32825
32826         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32827
32828 2008-08-11  Eric Blake  <ebb9@byu.net>
32829
32830         test-c-stack: avoid C99-ism
32831         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32832         before statement.
32833         Reported by Alain Guibert.
32834
32835 2008-08-10  Jim Meyering  <meyering@redhat.com>
32836
32837         ensure that return value of uinttostr et al are not ignored
32838         * lib/inttostr.h (__GNUC_PREREQ): Define.
32839         (__attribute_warn_unused_result__): Define.
32840         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32841
32842 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32843
32844         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32845         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32846
32847 2008-08-07  Jim Meyering  <meyering@redhat.com>
32848
32849         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32850
32851         * modules/mkstemp (License): Relicense under LGPLv2+.
32852         * modules/tempname (License): Likewise.
32853
32854 2008-08-06  Bruno Haible  <bruno@clisp.org>
32855
32856         * lib/poll.c (poll): Further micro-optimization.
32857
32858 2008-08-06  Jim Meyering  <meyering@redhat.com>
32859
32860         inet_pton.c: use locale-independent tolower
32861         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32862         (inet_pton6): Use c_tolower rather than tolower.
32863         * modules/inet_pton (Depends-on): Add c-ctype.
32864
32865 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32866
32867         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32868         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32869
32870 2008-08-06  Jim Meyering  <meyering@redhat.com>
32871
32872         * modules/inet_pton (License): Relicense under LGPLv2+.
32873
32874 2008-08-03  Bruno Haible  <bruno@clisp.org>
32875
32876         Additional non-aborting API for lock and tls.
32877         * lib/lock.h: Include <errno.h>.
32878         (glthread_lock_init): New macro/function.
32879         (gl_lock_init): Define as wrapper around glthread_lock_init.
32880         (glthread_lock_lock): New macro/function.
32881         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32882         (glthread_lock_unlock): New macro/function.
32883         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32884         (glthread_lock_destroy): New macro/function.
32885         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32886         (glthread_rwlock_init): New macro/function.
32887         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32888         (glthread_rwlock_rdlock): New macro/function.
32889         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32890         (glthread_rwlock_wrlock): New macro/function.
32891         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32892         (glthread_rwlock_unlock): New macro/function.
32893         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32894         (glthread_rwlock_destroy): New macro/function.
32895         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32896         (glthread_recursive_lock_init): New macro/function.
32897         (gl_recursive_lock_init): Define as wrapper around
32898         glthread_recursive_lock_init.
32899         (glthread_recursive_lock_lock): New macro/function.
32900         (gl_recursive_lock_lock): Define as wrapper around
32901         glthread_recursive_lock_lock.
32902         (glthread_recursive_lock_unlock): New macro/function.
32903         (gl_recursive_lock_unlock): Define as wrapper around
32904         glthread_recursive_lock_unlock.
32905         (glthread_recursive_lock_destroy): New macro/function.
32906         (gl_recursive_lock_destroy): Define as wrapper around
32907         glthread_recursive_lock_destroy.
32908         (glthread_once): New macro/function.
32909         (gl_once): Define as wrapper around glthread_once.
32910         Update function declarations.
32911         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32912         glthread_rwlock_init. Return error code.
32913         (glthread_rwlock_rdlock_multithreaded): Renamed from
32914         glthread_rwlock_rdlock. Return error code.
32915         (glthread_rwlock_wrlock_multithreaded): Renamed from
32916         glthread_rwlock_wrlock. Return error code.
32917         (glthread_rwlock_unlock_multithreaded): Renamed from
32918         glthread_rwlock_unlock. Return error code.
32919         (glthread_rwlock_destroy_multithreaded): Renamed from
32920         glthread_rwlock_destroy. Return error code.
32921         (glthread_recursive_lock_init_multithreaded): Renamed from
32922         glthread_recursive_lock_init. Return error code.
32923         (glthread_recursive_lock_lock_multithreaded): Renamed from
32924         glthread_recursive_lock_lock. Return error code.
32925         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32926         glthread_recursive_lock_unlock. Return error code.
32927         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32928         glthread_recursive_lock_destroy. Return error code.
32929         (glthread_once_call): Make static.
32930         (glthread_once_multithreaded): Renamed from glthread_once.
32931         * lib/tls.h: Include <errno.h>.
32932         (glthread_tls_key_init): New macro/function.
32933         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32934         (glthread_tls_set): New macro/function.
32935         (gl_tls_set): Define as wrapper around glthread_tls_set.
32936         (glthread_tls_key_destroy): New macro/function.
32937         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32938         Update function declarations.
32939         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32940         glthread_tls_get.
32941         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32942
32943 2008-08-04  Eric Blake  <ebb9@byu.net>
32944
32945         gnumakefile: use space, not TAB, outside of targets
32946         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32947
32948 2008-08-02  Jim Meyering  <meyering@redhat.com>
32949
32950         getdate.y: avoid locale-dependent date parsing failure
32951         In Turkish locales, getdate would fail to recognize keywords
32952         containing a lowercase "i".  The solution is not to rely on
32953         locale-sensitive case-conversion.
32954         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32955         (lookup_word): Use c_toupper in place of toupper.
32956         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32957         Reported by Vefa Bicakci <bicave@superonline.com> in
32958         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32959         * modules/getdate (Depends-on): Add c-ctype.
32960
32961 2008-08-02  Bruno Haible  <bruno@clisp.org>
32962
32963         * gnulib-tool (func_import): When updating or creating a .gitignore
32964         file, prepend each added line with a slash, and ignore leading slashes
32965         from the existing lines.
32966         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32967
32968 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32969
32970         Portability fix for GNU make 3.79.1.
32971         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32972         versions do not understand.
32973
32974 2008-08-01  Bruno Haible  <bruno@clisp.org>
32975
32976         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32977         * tests/test-isnanf.h (zero): New variable.
32978         (main): Avoid literal -0.0f.
32979         * tests/test-isnand.h (zero): New variable.
32980         (main): Avoid literal -0.0.
32981         * tests/test-isnanl.h (zero): New variable.
32982         (main): Avoid literal -0.0L.
32983         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32984         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32985         -0.0, -0.0L.
32986         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32987         (test_signbitd): Avoid literal -0.0.
32988         (test_signbitl): Avoid literal -0.0L.
32989         * tests/test-ceilf1.c (zero): New variable.
32990         (main): Avoid literal -0.0f.
32991         * tests/test-ceill.c (zero): New variable.
32992         (main): Avoid literal -0.0L.
32993         * tests/test-floorf1.c (zero): New variable.
32994         (main): Avoid literal -0.0f.
32995         * tests/test-floorl.c (zero): New variable.
32996         (main): Avoid literal -0.0L.
32997         * tests/test-roundf1.c (zero): New variable.
32998         (main): Avoid literal -0.0f.
32999         * tests/test-round1.c (zero): New variable.
33000         (main): Avoid literal -0.0.
33001         * tests/test-roundl.c (zero): New variable.
33002         (main): Avoid literal -0.0L.
33003         * tests/test-truncf1.c (zero): New variable.
33004         (main): Avoid literal -0.0f.
33005         * tests/test-trunc1.c (zero): New variable.
33006         (main): Avoid literal -0.0.
33007         * tests/test-truncl.c (zero): New variable.
33008         (main): Avoid literal -0.0L.
33009         * tests/test-frexp.c (zero): New variable.
33010         (main): Avoid literal -0.0.
33011         * tests/test-frexpl.c (zero): New variable.
33012         (main): Avoid literal -0.0L.
33013         * tests/test-ldexpl.c (zero): New variable.
33014         (main): Avoid literal -0.0L.
33015         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33016         (zerod, zerol): New variables.
33017         (test_function): Avoid literals -0.0, -0.0L.
33018         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33019         (zerod, zerol): New variables.
33020         (test_function): Avoid literals -0.0, -0.0L.
33021         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33022         (zerod, zerol): New variables.
33023         (test_function): Avoid literals -0.0, -0.0L.
33024         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33025         (zerod, zerol): New variables.
33026         (test_function): Avoid literals -0.0, -0.0L.
33027         * tests/test-strtod.c (zero): New variable.
33028         (main): Avoid literal -0.0.
33029         Reported by Jonathan C. Patschke <jp@centtech.com>.
33030
33031 2008-07-31  Jim Meyering  <meyering@redhat.com>
33032
33033         sha256.h: correct definition of SHA224_DIGEST_SIZE
33034         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
33035         Reported by Paulie Pena IV <paulie4@gmail.com>.
33036         Define as 224 / 8, rather than as a literal.
33037         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
33038         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
33039         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
33040
33041 2008-07-31  Bruno Haible  <bruno@clisp.org>
33042
33043         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
33044         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
33045         Reported by Jonathan Patschke <jp@centtech.com>.
33046
33047 2008-07-31  Bruno Haible  <bruno@clisp.org>
33048
33049         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
33050         Reported by Paolo Bonzini <bonzini@gnu.org>.
33051
33052 2008-07-30  Eric Blake  <ebb9@byu.net>
33053
33054         test-strtod: allow compilation without -lm
33055         * tests/test-strtod.c (main): Avoid link dependence on fabs.
33056         Reported by Dennis Clarke <blastwave@gmail.com>.
33057
33058 2008-07-28  Jim Meyering  <meyering@redhat.com>
33059
33060         bootstrap: work also when there are no .po files in po/
33061         * build-aux/bootstrap (update_po_files): Complete the change
33062         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
33063
33064 2008-07-27  Jim Meyering  <meyering@redhat.com>
33065
33066         * users.txt: Add zile.
33067
33068 2008-07-26  Ben Pfaff  <blp@gnu.org>
33069
33070         Add missing dependencies on new m4/exponent[fdl].m4 files.
33071         * modules/isnanf-nolibm: Add m4/exponentf.m4.
33072         * modules/isnand-nolibm: Add m4/exponentd.m4.
33073         * modules/isnanl-nolibm: Add m4/exponentl.m4.
33074         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
33075         m4/isnan[fdl].m4, because the macros actually used moved.
33076         Reported by Jim Meyering.
33077
33078 2008-07-14  Ben Pfaff  <blp@gnu.org>
33079
33080         Add isinf module.
33081         * lib/isinf.c: New file.
33082         * lib/math.in.h: Define isinf macro if we have decided to replace
33083         it.
33084         * m4/isinf.m4: New file.
33085         * m4/math_h.m4: Initialize and substitute variables for isinf
33086         module.
33087         * modules/isinf: New file.
33088         * modules/isinf-tests: New file.
33089         * modules/math: Add substitutions for new module.
33090         * tests/test-isinf.c: New file.
33091         * doc/posix-functions/isinf.texi: Mention new module.
33092         * MODULES.html.sh: Mention new module.
33093
33094 2008-07-14  Ben Pfaff  <blp@gnu.org>
33095
33096         Factor out some macros for use by additional modules.
33097         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
33098         exponentf.m4.
33099         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
33100         exponentd.m4.
33101         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
33102         file exponentl.m4.
33103         * m4/exponentf.m4: New file.
33104         * m4/exponentd.m4: New file.
33105         * m4/exponentl.m4: New file.
33106         * modules/isnanf: Use new file m4/exponentf.m4.
33107         * modules/isnand: Use new file m4/exponentd.m4.
33108         * modules/isnanl: Use new file m4/exponentl.m4.
33109
33110 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
33111
33112         mktime.c: normalize tp->tm_isdst value to -1/0/1.
33113         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
33114         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
33115         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
33116
33117         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
33118         readlink on platforms without PATH_MAX.
33119
33120 2008-07-21  Eric Blake  <ebb9@byu.net>
33121
33122         Warn, not fail, on stale version.
33123         * top/GNUmakefile (_curr-ver): Tone down previous patch.
33124
33125         Don't allow installation with stale devel version number.
33126         * top/GNUmakefile (_is-install-target): New macro.
33127         (_curr-ver): Forbid installation with stale version number.
33128
33129 2008-07-20  Bruno Haible  <bruno@clisp.org>
33130
33131         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
33132         TESTS_ENVIRONMENT.
33133         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
33134
33135 2008-07-20  Bruno Haible  <bruno@clisp.org>
33136
33137         * lib/c-stack.h (c_stack_action): Add documentation.
33138         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
33139
33140 2008-07-20  Bruno Haible  <bruno@clisp.org>
33141
33142         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
33143         * modules/readlink (License): Likewise.
33144
33145 2008-07-17  Eric Blake  <ebb9@byu.net>
33146
33147         * modules/c-stack (Link): Fix typo.
33148
33149         Make c-stack use libsigsegv, when available.
33150         * modules/c-stack (Depends-on): Add libsigsegv.
33151         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
33152         needed.
33153         * lib/c-stack.c (SIGSTKSZ): Define fallback.
33154         (segv_handler, overflow_handler, c_stack_action)
33155         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
33156         implementation when libsigsegv is available, but only when using
33157         the library is necessary.
33158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
33159         comment, explaining why XSI check fails on Linux.
33160         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
33161         * tests/test-c-stack2.sh: Tweak skip message.
33162         * NEWS: Document new link-time requirements.
33163
33164 2008-07-16  Eric Blake  <ebb9@byu.net>
33165
33166         c-stack: Expose false positives when not using libsigsegv.
33167         * modules/c-stack-tests (Files): Expand test.
33168         * tests/test-c-stack.c (main): Add means to conditionally trigger
33169         non-overflow SIGSEGV.
33170         * tests/test-c-stack2.sh: New file.
33171
33172 2008-07-14  Bruno Haible  <bruno@clisp.org>
33173
33174         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
33175         Reported by Eric Blake.
33176
33177 2008-07-14  Sam Steingold  <sds@gnu.org>
33178             Bruno Haible  <bruno@clisp.org>
33179
33180         New module libsigsegv.
33181         * modules/libsigsegv: New file.
33182         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
33183         modifications.
33184         * MODULES.html.sh (Signal handling): New section.
33185
33186 2008-07-14  Bruno Haible  <bruno@clisp.org>
33187
33188         * modules/unictype/ctype-* (Description): Add the word "function".
33189         Improves the resulting doc in MODULES.html.
33190
33191 2008-07-12  Ben Pfaff  <blp@gnu.org>
33192
33193         Add longlong module.
33194         * modules/longlong: New file.
33195
33196 2008-07-12  Bruno Haible  <bruno@clisp.org>
33197
33198         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
33199         to empty.
33200
33201 2008-07-10  Ben Pfaff  <blp@gnu.org>
33202
33203         Add isnan module.
33204         * doc/posix-functions/isnan.texi: Mention new module.
33205         * lib/math.in.h: Define isnan macro if we have decided to replace
33206         it.
33207         * m4/isnan.m4: New file.
33208         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
33209         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
33210         also.
33211         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
33212         redundancy.
33213         * m4/math_h.m4: Initialize and substitute variables for isnan
33214         module.
33215         * modules/isnan: New file.
33216         * modules/isnan-tests: New file.
33217         * modules/math: Add substitutions for new module.
33218         * tests/test-isnan.c: New file.
33219         * MODULES.html.sh: Mention new module.
33220
33221 2008-07-10  Ben Pfaff  <blp@gnu.org>
33222
33223         Add isnanf module.
33224         * lib/isnanf.m4: New file.
33225         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
33226         (gl_HAVE_ISNANF_IN_LIBM): New macro.
33227         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
33228         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
33229         * modules/isnanf: New file.
33230         * modules/isnanf-tests: New file.
33231         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
33232         files.
33233         * tests/test-isnanf-nolibm.c: factored most of its contents into
33234         new file tests/test-isnanf.h.
33235         * tests/test-isnanf.h: New file.
33236         * tests/test-isnanf.c: New file.
33237         * MODULES.html.sh: Mention new module.
33238         * doc/glibc-functions/isnanf.texi: Mention new module.
33239
33240 2008-07-10  Ben Pfaff  <blp@gnu.org>
33241
33242         Add isnand module.
33243         * lib/isnand.h: New file.
33244         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
33245         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
33246         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
33247         functionality also.
33248         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
33249         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
33250         (gl_HAVE_ISNAND_IN_LIBM): New macro.
33251         * modules/isnand: New file.
33252         * modules/isnand-tests: New file.
33253         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
33254         files.
33255         * tests/test-isnand-nolibm.c: factored most of its contents into
33256         new file tests/test-isnand.h.
33257         * tests/test-isnand.h: New file.
33258         * tests/test-isnand.c: New file.
33259         * MODULES.html.sh: Mention new module.
33260
33261 2008-07-10  Ben Pfaff  <blp@gnu.org>
33262
33263         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
33264         * lib/isnand.h: Rename lib/isnand-nolibm.h.
33265         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
33266         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
33267         * modules/isnanf-nolibm: Update references to renamed files.
33268         * modules/isnand-nolibm: Likewise.
33269         * modules/isnanf-nolibm-tests: Likewise.
33270         * modules/isnand-nolibm-tests: Likewise.
33271         * lib/frexp.c: Likewise.
33272         * lib/isfinite.c: Likewise.
33273         * lib/signbitd.c: Likewise.
33274         * lib/signbitf.c: Likewise.
33275         * lib/vasnprintf.c: Likewise.
33276         * tests/test-ceilf1.c: Likewise.
33277         * tests/test-ceilf2.c: Likewise.
33278         * tests/test-floorf1.c: Likewise.
33279         * tests/test-floorf2.c: Likewise.
33280         * tests/test-frexp.c: Likewise.
33281         * tests/test-round1.c: Likewise.
33282         * tests/test-round2.c: Likewise.
33283         * tests/test-roundf1.c: Likewise.
33284         * tests/test-strtod.c: Likewise.
33285         * tests/test-trunc1.c: Likewise.
33286         * tests/test-trunc2.c: Likewise.
33287         * tests/test-truncf1.c: Likewise.
33288         * tests/test-truncf2.c: Likewise.
33289         * NEWS: Mention the renamed header files.
33290
33291 2008-07-11  Jim Meyering  <meyering@redhat.com>
33292
33293         vc-list-files: make the last-resort awk code more portable
33294         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
33295         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
33296         does not support it.
33297
33298 2008-07-10  Eric Blake  <ebb9@byu.net>
33299
33300         Work with tar's bootstrap.
33301         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
33302         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
33303         an m4 comment.
33304
33305 2008-07-09  Jim Meyering  <meyering@redhat.com>
33306
33307         posix-shell.m4: fix typo that made this test malfunction
33308         * m4/posix-shell.m4: Remove capitalization in variable name.
33309
33310 2008-07-08  Bruno Haible  <bruno@clisp.org>
33311
33312         * m4/onceonly.m4: Update comments.
33313         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33314
33315 2008-07-04  Jim Meyering  <meyering@redhat.com>
33316
33317         * users.txt: Add vc-dwim.
33318         (bison, coreutils): Use the gitweb URL.
33319
33320 2008-07-03  Jim Meyering  <meyering@redhat.com>
33321
33322         * users.txt: Add libffcall.  From Sam Steingold.
33323
33324 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
33325
33326         getdate.y: do not ignore TZ with relative day, month or year offset
33327         * lib/getdate.y (get_date): Move the tz-handling block to follow the
33328         relative-date-handling, since otherwise, the latter would clobber the
33329         sole output (an updated Start value) of the tz-handling block.
33330         * tests/test-getdate.c: Tests for the fix
33331
33332 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33333
33334         Recognize 'foo_LIBRARIES += libgnu.a'.
33335         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
33336         makefile snippet has already specified an installation location,
33337         also using '+='.
33338
33339 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
33340
33341         getdate.y: factor out common actions
33342         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
33343         Use them in place of open-coded actions.
33344
33345 2008-07-01  Simon Josefsson  <simon@josefsson.org>
33346
33347         Add self-test for getdate module.
33348         * modules/getdate-tests: New file.
33349         * tests/test-getdate.c: New file.
33350
33351 2008-06-29  Bruno Haible  <bruno@clisp.org>
33352
33353         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
33354         .gitignore.
33355         Reported by Sylvain Beucler <beuc@beuc.net>.
33356
33357 2008-06-29  Bruno Haible  <bruno@clisp.org>
33358
33359         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
33360         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
33361
33362 2008-06-29  Bruno Haible  <bruno@clisp.org>
33363
33364         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
33365         EXTRA_DIST.
33366         Reported by Sylvain Beucler <beuc@beuc.net>.
33367
33368 2008-06-26  Jim Meyering  <meyering@redhat.com>
33369
33370         make several modules depend on the "open" module
33371         This provides slightly increased consistency when opening-for-write
33372         the name of a non-directory spelled with a trailing slash.
33373         * modules/chdir-safer: Likewise.
33374         * modules/chown: Likewise.
33375         * modules/clean-temp: Likewise.
33376         * modules/copy-file: Likewise.
33377         * modules/fchdir: Likewise.
33378         * modules/fcntl-safer: Likewise.
33379         * modules/pipe: Likewise.
33380         * modules/utime: Likewise.
33381         Prompted by Eric Blake and Bruno Haible.
33382
33383 2008-06-24  Andreas Schwab  <schwab@suse.de>
33384
33385         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
33386         literals can be used as initializers for global variables.
33387
33388 2008-06-23  Eric Blake  <ebb9@byu.net>
33389
33390         Make gnulib-cache.m4 easier to diff.
33391         * gnulib-tool (func_import): Allow newlines when reading cached
33392         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
33393
33394 2008-06-23  Bruno Haible  <bruno@clisp.org>
33395
33396         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
33397         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
33398         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
33399         m4/signalblocking.m4.
33400         (gl_PREREQ_SIGACTION): Don't invoke it.
33401         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
33402         gl_PREREQ_SIG_HANDLER_H.
33403         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33404         Don't check for sigaction here.
33405
33406 2008-06-23  Bruno Haible  <bruno@clisp.org>
33407
33408         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33409         (install_handlers): Don't set the SA_RESETHAND flag.
33410
33411 2008-06-23  Bruno Haible  <bruno@clisp.org>
33412
33413         * m4/sigaction.m4: Comment fixes.
33414         * lib/signal.in.h: Likewise.
33415
33416 2008-06-23  Eric Blake  <ebb9@byu.net>
33417
33418         Fix typo.
33419         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33420
33421         Avoid SA_ namespace.
33422         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33423         Reported by Ralf Wildenhues.
33424
33425         Avoid test failure due to SA_RESTORER.
33426         * tests/test-sigaction.c (SA_MASK): New macro.
33427         (main): Avoid failing due to extension flags being set.
33428         Reported by Jim Meyering.
33429
33430         Revert use of sig-handler.h in sigprocmask.c.
33431         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33432         it requires the existence of struct sigaction.
33433         * lib/sigprocmask.c (handler_t): Restore typedef.
33434         (rpl_signal, old_handlers): Use local type.
33435
33436 2008-06-22  Bruno Haible  <bruno@clisp.org>
33437
33438         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33439         conditionally.
33440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33441
33442 2008-06-22  Bruno Haible  <bruno@clisp.org>
33443
33444         * doc/posix-functions/siginterrupt.texi: Move note.
33445
33446         * lib/signal.in.h (SA_RESTART): New macro.
33447         * lib/sigaction.c: Update comment.
33448
33449         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
33450
33451         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
33452         (gl_PREREQ_SIGPROCMASK): Invoke it.
33453         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
33454
33455         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
33456
33457         * lib/sigprocmask.c: Update a comment.
33458
33459 2008-06-21  Eric Blake  <ebb9@byu.net>
33460
33461         Use sigaction module rather than signal().
33462         * modules/c-stack (Depends-on): Add sigaction.
33463         * modules/fatal-signal (Depends-on): Likewise.
33464         * modules/nanosleep (Depends-on): Likewise.
33465         * modules/sigprocmask (Files): Add sig-handler.h.
33466         * modules/sigaction (Files): Likewise.
33467         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33468         Eggert.
33469         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33470         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33471         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33472         (init_fatal_signals): Likewise.
33473         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33474         (siginterrupt): Delete fallback.
33475         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33476         instead.
33477         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33478         siginterrupt.
33479
33480         New module sigaction, for mingw.
33481         * modules/sigaction: New module...
33482         * modules/sigaction-tests: ...and its test.
33483         * m4/sigaction.m4: New file.
33484         * lib/sigaction.c: Likewise.
33485         * tests/test-sigaction.c: Likewise.
33486         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33487         * modules/signal (Makefile.am): Likewise.
33488         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33489         needed.
33490         * doc/posix-headers/signal.texi (signal.h): Mention provided
33491         types.
33492         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33493         that sigaction is preferable.
33494         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33495         module.
33496         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33497         sigaction.
33498
33499         Improve robustness of sigprocmask by overriding signal.
33500         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33501         is in use.
33502         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33503         (SIGKILL, SIGSTOP): Provide fallbacks.
33504         (rpl_signal): Implement.
33505         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33506         signal can be called inside handlers.
33507
33508         Fix nanosleep module on mingw.
33509         * modules/nanosleep (Depends-on): Add sys_select.
33510         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33511
33512         Fix licensing of sigprocmask.
33513         * modules/raise (License): Relicense as LGPL.
33514
33515 2008-06-21  Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33518         result if it contains question marks.
33519         Reported by Michael Geng <linux@michaelgeng.de>.
33520
33521 2008-06-19  Bruno Haible  <bruno@clisp.org>
33522
33523         Fix CVS-ism.
33524         * doc/gnulib.texi: Include updated-stamp.texi.
33525         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33526         (updated-stamp.texi): New rule.
33527         (gnulib.info): Depend on it.
33528         * doc/.gitignore: Add updated-stamp.texi.
33529         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33530
33531 2008-06-19  Bruno Haible  <bruno@clisp.org>
33532
33533         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33534         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33535
33536 2008-06-19  Eric Blake  <ebb9@byu.net>
33537
33538         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33539         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33540         Reported by Stepan Kasal.
33541
33542 2008-06-18  Bruno Haible  <bruno@clisp.org>
33543
33544         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33545         Reported by Eric Blake.
33546
33547 2008-06-18  Eric Blake  <ebb9@byu.net>
33548
33549         Work around cygwin 1.5.25 strsignal bug.
33550         * tests/test-strsignal.c: Allow for const char *.
33551         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33552
33553 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33554
33555         * users.txt: Update URL to article and add author/date
33556         information.
33557
33558 2008-06-17  Bruno Haible  <bruno@clisp.org>
33559
33560         New macro gl_DISABLE_THREADS.
33561         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33562         if the user did not pass --enable-threads or --disable-threads option.
33563         (gl_DISABLE_THREADS): New macro.
33564         Reported by Eric Blake <ebb9@byu.net>.
33565
33566 2008-06-17  Bruno Haible  <bruno@clisp.org>
33567
33568         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33569         when the macro ignores it.
33570         Based on a patch by Eric Blake <ebb9@byu.net>.
33571
33572 2008-06-17  Bruno Haible  <bruno@clisp.org>
33573
33574         * modules/tls (License): Change to LGPLv2+.
33575         Reported by Eric Blake.
33576
33577 2008-06-17  Eric Blake  <ebb9@byu.net>
33578
33579         Simplify c-stack prerequisites.
33580         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33581         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33582         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33583         check.
33584         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33585         <sys/resource.h>.
33586
33587         Move c-stack test into testsuite.
33588         * modules/c-stack-tests: New file.
33589         * lib/c-stack.c [DEBUG]: Move test program...
33590         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33591         fail test if sigaltstack is lacking.
33592         * tests/test-c-stack.sh: New driver file.
33593
33594 2008-06-16  Eric Blake  <ebb9@byu.net>
33595
33596         Use raise module consistently.
33597         * modules/fatal-signal (Depends-on): Add raise.
33598         * modules/sigprocmask (Depends-on): Likewise.
33599         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33600         * lib/sigprocmask.c (sigprocmask): Likewise.
33601         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33602         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33603
33604         Fix compliance bug in sigpending.
33605         * lib/sigprocmask.c (sigpending): Return pending array via
33606         parameter, not return value.
33607
33608 2008-06-14  Eric Blake  <ebb9@byu.net>
33609
33610         Improve obstack-printf test code.
33611         * tests/test-obstack-printf.c (test_function): Fix comment, and
33612         simplify usage of obstack_* in macros.  Add a test for coverage.
33613         Reported by Bruno Haible.
33614
33615 2008-06-14  Bruno Haible  <bruno@clisp.org>
33616
33617         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33618         array size as a constant, not as a const variable.
33619         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33620         AC_USE_SYSTEM_EXTENSIONS.
33621         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33622         Test whether the obstack_printf function actually exists.
33623         * modules/obstack-printf (Depends-on): Add extensions.
33624         (Include): Remove obstack.h.
33625         * modules/obstack-printf-posix (Depends-on): Add extensions.
33626         (Include): Remove obstack.h.
33627
33628 2008-06-13  Eric Blake  <ebb9@byu.net>
33629
33630         Add obstack-printf and obstack-printf-posix modules.
33631         * modules/obstack-printf: New file.
33632         * modules/obstack-printf-posix: Likewise.
33633         * MODULES.html.sh (Misc): Mention them.
33634         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33635         Likewise.
33636         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33637         Likewise.
33638         * modules/stdio (Makefile.am): Accomodate new modules.
33639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33640         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33641         Declare.
33642         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33643         functions.
33644         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33645         (gl_REPLACE_OBSTACK_PRINTF): New macros
33646         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33647         * tests/test-obstack-printf.c: New file.
33648         * modules/obstack-printf-tests: Likewise.
33649         * modules/obstack-printf-posix-tests: Likewise.
33650
33651 2008-06-11  Bruno Haible  <bruno@clisp.org>
33652
33653         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33654         * lib/open.c: Include errno.h.
33655         (open): Fail when attempting to write to a file that has a trailing
33656         slash.
33657         * tests/test-open.c (main): Test against trailing slash bug.
33658         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33659
33660 2008-06-10  Bruno Haible  <bruno@clisp.org>
33661
33662         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33663         for $? to work inside the trap command, with various /bin/sh-s.
33664         * tests/test-vc-list-files-cvs.sh: Likewise.
33665
33666 2008-06-10  Bruno Haible  <bruno@clisp.org>
33667
33668         * lib/acl-internal.h: Don't include gettext.h here.
33669         * lib/set-mode-acl.c: Include gettext.h here.
33670         * lib/copy-acl.c: Likewise.
33671
33672 2008-06-10  Bruno Haible  <bruno@clisp.org>
33673
33674         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33675         * lib/wait-process.c (wait_subprocess): Likewise.
33676         * lib/execute.h (execute): Add termsigp argument.
33677         * lib/execute.c (execute): Likewise.
33678         * lib/csharpcomp.c (compile_csharp_using_pnet,
33679         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33680         * lib/csharpexec.c (execute_csharp_using_pnet,
33681         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33682         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33683         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33684         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33685         is_jikes_present): Update.
33686         * lib/javaexec.c (execute_java_class): Update.
33687         * lib/javaversion.c (execute_and_read_line): Update.
33688         * NEWS: Document the changes.
33689         Reported by Eric Blake.
33690
33691 2008-06-10  Eric Blake  <ebb9@byu.net>
33692
33693         Add missing include.
33694         * tests/test-strstr.c (includes): Add <signal.h>.
33695         * tests/test-strcasestr.c (includes): Likewise.
33696         * tests/test-memmem.c (includes): Likewise.
33697
33698 2008-06-10  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/wait-process.c (wait_subprocess): Add an assertion.
33701
33702 2008-06-10  Bruno Haible  <bruno@clisp.org>
33703
33704         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33705
33706 2008-06-10  Bruno Haible  <bruno@clisp.org>
33707
33708         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33709         using alarm().
33710         * tests/test-strcasestr.c (main): Likewise.
33711         * tests/test-strstr.c (main): Likewise.
33712
33713 2008-06-09  Bruno Haible  <bruno@clisp.org>
33714
33715         Work around the Solaris 10 ACE ACLs ABI change.
33716         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33717         declare if ACL_NO_TRIVIAL is present.
33718         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33719         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33720         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33721         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33722         define if ACL_NO_TRIVIAL is present.
33723         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33724         and use the current ABI.
33725         (file_has_acl): Use same #if condition as elsewhere.
33726         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33727         in use, and use the current ABI.
33728         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33729         Reported by Jim Meyering.
33730
33731 2008-06-09  Eric Blake  <ebb9@byu.net>
33732
33733         Work around environments that (stupidly) ignore SIGALRM.
33734         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33735         before using alarm().
33736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33738         Reported by Ian Beckwith <ianb@erislabs.net>.
33739
33740         Produce autobuild blurb earlier in log.
33741         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33742
33743 2008-06-09  Jim Meyering  <meyering@redhat.com>
33744         and OndÅ™ej Vašík  <ovasik@redhat.com>
33745
33746         utimens.c: correct kernel bug work-around
33747         OndÅ™ej Vašík found that the invalid return value of 280 indicates
33748         failure, not success, and the kernel bug we're trying to work
33749         around affects not just the utimensat call, but also the fallback
33750         futimens call.
33751         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33752         not success.
33753         [HAVE_FUTIMENS]: Use the same work-around, here.
33754
33755 2008-06-09  Jim Meyering  <meyering@redhat.com>
33756
33757         add more guards around definition of ACE_-related code
33758         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33759         ALLOW and ACE_OWNER are also defined.
33760
33761 2008-06-08  Bruno Haible  <bruno@clisp.org>
33762
33763         * lib/acl-internal.h: Add me as co-author.
33764         * lib/file-has-acl.c: Likewise.
33765         * lib/set-mode-acl.c: Likewise.
33766         * lib/copy-acl.c: Likewise.
33767
33768 2008-06-08  Bruno Haible  <bruno@clisp.org>
33769
33770         Add support for AIX ACLs.
33771         * lib/acl-internal.h (acl_nontrivial): New declaration.
33772         * lib/file-has-acl.c (acl_nontrivial): New function.
33773         (file_has_acl): Add implementation using AIX 4 ACL API.
33774         * lib/set-mode-acl.c (qset_acl): Likewise.
33775         * lib/copy-acl.c (qcopy_acl): Likewise.
33776
33777 2008-06-08  Bruno Haible  <bruno@clisp.org>
33778
33779         Add support for HP-UX ACLs.
33780         * lib/acl-internal.h (acl_nontrivial): New declaration.
33781         * lib/file-has-acl.c (acl_nontrivial): New function.
33782         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33783         * lib/set-mode-acl.c (qset_acl): Likewise.
33784         * lib/copy-acl.c (qcopy_acl): Likewise.
33785
33786 2008-06-08  Bruno Haible  <bruno@clisp.org>
33787
33788         Add support for Cygwin ACLs.
33789         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33790         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33791         the chmod_or_fchmod call.
33792         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33793
33794 2008-06-08  Bruno Haible  <bruno@clisp.org>
33795
33796         Fix bug with setuid modes in Solaris 10+ code.
33797         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33798         succeeded, when the mode contains some special bits.
33799
33800 2008-06-08  Bruno Haible  <bruno@clisp.org>
33801
33802         Add support for Solaris 7..10 ACLs.
33803         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33804         declarations.
33805         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33806         functions.
33807         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33808         * lib/set-mode-acl.c (qset_acl): Likewise.
33809         * lib/copy-acl.c (qcopy_acl): Likewise.
33810
33811 2008-06-08  Bruno Haible  <bruno@clisp.org>
33812
33813         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33814         declaration.
33815         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33816         (acl_access_nontrivial): Remove MacOS X case.
33817         (file_has_acl): Use acl_extended_nontrivial.
33818         * lib/copy-acl.c (qcopy_acl): Likewise.
33819
33820 2008-06-08  Bruno Haible  <bruno@clisp.org>
33821
33822         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33823
33824 2008-06-08  Jim Meyering  <meyering@redhat.com>
33825
33826         * modules/acl (Maintainer): Add Bruno Haible.
33827
33828 2008-06-07  Bruno Haible  <bruno@clisp.org>
33829
33830         Improve support for Tru64 ACLs.
33831         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33832         ACL on OSF/1.
33833
33834 2008-06-07  Bruno Haible  <bruno@clisp.org>
33835
33836         Add support for MacOS X ACLs.
33837         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33838         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33839         * lib/set-mode-acl.c (qset_acl): Likewise.
33840         * lib/copy-acl.c (qcopy_acl): Likewise.
33841
33842 2008-06-07  Bruno Haible  <bruno@clisp.org>
33843
33844         Fix memory leak introduced on 2008-05-22.
33845         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33846         use.
33847
33848 2008-06-07  Bruno Haible  <bruno@clisp.org>
33849
33850         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33851         to construct an empty ACL.
33852
33853 2008-06-07  Bruno Haible  <bruno@clisp.org>
33854
33855         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33856         precisely.
33857         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33858
33859 2008-06-07  Bruno Haible  <bruno@clisp.org>
33860
33861         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33862         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33863
33864 2008-06-07  Bruno Haible  <bruno@clisp.org>
33865
33866         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33867         regardless of POSIX.
33868         * doc/posix-functions/_longjmp.texi: Likewise.
33869         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33870         SystemV platform in this case.
33871
33872 2008-06-06  Eric Blake  <ebb9@byu.net>
33873
33874         Document abort() bugs.
33875         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33876
33877         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33878         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33879         sigsetjmp.
33880         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33881         siglongjmp, but only as a macro.
33882         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33883         is obsolete.
33884         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33885
33886         Tweak documentation to cover cygwin argz bugs.
33887         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33888         argz bug fix; no code change needed since no cygwin releases
33889         occurred between the last fix and the bug being tested.
33890         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33891         module and recently fixed cygwin bugs.
33892         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33893         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33894         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33895         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33896         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33897         Likewise.
33898         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33899         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33900         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33901         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33902         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33903         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33904         Likewise.
33905
33906         Avoid gcc warning on cygwin.
33907         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33908         !ACL_NO_TRIVIAL]: Avoid unused variable.
33909
33910 2008-06-05  Eric Blake  <ebb9@byu.net>
33911
33912         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33913         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33914         git-version-gen fails to come up with a version.
33915         Reported by Simon Josefsson.
33916
33917 2008-06-05  Jim Meyering  <meyering@redhat.com>
33918             Paul Eggert  <eggert@cs.ucla.edu>
33919
33920         utimens.c: work around a probable Linux kernel bug
33921         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33922         appears to be a kernel bug that causes utimensat to return 280
33923         instead of 0, indicating success.
33924
33925 2008-06-04  Bruno Haible  <bruno@clisp.org>
33926
33927         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33928         2008-06-01 commit.
33929
33930 2008-06-04  Bruno Haible  <bruno@clisp.org>
33931
33932         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33933         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33934         (file_has_acl): Use it. Save errno afterwards.
33935         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33936
33937 2008-06-03  Bruno Haible  <bruno@clisp.org>
33938
33939         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33940         draft code. Simplify #ifs.
33941         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33942         Put Solaris code after POSIX-draft code. Fix comments regarding
33943         Solaris 10, HP-UX. Mention Cygwin.
33944         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33945
33946 2008-06-03  Eric Blake  <ebb9@byu.net>
33947
33948         Provide fallback for older kernels.
33949         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33950         Provide runtime fallback if kernel lacks support.
33951         Reported by Mike Frysinger.
33952
33953 2008-06-02  Bruno Haible  <bruno@clisp.org>
33954
33955         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33956         it exists.
33957
33958 2008-06-02  Bruno Haible  <bruno@clisp.org>
33959
33960         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33961         * lib/copy-acl.c (qcopy_acl): Update comment.
33962
33963 2008-06-02  Bruno Haible  <bruno@clisp.org>
33964
33965         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33966         like ACL APIs.
33967
33968 2008-06-02  Bruno Haible  <bruno@clisp.org>
33969
33970         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33971         * tests/test-set-mode-acl.sh: Likewise.
33972         * tests/test-copy-acl.sh: Likewise.
33973         * tests/test-copy-file.sh: Likewise.
33974
33975 2008-06-02  Bruno Haible  <bruno@clisp.org>
33976
33977         * tests/test-file-has-acl.sh: Remove unused code.
33978
33979 2008-06-01  Bruno Haible  <bruno@clisp.org>
33980
33981         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33982         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33983         messages.
33984         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33985
33986 2008-06-01  Bruno Haible  <bruno@clisp.org>
33987
33988         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33989         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33990         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33991         APIs.
33992         * modules/acl-tests (configure.ac): Remove tests now contained in
33993         m4/acl.m4.
33994
33995 2008-06-02  Jim Meyering  <meyering@redhat.com>
33996
33997         announce-gen: use a better key-server host name
33998         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33999         it may be more consistently reliable.  Suggested by Werner Koch
34000         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
34001
34002 2008-06-01  Bruno Haible  <bruno@clisp.org>
34003
34004         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
34005         Reported by Voroskoi Andras <voroskoi@gmail.com>.
34006
34007 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
34008
34009         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
34010
34011 2008-06-01  Bruno Haible  <bruno@clisp.org>
34012
34013         New ACL tests.
34014         * tests/test-file-has-acl.sh: New file.
34015         * tests/test-file-has-acl.c: New file.
34016         * tests/test-set-mode-acl.sh: New file.
34017         * tests/test-set-mode-acl.c: New file.
34018         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
34019         * tests/test-copy-acl.c: New file.
34020         * modules/acl-tests: New file, based on modules/copy-file-tests.
34021         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
34022         (Depends-on): Add acl-tests.
34023         (configure.ac): Remove checks.
34024         (Makefile.am): Don't create test-sameacls program here any more.
34025
34026 2008-06-01  Bruno Haible  <bruno@clisp.org>
34027
34028         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
34029         * tests/test-sameacls.c: Include progname.h.
34030         (main): Invoke set_program_name. Portability fixes for MacOS X,
34031         Solaris, HP-UX.
34032
34033 2008-06-01  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
34036         function.
34037         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
34038
34039 2008-06-01  Bruno Haible  <bruno@clisp.org>
34040
34041         * modules/rpmatch (Depends-on): Add strdup.
34042
34043 2008-06-01  Bruno Haible  <bruno@clisp.org>
34044
34045         * lib/pipe.c: Include unistd-safer.h.
34046         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
34047         * modules/pipe (Depends-on): Add unistd-safer.
34048
34049 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34050
34051         * modules/autobuild (configure.ac): Call AB_INIT.
34052
34053 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34054
34055         * tests/test-getaddrinfo.c: Don't print debug messages by default.
34056         Suggested by Bruno Haible <bruno@clisp.org>.
34057
34058 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34059
34060         * tests/test-base64.c: Cast size_t to unsigned long when invoking
34061         printf.  Use %lu instead of %d.  Reported by Bruno Haible
34062         <bruno@clisp.org>.
34063
34064 2008-05-29  Eric Blake  <ebb9@byu.net>
34065
34066         Prefer new POSIX 200x interfaces over futimesat.
34067         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
34068         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
34069         when available.
34070         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
34071
34072 2008-05-28  Bruno Haible  <bruno@clisp.org>
34073
34074         * modules/stpcpy (License): Change to LGPLv2+.
34075         Requested by David Lutterkort <dlutter@redhat.com>.
34076
34077 2008-05-27  Bruno Haible  <bruno@clisp.org>
34078
34079         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
34080         current mingw.
34081         Reported by Jose E. Marchesi <jemarch@gnu.org>.
34082
34083 2008-05-27  Bruno Haible  <bruno@clisp.org>
34084
34085         * modules/iconv_open (Link): New section, from module 'iconv'.
34086         * modules/striconv (Link): Likewise.
34087         * modules/striconveh (Link): Likewise.
34088         * modules/xstriconv (Link): Likewise.
34089         * modules/unicodeio (Link): Likewise.
34090         * modules/propername (Link): Likewise.
34091         Reported by Jim Meyering.
34092
34093 2008-05-26  Jim Meyering  <meyering@redhat.com>
34094
34095         sha256: do not artificially restrict buffer length to be < 2^32
34096         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
34097         uint32_t to size_t.
34098         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
34099         to match.
34100
34101         avoid unaligned access errors, e.g., on sparc
34102         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
34103         direct access through a possibly-unaligned uint64* pointer.
34104         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
34105         direct access through a possibly-unaligned uint32* pointer.
34106         Prompted by this patch from Tom "spot" Callaway:
34107         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
34108
34109         sha512.c: fix typo in comment
34110         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
34111
34112 2008-05-25  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/set-mode-acl.c: Renamed from lib/acl.c.
34115         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
34116         (Makefile.am): Update lib_SOURCES.
34117
34118 2008-05-25  Bruno Haible  <bruno@clisp.org>
34119
34120         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
34121
34122 2008-05-25  Jim Meyering  <meyering@redhat.com>
34123
34124         useless-if-before-free: freed expr may have white-space differences
34125         * build-aux/useless-if-before-free: Recognize cases in which the
34126         freed expression differs from the tested one in embedded white
34127         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
34128         $1 was used, so we can't make any regexp shy.  Improved tests now
34129         detect this.
34130
34131         useless-if-before-free: accept white space in the expression.
34132         * build-aux/useless-if-before-free: For now, any white space
34133         in the expression must be identical in the free argument.
34134
34135         useless-if-before-free: efficiency tweak
34136         * build-aux/useless-if-before-free: Make the expression-matching
34137         regexp "shy".
34138         Make the *outer* regexp shy, not the expr-matching one.
34139
34140         update code-in-comment to accept cast of free arg
34141         * build-aux/useless-if-before-free: Update regexp.
34142
34143 2008-05-25  Bruno Haible  <bruno@clisp.org>
34144
34145         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
34146         * modules/copy-file-tests (Files, Makefile.am): Update.
34147         * tests/test-copy-file.c (func_test_copy): Update.
34148
34149 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
34150
34151         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
34152
34153 2008-05-23  Bruno Haible  <bruno@clisp.org>
34154
34155         Improve support for ACLs on OSF/1.
34156         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
34157         Remove fallback for unknown flavors of ACLs.
34158
34159 2008-05-22  Bruno Haible  <bruno@clisp.org>
34160
34161         Add support for ACLs on OSF/1.
34162         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
34163         replacements.
34164         (acl_free_text): New macro fallback.
34165         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
34166         acl_free.
34167         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
34168         acl_free_text function. Require AC_C_INLINE.
34169
34170 2008-05-22  Bruno Haible  <bruno@clisp.org>
34171
34172         Make copy_acl work on MacOS X 10.5.
34173         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
34174         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
34175         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
34176         If MODE_INSIDE_ACL, don't assume that every system has the same text
34177         representation for ACLs as FreeBSD.
34178         * lib/copy-acl.c (copy_acl): Add support for platforms with
34179         !MODE_INSIDE_ACL.
34180         * lib/file-has-acl.c (file_has_acl): Likewise.
34181         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
34182         FreeBSD, MacOS X, or IRIX, respectively.
34183
34184 2008-05-22  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/acl.h: Don't include <sys/acl.h>.
34187         (GETACLCNT): Move fallback to lib/acl-internal.h.
34188         * lib/acl-internal.h: Include <sys/acl.h> here.
34189         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
34190
34191 2008-05-22  Bruno Haible  <bruno@clisp.org>
34192
34193         Split off copy_acl function to separate file.
34194         * lib/copy-acl.c: New file, extracted from lib/acl.c.
34195         * lib/acl.c (copy_acl): Moved function to separate file.
34196         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
34197         * modules/acl (Files): Add lib/copy-acl.c.
34198         (Makefiles.am): Augment lib_SOURCES.
34199
34200 2008-05-22  Bruno Haible  <bruno@clisp.org>
34201
34202         * modules/copy-file-tests: New file.
34203         * tests/test-copy-file.sh: New file.
34204         * tests/test-copy-file.c: New file.
34205         * tests/test-copy-file-sameacls.c: New file.
34206
34207 2008-05-22  Eric Blake  <ebb9@byu.net>
34208
34209         Avoid gcc warning.
34210         * tests/test-memcmp.c (main): Pass NULL indirectly.
34211
34212 2008-05-21  Bruno Haible  <bruno@clisp.org>
34213
34214         Add reference doc about ACLs.
34215         * doc/acl-resources.txt: New file.
34216         * doc/acl-cygwin.txt: New file.
34217
34218 2008-05-21  Bruno Haible  <bruno@clisp.org>
34219
34220         Avoid one more warning from gcc.
34221         * lib/vasnprintf.c (IF_LINT): Update comments.
34222         (VASNPRINTF): Use it also for the 'prefix' array initializer.
34223
34224 2008-05-21  Jim Meyering  <meyering@redhat.com>
34225
34226         avoid a warning from gcc
34227         * lib/vasnprintf.c (IF_LINT): Define.
34228         (scale10_round_decimal_long_double):
34229         Use it to avoid a "may be used uninitialized" warning.
34230         (scale10_round_decimal_double): Likewise.
34231
34232 2008-05-21  Simon Josefsson  <simon@josefsson.org>
34233
34234         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
34235         declared.
34236
34237 2008-05-20  Bruno Haible  <bruno@clisp.org>
34238
34239         * tests/test-memcmp.c (main): Test also the sign of the result. Test
34240         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
34241
34242 2008-05-20  Simon Josefsson  <simon@josefsson.org>
34243
34244         * modules/memcmp-tests: New file.
34245         * tests/test-memcmp.c: New file.
34246
34247 2008-05-19  Bruno Haible  <bruno@clisp.org>
34248
34249         * modules/propername (Notice, configure.ac): Put quoted "..." into
34250         --keyword option.
34251         * lib/propername.h: Update comments accordingly.
34252         Reported by Eric Blake.
34253
34254 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
34255
34256         * modules/getpass-gnu (Depends-on): Add fseeko.
34257
34258 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34259
34260         * modules/base64-tests: New file.
34261
34262 2008-05-19  Bo Borgerson <gigabo@gmail.com>
34263
34264         * lib/base64.c (base64_decode_ctx): If a decode context structure
34265         was passed in use it to ignore newlines.  If a context structure
34266         was _not_ passed in, continue to treat newlines as garbage (this
34267         is the historical behavior).  Formerly base64_decode.
34268         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34269         takes a decode context structure.
34270         * lib/base64.h (base64_decode): Macro for four-argument calls.
34271         (base64_decode_alloc): Likewise.
34272         * lib/base64.c (base64_decode_ctx): If a decode context structure
34273         was passed in use it to ignore newlines.  If a context structure
34274         was _not_ passed in, continue to treat newlines as garbage (this
34275         is the historical behavior).  Formerly base64_decode.
34276         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34277         takes a decode context structure.
34278         * lib/base64.h (base64_decode): Macro for four-argument calls.
34279         (base64_decode_alloc): Likewise.
34280
34281 2008-05-19  Jim Meyering  <meyering@redhat.com>
34282
34283         avoid a warning from gcc
34284         * lib/trim.c (IF_LINT): Define.
34285         (trim2): Use it to avoid a "may be used uninitialized" warning.
34286
34287         Fix doc typo.
34288         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
34289
34290 2008-05-19  Bruno Haible  <bruno@clisp.org>
34291
34292         * doc/glibc-functions/getpass.texi: Document limits of other
34293         implementations.
34294
34295 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34296             Bruno Haible <bruno@clisp.org>
34297
34298         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
34299
34300 2008-05-18  Bruno Haible  <bruno@clisp.org>
34301
34302         * modules/propername: New file, from GNU gettext.
34303         * lib/propername.h: New file, from GNU gettext.
34304         * lib/propername.c: New file, from GNU gettext.
34305         * MODULES.html.sh (Internationalization functions): Add propername.
34306
34307 2008-05-16  Jim Meyering  <meyering@redhat.com>
34308             Bruno Haible  <bruno@clisp.org>
34309
34310         Avoid some warnings from "gcc -Wshadow".
34311         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
34312
34313 2008-05-15  Eric Blake  <ebb9@byu.net>
34314
34315         Extend previous patch to cygwin 1.7.0.
34316         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
34317         fast implementation in cygwin >= 1.7.0.
34318         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34319         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34320
34321 2008-05-15  Bruno Haible  <bruno@clisp.org>
34322
34323         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
34324         implementation in glibc >= 2.9.
34325         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34327
34328 2008-05-15  Bruno Haible  <bruno@clisp.org>
34329
34330         * MODULES.html.sh (Internationalization functions): Remove linebreak.
34331         (Unicode string functions): Add unilbrk/*.
34332         Reported by Karl Berry.
34333
34334 2008-05-15  Eric Blake  <ebb9@byu.net>
34335
34336         Fix violation of <stdbool.h> replacement in regex.
34337         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
34338         * lib/regexec.c (re_search_internal): Likewise.
34339         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
34340
34341 2008-05-15  Jim Meyering  <meyering@redhat.com>
34342
34343         avoid distracting test output when git or cvs is not found
34344         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
34345         * tests/test-vc-list-files-git.sh: Likewise.
34346
34347 2008-05-15  Eric Blake  <ebb9@byu.net>
34348
34349         Glibc finally accepted the memmem speedup code, bugzilla #5514.
34350         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
34351         glibc version.
34352         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34353         * doc/posix-functions/strstr.texi (strstr): Likewise.
34354         * lib/str-two-way.h (MAX): Sychronize with glibc.
34355
34356 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
34357
34358         * lib/regcomp.c (optimize_utf8): Add a note on why we test
34359         opr.ctx_type.
34360         (calc_first): Initialize constraint field.
34361         (duplicate_node_closure): Use it instead of special casing ANCHORS.
34362         Fix grammar.
34363         (duplicate_node): Merge constraint field for all node types.
34364         (calc_eclosure_iter): Look at constraint field for all node types.
34365         * lib/regex_internal.c (create_cd_newstate): Don't look at
34366         opr.ctx_type.
34367
34368 2008-05-14  Bruno Haible  <bruno@clisp.org>
34369
34370         Help GCC to do better code generation.
34371         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
34372         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
34373         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
34374         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
34375         Declare with attribute 'malloc' if supported.
34376
34377 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
34378
34379         use "echo STR|wc -c" rather than unportable "expr length STR"
34380         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
34381         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
34382
34383 2008-05-14  Jim Meyering  <meyering@redhat.com>
34384
34385         use dd ibs=$n count=1 ... rather than less-portable head -c$n
34386         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
34387         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
34388         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
34389         via Collin Lasse.
34390
34391 2008-05-14  Eric Blake  <ebb9@byu.net>
34392
34393         Avoid quadratic growth in gl_LIBSOURCES.
34394         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
34395         Suggested by Bruno Haible.
34396
34397         Test xmemdup0.
34398         * modules/xmemdup0-tests: New file.
34399         * tests/test-xmemdup0.c: Likewise.
34400
34401 2008-05-13  Eric Blake  <ebb9@byu.net>
34402
34403         Split xmemdup0 into its own module.
34404         * modules/xmemdup0: New file.
34405         * lib/xmemdup0.h: Likewise.
34406         * lib/xmemdup0.c: Likewise.
34407         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34408         * lib/xalloc.h (xmemdup0): Remove.
34409         * lib/xmalloc.c (xmemdup0): Likewise.
34410
34411 2008-05-13  Eric Blake  <ebb9@byu.net>
34412             Bruno Haible  <bruno@clisp.org>
34413
34414         Reduce number of forks required during autoconf.
34415         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34416         and gl_LIBSOURCES_DIR.
34417         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34418         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34419         m4_syscmd per file.
34420         <m4_foreach_w>: Move...
34421         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34422
34423 2008-05-13  Eric Blake  <ebb9@byu.net>
34424
34425         * gnulib-tool: Fix various comment typos.
34426
34427 2008-05-12  Bruno Haible  <bruno@clisp.org>
34428
34429         Tailor the linebreaking algorithm.
34430         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34431
34432 2008-05-12  Bruno Haible  <bruno@clisp.org>
34433
34434         Update to Unicode 5.0.0.
34435         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34436         LBP_JV, LBP_JT. Redistribute values.
34437         (unilbrk_table): Change size.
34438         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34439         Unicode TR#14 rev. 22.
34440         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34441         LBP_JV, LBP_JT. Redistribute values.
34442         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34443         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34444         Update.
34445         * lib/unilbrk/lbrkprop1.h: Regenerated.
34446         * lib/unilbrk/lbrkprop2.h: Regenerated.
34447         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34448         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
34449         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
34450         Likewise.
34451         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
34452         Likewise.
34453         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
34454         result.
34455         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
34456         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
34457         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
34458         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
34459         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34460         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34461
34462 2008-05-11  Bruno Haible  <bruno@clisp.org>
34463
34464         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34465
34466 2008-05-11  Bruno Haible  <bruno@clisp.org>
34467
34468         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34469         * modules/unilbrk/gen-lbrk: New file.
34470
34471 2008-05-11  Bruno Haible  <bruno@clisp.org>
34472
34473         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34474         * m4/sha512.m4 (gl_SHA512): Likewise.
34475
34476 2008-05-11  Jim Meyering  <meyering@redhat.com>
34477
34478         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34479         * modules/crypto/sha256: New file.
34480         * modules/crypto/sha512: Likewise.
34481         * lib/sha256.c: Likewise.
34482         * lib/sha256.h: Likewise.
34483         * lib/sha512.c: Likewise.
34484         * lib/sha512.h: Likewise.
34485         * lib/u64.h: Likewise.
34486         * m4/sha256.m4: Likewise.
34487         * m4/sha512.m4: Likewise.
34488         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34489
34490 2008-05-10  Bruno Haible  <bruno@clisp.org>
34491
34492         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34493         (Input/Output <stdio.h>): Add xprintf.
34494         (Signal handling <signal.h>): Add strsignal.
34495         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34496         (Core language properties): Add func.
34497         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34498         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34499         strings.
34500         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34501         (Input/output): New section.
34502         (File system functions): Add openat-die, stat-macros.
34503         (Networking functions): Add sockets.
34504         (Unicode string functions): Add unictype/*.
34505         (Support for building libraries and executables): Add gperf.
34506         (Support for building documentation): Add agpl-3.0.
34507         (Misc): Add nocrash.
34508
34509 2008-05-10  Bruno Haible  <bruno@clisp.org>
34510
34511         * modules/unictype/gen-ctype: New file.
34512
34513 2008-05-10  Jim Meyering  <meyering@redhat.com>
34514
34515         Make chdir-safer.c more efficient on a system with no symlinks.
34516         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34517         also if ELOOP is zero.  Suggested by Bruno Haible.
34518
34519         Make chdir-safer.c slightly safer.
34520         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34521         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34522
34523         Avoid compile failure on systems without ELOOP (like mingw).
34524         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34525         Reported by Bruno Haible.
34526
34527 2008-05-10  Bruno Haible  <bruno@clisp.org>
34528
34529         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34530         (is_utf8_encoding): Use a case-insensitive comparison.
34531         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34532         streq.
34533
34534 2008-05-10  Bruno Haible  <bruno@clisp.org>
34535
34536         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34537         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34538         * lib/unilbrk/ulc-common.h (iconv_string_length,
34539         iconv_string_keeping_offsets): Remove declarations.
34540         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34541         Don't include <iconv.h>, streq.h, xsize.h.
34542         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34543         conversion.
34544         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34545         <iconv.h>, streq.h, xsize.h.
34546         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34547         conversion.
34548         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34549         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34550         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34551         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34552
34553 2008-05-10  Bruno Haible  <bruno@clisp.org>
34554
34555         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34556         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34557
34558         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34559         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34560
34561         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34562         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34563
34564         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34565         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34566
34567         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34568         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34569
34570         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34571         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34572
34573         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34574         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34575
34576         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34577         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34578
34579 2008-05-10  Bruno Haible  <bruno@clisp.org>
34580
34581         Split up 'linebreak' module.
34582         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34583         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34584         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34585         modifications.
34586         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34587         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34588         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34589         lib/linebreak.c.
34590         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34591         lib/linebreak.c.
34592         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34593         lib/linebreak.c.
34594         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34595         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34596         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34597         lib/linebreak.c.
34598         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34599         lib/linebreak.c.
34600         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34601         lib/linebreak.c.
34602         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34603         lib/linebreak.c.
34604         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34605         lib/linebreak.c.
34606         * modules/unilbrk/base: New file.
34607         * modules/unilbrk/tables: New file.
34608         * modules/unilbrk/u8-possible-linebreaks: New file.
34609         * modules/unilbrk/u16-possible-linebreaks: New file.
34610         * modules/unilbrk/u32-possible-linebreaks: New file.
34611         * modules/unilbrk/ulc-common: New file.
34612         * modules/unilbrk/ulc-possible-linebreaks: New file.
34613         * modules/unilbrk/u8-width-linebreaks: New file.
34614         * modules/unilbrk/u16-width-linebreaks: New file.
34615         * modules/unilbrk/u32-width-linebreaks: New file.
34616         * modules/unilbrk/ulc-width-linebreaks: New file.
34617         * lib/linebreak.h: Remove file.
34618         * lib/linebreak.c: Remove file.
34619         * m4/linebreak.m4: Remove file.
34620         * modules/linebreak: Remove file.
34621         * NEWS: Mention the changes.
34622
34623 2008-05-09  Eric Blake  <ebb9@byu.net>
34624
34625         Add xmemdup0.
34626         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34627         implementation.
34628         * lib/xmalloc.c (xmemdup0): New C implementation.
34629
34630 2008-05-08  Bruno Haible  <bruno@clisp.org>
34631
34632         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34633
34634 2008-05-07  Eric Blake  <ebb9@byu.net>
34635
34636         Support cross-compilation of <wctype.h>.
34637         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34638         AC_CACHE_CHECK.
34639
34640 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34641
34642         * build-aux/vc-list-files: Add support for bzr.
34643
34644 2008-05-03  Jim Meyering  <meyering@redhat.com>
34645
34646         avoid failed assertion with tight malloc
34647         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34648
34649 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34650
34651         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34652         are needed from arpa/inet.h.
34653         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34654         Reported by Bruno Haible.
34655
34656 2008-05-02  Jim Meyering  <meyering@redhat.com>
34657
34658         avoid compilation error on FreeBSD 6
34659         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34660
34661 2008-05-01  Jim Meyering  <meyering@redhat.com>
34662
34663         useless-if-before-free: correct --help's exit status description
34664         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34665         for one or more matches, etc.  Reported by Bruno Haible.
34666
34667         vc-list-files: make the stand-alone gnulib test work
34668         * modules/vc-list-files-tests (configure.ac):
34669         Define and AC_SUBST abs_aux_dir.
34670         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34671         $(abs_top_srcdir) to each script and having each of them
34672         duplicate the work of setting PATH, set PATH here, using
34673         the new variable, abs_aux_dir instead.
34674         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34675         * tests/test-vc-list-files-git.sh: Likewise.
34676         Reported by Bruno Haible.
34677
34678 2008-05-01  Bruno Haible  <bruno@clisp.org>
34679
34680         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34681         reallocation. Rename 'done' to 'found_delimiter'.
34682
34683 2008-05-01  Jim Meyering  <meyering@redhat.com>
34684
34685         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34686         * build-aux/vc-list-files: Use `...`, not $(...).
34687
34688 2008-04-30  Jim Meyering  <meyering@redhat.com>
34689
34690         add tests for vc-list-files
34691         * modules/vc-list-files-tests: New module.
34692         * tests/test-vc-list-files-cvs.sh: New file.
34693         * tests/test-vc-list-files-git.sh: New file.
34694
34695         avoid a warning from gcc
34696         * lib/getndelim2.c (IF_LINT): Define.
34697         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34698
34699         vc-list-files: work properly with build-aux/cvsu, too
34700         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34701         to all cvs-based clauses.
34702
34703         vc-list-files: work properly in the CVS+awk case, too
34704         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34705
34706         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34707         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34708         take more than one file argument, so .  Add quotes, just in case $dir
34709         ever contains a shell meta-character.  Prompted by Soren Hansen in
34710         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34711
34712 2008-04-29  Eric Blake  <ebb9@byu.net>
34713
34714         Optimize getndelim2 to use block operations when possible.
34715         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34716         freadseek, and memchr2.
34717         * lib/getndelim2.c (getndelim2): Use them for block reads.
34718
34719 2008-04-29  Bruno Haible  <bruno@clisp.org>
34720
34721         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34722         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34723         * modules/inet_ntop (Depends-on): Add extensions.
34724         * modules/inet_pton (Depends-on): Likewise.
34725         Reported by Simon Josefsson.
34726
34727 2008-04-29  Jim Meyering  <meyering@redhat.com>
34728
34729         When the is more than one match in a block, match all of them.
34730         * build-aux/useless-if-before-free: Iterate through each block
34731         until there are no more matches.
34732
34733         Fix broken useless-if-before-free script.
34734         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34735         the expression to match cast of argument to free-like function.
34736
34737 2008-04-29  Eric Blake  <ebb9@byu.net>
34738
34739         Use new header.
34740         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34741
34742 2008-04-29  Jim Meyering  <meyering@redhat.com>
34743
34744         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34745         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34746         by gnulib to exist and to declare e.g., inet_ntop.
34747         Don't include "inet_ntop.h", now removed.
34748
34749         * m4/arpa_inet_h.m4: Remove trailing blanks.
34750
34751 2008-04-29  Eric Blake  <ebb9@byu.net>
34752
34753         Silence valgrind on safe reads beyond potential array bounds.
34754         * lib/rawmemchr.valgrind: New file.
34755         * lib/strchrnul.valgrind: Likewise.
34756         * modules/rawmemchr (Files): Distribute new file.
34757         * modules/strchrnul (Files): Likewise.
34758         Suggested by Bruno Haible.
34759
34760 2008-04-29  Bruno Haible  <bruno@clisp.org>
34761
34762         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34763         (inet_ntop, inet_pton): Change portability warning's wording.
34764         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34765         Invoke gl_CHECK_NEXT_HEADERS.
34766         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34767         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34768         set ARPA_INET_H.
34769         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34770         * modules/arpa_inet (Description): No longer only for systems that
34771         lack it.
34772         (Depends-on): Add include_next.
34773         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34774         HAVE_ARPA_INET_H.
34775
34776 2008-04-29  Jim Meyering  <meyering@redhat.com>
34777
34778         * modules/mkdir (License): Re-license as LGPLv2+.
34779
34780 2008-04-29  Bruno Haible  <bruno@clisp.org>
34781
34782         * modules/rawmemchr (Maintainer): Set to Eric.
34783         * modules/strchrnul (Maintainer): Likewise.
34784
34785 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34786
34787         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34788         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34789
34790         * modules/arpa_inet (arpa/inet.h): Use them.
34791
34792 2008-04-28  Eric Blake  <ebb9@byu.net>
34793
34794         Test getndelim2.
34795         * modules/getndelim2-tests: New file.
34796         * tests/test-getndelim2.c: Likewise.
34797         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34798         stream.
34799         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34800
34801         * MODULES.html.sh: Document new module.
34802
34803 2008-04-20  Bruno Haible  <bruno@clisp.org>
34804
34805         * lib/c-stack.c (die): Use raise.
34806         * modules/c-stack (Depends-on): Add raise.
34807
34808 2008-04-28  Bruno Haible  <bruno@clisp.org>
34809
34810         Expect rpmatch to be declared.
34811         * lib/yesno.c (rpmatch): Remove declaration.
34812
34813         Declare rpmatch.
34814         * lib/stdlib.in.h (rpmatch): New declaration.
34815         * lib/rpmatch.c: Include <stdlib.h> first.
34816         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34817         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34819         HAVE_RPMATCH.
34820         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34822         (Include): Set to <stdlib.h>.
34823         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34824         HAVE_RPMATCH.
34825         * NEWS: Document the change.
34826
34827 2008-04-28  Bruno Haible  <bruno@clisp.org>
34828
34829         Change rpmatch to use nl_langinfo when appropriate.
34830         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34831         (N_): New macro.
34832         (localized_pattern): New function/macro.
34833         (try): Remove match, nomatch arguments. Copy the pattern into safe
34834         memory before caching it.
34835         (rpmatch): Use localized_pattern. Add translator comments.
34836         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34837         Suggested by Eric Blake.
34838         * modules/rpmatch (Depends-on): Add stdbool.
34839
34840 2008-04-28  Eric Blake  <ebb9@byu.net>
34841
34842         Add rawmemchr module, matching glibc.
34843         * modules/string (Makefile.am): New indicator.
34844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34845         * lib/string.in.h (rawmemchr): Declare when appropriate.
34846         * modules/rawmemchr: New file.
34847         * m4/rawmemchr.m4: Likewise.
34848         * lib/rawmemchr.c: Likewise.
34849         * modules/rawmemchr-tests: Likewise.
34850         * tests/test-rawmemchr.c: Likewise.
34851         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34852         module.
34853         * modules/strchrnul (Depends-on): Add rawmemchr.
34854         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34855
34856         Whitespace cleanup.
34857         * tests/test-strchrnul.c: Reindent.
34858         * lib/strchrnul.c: Likewise.
34859
34860         Optimize and test strchrnul.
34861         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34862         * modules/strchrnul-tests: New file.
34863         * tests/test-strchrnul.c: Likewise.
34864
34865         Remove intprops dependency.
34866         * modules/memchr (Depends-on): Remove intprops.
34867         * modules/memrchr (Depends-on): Likewise.
34868         * modules/memchr2 (Depends-on): Likewise.
34869         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34870         * lib/memrchr.c (__memrchr): Likewise.
34871         * lib/memrchr2.c (memchr2): Likewise.
34872         Reported by Simon Josefsson.
34873
34874 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34875
34876         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34877         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34878
34879 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34880
34881         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34882
34883         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34884
34885         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34886
34887         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34888         declarations.
34889         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34890
34891         * m4/inet_pton.m4: Don't check for header files.
34892
34893         * m4/inet_ntop.m4: Don't check for header files.
34894
34895 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34896
34897         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34898         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34899         trigger for cygwin).
34900         Reported by Bruno Haible  <bruno@clisp.org>.
34901
34902 2008-04-28  Bruno Haible  <bruno@clisp.org>
34903
34904         * doc/posix-functions/strdup.texi: Mention mingw problem.
34905
34906 2008-04-27  Bruno Haible  <bruno@clisp.org>
34907
34908         * modules/stat-time-tests (Depends-on): Add sleep.
34909         * tests/test-stat-time.c (force_unlink): New function.
34910         (cleanup): Use it.
34911         (test_mtime): Remove the ctime related tests.
34912         (test_ctime): New function, containing the ctime related tests.
34913         (main): Call test_ctime, except on native Windows platforms.
34914
34915 2008-04-27  Bruno Haible  <bruno@clisp.org>
34916
34917         * lib/rpmatch.c (rpmatch): Add some comments.
34918         Reported by James Youngman <jay@gnu.org>.
34919
34920 2008-04-27  Bruno Haible  <bruno@clisp.org>
34921
34922         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34923         quiet NaNs.
34924
34925 2008-04-27  Bruno Haible  <bruno@clisp.org>
34926
34927         Make test-yesno.sh work on mingw.
34928         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34929         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34930         (main): Set stdin to binary mode.
34931         * modules/yesno-tests (Depends-on): Add binary-io.
34932
34933 2008-04-27  Bruno Haible  <bruno@clisp.org>
34934
34935         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34936         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34937         argument that lie outside the IEEE 854 domain.
34938         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34939         (gl_ISFINITE): Use it.
34940         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34941
34942 2008-04-27  Bruno Haible  <bruno@clisp.org>
34943
34944         Allow local renaming in config.h.
34945         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34946
34947 2008-04-27  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/memchr.c (__memchr): Change type of 'i'.
34950         * lib/memchr2.c (memchr2): Likewise.
34951
34952 2008-04-26  Eric Blake  <ebb9@byu.net>
34953         and Bruno Haible  <bruno@clisp.org>
34954
34955         Optimize and test memrchr.
34956         * modules/memrchr (Depends-on): Add intprops.
34957         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34958         * modules/memrchr-tests: New file.
34959         * tests/test-memrchr.c: New file.
34960
34961 2008-04-26  Bruno Haible  <bruno@clisp.org>
34962
34963         Add tentative support for DragonFly BSD.
34964         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34965         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34966         fp.
34967         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34968         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34969         * lib/fpurge.c (fpurge): Likewise.
34970         * lib/freadable.c (freaadable): Likewise.
34971         * lib/freadahead.c (freadahead): Likewise.
34972         * lib/freading.c (freading): Likewise.
34973         * lib/freadptr.c (freadptr): Likewise.
34974         * lib/freadseek.c (freadptrinc): Likewise.
34975         * lib/fseeko.c (fseeko): Likewise.
34976         * lib/fseterr.c (fseterr): Likewise.
34977         * lib/fwritable.c (fwritable): Likewise.
34978         * lib/fwriting.c (fwriting): Likewise.
34979
34980 2008-04-26  Bruno Haible  <bruno@clisp.org>
34981
34982         * lib/stdio-impl.h: New file.
34983         * lib/fbufmode.c: Include stdio-impl.h.
34984         (fbufmode): Use fp_, remove redundant #defines.
34985         * lib/fflush.c: Include stdio-impl.h.
34986         (clear_ungetc_buffer): Remove redundant #defines.
34987         * lib/fpurge.c: Include stdio-impl.h.
34988         (fpurge): Remove redundant #defines.
34989         * lib/freadable.c: Include stdio-impl.h.
34990         (freadable): Remove redundant #defines.
34991         * lib/freadahead.c: Include stdio-impl.h.
34992         (freadahead): Remove redundant #defines.
34993         * lib/freading.c: Include stdio-impl.h.
34994         (freading): Remove redundant #defines.
34995         * lib/freadptr.c: Include stdio-impl.h.
34996         (freadptr): Remove redundant #defines.
34997         * lib/freadseek.c: Include stdio-impl.h.
34998         (freadptrinc): Remove redundant #defines.
34999         * lib/fseeko.c: Include stdio-impl.h.
35000         (rpl_fseeko): Remove redundant #defines.
35001         * lib/fseterr.c: Include stdio-impl.h.
35002         (fseterr): Remove redundant #defines.
35003         * lib/fwritable.c: Include stdio-impl.h.
35004         (fwritable: Remove redundant #defines.
35005         * lib/fwriting.c: Include stdio-impl.h.
35006         (fwriting): Remove redundant #defines.
35007         * modules/fbufmode (Files): Add lib/stdio-impl.h.
35008         * modules/fflush (Files): Likewise.
35009         * modules/fpurge (Files): Likewise.
35010         * modules/freadable (Files): Likewise.
35011         * modules/freadahead (Files): Likewise.
35012         * modules/freading (Files): Likewise.
35013         * modules/freadptr (Files): Likewise.
35014         * modules/freadseek (Files): Likewise.
35015         * modules/fseeko (Files): Likewise.
35016         * modules/fseterr (Files): Likewise.
35017         * modules/fwritable (Files): Likewise.
35018         * modules/fwriting (Files): Likewise.
35019
35020 2008-04-26  Bruno Haible  <bruno@clisp.org>
35021
35022         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35023         restore_seek_optimization, update_fpos_cache): New functions, extracted
35024         from rpl_fflush.
35025         (rpl_fflush): Use them.
35026         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
35027         (gl_REPLACE_FFLUSH): Use it.
35028
35029 2008-04-26  Bruno Haible  <bruno@clisp.org>
35030
35031         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
35032         on Solaris.
35033         * tests/test-xstrtoimax.sh: Likewise.
35034         * tests/test-xstrtoumax.sh: Likewise.
35035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35036
35037 2008-04-26  Bruno Haible  <bruno@clisp.org>
35038
35039         * modules/memchr-tests: New file.
35040         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
35041
35042 2008-04-26  Eric Blake  <ebb9@byu.net>
35043             Bruno Haible  <bruno@clisp.org>
35044
35045         * lib/memchr.c: Include intprops.h.
35046         (__memchr): Optimize parallel detection of matching bytes. Rename local
35047         variables. Add explanatory comments.
35048
35049 2008-04-26  Bruno Haible  <bruno@clisp.org>
35050
35051         Fix module 'memchr', broken since 2000-10-28.
35052         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
35053
35054 2008-04-26  Bruno Haible  <bruno@clisp.org>
35055
35056         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
35057         comments.
35058
35059 2008-04-25  Eric Blake  <ebb9@byu.net>
35060
35061         Use native fstatat on cygwin 1.7.0.
35062         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
35063         first.
35064
35065 2008-04-23  Eric Blake  <ebb9@byu.net>
35066
35067         Improve memchr2 performance.
35068         * lib/memchr2.c (memchr2): Further optimize parallel detection of
35069         NUL bytes.
35070         * modules/memchr2 (Depends-on): Use intprops.h.
35071
35072 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35073
35074         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
35075         an inline function instead of a CPP macro.  Patch by Ben Pfaff
35076         <blp@cs.stanford.edu>.
35077
35078 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35079
35080         * lib/arpa_inet.in.h: New file.
35081
35082         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
35083         (Makefile.am): Sed in substitute header file.
35084
35085         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
35086         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
35087
35088         * modules/inet_ntop (configure.ac): Use
35089         gl_ARPA_INET_MODULE_INDICATOR.
35090
35091         * modules/inet_pton (configure.ac): Use
35092         gl_ARPA_INET_MODULE_INDICATOR.
35093
35094 2008-04-22  Jim Meyering  <meyering@redhat.com>
35095
35096         * modules/verify (License): Re-license as LGPLv2+.
35097
35098 2008-04-22  Simon Josefsson  <simon@josefsson.org>
35099
35100         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
35101         parameter to void* as per POSIX standard (MinGW uses char*).
35102
35103 2008-04-21  Bruno Haible  <bruno@clisp.org>
35104
35105         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35106         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35107         Define to replacements if REPLACE_ISWCNTRL is 1.
35108         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
35109         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
35110         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
35111         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
35112         what it fixes.
35113         * doc/posix-functions/iswalpha.texi: Likewise.
35114         * doc/posix-functions/iswblank.texi: Likewise.
35115         * doc/posix-functions/iswcntrl.texi: Likewise.
35116         * doc/posix-functions/iswdigit.texi: Likewise.
35117         * doc/posix-functions/iswgraph.texi: Likewise.
35118         * doc/posix-functions/iswlower.texi: Likewise.
35119         * doc/posix-functions/iswprint.texi: Likewise.
35120         * doc/posix-functions/iswpunct.texi: Likewise.
35121         * doc/posix-functions/iswspace.texi: Likewise.
35122         * doc/posix-functions/iswupper.texi: Likewise.
35123         * doc/posix-functions/iswxdigit.texi: Likewise.
35124         Reported by Alain Guibert.
35125
35126 2008-04-21  Bruno Haible  <bruno@clisp.org>
35127
35128         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
35129         Patch by Alain Guibert.
35130
35131 2008-04-21  Bruno Haible  <bruno@clisp.org>
35132
35133         Fix test failures on mingw.
35134         * tests/test-xstrtol.c (print_no_progname): New function.
35135         (main): Install it in error_print_progname hook.
35136         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
35137         * tests/test-xstrtoimax.sh: Likewise.
35138         * tests/test-xstrtoumax.sh: Likewise.
35139
35140 2008-04-21  Bruno Haible  <bruno@clisp.org>
35141
35142         Fix test failure on mingw.
35143         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
35144
35145 2008-04-21  Bruno Haible  <bruno@clisp.org>
35146
35147         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
35148         Actually assign a value.
35149
35150 2008-04-20  Bruno Haible  <bruno@clisp.org>
35151
35152         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
35153         take 2.
35154         * lib/canonicalize.c (canonicalize_file_name): Elide if the
35155         'canonicalize-lgpl' module is also used.
35156         * lib/canonicalize-lgpl.c: Undo last change.
35157         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
35158
35159 2008-04-20  Bruno Haible  <bruno@clisp.org>
35160
35161         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
35162         config.h. Provide _mkdir based fallback for mingw.
35163         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
35164         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
35165         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
35166         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
35167         rather than defining mkdir in config.h.
35168         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
35169         (gl_SYS_STAT_H_DEFAULTS): New macro.
35170         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
35171         HAVE_IO_H any more.
35172         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
35173         HAVE_DECL_MKDIR and HAVE_IO_H.
35174
35175 2008-04-20  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/isapipe.c: Port to native Windows platforms.
35178
35179 2008-04-20  Bruno Haible  <bruno@clisp.org>
35180
35181         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
35182
35183 2008-04-21  Eric Blake  <ebb9@byu.net>
35184
35185         Work around preprocessors that don't handle UINTMAX_MAX.
35186         * lib/memchr2.c (memchr2): Avoid embedded #if.
35187         Reported by Alain Guibert, fix suggested by Bruno Haible.
35188
35189 2008-04-21  Simon Josefsson  <simon@josefsson.org>
35190
35191         * doc/posix-functions/strftime.texi (strftime): Explain better
35192         Windows incompatibility.  Suggested by Micah Cowan
35193         <micah@cowan.name>.
35194
35195 2008-04-20  Bruno Haible  <bruno@clisp.org>
35196
35197         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
35198         unistr/u8-mblen.
35199
35200 2008-04-20  Bruno Haible  <bruno@clisp.org>
35201
35202         Fix test failure on platforms with non-GNU iconv.
35203         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
35204         (U_TO_U8): Use it, rather than u16_to_u8.
35205         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
35206         units at the end of the input string.
35207         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
35208
35209 2008-04-20  Bruno Haible  <bruno@clisp.org>
35210
35211         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
35212         when the resulting length is 0.
35213         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
35214
35215 2008-04-20  Bruno Haible  <bruno@clisp.org>
35216
35217         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
35218         works.
35219         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
35220
35221 2008-04-20  Bruno Haible  <bruno@clisp.org>
35222
35223         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
35224         * modules/tsearch-tests (configure.ac): Test for initstate function.
35225
35226 2008-04-20  Bruno Haible  <bruno@clisp.org>
35227
35228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
35229         for nlink_t if missing.
35230         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
35231
35232 2008-04-19  Bruno Haible  <bruno@clisp.org>
35233
35234         Work around snprintf bug on Linux libc5.
35235         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
35236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35237         gl_SNPRINTF_SIZE1.
35238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35239         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
35240         that test failed.
35241         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35242         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
35243         * modules/snprintf (Files): Add m4/printf.m4.
35244         * modules/vsnprintf (Files): Likewise.
35245         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
35246         * doc/posix-functions/vsnprintf.texi: Likewise.
35247
35248 2008-04-19  Bruno Haible  <bruno@clisp.org>
35249
35250         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
35251         from 0.0058 to less than 10^-7.
35252
35253 2008-04-19  Bruno Haible  <bruno@clisp.org>
35254
35255         Fix rounding when a precision is given.
35256         * lib/vasnprintf.c (is_borderline): New function.
35257         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
35258         9...9x.
35259         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
35260         %e, %g.
35261         * tests/test-vasprintf-posix.c (test_function): Likewise.
35262         * tests/test-snprintf-posix.h (test_function): Likewise.
35263         * tests/test-sprintf-posix.h (test_function): Likewise.
35264         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
35265         * tests/test-printf-posix.h (test_function): Likewise.
35266         * tests/test-printf-posix.output: Update.
35267         Reported by John Darrington <john@darrington.wattle.id.au> via
35268         Ben Pfaff <blp@cs.stanford.edu>.
35269
35270 2008-04-18  Simon Josefsson  <simon@josefsson.org>
35271
35272         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
35273         Suggested by Bruno Haible <bruno@clisp.org>.
35274
35275 2008-04-17  Bruno Haible  <bruno@clisp.org>
35276
35277         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
35278         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
35279         implementation.
35280         Patch by Bruce Merry <bmerry@gmail.com>.
35281
35282 2008-04-17  Simon Josefsson  <simon@josefsson.org>
35283
35284         * doc/posix-functions/strftime.texi (strftime): Mention that %e
35285         doesn't work under Windows.
35286
35287 2008-04-16  Bruno Haible  <bruno@clisp.org>
35288
35289         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
35290         New macros.
35291         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
35292         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
35293         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
35294         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
35295         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
35296         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
35297         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
35298         macros.
35299         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
35300         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
35301         Northern Sotho, Uighur.
35302
35303 2008-04-16  Bruno Haible  <bruno@clisp.org>
35304
35305         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
35306         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
35307         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
35308         Reported by Daniel Bergström <daniel@octocode.com>.
35309
35310 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
35311             Bruno Haible  <bruno@clisp.org>
35312
35313         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
35314         function.
35315         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
35316         New functions, mostly extracted from gl_locale_name_default.
35317         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
35318
35319 2008-04-16  Eric Blake  <ebb9@byu.net>
35320
35321         Adjust strtod detection to catch glibc 2.7 bug.
35322         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
35323         Reported by John Gatewood Ham.
35324
35325 2008-04-16  Bruno Haible  <bruno@clisp.org>
35326
35327         Add tentative support for Linux libc5.
35328         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
35329         * lib/fpurge.c (fpurge): Likewise.
35330         * lib/freadable.c (freadable): Likewise.
35331         * lib/freadahead.c (freadahead): Likewise.
35332         * lib/freading.c (freading): Likewise.
35333         * lib/freadptr.c (freadptr): Likewise.
35334         * lib/freadseek.c (freadptrinc): Likewise.
35335         * lib/fseeko.c (rpl_fseeko): Likewise.
35336         * lib/fseterr.c (fseterr): Likewise.
35337         * lib/fwritable.c (fwritable): Likewise.
35338         * lib/fwriting.c (fwriting): Likewise.
35339         Reported by Alain Guibert <alguibert+bts@free.fr>.
35340
35341 2008-04-15  Bruno Haible  <bruno@clisp.org>
35342
35343         * modules/mathl (configure.ac): Define module indicator.
35344
35345 2008-04-15  Bruno Haible  <bruno@clisp.org>
35346
35347         * lib/logl.c (logl): Remove unused variables.
35348
35349 2008-04-15  Bruno Haible  <bruno@clisp.org>
35350
35351         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
35352         fails.
35353
35354 2008-04-15  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/trim.c (trim2): Fix argument of isspace() macro.
35357
35358 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
35359
35360         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
35361         to 0.
35362         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
35363
35364 2008-04-14  Bruno Haible  <bruno@clisp.org>
35365
35366         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
35367         AC_LANG_PROGRAM argument.
35368         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
35369         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
35370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35371         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35372         * m4/math_h.m4 (gl_MATH_H): Likewise.
35373         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
35374         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35375         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
35376         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
35377         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35378         * m4/regex.m4 (gl_REGEX): Likewise.
35379         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
35380         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
35381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35382         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
35383         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35384         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35385         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35386         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35387
35388 2008-04-14  Jim Meyering  <meyering@redhat.com>
35389
35390         test-strtod: fix typos: s/abs/fabs/
35391         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
35392
35393 2008-04-13  Bruno Haible  <bruno@clisp.org>
35394
35395         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
35396         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
35397         module is also used and while not building the reloc-wrapper.
35398
35399 2008-04-13  Bruno Haible  <bruno@clisp.org>
35400
35401         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
35402
35403 2008-04-13  Bruno Haible  <bruno@clisp.org>
35404
35405         Fix AIX compilation failure introduced on 2008-04-02.
35406         * tests/test-frexp.c (exp): Undefine before redefining.
35407         * tests/test-frexpl.c (exp): Likewise.
35408
35409 2008-04-13  Bruno Haible  <bruno@clisp.org>
35410
35411         Work around a HP-UX stdio bug.
35412         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35413         * tests/test-ftello.c (main): Likewise.
35414         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35415         * doc/posix-functions/ftello.texi: Likewise.
35416
35417 2008-04-13  Bruno Haible  <bruno@clisp.org>
35418
35419         Make test-signbit pass on HP-UX/hppa.
35420         * tests/test-signbit.c (minus_zerol): New variable.
35421         (test_signbitl): Use it.
35422
35423 2008-04-13  Bruno Haible  <bruno@clisp.org>
35424
35425         Make truncl work on OSF/1 4.0.
35426         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35427         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35428         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35430         HAVE_DECL_TRUNCL.
35431         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35432         HAVE_DECL_TRUNCL.
35433         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35434
35435 2008-04-13  Bruno Haible  <bruno@clisp.org>
35436
35437         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35438
35439 2008-04-13  Bruno Haible  <bruno@clisp.org>
35440
35441         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35442         expression, so as to avoid HP-UX 11 cc compiler bug.
35443
35444 2008-04-13  Bruno Haible  <bruno@clisp.org>
35445
35446         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35447
35448 2008-04-13  Bruno Haible  <bruno@clisp.org>
35449
35450         * lib/git-merge-changelog.c: Remove empty declaration outside of
35451         functions.
35452
35453 2008-04-13  Bruno Haible  <bruno@clisp.org>
35454
35455         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
35456
35457 2008-04-13  Bruno Haible  <bruno@clisp.org>
35458
35459         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35460         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35462         also if it exists but lacks definitions of the SHUT_* macros.
35463         * modules/sys_socket (Description): Update.
35464         Reported by Elbert Pol <e.pol@chello.nl>.
35465
35466 2008-04-13  Bruno Haible  <bruno@clisp.org>
35467
35468         * lib/localcharset.c (OS2): Don't redefine if already defined.
35469         Reported by Elbert Pol <e.pol@chello.nl>.
35470
35471 2008-04-13  Bruno Haible  <bruno@clisp.org>
35472
35473         * lib/binary-io.h [__EMX__]: Include <io.h>.
35474         Reported by Elbert Pol <e.pol@chello.nl>.
35475
35476 2008-04-12  Bruno Haible  <bruno@clisp.org>
35477
35478         * lib/fpucw.h: Enable the definitions also for x86_64.
35479         Needed for NetBSD/x86_64.
35480         Reported by Thomas Klausner <tk@giga.or.at>.
35481
35482 2008-04-12  Bruno Haible  <bruno@clisp.org>
35483
35484         * tests/test-strtod.c: Include isnand.h.
35485         (main): Use isnand instead of isnan.
35486         Reported by Jim Meyering.
35487
35488 2008-04-12  Bruno Haible  <bruno@clisp.org>
35489
35490         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35491         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35492
35493 2008-04-12  Jim Meyering  <meyering@redhat.com>
35494
35495         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35496
35497 2008-04-12  Bruno Haible  <bruno@clisp.org>
35498
35499         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35500         Reported by Elbert Pol <e.pol@chello.nl>.
35501
35502 2008-04-12  Eric Blake  <ebb9@byu.net>
35503
35504         Work around Solaris 10 math.h bug.
35505         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35506         (gl_MATH_H_DEFAULTS): Set up default.
35507         * modules/math (Makefile.am): Replace new indicators.
35508         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35509         * tests/test-math.c (main): Test this.
35510         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35511         * doc/posix-headers/math.texi (math.h): Mention bug.
35512         Reported by Nelson H. F. Beebe and Jim Meyering.
35513
35514 2008-04-11  Bruno Haible  <bruno@clisp.org>
35515
35516         Adapt to future versions of Apple GCC.
35517         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35518         Reported by Peter O'Gorman <peter@pogma.com>.
35519
35520 2008-04-11  Bruno Haible  <bruno@clisp.org>
35521
35522         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35523
35524 2008-04-11  Bruno Haible  <bruno@clisp.org>
35525
35526         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35527
35528         * modules/getaddrinfo-tests (Makefile.am): Define
35529         test_getaddrinfo_LDADD.
35530
35531 2008-04-11  Bruno Haible  <bruno@clisp.org>
35532
35533         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35534         (init): Fix syntax error.
35535         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35536         is declared.
35537
35538 2008-04-11  Bruno Haible  <bruno@clisp.org>
35539
35540         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35541         * modules/glob (Depends-on): Add stdbool.
35542
35543 2008-04-11  Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/trim.c: Include <string.h>.
35546
35547 2008-04-11  Eric Blake  <ebb9@byu.net>
35548
35549         Avoid compile failure on OS/2.
35550         * lib/regex_internal.h (internal_function): Disable optimization
35551         on OS/2 (__EMX__), where it caused compiler error.
35552         Reported by Elbert Pol.
35553
35554 2008-04-11  Bruno Haible  <bruno@clisp.org>
35555
35556         Flush the standard error stream before aborting. Needed on mingw.
35557         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35558         * tests/test-array_list.c (ASSERT): Likewise.
35559         * tests/test-array_oset.c (ASSERT): Likewise.
35560         * tests/test-avltree_list.c (ASSERT): Likewise.
35561         * tests/test-avltree_oset.c (ASSERT): Likewise.
35562         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35563         * tests/test-binary-io.c (ASSERT): Likewise.
35564         * tests/test-byteswap.c (ASSERT): Likewise.
35565         * tests/test-c-ctype.c (ASSERT): Likewise.
35566         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35567         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35568         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35569         * tests/test-c-strstr.c (ASSERT): Likewise.
35570         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35571         * tests/test-canonicalize.c (ASSERT): Likewise.
35572         * tests/test-carray_list.c (ASSERT): Likewise.
35573         * tests/test-ceilf1.c (ASSERT): Likewise.
35574         * tests/test-ceilf2.c (ASSERT): Likewise.
35575         * tests/test-ceill.c (ASSERT): Likewise.
35576         * tests/test-count-one-bits.c (ASSERT): Likewise.
35577         * tests/test-fbufmode.c (ASSERT): Likewise.
35578         * tests/test-fflush2.c (ASSERT): Likewise.
35579         * tests/test-floorf1.c (ASSERT): Likewise.
35580         * tests/test-floorf2.c (ASSERT): Likewise.
35581         * tests/test-floorl.c (ASSERT): Likewise.
35582         * tests/test-fopen.c (ASSERT): Likewise.
35583         * tests/test-fpending.c (ASSERT): Likewise.
35584         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35585         * tests/test-fpurge.c (ASSERT): Likewise.
35586         * tests/test-freadable.c (ASSERT): Likewise.
35587         * tests/test-freadahead.c (ASSERT): Likewise.
35588         * tests/test-freading.c (ASSERT): Likewise.
35589         * tests/test-freadptr.c (ASSERT): Likewise.
35590         * tests/test-freadptr2.c (ASSERT): Likewise.
35591         * tests/test-freadseek.c (ASSERT): Likewise.
35592         * tests/test-freopen.c (ASSERT): Likewise.
35593         * tests/test-frexp.c (ASSERT): Likewise.
35594         * tests/test-frexpl.c (ASSERT): Likewise.
35595         * tests/test-fseek.c (ASSERT): Likewise.
35596         * tests/test-fseeko.c (ASSERT): Likewise.
35597         * tests/test-fstrcmp.c (ASSERT): Likewise.
35598         * tests/test-ftell.c (ASSERT): Likewise.
35599         * tests/test-ftello.c (ASSERT): Likewise.
35600         * tests/test-func.c (ASSERT): Likewise.
35601         * tests/test-fwritable.c (ASSERT): Likewise.
35602         * tests/test-fwriting.c (ASSERT): Likewise.
35603         * tests/test-getdelim.c (ASSERT): Likewise.
35604         * tests/test-getline.c (ASSERT): Likewise.
35605         * tests/test-i-ring.c (ASSERT): Likewise.
35606         * tests/test-iconv-utf.c (ASSERT): Likewise.
35607         * tests/test-iconv.c (ASSERT): Likewise.
35608         * tests/test-isfinite.c (ASSERT): Likewise.
35609         * tests/test-isnand.c (ASSERT): Likewise.
35610         * tests/test-isnanf.c (ASSERT): Likewise.
35611         * tests/test-isnanl.h (ASSERT): Likewise.
35612         * tests/test-ldexpl.c (ASSERT): Likewise.
35613         * tests/test-linked_list.c (ASSERT): Likewise.
35614         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35615         * tests/test-localename.c (ASSERT): Likewise.
35616         * tests/test-lseek.c (ASSERT): Likewise.
35617         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35618         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35619         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35620         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35621         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35622         * tests/test-mbschr.c (ASSERT): Likewise.
35623         * tests/test-mbscspn.c (ASSERT): Likewise.
35624         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35625         * tests/test-mbspbrk.c (ASSERT): Likewise.
35626         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35627         * tests/test-mbsrchr.c (ASSERT): Likewise.
35628         * tests/test-mbsspn.c (ASSERT): Likewise.
35629         * tests/test-mbsstr1.c (ASSERT): Likewise.
35630         * tests/test-mbsstr2.c (ASSERT): Likewise.
35631         * tests/test-mbsstr3.c (ASSERT): Likewise.
35632         * tests/test-memchr2.c (ASSERT): Likewise.
35633         * tests/test-memmem.c (ASSERT): Likewise.
35634         * tests/test-open.c (ASSERT): Likewise.
35635         * tests/test-printf-frexp.c (ASSERT): Likewise.
35636         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35637         * tests/test-printf-posix.c (ASSERT): Likewise.
35638         * tests/test-quotearg.c (ASSERT): Likewise.
35639         * tests/test-rbtree_list.c (ASSERT): Likewise.
35640         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35641         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35642         * tests/test-round1.c (ASSERT): Likewise.
35643         * tests/test-roundf1.c (ASSERT): Likewise.
35644         * tests/test-roundl.c (ASSERT): Likewise.
35645         * tests/test-signbit.c (ASSERT): Likewise.
35646         * tests/test-sleep.c (ASSERT): Likewise.
35647         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35648         * tests/test-snprintf.c (ASSERT): Likewise.
35649         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35650         * tests/test-stat-time.c (ASSERT): Likewise.
35651         * tests/test-strcasestr.c (ASSERT): Likewise.
35652         * tests/test-strerror.c (ASSERT): Likewise.
35653         * tests/test-striconv.c (ASSERT): Likewise.
35654         * tests/test-striconveh.c (ASSERT): Likewise.
35655         * tests/test-striconveha.c (ASSERT): Likewise.
35656         * tests/test-strsignal.c (ASSERT): Likewise.
35657         * tests/test-strstr.c (ASSERT): Likewise.
35658         * tests/test-strtod.c (ASSERT): Likewise.
35659         * tests/test-trunc1.c (ASSERT): Likewise.
35660         * tests/test-trunc2.c (ASSERT): Likewise.
35661         * tests/test-truncf1.c (ASSERT): Likewise.
35662         * tests/test-truncf2.c (ASSERT): Likewise.
35663         * tests/test-truncl.c (ASSERT): Likewise.
35664         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35665         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35666         * tests/test-vasnprintf.c (ASSERT): Likewise.
35667         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35668         * tests/test-vasprintf.c (ASSERT): Likewise.
35669         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35670         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35671         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35672         * tests/test-vsnprintf.c (ASSERT): Likewise.
35673         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35674         * tests/test-wcwidth.c (ASSERT): Likewise.
35675         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35676         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35677         * tests/test-xvasprintf.c (ASSERT): Likewise.
35678         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35679         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35680         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35681         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35682         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35683         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35684         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35685         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35686         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35687         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35688         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35689         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35690         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35691         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35692         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35693         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35694         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35695         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35696         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35697         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35698         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35699         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35700         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35701         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35702         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35703         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35704         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35705         * tests/unictype/test-combining.c (ASSERT): Likewise.
35706         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35707         * tests/unictype/test-digit.c (ASSERT): Likewise.
35708         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35709         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35710         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35711         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35712         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35713         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35714         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35715         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35716         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35717         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35718         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35719         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35720         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35721         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35722         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35723         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35724         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35725         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35726         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35727         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35728         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35729         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35730         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35731         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35732         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35733         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35734         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35735         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35736         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35737         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35738         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35739         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35740         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35741         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35742         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35743         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35744         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35745         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35746         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35747         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35748         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35749         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35750         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35751         Reported by Eric Blake.
35752
35753 2008-04-11  Bruno Haible  <bruno@clisp.org>
35754
35755         * lib/wchar.in.h: Tweak comment.
35756
35757 2008-04-11  Bruno Haible  <bruno@clisp.org>
35758
35759         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35760         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35761         gl_COMMON.
35762         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35763
35764 2008-04-11  Bruno Haible  <bruno@clisp.org>
35765
35766         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35767
35768 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35769
35770         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35771         of attempting to use non-existing /dev/*random.  Based on patch
35772         from Adam Strzelecki <ono@java.pl> in
35773         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35774
35775 2008-04-08  Bruno Haible  <bruno@clisp.org>
35776
35777         Add tentative support for emx+gcc.
35778         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35779         * lib/fpurge.c (fpurge): Likewise.
35780         * lib/freadable.c (freadable): Likewise.
35781         * lib/freadahead.c (freadahead): Likewise.
35782         * lib/freading.c (freading): Likewise.
35783         * lib/freadptr.c (freadptr): Likewise.
35784         * lib/freadseek.c (freadptrinc): Likewise.
35785         * lib/fseeko.c (rpl_fseeko): Likewise.
35786         * lib/fseterr.c (fseterr): Likewise.
35787         * lib/fwritable.c (fwritable): Likewise.
35788         * lib/fwriting.c (fwriting): Likewise.
35789         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35790
35791 2008-04-09  Eric Blake  <ebb9@byu.net>
35792
35793         Avoid some autoconf warnings.
35794         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35795         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35796         * m4/afs.m4 (gl_AFS): Likewise.
35797         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35798         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35800         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35801         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35802         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35803         (AC_CHECK_DECLS_ONCE): Likewise.
35804         Rename file...
35805         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35806         gnulib-tool requires autoconf 2.59 or better.
35807         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35808
35809 2008-04-08  Eric Blake  <ebb9@byu.net>
35810
35811         Use 'git describe --match' if present (added in git 1.5.5).
35812         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35813         if possible.
35814
35815 2008-04-08  Bruno Haible  <bruno@clisp.org>
35816
35817         Add tentative support for OpenServer.
35818         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35819         _ptr, _cnt.
35820         * lib/fpurge.c (fpurge): Likewise.
35821         * lib/freadable.c (freadable): Likewise.
35822         * lib/freadahead.c (freadahead): Likewise.
35823         * lib/freading.c (freading): Likewise.
35824         * lib/freadptr.c (freadptr): Likewise.
35825         * lib/freadseek.c (freadptrinc): Likewise.
35826         * lib/fseeko.c (rpl_fseeko): Likewise.
35827         * lib/fseterr.c (fseterr): Likewise.
35828         * lib/fwritable.c (fwritable): Likewise.
35829         * lib/fwriting.c (fwriting): Likewise.
35830         Reported by Roger Cornelius <rac@tenzing.org> and
35831         Brian K. White <brian@aljex.com>.
35832
35833 2008-04-06  Jim Meyering  <meyering@redhat.com>
35834
35835         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35836
35837 2008-04-06  Bruno Haible  <bruno@clisp.org>
35838
35839         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35840         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35841         * tests/test-printf-posix.sh: Likewise.
35842         * tests/test-vfprintf-posix.sh: Likewise.
35843         * tests/test-vprintf-posix.sh: Likewise.
35844         * tests/test-xprintf-posix.sh: Likewise.
35845
35846 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35847
35848         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35849         hide error from 'ls', needed on OS/2.
35850         Report by Elbert Pol <elbert.pol@gmail.com>.
35851
35852 2008-04-04  Eric Blake  <ebb9@byu.net>
35853
35854         Make test-fseeko.c failures meaningful.
35855         * tests/test-fseeko.c: Print line number on failure.
35856         * tests/test-fseek.c: Likewise.
35857         Reported by Nelson H. F. Beebe.
35858
35859         Improve strtod bug detection check.
35860         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35861         required for Solaris 10.
35862         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35863
35864 2008-04-04  Bruno Haible  <bruno@clisp.org>
35865
35866         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35867         by m4/setenv.m4.
35868
35869 2008-04-03  Eric Blake  <ebb9@byu.net>
35870
35871         Ensure sane .version contents.
35872         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35873         version string.
35874         * build-aux/git-version-gen: Improve documentation.
35875
35876         Make GNU make output nicer.
35877         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35878         MAKECMDGOALS to enforce message for all command line targets.  Set
35879         srcdir for use in maint.mk.
35880
35881         Another maintainer tweak.
35882         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35883         a target that regenerates version.
35884
35885 2008-04-03  Jim Meyering  <meyering@redhat.com>
35886
35887         vc-list-files: don't cause coreutils "make po-check" failure
35888         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35889
35890 2008-04-03  Eric Blake  <ebb9@byu.net>
35891
35892         Allow VPATH usage of vc-list-files.
35893         * build-aux/vc-list-files (scriptversion): Add timestamp.
35894         (options): Add --help, --version, -C.
35895         (CVS): Support installed cvsu.
35896
35897 2008-04-02  Bruno Haible  <bruno@clisp.org>
35898
35899         Avoid some "statement with no effect" warnings from gcc.
35900         * tests/test-wctype.c (main): Explicitly ignore unused values.
35901         Reported by Jim Meyering.
35902
35903 2008-04-02  Jim Meyering  <meyering@redhat.com>
35904
35905         Avoid some warnings from "gcc -Wshadow".
35906         * tests/test-frexp.c (exp): Define to a different identifier.
35907         * tests/test-frexpl.c (exp): Likewise.
35908
35909 2008-04-03  Jim Meyering  <meyering@redhat.com>
35910
35911         bootstrap: remove dangling *.[ch] symlinks from lib
35912         * build-aux/bootstrap [dangling symlink removal]: Move find's
35913         -depth option to precede all others, to avoid a warning.
35914         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35915
35916 2008-04-02  Bruno Haible  <bruno@clisp.org>
35917
35918         Avoid some warnings from "gcc -Wshadow".
35919         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35920         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35921         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35922         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35923         Reported by Jim Meyering.
35924
35925 2008-04-01  Bruno Haible  <bruno@clisp.org>
35926
35927         Fix test to work on IRIX 6.5 with cc.
35928         * tests/test-math.c (numeric_equal): New function.
35929         (main): Use it.
35930
35931 2008-04-01  Bruno Haible  <bruno@clisp.org>
35932
35933         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35934
35935 2008-04-01  Bruno Haible  <bruno@clisp.org>
35936
35937         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35938         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35939         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35940         (Depends-on): Remove math.
35941
35942         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35943         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35944         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35945         (Depends-on): Remove math.
35946
35947         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35948         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35949         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35950         (Depends-on): Remove math.
35951         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35952         (Depends-on): Remove math.
35953
35954         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35955         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35956         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35957         (Depends-on): Remove math.
35958         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35959         (Depends-on): Remove math.
35960
35961         * tests/test-round1.c: Include nan.h.
35962         (main): Use NaNd instead of NAN.
35963         * modules/round-tests (Files): Add tests/nan.h.
35964
35965         * tests/test-trunc1.c: Include nan.h.
35966         (main): Use NaNd instead of NAN.
35967         * modules/trunc-tests (Files): Add tests/nan.h.
35968
35969         * tests/test-roundf1.c: Include nan.h.
35970         (main): Use NaNf instead of NAN.
35971         * modules/roundf-tests (Files): Add tests/nan.h.
35972
35973         * tests/test-truncf1.c: Include nan.h.
35974         (main): Use NaNf instead of NAN.
35975         * modules/truncf-tests (Files): Add tests/nan.h.
35976
35977         * tests/test-ceilf1.c: Include nan.h.
35978         (main): Use NaNf instead of NAN.
35979         * modules/ceilf-tests (Files): Add tests/nan.h.
35980
35981         * tests/test-floorf1.c: Include nan.h.
35982         (main): Use NaNf instead of NAN.
35983         * modules/floorf-tests (Files): Add tests/nan.h.
35984
35985         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35986         (main): Use NaNf instead of NAN.
35987         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35988
35989         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35990         (main): Use NaNd instead of NAN.
35991         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35992
35993         * tests/test-frexp.c: Include nan.h.
35994         (main): Use NaNd instead of NAN.
35995         * modules/frexp-tests (Files): Add tests/nan.h.
35996
35997         * lib/isnan.c: Don't include <math.h>.
35998         (FUNC): Don't use NAN macro.
35999         * modules/isnand-nolibm (Depends-on): Remove math.
36000         * modules/isnanf-nolibm (Depends-on): Remove math.
36001         * modules/isnanl (Depends-on): Remove math.
36002         * modules/isnanl-nolibm (Depends-on): Remove math.
36003
36004         * tests/nan.h: New file.
36005
36006 2008-04-01  Eric Blake  <ebb9@byu.net>
36007
36008         Fix typos.
36009         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
36010         values to be the right type.
36011
36012         For now, cater to gnulib strtod inaccuracies.
36013         * tests/test-strtod.c (main): Allow 1-ulp error on expected
36014         fractional results.  While not as nice from a QoI perspective, it
36015         is a quicker patch than correctly implementing decimal to binary
36016         rounding.
36017
36018 2008-03-31  Eric Blake  <ebb9@byu.net>
36019
36020         Guarantee a definition of NAN.
36021         * lib/math.in.h (NAN): Define if missing.
36022         * tests/test-math.c (main): Test it.
36023         * doc/posix-headers/math.texi (math.h): Document this.
36024         * lib/isnan.c (rpl_isnand): Use it.
36025         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
36026         * tests/test-floorf1.c (NaN): Likewise.
36027         * tests/test-frexp.c (NaN): Likewise.
36028         * tests/test-isnand.c (NaN): Likewise.
36029         * tests/test-isnanf.c (NaN): Likewise.
36030         * tests/test-round1.c (NaN): Likewise.
36031         * tests/test-roundf1.c (NaN): Likewise.
36032         * tests/test-snprintf-posix.h (NaN): Likewise.
36033         * tests/test-sprintf-posix.h (NaN): Likewise.
36034         * tests/test-trunc1.c (NaN): Likewise.
36035         * tests/test-truncf1.c (NaN): Likewise.
36036         * tests/test-vasnprintf-posix.c (NaN): Likewise.
36037         * tests/test-vasprintf-posix.c (NaN): Likewise.
36038         * modules/isnand-nolibm (Depends-on): Add math.
36039         * modules/isnanf-nolibm (Depends-on): Likewise.
36040         * modules/isnanl (Depends-on): Likewise.
36041         * modules/isnanl-nolibm (Depends-on): Likewise.
36042         * modules/snprintf-posix-tests (Depends-on): Likewise.
36043         * modules/sprintf-posix-tests (Depends-on): Likewise.
36044         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
36045         * modules/vsprintf-posix-tests (Depends-on): Likewise.
36046         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
36047         * modules/vasprintf-posix-tests (Depends-on): Likewise.
36048
36049 2008-03-31  Bruno Haible  <bruno@clisp.org>
36050
36051         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
36052         * doc/posix-functions/strtod.texi: Likewise.
36053
36054 2008-03-31  Bruno Haible  <bruno@clisp.org>
36055
36056         * tests/test-strtod.c (main): Don't use C99 syntax.
36057
36058 2008-03-31  Bruno Haible  <bruno@clisp.org>
36059
36060         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
36061         Reported by Eric Blake.
36062
36063 2008-03-31  Jim Meyering  <meyering@redhat.com>
36064
36065         Don't compare actual signbit return values.
36066         * tests/test-strtod.c (main): Rather, compare only their
36067         zero/non-zero nature.
36068
36069 2008-03-31  Eric Blake  <ebb9@byu.net>
36070
36071         More strtod documentation.
36072         * doc/posix-functions/strtod.texi (strtod): Interpret more test
36073         failures as distinct bugs.
36074
36075 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36076
36077         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
36078         Problem reported by Erik Benada in
36079         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
36080
36081 2008-03-30  Bruno Haible  <bruno@clisp.org>
36082
36083         * tests/test-strtod.c: Add comments about which assertion fails on which
36084         platform.
36085         * doc/posix-functions/strtod.texi: Add info about many more platforms.
36086
36087 2008-03-30  Eric Blake  <ebb9@byu.net>
36088
36089         Test signbit behavior on zeros.
36090         * tests/test-signbit.c (test_signbitf): Add tests for zero.
36091         (test_signbitd, test_signbitl): Likewise.
36092
36093         More strtod touchups.
36094         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
36095         sign of negative underflow, for now.  Use .5, not .1.
36096         * doc/posix-functions/strtod.texi (strtod): Mention these
36097         limitations.
36098         Reported by Jim Meyering.
36099
36100 2008-03-30  Bruno Haible  <bruno@clisp.org>
36101
36102         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
36103         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
36104
36105 2008-03-30  Bruno Haible  <bruno@clisp.org>
36106
36107         Avoid failure when attempting to return empty iconv results on some
36108         platforms.
36109         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
36110         allocation, don't report ENOMEM when the resulting string is empty.
36111
36112 2008-03-30  Bruno Haible  <bruno@clisp.org>
36113
36114         Fix buffer overrun.
36115         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
36116         Don't consider the width for tmp_length. Check count against tmp_length
36117         before doing the padding. Ensure enough allocation during padding.
36118
36119 2008-03-30  Eric Blake  <ebb9@byu.net>
36120
36121         strtod touchups.
36122         * lib/strtod.c (strtod): Avoid compiler warnings.
36123         Reported by Jim Meyering.
36124
36125 2008-03-30  Bruno Haible  <bruno@clisp.org>
36126
36127         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
36128         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
36129         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
36130         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
36131         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
36132         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
36133         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
36134         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
36135
36136         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
36137         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
36138         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
36139         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
36140         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
36141         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
36142         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
36143         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
36144
36145         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
36146         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
36147         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
36148         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
36149         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
36150         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
36151         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
36152         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
36153
36154         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
36155         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
36156
36157         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
36158         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
36159
36160         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
36161         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
36162
36163         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
36164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
36165         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
36166
36167         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
36168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
36169         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
36170
36171         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
36172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
36173         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
36174
36175         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
36176         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
36177         * modules/vasprintf (Depends-on): Add EOVERFLOW.
36178
36179         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
36180         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
36181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
36182         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
36183         (Depends-on): Add EOVERFLOW.
36184         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
36185         (Depends-on): Add EOVERFLOW.
36186         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36187         (Depends-on): Add EOVERFLOW.
36188         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36189         (Depends-on): Add EOVERFLOW.
36190         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36191         (Depends-on): Add EOVERFLOW.
36192         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36193         (Depends-on): Add EOVERFLOW.
36194         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36195         (Depends-on): Add EOVERFLOW.
36196         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36197         (Depends-on): Add EOVERFLOW.
36198
36199         * lib/sprintf.c (EOVERFLOW): Remove fallback.
36200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
36201         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
36202
36203         * lib/snprintf.c (EOVERFLOW): Remove fallback.
36204         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
36205         * modules/snprintf (Depends-on): Add EOVERFLOW.
36206
36207         * lib/poll.c (EOVERFLOW): Remove fallback.
36208         * modules/poll (Depends-on): Add EOVERFLOW.
36209
36210         * lib/getugroups.c (EOVERFLOW): Remove fallback.
36211         * modules/getugroups (Depends-on): Add EOVERFLOW.
36212
36213         * lib/getdelim.c (EOVERFLOW): Remove fallback.
36214         * modules/getdelim (Depends-on): Add EOVERFLOW.
36215
36216         * lib/ftell.c (EOVERFLOW): Remove fallback.
36217         * modules/ftell (Depends-on): Add EOVERFLOW.
36218
36219         * lib/fprintf.c (EOVERFLOW): Remove fallback.
36220         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
36221         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
36222
36223         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
36224
36225         * modules/EOVERFLOW-tests: New file.
36226         * tests/test-EOVERFLOW.c: New file.
36227
36228         * modules/EOVERFLOW: New file.
36229         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
36230
36231 2008-03-30  Bruno Haible  <bruno@clisp.org>
36232
36233         Fix bug introduced on 2007-06-10.
36234         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
36235         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
36236
36237 2008-03-30  Bruno Haible  <bruno@clisp.org>
36238
36239         Improve freadseek's efficiency after ungetc.
36240         * lib/freadseek.c: Include freadahead.h.
36241         (freadptrinc): New function, extracted from freadseek.
36242         (freadseek): Use it in a loop. Use freadahead to determine the number
36243         of loop iterations.
36244         * modules/freadseek (Depends-on): Add freadahead.
36245         (configure.ac): Require AC_C_INLINE.
36246
36247 2008-03-30  Bruno Haible  <bruno@clisp.org>
36248
36249         * lib/freadseek.c (freadseek): Don't ignore the return value of
36250         freadptr.
36251
36252 2008-03-29  Eric Blake  <ebb9@byu.net>
36253
36254         Add hex float support.
36255         * modules/strtod (Depends-on): Add c-ctype.
36256         (Link): Mention POW_LIB.
36257         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
36258         whitespace between 'e' and exponent.
36259         * tests/test-strtod.c (main): Enable hex float tests.
36260         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
36261         now provides.
36262
36263         Document various strtod bugs, with some fixes.
36264         * doc/posix-functions/strtod.texi (strtod): Document bugs with
36265         "-0x", "inf", "nan", and hex constants.
36266         * doc/posix-functions/atof.texi (atof): Likewise.
36267         * modules/stdlib (Makefile.am): Support strtod.
36268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36269         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
36270         detect additional strtod bugs.
36271         * lib/stdlib.in.h (rpl_strtod): Add declarations.
36272         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
36273         bool where appropriate.  Parse 'inf' and 'nan'.
36274         * tests/test-strtod.c: New file.
36275         * modules/strtod (Depends-on): Add stdbool, stdlib.
36276         (configure.ac): Turn on module indicator.
36277         * modules/strtod-tests: New module.
36278
36279 2008-03-29  Eric Blake  <ebb9@byu.net>
36280
36281         Fix ftell on mingw.
36282         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
36283         * modules/ftell-tests (Depends-on): Add binary-io.
36284         * modules/ftello-tests (Depends-on): Likewise.
36285         * tests/test-ftell.c (main): Enhance test to cover behavior after
36286         ungetc.  Enforce binary mode.
36287         * tests/test-ftello.c (main): Likewise.
36288
36289         Pass test-freadseek on cygwin.
36290         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
36291         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
36292         ungetc buffer.
36293
36294         * tests/test-fflush2.c (main): Fix typo.
36295
36296 2008-03-29  Bruno Haible  <bruno@clisp.org>
36297
36298         * tests/test-fflush2.c (main): Temporarily disable the contents of
36299         this test.
36300         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
36301         Reported by Eric Blake.
36302
36303 2008-03-28  Simon Josefsson  <simon@josefsson.org>
36304
36305         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
36306         (GC_SHA224_DIGEST_SIZE): Add.
36307
36308         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
36309         (gc_hash_digest_length): Likewise.
36310         (gc_hash_buffer): Likewise.
36311
36312 2008-03-25  Bruno Haible  <bruno@clisp.org>
36313
36314         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
36315         detail which gettext release to use.
36316         Reported by Simon Josefsson.
36317
36318 2008-03-26  Jim Meyering  <meyering@redhat.com>
36319
36320         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
36321         * modules/gnumakefile (clean-GNUmakefile): Also, use
36322         test ... && ... || : syntax rather than if-then ... fi.
36323
36324         gnumakefile: Don't double-quote-expand $(VPATH) value.
36325         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36326
36327 2008-03-24  Eric Blake  <ebb9@byu.net>
36328
36329         Alter GNUmakefile to install into top directory.
36330         * modules/maintainer-makefile: Split, and add dependency...
36331         * modules/gnumakefile: to this new module.
36332         * build-aux/GNUmakefile: Move...
36333         * top/GNUmakefile: ...here.
36334         * build-aux/maint.mk: Move...
36335         * top/maint.mk: ...here.
36336         * MODULES.html.sh (Support for maintaining...): Document new
36337         module.
36338
36339 2008-03-23  Bruno Haible  <bruno@clisp.org>
36340
36341         * gnulib-tool: New options --vc-files, --no-vc-files.
36342         (func_usage): Document them.
36343         (vc_files): New variable.
36344         (func_import): Consider vc_files.
36345         (func_create_testdir): Set vc_files to empty.
36346         Suggested by Jim Meyering and Karl Berry.
36347
36348 2008-03-23  Bruno Haible  <bruno@clisp.org>
36349
36350         Fix regex compilation error on HP-UX 11.
36351         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
36352         * modules/regex (Files): Add m4/mbstate_t.m4.
36353         Reported by Ton Voon <ton.voon@altinity.com>.
36354
36355 2008-03-23  Bruno Haible  <bruno@clisp.org>
36356
36357         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
36358
36359 2008-03-23  Eric Blake  <ebb9@byu.net>
36360             Bruno Haible  <bruno@clisp.org>
36361
36362         Install files from top/ in the destination directory.
36363         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36364         augmentation also for the files from top/.
36365         (func_import, func_create_testdir): Rewrite file names:
36366         top/filename -> filename.
36367
36368 2008-03-23  Bruno Haible  <bruno@clisp.org>
36369
36370         Tweak "gnulib --version" output.
36371         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
36372
36373 2008-03-23  Bruno Haible  <bruno@clisp.org>
36374
36375         Tweak "gnulib --version" output.
36376         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
36377         rather than contents of ChangeLog, when possible.
36378
36379 2008-03-21  Eric Blake  <ebb9@byu.net>
36380
36381         More --version tweaks.
36382         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
36383         date of last ChangeLog entry.
36384
36385 2008-03-21  Jim Meyering  <meyering@redhat.com>
36386
36387         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
36388
36389 2008-03-20  Eric Blake  <ebb9@byu.net>
36390
36391         VPATH fix.
36392         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
36393
36394 2008-03-20  Simon Josefsson  <simon@josefsson.org>
36395
36396         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
36397         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
36398
36399 2008-03-20  Eric Blake  <ebb9@byu.net>
36400
36401         Sync GNUmakefile with coreutils.
36402         * build-aux/GNUmakefile (have-Makefile): Rename...
36403         (_have-Makefile): ...to this, for namespace consideration.
36404         (GNUmakefile.cfg): Include, if present.
36405         (_autoreconf): Define a default.
36406         (_is-dist-target): New rule for rebuilds to pick up intra-release
36407         version.
36408         (maint-cfg.mk): Rename...
36409         (cfg.mk): ...to this.
36410
36411 2008-03-18  Jim Meyering  <meyering@redhat.com>
36412
36413         New script and module: mktempd
36414         * MODULES.html.sh (maint+release support): Add mktempd.
36415         * build-aux/mktempd: New file.
36416         * modules/mktempd: New file.
36417
36418 2008-03-15  Jim Meyering  <meyering@redhat.com>
36419
36420         Undo last change.
36421         * lib/sha1.c, lib/md5.c: 63 != ~63.
36422         Reported by Andreas Schwab.
36423
36424         sha1.c, md5.c: Hoist a redundant expression.
36425         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36426         "ctx->buflen" only once, before calling *_process_block.
36427         * lib/md5.c (md5_process_bytes): Likewise.
36428
36429 2008-03-14  Eric Blake  <ebb9@byu.net>
36430
36431         Bump copyright year in files generated by gnulib-tool.
36432         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36433         gnulib-tool, rather than hard-coding it.
36434
36435         Fix 'gnulib-tool --version' output to work with git.
36436         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36437         (startup): ...here.
36438         (func_version): Use it to invoke git-version-gen, rather than
36439         relying on CVS keyword expansion.  Modernize wording.
36440         (cvsdatestamp, last_checkin_date, version): Kill unused
36441         variables.
36442
36443 2008-03-12  Jim Meyering  <meyering@redhat.com>
36444
36445         Recognize optional cast of the argument to free.
36446         * build-aux/useless-if-before-free: Update regexps.
36447
36448         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
36449
36450 2008-03-11  Bruno Haible  <bruno@clisp.org>
36451
36452         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
36453         by a single package.
36454         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
36455         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
36456         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
36457         Reported by Sam Steingold <sds@gnu.org>.
36458
36459 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36460
36461         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36462         repositories.
36463
36464 2008-03-11  Bruno Haible  <bruno@clisp.org>
36465
36466         Avoid conflicts between local macro definitions.
36467         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36468         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36469
36470 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36471             Bruno Haible  <bruno@clisp.org>
36472
36473         Make va_copy work with some version of xlc on AIX 5.1.
36474         * lib/stdarg.in.h: New file.
36475         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36476         On AIX, use a <stdarg.h> file substitute.
36477         * modules/stdarg (Files): Add lib/stdarg.in.h.
36478         (Depends-on): Add include_next.
36479         (Makefile.am): Build a stdarg.h substitute if requested.
36480         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36481
36482 2008-03-10  Bruno Haible  <bruno@clisp.org>
36483
36484         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36485         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36486         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36487
36488 2008-03-10  Bruno Haible  <bruno@clisp.org>
36489
36490         * modules/stdlib (Depends-on): Add include_next, remove
36491         absolute-header.
36492
36493 2008-03-09  Bruno Haible  <bruno@clisp.org>
36494
36495         * lib/freadahead.h (freadahead): Document more precisely.
36496         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36497         the sum of both buffer sizes.
36498         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36499         * NEWS: Document the change.
36500
36501 2008-03-09  Bruno Haible  <bruno@clisp.org>
36502
36503         Extend freadptr to return also the buffer size.
36504         * lib/freadptr.h (freadptr): Add sizep argument.
36505         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36506         (freadptr): Add sizep argument. Determine buffer size like freadahead
36507         does.
36508         * tests/test-freadptr.c: Don't include freadahead.h.
36509         (main): Adapt for new calling convention of freadptr.
36510         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36511         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36512         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36513         tests/test-freadptr2.sh.
36514         (Depends): Remove freadahead.
36515         (TESTS): Add test-freadptr2.sh.
36516         (check_PROGRAMS): Add test-freadptr2.
36517
36518 2008-03-09  Bruno Haible  <bruno@clisp.org>
36519
36520         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36521         Report and solution by Simon Josefsson.
36522
36523 2008-03-06  Bruno Haible  <bruno@clisp.org>
36524
36525         Make fflush after ungetc work on BSD platforms.
36526         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36527         * tests/test-fflush2.c: New file.
36528         * tests/test-fflush2.sh: New file.
36529         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36530         tests/test-fflush2.c.
36531         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36532         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36533
36534 2008-03-06  Eric Blake  <ebb9@byu.net>
36535
36536         Likewise for ftello.
36537         * modules/ftello (Dependencies): Add extensions.
36538         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36539
36540 2008-03-06  Bruno Haible  <bruno@clisp.org>
36541
36542         * modules/fseeko (Dependencies): Add extensions.
36543         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36544         Needed on glibc systems.
36545
36546 2008-03-06  Bruno Haible  <bruno@clisp.org>
36547
36548         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36549         email address.
36550         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36551
36552 2008-03-06  Bruno Haible  <bruno@clisp.org>
36553
36554         * users.txt: Add libgnupdf.
36555
36556 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36557
36558         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36559         (Header File Substitutes, Function Substitutes,
36560         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36561         (Build robot for gnulib): Fix typo.
36562
36563 2008-03-06  Bruno Haible  <bruno@clisp.org>
36564
36565         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36566         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36567
36568 2008-03-06  Bruno Haible  <bruno@clisp.org>
36569
36570         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36571         * doc/gnulib.texi: Include it.
36572
36573 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36574
36575         * modules/func (License): Change license to unlimited; there was
36576         no LGPL parts in the module anyway.
36577
36578 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36579
36580         * modules/__func__: Renamed to modules/func.
36581         * modules/__func__-tests: Renamed to modules/func-tests.
36582         * tests/test-__func__.c: Renamed to tests/test-func.c.
36583         * m4/__func__.m4: Renamed to m4/func.m4.
36584         * doc/gnulib.texi (__func__): Section renamed to func.
36585         Suggested by Eric Blake <ebb9@byu.net>.
36586
36587 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36588
36589         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36590         about __func__.  Make example self-contained.  Suggested by Eric
36591         Blake <ebb9@byu.net>.
36592
36593         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36594         Suggested by Eric Blake <ebb9@byu.net>.
36595
36596 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36597
36598         * modules/__func__: New file.
36599         * modules/__func__-tests: New file.
36600         * tests/test-__func__.c: New file.
36601         * m4/__func__.m4: New file.
36602         * doc/gnulib.texi (__func__): Document __func__ module.
36603
36604 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36605
36606         * modules/byteswap (License): Re-license as LGPLv2+.
36607
36608 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36609
36610         * doc/Makefile: Add pdf target.
36611
36612 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36613
36614         * modules/inline (License): Use 'unlimited', since there are only
36615         *.m4 files in this module.
36616
36617 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36618             Bruno Haible  <bruno@clisp.org>
36619
36620         Add support for HP C 7.1 on OpenVMS 8.3.
36621         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36622
36623 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36624
36625         Update VMS specifics.
36626         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36627
36628 2008-03-02  Jim Meyering  <meyering@redhat.com>
36629
36630         Remove the last dependency on the "free" module.
36631         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36632         Reported by Bob Proulx.
36633
36634         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36635
36636         Remove useless "if" tests before free.  Deprecate "free" module.
36637         * doc/posix-functions/free.texi: Mention that this
36638         module is no longer useful.
36639         * modules/free (Notice): Say this module is obsolete.
36640         * modules/readutmp (Depends-on): Remove free.
36641         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36642         * lib/putenv.c (putenv): Likewise.
36643         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36644         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36645         * tests/test-c-strcasestr.c (main): Likewise.
36646         * tests/test-c-strstr.c (main): Likewise.
36647         * tests/test-mbscasestr1.c (main): Likewise.
36648         * tests/test-mbscasestr2.c (main): Likewise.
36649         * tests/test-mbsstr1.c (main): Likewise.
36650         * tests/test-mbsstr2.c (main): Likewise.
36651         * tests/test-memmem.c (main): Likewise.
36652         * tests/test-strcasestr.c (main): Likewise.
36653         * tests/test-striconv.c (main): Likewise.
36654         * tests/test-striconveh.c (main): Likewise.
36655         * tests/test-striconveha.c (main): Likewise.
36656         * tests/test-strstr.c (main): Likewise.
36657
36658         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36659
36660         bootstrap: sync from coreutils again
36661         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36662
36663 2008-03-01  Jim Meyering  <meyering@redhat.com>
36664
36665         bootstrap: sync from coreutils
36666         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36667         also when the target doesn't exist.
36668
36669 2008-03-01  Eric Blake  <ebb9@byu.net>
36670
36671         Fix bugs in last patch.
36672         * lib/memchr2.c (memchr2): Fix typo.
36673         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36674         extension.
36675         Reported by Bruce Korb.
36676
36677         New module 'memchr2'.
36678         * modules/memchr2: New file.
36679         * modules/memchr2-tests: Likewise.
36680         * lib/memchr2.h: Likewise.
36681         * lib/memchr2.c: Likewise, based on memchr.c.
36682         * tests/test-memchr2.c: New test.
36683         * MODULES.html.sh (String handling): Add memchr2.
36684
36685 2008-02-29  Bruno Haible  <bruno@clisp.org>
36686
36687         * modules/freadseek-tests: New file.
36688         * tests/test-freadseek.sh: New file.
36689         * tests/test-freadseek.c: New file.
36690
36691         New module 'freadseek'.
36692         * modules/freadseek: New file.
36693         * lib/freadseek.h: New file.
36694         * lib/freadseek.c: New file.
36695         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36696
36697 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36698
36699         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36700         wydawca.
36701
36702         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36703         program_invocation_name and program_invocation_short_name are
36704         present.
36705
36706 2008-02-28  Bruno Haible  <bruno@clisp.org>
36707
36708         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36709         * tests/test-freadptr.sh: Also test non-seekable stdin.
36710
36711 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36712
36713         * build-aux/bootstrap (source_base, m4_base)
36714         (doc_base, tests_base): New variables.
36715         (gnulib_tool_options): Do not hardcode base directories, use
36716         the above variables instead.
36717
36718 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36719
36720         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36721
36722 2008-02-28  Bruno Haible  <bruno@clisp.org>
36723
36724         * modules/freadptr-tests: New file.
36725         * tests/test-freadptr.sh: New file.
36726         * tests/test-freadptr.c: New file.
36727
36728         New module 'freadptr'.
36729         * modules/freadptr: New file.
36730         * lib/freadptr.h: New file.
36731         * lib/freadptr.c: New file.
36732         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36733
36734 2008-02-26  Karl Berry  <karl@freefriends.org>
36735
36736         Sync from Libtool:
36737         * libltdl/argz.c (argz_add, argz_count): New functions.
36738         * libltdl/argz.in.h: Declare them.
36739         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36740
36741 2008-02-22  Bruno Haible  <bruno@clisp.org>
36742
36743         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36744         is a pointer type.  Needed for HP-UX 10.
36745         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36746         * doc/posix-functions/gmtime_r.texi: Likewise.
36747         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36748
36749 2008-02-24  Bruno Haible  <bruno@clisp.org>
36750
36751         * modules/environ-tests: New file.
36752         * tests/test-environ.c: New file.
36753
36754         New module 'environ'.
36755         * modules/environ: New file.
36756         * lib/unistd.in.h (environ): New declaration.
36757         * m4/environ.m4: New file.
36758         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36759         after use.
36760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36761         HAVE_DECL_ENVIRON.
36762         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36763         HAVE_DECL_ENVIRON.
36764         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36765         wrong claim that 'environ' is missing on some systems.
36766         * modules/execute (Depends-on): Add environ.
36767         * lib/execute.c (environ): Remove fallback declaration.
36768         * modules/pipe (Depends-on): Add environ.
36769         * lib/pipe.c (environ): Remove fallback declaration.
36770         * modules/setenv (Depends-on): Add environ.
36771         * lib/setenv.c (environ): Remove fallback declaration.
36772         * modules/unsetenv (Depends-on): Add environ.
36773         * lib/unsetenv.c (environ): Remove fallback declaration.
36774         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36775         m4/environ.m4.
36776         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36777         (gl_PREREQ_UNSETENV): Likewise.
36778
36779 2008-02-24  Bruno Haible  <bruno@clisp.org>
36780
36781         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36782
36783 2008-02-20  Bob Proulx  <bob@proulx.com>
36784
36785         Enable use of older two part flavor 'git describe'.
36786         * build-aux/git-version-gen: If using the older two part flavor of
36787         git version then recreate the third part now present in the
36788         newer three part flavor of git describe.
36789
36790 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36791
36792         * lib/fts.c (fts_build): Typo correction to comment.
36793
36794 2008-02-17  Bruno Haible  <bruno@clisp.org>
36795
36796         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36797         generating no-op conflicts.
36798
36799 2008-02-17  Bruno Haible  <bruno@clisp.org>
36800
36801         Speed up by 10%.
36802         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36803         result_entries, rather than an index-based loop.
36804
36805 2008-02-17  Bruno Haible  <bruno@clisp.org>
36806
36807         Speed up by 25%.
36808         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36809         'hashcode_cached'.
36810         (entry_create): New function.
36811         (entry_hashcode): Use the cached hashcode if possible.
36812         (read_changelog_file, try_split_merged_entry): Use entry_create.
36813
36814 2008-02-17  Bruno Haible  <bruno@clisp.org>
36815
36816         Speed up from O(n^2) to O(n) for long ChangeLog files.
36817         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36818         (read_changelog_file): Change implementation of entries_reversed list
36819         to rbtreehash.
36820         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36821
36822 2008-02-17  Bruno Haible  <bruno@clisp.org>
36823
36824         New option --split-merged-entry.
36825         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36826         (find_paragraph_end, try_split_merged_entry): New functions.
36827         (long_options): Add option --split-merged-entry.
36828         (usage): Document option --split-merged-entry.
36829         (main): Implement option --split-merged-entry.
36830         Reported by Eric Blake.
36831
36832 2008-02-17  Bruno Haible  <bruno@clisp.org>
36833
36834         * lib/git-merge-changelog.c: Include c-strstr.h.
36835         (main): Support the "git pull --rebase" situation.
36836         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36837         Reported by Eric Blake.
36838
36839 2008-02-16  Eric Blake  <ebb9@byu.net>
36840
36841         Avoid doubling \ in common case of "c-maybe" quoting style.
36842         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36843         eliding outer quotes.
36844         * lib/quotearg.h: Document this.
36845         * tests/test-quotearg.c (result_strings, inputs, results_g)
36846         (flag_results, locale_results): Test it by adding a new string to
36847         each test group.
36848         (compare_strings): Test new string.
36849
36850 2008-02-13  Eric Blake  <ebb9@byu.net>
36851
36852         Avoid trigraph quoting in default output.
36853         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36854         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36855         unless explicitly requested.
36856         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36857
36858 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36859
36860         Don't rely on signed integer overflowing to negative value.
36861         * lib/getugroups.c (getugroups): Include <limits.h>.
36862         Instead, compare against INT_MAX, and increment only if the test passes.
36863
36864 2008-02-13  Jim Meyering  <meyering@redhat.com>
36865         and Eric Blake  <ebb9@byu.net>
36866
36867         Avoid shadowing warning and compile errors on Linux.
36868         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36869         forwarding macros on Linux.
36870         (dcgettext): Define a stub, for Linux.
36871         (results_g, main): Avoid warnings.
36872
36873 2008-02-12  Eric Blake  <ebb9@byu.net>
36874
36875         Silence warning in last patch.
36876         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36877
36878         Quotearg part 4: add tests, fix c-maybe colon quoting.
36879         * lib/quotearg.h: Improve documentation.
36880         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36881         escapes when adding outer quotes.  When quoting trigraphs, use
36882         valid C notation.  When quoting NUL, omit extra characters if next
36883         character is not digit.  Alter prototype.
36884         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36885         callers.
36886         * modules/quotearg-tests: New module.
36887         * tests/test-quotearg.c: New test.
36888
36889 2008-02-07  Eric Blake  <ebb9@byu.net>
36890
36891         Quotearg part 3: add flag to control outer quote elision.
36892         * lib/quotearg.h (c_maybe_quoting_style): New style.
36893         (enum quoting_flags): Better documentation of flags.
36894         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36895         c-maybe style.
36896         (quotearg_buffer_restyled): Handle new flag to elide outer
36897         quotes.
36898
36899         Quotearg part 2: add flag that can control NUL elision.
36900         * lib/quotearg.h (set_quoting_flags): New prototype.
36901         * lib/quotearg.c (struct quoting_options): Add flag field.
36902         (set_quoting_flags): New function.
36903         (quotearg_buffer_restyled): Add flags parameter.
36904         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36905         (quotearg_n_options): Set the flag, since length cannot be
36906         returned.
36907         (quoting_options_from_style): Default flags correctly.
36908
36909         Quotearg part 1: more wrappers, restore quotearg_char state.
36910         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36911         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36912         (quotearg_colon_mem): New wrappers.
36913         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36914         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36915         functions.
36916         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36917         (quotearg_colon_mem): New functions.
36918
36919 2008-02-11  Bruno Haible  <bruno@clisp.org>
36920
36921         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36922         library in the current directory: it does not work with parallel make.
36923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36924
36925 2008-02-11  Bruno Haible  <bruno@clisp.org>
36926
36927         * .gitattributes: New file.
36928
36929 2008-02-11  Jim Meyering  <meyering@redhat.com>
36930
36931         useless-if-before-free: Fix reversed exit values.
36932         * build-aux/useless-if-before-free: Use correct values
36933         for EXIT_MATCH and EXIT_NO_MATCH.
36934
36935         * build-aux/useless-if-before-free: Close stdout carefully.
36936
36937 2008-02-10  Bruno Haible  <bruno@clisp.org>
36938
36939         New module 'git-merge-changelog'.
36940         * modules/git-merge-changelog: New file.
36941         * lib/git-merge-changelog.c: New file.
36942
36943 2008-02-10  Jim Meyering  <meyering@redhat.com>
36944
36945         useless-if-before-free: New option: --list (-l).
36946
36947         useless-if-before-free: Don't exit immediately upon open failure.
36948         * build-aux/useless-if-before-free: Exit 2 for errors.
36949         Upon failure to open a file, don't exit immediately.
36950         Rather, just warn and continue with any remaining files.
36951
36952 2008-02-10  Bruno Haible  <bruno@clisp.org>
36953
36954         New abstract list operation 'node_set_value'.
36955         * lib/gl_list.h (gl_list_node_set_value): New function.
36956         (struct gl_list_implementation): New field node_set_value.
36957         * lib/gl_list.c (gl_list_node_set_value): New function.
36958         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36959         (gl_array_list_implementation): Update.
36960         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36961         (gl_carray_list_implementation): Update.
36962         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36963         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36964         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36965         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36966         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36967         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36968         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36969         Update.
36970         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36971         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36972         (gl_sublist_list_implementation): Update.
36973
36974 2008-02-10  Bruno Haible  <bruno@clisp.org>
36975
36976         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36977         Needed when ELEMENT is #defined to 'some_type *'.
36978
36979 2008-02-10  Jim Meyering  <meyering@redhat.com>
36980
36981         New script and module: useless-if-before-free
36982         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36983         * build-aux/useless-if-before-free: New file.
36984         * modules/useless-if-before-free: New file.
36985
36986         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36987
36988         xstrtol_error: Fix typo.
36989         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36990         s/exit_failure/exit_status/.
36991
36992 2008-02-09  Jim Meyering  <meyering@redhat.com>
36993
36994         New script and module: gitlog-to-changelog
36995         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36996         * modules/gitlog-to-changelog: New file.
36997         * build-aux/gitlog-to-changelog: New file.
36998
36999 2008-02-08  Jim Meyering  <meyering@redhat.com>
37000
37001         Avoid two "parameter unused" warnings.
37002         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
37003         Mark "st" as used.
37004
37005         Use "git COMMAND", not "git-COMMAND".
37006         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
37007         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
37008         * build-aux/git-version-gen: Use "git status", not "git-status".
37009
37010 2008-02-07  Bruno Haible  <bruno@clisp.org>
37011
37012         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
37013         Avoids a crash on Windows Vista.
37014         Reported by Adam Strzelecki <ono@java.pl> via
37015         Simon Josefsson <simon@josefsson.org>.
37016
37017 2008-02-06  Bruno Haible  <bruno@clisp.org>
37018
37019         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
37020         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
37021         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
37022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
37023         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37024         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37025         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
37026         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
37027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37028         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37029         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37031         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37032         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37033         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37034         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
37035         left-adjust flag.
37036         * tests/test-snprintf-posix.h (test_function): Likewise.
37037         * tests/test-sprintf-posix.h (test_function): Likewise.
37038         * tests/test-vasprintf-posix.c (test_function): Likewise.
37039         * doc/posix-functions/fprintf.texi: Update.
37040         * doc/posix-functions/printf.texi: Update.
37041         * doc/posix-functions/snprintf.texi: Update.
37042         * doc/posix-functions/sprintf.texi: Update.
37043         * doc/posix-functions/vfprintf.texi: Update.
37044         * doc/posix-functions/vprintf.texi: Update.
37045         * doc/posix-functions/vsnprintf.texi: Update.
37046         * doc/posix-functions/vsprintf.texi: Update.
37047         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37048
37049 2008-02-06  Bruno Haible  <bruno@clisp.org>
37050
37051         Fix bug introduced on 2008-01-26.
37052         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
37053
37054 2008-02-06  Bruno Haible  <bruno@clisp.org>
37055
37056         Fix bug introduced on 2007-06-10.
37057         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
37058         !NEED_PRINTF_FLAG_ZERO.
37059
37060 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
37061
37062         getloadavg: use libperfstat on AIX5
37063         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
37064
37065 2008-02-03  Bruno Haible  <bruno@clisp.org>
37066
37067         * lib/diffseq.h: Add comments about required #includes.
37068         Reported by Michael Biggs <gnulib@doubleplum.net>.
37069
37070 2008-02-01  Bruno Haible  <bruno@clisp.org>
37071
37072         * users.txt: Add gnuit.
37073
37074 2008-01-31  Bruno Haible  <bruno@clisp.org>
37075
37076         * lib/md4.c (set_uint32): Mark as inline.
37077         * lib/md5.c (set_uint32): Likewise.
37078         * lib/sha1.c (set_uint32): Likewise.
37079         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
37080         * m4/md5.m4 (gl_MD5): Likewise.
37081         * m4/sha1.m4 (gl_SHA1): Likewise.
37082
37083 2008-01-31  Jim Meyering  <meyering@redhat.com>
37084
37085         Use "sizeof VAR", rather than a literal "4".
37086         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
37087         * lib/md4.c (md4_read_ctx): Likewise.
37088         * lib/sha1.c (sha1_read_ctx): Likewise.
37089
37090 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37091
37092         * tests/test-sha1.c: New file, based on test-md5.c.
37093
37094         * modules/crypto/sha1-tests: New file.
37095
37096 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37097
37098         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
37099
37100 2008-01-31  Jim Meyering  <meyering@redhat.com>
37101
37102         Prefer "sizeof v" over the equivalent "4".
37103         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
37104         * lib/md5.c (set_uint32): Likewise.
37105         * lib/sha1.c (set_uint32): Likewise.
37106
37107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37108
37109         * lib/sha1.c (set_uint32): Mark function as static.
37110
37111 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37112
37113         md2: clarify comments to say that alignment is not required.
37114         * lib/md2.h: Remove warning about alignment in comment.
37115         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
37116         never been required.
37117
37118 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37119
37120         md4: adapt alignment constraint fix from sha1.
37121         * lib/md4.c (set_uint32): New function, from sha1.c
37122         (md4_read_ctx): Use it.
37123         (md4_finish_ctx): Doc fix.
37124         * lib/md4.h: Doc fix.
37125
37126 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37127
37128         md5: adapt alignment constraint fix from sha1.
37129         * lib/md5.c (set_uint32): New function, from sha1.c
37130         (md5_read_ctx): Use it.
37131         (md5_finish_ctx): Doc fix.
37132         * lib/md5.h: Doc fix.
37133
37134 2008-01-30  Peter Palfrader  <weasel@debian.org>
37135
37136         sha1: remove the result buffer alignment constraint
37137         * lib/sha1.c (set_uint32): New function.
37138         (sha1_read_ctx): Rewrite to remove the result buffer alignment
37139         constraint.
37140         (sha1_finish_ctx): Remove comment warning about alignment constraint.
37141         * lib/sha1.h: Likewise.
37142
37143 2008-01-30  Andreas Schwab  <schwab@suse.de>
37144             Bruno Haible  <bruno@clisp.org>
37145
37146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
37147         correct definition of LDBL_MIN_EXP.
37148
37149 2008-01-30  Karl Berry  <karl@gnu.org>
37150
37151         * config/srclist-update: try to preserve x bit on updates.
37152         * config/srclistvars.sh: update for karl.
37153
37154 2008-01-29  Jim Meyering  <meyering@redhat.com>
37155
37156         vasnprintf.c: Avoid warning about unused label
37157         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
37158         "overflow" label definition and associated code with the
37159         same cpp condition that guards the sole use of that label.
37160
37161 2008-01-26  Bruno Haible  <bruno@clisp.org>
37162
37163         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
37164         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
37165         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
37166         * lib/isnanl-nolibm.h (isnanl): Likewise.
37167         Reported by Paul Eggert <eggert@cs.ucla.edu>.
37168
37169 2008-01-26  Bruno Haible  <bruno@clisp.org>
37170
37171         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
37172         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
37173
37174 2008-01-26  Bruno Haible  <bruno@clisp.org>
37175
37176         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
37177         GCC >= 4.0 built-in.
37178         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
37179
37180 2008-01-26  Bruno Haible  <bruno@clisp.org>
37181
37182         Rename isnan, applicable to 'double' only, to isnand.
37183         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
37184         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
37185         (configure.ac): Update.
37186         (Include): Replace "isnan.h" with "isnand.h".
37187         * m4/isnand.m4: Renamed from m4/isnan.m4.
37188         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
37189         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
37190         instead of isnan.c.
37191         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
37192         instead of HAVE_ISNAN_IN_LIBC.
37193         (isnand): Renamed from isnan.
37194         * lib/isnand.c: New file.
37195         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
37196         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
37197         (Makefile.am): Update.
37198         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
37199         Include isnand.h instead of isnan.h.
37200         (main): Test isnand instead of isnan.
37201         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
37202         isnan-nolibm.
37203         * modules/frexp (Depends-on): Likewise.
37204         * modules/frexp-tests (Depends-on): Likewise.
37205         * modules/frexp-nolibm (Depends-on): Likewise.
37206         * modules/frexp-nolibm-tests (Depends-on): Likewise.
37207         * modules/isfinite (Depends-on): Likewise.
37208         * modules/round-tests (Depends-on): Likewise.
37209         * modules/signbit (Depends-on): Likewise.
37210         * modules/signbit-tests (Depends-on): Likewise.
37211         * modules/snprintf-posix (Depends-on): Likewise.
37212         * modules/sprintf-posix (Depends-on): Likewise.
37213         * modules/trunc-tests (Depends-on): Likewise.
37214         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37215         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37216         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37217         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37218         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37219         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37220         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37221         * modules/vasnprintf-posix (Depends-on): Likewise.
37222         * modules/vasprintf-posix (Depends-on): Likewise.
37223         * modules/vfprintf-posix (Depends-on): Likewise.
37224         * modules/vsnprintf-posix (Depends-on): Likewise.
37225         * modules/vsprintf-posix (Depends-on): Likewise.
37226         * lib/frexp.c: Include isnand.h instead of isnan.h.
37227         (ISNAN): Set to isnand instead of isnan.
37228         * lib/isfinite.c: Include isnand.h instead of isnan.h.
37229         (gl_isfinited): Use isnand instead of isnan.
37230         * lib/signbitd.c: Include isnand.h instead of isnan.h.
37231         (gl_signbitd): Use isnand instead of isnan.
37232         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
37233         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
37234         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
37235         (main): Use isnand instead of isnan.
37236         * tests/test-round1.c: Include isnand.h.
37237         (main): Use isnand instead of isnan.
37238         * tests/test-round2.c: Include isnand.h instead of isnan.h.
37239         (ISNAN): Set to isnand instead of isnan.
37240         * tests/test-trunc1.c: Include isnand.h.
37241         (main): Use isnand instead of isnan.
37242         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
37243         (equal): Use isnand instead of isnan.
37244         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
37245         isnand-nolibm.
37246         * NEWS: Mention the change.
37247
37248 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37249             Bruno Haible  <bruno@clisp.org>
37250
37251         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
37252         the GCC builtins for signbits are present and set
37253         REPLACE_SIGNBIT_USING_GCC if so.
37254         * lib/math.in.h (signbit): Define using GCC builtins if
37255         REPLACE_SIGNBIT_USING_GCC is set.
37256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
37257         REPLACE_SIGNBIT_USING_GCC.
37258         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
37259
37260 2008-01-25  Jim Meyering  <meyering@redhat.com>
37261
37262         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
37263         * lib/poll.c: Include <config.h>, not "config.h".
37264         * tests/test-getaddrinfo.c: Likewise.
37265
37266 2008-01-25  Simon Josefsson  <simon@josefsson.org>
37267
37268         * modules/sockets-tests: New file.
37269
37270 2008-01-24  Simon Josefsson  <simon@josefsson.org>
37271
37272         * modules/sockets: New module, can be used to call WSA_Startup and
37273         WSA_Cleanup when needed.
37274
37275         * lib/sockets.h, lib/sockets.c: New files.
37276
37277         * m4/sockets.m4: New file.
37278
37279         * tests/test-sockets.c: New file.
37280
37281 2008-01-19  Bruno Haible  <bruno@clisp.org>
37282
37283         * doc/posix-headers: Renamed from doc/headers.
37284         * doc/posix-functions: Renamed from doc/functions.
37285         * doc/gnulib.texi: Update.
37286
37287 2008-01-19  Bruno Haible  <bruno@clisp.org>
37288
37289         * doc/glibc-functions/strcasestr.texi: Include contents of
37290         doc/functions/strcasestr.texi, fixing the list of platforms.
37291         * doc/functions/strcasestr.texi: Remove file.
37292
37293 2008-01-19  Bruno Haible  <bruno@clisp.org>
37294
37295         * doc/glibc-functions/memmem.texi: Include contents of
37296         doc/functions/memmem.texi.
37297         * doc/functions/memmem.texi: Remove file.
37298
37299 2008-01-18  Bruno Haible  <bruno@clisp.org>
37300
37301         * doc/glibc-functions/*.texi: New files.
37302         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
37303         to use the new files.
37304
37305 2008-01-17  Bruno Haible  <bruno@clisp.org>
37306
37307         * tests/test-gethostname.c (main): Fix printf statement.
37308
37309 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37310
37311         * modules/gethostname-tests: New file.
37312
37313         * tests/test-gethostname.c: New file.
37314
37315 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37316
37317         * lib/gethostname.c: Include string.h unconditionally, strncpy is
37318         used by the UNAME case.  Reported by Bruno Haible
37319         <bruno@clisp.org>.
37320
37321 2008-01-17  Eric Blake  <ebb9@byu.net>
37322
37323         Convert c-strcasestr to be more efficient.
37324         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
37325         (Depends-on): Add c-strcase, remove malloca, strnlen.
37326         * tests/test-c-strcasestr.c (main): Enhance test.
37327         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
37328
37329 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37330
37331         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
37332         Use it in creating po/Makevars.
37333
37334 2008-01-15  Simon Josefsson  <simon@josefsson.org>
37335
37336         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
37337         Applications that requires it should initialize libgcrypt
37338         manually.
37339
37340 2008-01-16  Simon Josefsson  <simon@josefsson.org>
37341
37342         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
37343
37344 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
37345
37346         Fix problem with getdate on mingw32 reported by Simon Josefsson
37347         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
37348         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
37349         tzname", when deciding whether to declare tzname.
37350         * lib/strftime.c (tzname): Likewise.
37351
37352 2008-01-15  Bruno Haible  <bruno@clisp.org>
37353
37354         Work around a MacOS X 10.5 bug in frexpl().
37355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
37356         * doc/functions/frexpl.texi: Document the bug.
37357         Reported by Elias Pipping <pipping@gentoo.org>.
37358
37359 2008-01-14  Eric Blake  <ebb9@byu.net>
37360
37361         Touch up previous patch.
37362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
37363         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
37364
37365         Convert strcasestr module to use Two-Way algorithm.
37366         * modules/strcasestr-simple: New module, based on the old
37367         strcasestr, but with Two-Way rather than KMP.
37368         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
37369         * lib/string.in.h (rpl_strcasestr): Declare.
37370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
37371         performance.
37372         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
37373         * modules/string (Makefile.am): Support strcasestr.
37374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37375         * modules/strcasestr-tests (Depends-on): Check for alarm.
37376         * tests/test-strcasestr.c: Augment test.
37377         * lib/str-two-way.h: Clean up stray macro.
37378         * NEWS: Document new module.
37379         * MODULES.html.sh (string handling): Likewise.
37380         * doc/functions/strcasestr.texi: New file.
37381         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
37382         here, since it is not a POSIX function.
37383
37384 2008-01-14  Colin Watson  <cjwatson@debian.org>
37385             Bruno Haible  <bruno@clisp.org>
37386
37387         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
37388         works fine; if not, set REPLACE_STRSIGNAL.
37389         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
37390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37391         REPLACE_STRSIGNAL.
37392         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
37393         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
37394         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
37395
37396 2008-01-14  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/strsignal (Include): Change to <string.h>.
37399
37400 2008-01-14  Colin Watson  <cjwatson@debian.org>
37401
37402         * modules/argp (Notice): Add a notice recommending to change
37403         XGETTEXT_OPTIONS.
37404         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
37405
37406 2008-01-13  Colin Watson  <cjwatson@debian.org>
37407
37408         * modules/strsignal-tests: New file.
37409         * tests/test-strsignal.c: New file.
37410
37411         * lib/strsignal.c: New file, from glibc with modifications.
37412         * lib/siglist.h: New file, from glibc with modifications.
37413         * lib/string.in.h (strsignal): New declaration.
37414         * m4/strsignal.m4: New file.
37415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37416         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37417         * modules/strsignal: New file.
37418         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37419         HAVE_DECL_STRSIGNAL.
37420
37421 2008-01-13  Bruno Haible  <bruno@clisp.org>
37422
37423         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37424         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37425         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37427
37428 2008-01-13  Bruno Haible  <bruno@clisp.org>
37429
37430         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37431         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37432         * lib/argp.h (__attribute__): Likewise.
37433         * lib/c-stack.c (__attribute__): Likewise.
37434         * lib/error.h (__attribute__): Likewise.
37435         * lib/fts.c (__attribute__): Likewise.
37436         * lib/openat.h (__attribute__): Likewise.
37437         * lib/stdio.in.h (__attribute__): Likewise.
37438         * lib/string.in.h (__attribute__): Likewise.
37439         * lib/utimens.c (__attribute__): Likewise.
37440         * lib/vasnprintf.h (__attribute__): Likewise.
37441         * lib/xalloc.h (__attribute__): Likewise.
37442         * lib/xprintf.h (__attribute__): Likewise.
37443         * lib/xstrtol.h (__attribute__): Likewise.
37444         * lib/xvasprintf.h (__attribute__): Likewise.
37445
37446 2008-01-12  Bruno Haible  <bruno@clisp.org>
37447
37448         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
37449         * doc/glibc-headers/a.out.texi: New file.
37450         * doc/glibc-headers/aliases.texi: New file.
37451         * doc/glibc-headers/alloca.texi: New file.
37452         * doc/glibc-headers/ar.texi: New file.
37453         * doc/glibc-headers/argp.texi: New file.
37454         * doc/glibc-headers/argz.texi: New file.
37455         * doc/glibc-headers/byteswap.texi: New file.
37456         * doc/glibc-headers/crypt.texi: New file.
37457         * doc/glibc-headers/endian.texi: New file.
37458         * doc/glibc-headers/envz.texi: New file.
37459         * doc/glibc-headers/err.texi: New file.
37460         * doc/glibc-headers/error.texi: New file.
37461         * doc/glibc-headers/execinfo.texi: New file.
37462         * doc/glibc-headers/fpu_control.texi: New file.
37463         * doc/glibc-headers/fstab.texi: New file.
37464         * doc/glibc-headers/fts.texi: New file.
37465         * doc/glibc-headers/getopt.texi: New file.
37466         * doc/glibc-headers/ieee754.texi: New file.
37467         * doc/glibc-headers/ifaddrs.texi: New file.
37468         * doc/glibc-headers/libintl.texi: New file.
37469         * doc/glibc-headers/mcheck.texi: New file.
37470         * doc/glibc-headers/mntent.texi: New file.
37471         * doc/glibc-headers/obstack.texi: New file.
37472         * doc/glibc-headers/paths.texi: New file.
37473         * doc/glibc-headers/printf.texi: New file.
37474         * doc/glibc-headers/pty.texi: New file.
37475         * doc/glibc-headers/resolv.texi: New file.
37476         * doc/glibc-headers/shadow.texi: New file.
37477         * doc/glibc-headers/sysexits.texi: New file.
37478         * doc/glibc-headers/ttyent.texi: New file.
37479
37480 2008-01-12  Jim Meyering  <meyering@redhat.com>
37481
37482         announce-gen: emit Gnulib's git-based version string.
37483         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37484         New option --gnulib-version=V, where V is expected to be
37485         the output of running git describe in the gnulib directory.
37486         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37487         not useful, and plan to stop publishing an xdelta file with each
37488         coreutils release.
37489
37490         * build-aux/announce-gen: Also check for lzma-compressed files.
37491
37492 2008-01-11  Bruno Haible  <bruno@clisp.org>
37493
37494         * tests/test-memmem.c (main): Increase maximum allowed time.
37495         * tests/test-strstr.c (main): Likewise.
37496
37497 2008-01-11  Bruno Haible  <bruno@clisp.org>
37498
37499         * doc/functions/memmem.texi: Add more precisions about platforms.
37500         * doc/functions/strstr.texi: Likewise.
37501
37502 2008-01-10  Eric Blake  <ebb9@byu.net>
37503
37504         * m4/strstr.m4: Delete cruft from copy-n-paste.
37505         Reported by Bruno Haible.
37506
37507 2008-01-10  Bruno Haible  <bruno@clisp.org>
37508
37509         Make c-strstr rely on strstr.
37510         * lib/c-strstr.c: Don't include str-kmp.h.
37511         (c_strstr): Define in terms of strstr.
37512         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37513         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37514
37515 2008-01-10  Bruno Haible  <bruno@clisp.org>
37516
37517         * doc/gnulib.texi (String Functions in C Locale): New section.
37518         * doc/c-ctype.texi: New file.
37519         * doc/c-strcase.texi: New file.
37520         * doc/c-strcaseeq.texi: New file.
37521         * doc/c-strcasestr.texi: New file.
37522         * doc/c-strstr.texi: New file.
37523         * doc/c-strtod.texi: New file.
37524         * doc/c-strtold.texi: New file.
37525
37526 2008-01-10  Eric Blake  <ebb9@byu.net>
37527
37528         * lib/relocatable.h: Fix a comment.
37529
37530 2008-01-10  Eric Blake  <ebb9@byu.net>
37531
37532         Share two-way algorithm.
37533         * lib/str-two-way.h: New file, merged from...
37534         * lib/memmem.c: ...here...
37535         * lib/strstr.c: ...and here.
37536         * modules/memmem (Files): Use it.
37537         * modules/strstr (Files): Likewise.
37538
37539         Avoid quadratic strstr implementations.
37540         * lib/strstr.c: New file.
37541         * m4/strstr.m4: Likewise.
37542         * modules/strstr: Likewise.
37543         * modules/strstr-tests: Likewise.
37544         * tests/test-strstr.c: Likewise.
37545         * lib/string.in.h (rpl_strstr): Declare.
37546         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37548         * modules/string (Makefile.am): Likewise.
37549         * MODULES.html.sh (string handling): Mention new module.
37550         * doc/functions/strstr.texi (strstr): Document the bug.
37551
37552 2008-01-10  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/relocatable.h (relocate): State whether result is freshly
37555         allocated or not.
37556         * lib/relocatable.c (relocate): Return a freshly allocated string
37557         instead of a pointer to a privately held string.
37558         Reported by Sylvain Beucler <beuc@gnu.org>.
37559
37560 2008-01-10  Colin Watson  <cjwatson@debian.org>
37561
37562         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37563         s/S_ISNLK/S_ISLNK/.
37564
37565 2008-01-09  Bruno Haible  <bruno@clisp.org>
37566
37567         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37568         and other files.
37569         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37570         if it's only a guess.
37571         * modules/memmem: Simplify by depending on memmem-simple.
37572
37573 2008-01-09  Bruno Haible  <bruno@clisp.org>
37574
37575         Work around OpenBSD 4.0 tdelete() bug.
37576         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37577         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37578         macros and don't redefine the enum values.
37579         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37580         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37581         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37582
37583 2008-01-09  Bruno Haible  <bruno@clisp.org>
37584
37585         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37586         (main): Don't perform the tests if setlocale did not install a UTF-8
37587         locale. Needed on OpenBSD 4.0.
37588         * modules/wcwidth-tests (Depends-on): Add localcharset.
37589
37590 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37591
37592         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37593         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37594         * NEWS: announce this.
37595         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37596
37597 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37598         and Eric Blake  <ebb9@byu.net>
37599
37600         Add memmem-simple module.
37601         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37602         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37603         * modules/memmem-simple: New file.
37604         * modules/memmem (Description): Tweak.
37605         * MODULES.html.sh (string handling): Mention new module.
37606         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37607         addressed by memmem-simple.
37608         * NEWS: Document the difference.
37609
37610 2008-01-09  Eric Blake  <ebb9@byu.net>
37611
37612         Give gcc some memmem optimization hints.
37613         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37614         (strcasestr): Declare as pure.
37615         * modules/memmem (Maintainer): Claim my implementation.
37616
37617 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37618
37619         Support AIX 6.1 and higher.
37620         * build-aux/config.libpath: Likewise.
37621         * build-aux/config.rpath: Likewise.
37622
37623 2008-01-08  Jim Meyering  <meyering@redhat.com>
37624             Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37627         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37628         Reported by Peter Fales in
37629         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37630
37631 2008-01-08  Bruno Haible  <bruno@clisp.org>
37632
37633         * modules/unictype/category-of (Depends-on): Add
37634         unictype/category-none.
37635         * modules/unictype/category-and-tests (Depends-on): Add
37636         unictype/category-{L,N,Lu,Nd}.
37637         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37638         * modules/unictype/category-or-tests (Depends-on): Add
37639         unictype/category-{L,N}.
37640         * modules/unictype/category-name-tests (Depends-on): Add
37641         unictype/category-{Z,Nl}.
37642         Reported by Simon Josefsson.
37643
37644 2008-01-08  Bruno Haible  <bruno@clisp.org>
37645
37646         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37647         convention better.
37648         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37649         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37650         Reported by Peter Miller <millerp@canb.auug.org.au>.
37651
37652 2008-01-08  Eric Blake  <ebb9@byu.net>
37653
37654         Rewrite memmem to guarantee linear complexity without malloc.
37655         * lib/memmem.c (memmem): Use Two-Way rather than
37656         Knuth-Morris-Pratt, to allow O(1) space usage.
37657         (critical_factorization, two_way_short_needle)
37658         (two_way_long_needle): New functions.
37659         (knuth_morris_pratt): Delete.
37660         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37661         Add stdint.
37662         * tests/test-memmem.c (main): Add tests for periodic needle and
37663         sublinear performance.
37664         * doc/functions/memmem.texi (memmem): Document other deficiencies
37665         in cygwin and older glibc.
37666
37667 2008-01-08  Bruno Haible  <bruno@clisp.org>
37668
37669         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37670         augmentation.
37671
37672 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37673
37674         Add a configure time option: --disable-acl.
37675         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37676         AC_ARG_ENABLE(acl).
37677
37678 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37679
37680         * tests/test-localename.c: Don't include obsolete "setenv.h".
37681
37682         * modules/localename-tests (Depends-on): Need unsetenv.
37683
37684 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37685
37686         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37687
37688 2008-01-06  Colin Watson  <cjwatson@debian.org>
37689
37690         * users.txt: Add man-db.
37691
37692 2008-01-07  Bruno Haible  <bruno@clisp.org>
37693
37694         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37695         previous section name.
37696
37697 2008-01-07  Bruno Haible  <bruno@clisp.org>
37698
37699         * lib/progname.c (set_program_name): Don't strip off a leading
37700         "lt-" prefix outside a .libs directory.
37701         Suggested by Paul Eggert.
37702
37703 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37704             Bruno Haible  <bruno@clisp.org>
37705
37706         Improve memory cleanup in 'relocatable' module.
37707         * lib/relocatable.h (compute_curr_prefix): Change return type to
37708         'char *'.
37709         * lib/relocatable.c (compute_curr_prefix): Change return type to
37710         'char *'. Free curr_installdir after use.
37711         (relocate): Free curr_prefix_better after use.
37712         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37713
37714 2008-01-01  Bruno Haible  <bruno@clisp.org>
37715
37716         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37717         failure on older glibc systems.
37718         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37719
37720 2008-01-05  Eric Blake  <ebb9@byu.net>
37721
37722         Avoid quadratic system memmem.
37723         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37724         Reported by Ralf Wildenhues.
37725
37726         Fix memmem test for mingw.
37727         * modules/memmem-tests (configure.ac): Check for alarm.
37728         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37729         it.
37730         * doc/functions/memmem.texi: New file.
37731         * doc/gnulib.texi (Function Substitutes): Add memmem.
37732         Reported by Bruno Haible.
37733
37734 2008-01-04  Bruno Haible  <bruno@clisp.org>
37735
37736         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37737         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37738         gl_HEADER_STRING_H_DEFAULTS.
37739
37740 2008-01-04  Eric Blake  <ebb9@byu.net>
37741
37742         Shorten duration of memmem test.
37743         * tests/test-memmem.c (main): Use alarm to declare failure if test
37744         is taking too long.
37745         Reported by Ralf Wildenhues.
37746
37747 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37748
37749         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37750         string, needed by strerror.
37751
37752 2008-01-03  Colin Watson  <cjwatson@debian.org>
37753             Bruno Haible  <bruno@clisp.org>
37754
37755         * doc/gnulib-tool.texi (Localization): New section.
37756
37757 2008-01-02  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37760         variables to 'unsigned char *' type.
37761         Reported by Paul Eggert.
37762
37763 2008-01-02  Jim Meyering  <jim@meyering.net>
37764
37765         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37766
37767 2007-12-31  Jim Meyering  <jim@meyering.net>
37768
37769         Avoid use of private FTS type name.
37770         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37771
37772 2007-12-30  Karl Berry  <karl@gnu.org>
37773
37774         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37775         work around defect in Texinfo and/or the standalone Info browser.
37776
37777 2007-12-30  Bruno Haible  <bruno@clisp.org>
37778
37779         Unify 5 copies of the KMP code.
37780         * lib/str-kmp.h: New file.
37781         * lib/c-strcasestr.c: Include str-kmp.h.
37782         (knuth_morris_pratt): Remove function.
37783         (c_strcasestr): Update.
37784         * lib/c-strstr.c: Include str-kmp.h.
37785         (knuth_morris_pratt): Remove function.
37786         (c_strcasestr): Update.
37787         * lib/mbscasestr.c: Include str-kmp.h.
37788         (knuth_morris_pratt_unibyte): Remove function.
37789         * lib/mbsstr.c: Include str-kmp.h.
37790         (knuth_morris_pratt_unibyte): Remove function.
37791         * lib/strcasestr.c: Include str-kmp.h.
37792         (knuth_morris_pratt): Remove function.
37793         (strcasestr): Update.
37794         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37795         * modules/c-strstr (Files): Likewise.
37796         * modules/mbscasestr (Files): Likewise.
37797         * modules/mbsstr (Files): Likewise.
37798         * modules/strcasestr (Files): Likewise.
37799         Suggested by Paul Eggert.
37800
37801 2007-12-30  Bruno Haible  <bruno@clisp.org>
37802
37803         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37804         defined.
37805
37806 2007-12-30  Bruno Haible  <bruno@clisp.org>
37807
37808         * lib/xmalloca.h: Include xalloc.h.
37809         (xnmalloca): New macro.
37810
37811 2007-12-30  Bruno Haible  <bruno@clisp.org>
37812
37813         * lib/malloca.h (nmalloca): New macro.
37814         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37815         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37816         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37817         knuth_morris_pratt_multibyte): Likewise.
37818         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37819         knuth_morris_pratt_multibyte): Likewise.
37820         * lib/memmem.c (knuth_morris_pratt): Likewise.
37821         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37822
37823 2007-12-25  Bruno Haible  <bruno@clisp.org>
37824
37825         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37826         * lib/glob.c: Don't include openat.h.
37827         (link_exists2_p): Add back the code that deals with the
37828         !GLOB_ALTDIRFUNC case.
37829         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37830         let it do the filename concatenation.
37831         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37832         * modules/glob (Depends-on): Remove openat.
37833
37834 2007-12-31  Bruno Haible  <bruno@clisp.org>
37835
37836         * modules/dirfd (License): Change to LGPLv2+.
37837         Approved by Jim Meyering.
37838
37839 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37840
37841         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37842         when multiplying M by sizeof (size_t).
37843
37844 2007-12-10  Martin Lambers  <marlam@marlam.de>
37845
37846         Override getpagesize on mingw.
37847         * lib/getpagesize.c: New file.
37848         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37849         * modules/getpagesize (Files): Add lib/getpagesize.c.
37850         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37852         REPLACE_GETPAGESIZE.
37853         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37854
37855 2007-12-25  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/localcharset (Notice): New field.
37858         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37859         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37860
37861 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37862             Bruno Haible  <bruno@clisp.org>
37863
37864         Avoid using the syntax symbol() in formatted documentation.
37865         * MODULES.html.sh (func_module): When replacing symbol() with a
37866         hyperlink, remove the parentheses. Show an error if some remain.
37867         Recognize and render the '...' syntax.
37868         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37869         Rework. Add paragraph about GCC's inlining.
37870         * doc/alloca.texi: Likewise.
37871         * doc/error.texi: Remove parentheses from symbol reference.
37872         * doc/gnulib-intro.texi: Likewise.
37873         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37874         * modules/fnmatch (Description): Reword to say "the ... function".
37875         * modules/full-read (Description): Likewise.
37876         * modules/full-write (Description): Likewise.
37877         * modules/safe-read (Description): Likewise.
37878         * modules/safe-write (Description): Likewise.
37879         * modules/strchrnul (Description): Likewise.
37880         * modules/trim (Description): Likewise.
37881         * modules/error (Description): Remove parentheses from symbol
37882         references.
37883         * modules/verror (Description): Likewise.
37884         Reported by Karl Berry.
37885
37886 2007-12-25  Bruno Haible  <bruno@clisp.org>
37887
37888         Fixup after 2007-10-16 commit.
37889         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37890
37891 2007-12-24  Bruno Haible  <bruno@clisp.org>
37892
37893         Make --enable-relocatable work with DESTDIR.
37894         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37895         to compute installdir from destprog.
37896         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37897         also set the RELOC_DESTDIR variable.
37898         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37899
37900 2007-12-24  Bruno Haible  <bruno@clisp.org>
37901
37902         Fix link error due to xalloc_die().
37903         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37904         of xreadlink.
37905         * lib/relocwrapper.c: Update comments.
37906         * build-aux/install-reloc: Remove xreadlink.c from file list.
37907         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37908         xreadlink.c.
37909         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37910
37911 2007-12-24  Bruno Haible  <bruno@clisp.org>
37912
37913         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37914         * lib/setenv.h: Remove file.
37915         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37916         lib/setenv.h.
37917         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37918         (Depends-on): Add stdlib.
37919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37920         gl_FUNC_UNSETENV.
37921         (Include): Replace setenv.h with <stdlib.h>.
37922         * modules/unsetenv: New file.
37923         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37924         * lib/unsetenv.c: Include <stdlib.h> first.
37925         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37926         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37927         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37928         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37929         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37930         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37932         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37933         * doc/functions/unsetenv.texi: Update.
37934         * modules/xsetenv (Depends-on): Add unsetenv.
37935         * modules/getdate (Depends-on): Likewise.
37936         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37937         * lib/xsetenv.c: Don't include setenv.h.
37938         * lib/getdate.y: Likewise.
37939         * lib/relocwrapper.c: Likewise.
37940         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37941         (Depends-on): Add stdlib.
37942         * NEWS: Mention the changes.
37943         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37944
37945 2007-12-23  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37948         indentation.
37949
37950 2007-12-23  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/c-strcasestr.c: Add more comments.
37953         * lib/c-strstr.c: Likewise.
37954         * lib/mbscasestr.c: Likewise.
37955         * lib/mbsstr.c: Likewise.
37956         * lib/strcasestr.c: Likewise.
37957         * lib/memmem.c: Likewise.
37958
37959 2007-12-23  Bruno Haible  <bruno@clisp.org>
37960
37961         * tests/test-memmem.c: Include <string.h> first.
37962
37963 2007-12-22  Bruno Haible  <bruno@clisp.org>
37964
37965         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37966         the contents of $testsbase.
37967         Reported by Ralf Wildenhues.
37968
37969 2007-12-22  Bruno Haible  <bruno@clisp.org>
37970
37971         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37972         two variables local_ldadd_before, local_ldadd_last.
37973
37974 2007-12-20  Eric Blake  <ebb9@byu.net>
37975
37976         Work around circular library issue when cross-compiling.
37977         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37978         that progname.o does not need to pull in rpl_memcmp.
37979
37980 2007-12-19  Eric Blake  <ebb9@byu.net>
37981
37982         Fix memmem to avoid O(n^2) worst-case complexity.
37983         * lib/memmem.c (knuth_morris_pratt): New function.
37984         (memmem): Use it if first few naive iterations fail.
37985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37986         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37987         * modules/memchr (License): Likewise.
37988         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37989         malloca.
37990         * tests/test-memmem.c: Rewrite, borrowing ideas from
37991         test-mbsstr1.c; the old version wouldn't even compile!
37992         * modules/memmem-tests: New file.
37993         * lib/string.in.h (rpl_memmem): Add declaration.
37994         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37996         REPLACE_MEMMEM.
37997
37998 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37999
38000         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
38001         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
38002         before any system include files, and undef after them all.  This
38003         should fix a problem on VMS reported by John E. Malmberg in
38004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
38005
38006 2007-12-17  Eric Blake  <ebb9@byu.net>
38007
38008         Revert addition of verify, for BSD/OS.
38009         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
38010         can't handle large files, for the sake of obsolete platforms.
38011         * modules/fseeko (Depends-on): Remove verify.
38012         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
38013         * doc/functions/ftello.texi (ftello): Likewise.
38014         * doc/functions/fgetpos.texi (fgetpos): Likewise.
38015         Reported by Larry Jones.
38016
38017 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
38018
38019         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
38020         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
38021
38022 2007-12-17  Jim Meyering  <meyering@redhat.com>
38023
38024         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
38025         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
38026         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
38027         * modules/getcwd (Depends-on): Add openat.
38028         Reported by Petr Salinger.
38029
38030 2007-12-17  Bruno Haible  <bruno@clisp.org>
38031
38032         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
38033         avoid a segmentation fault of the configure test on x86_64 systems.
38034
38035 2007-12-15  Jim Meyering  <meyering@redhat.com>
38036
38037         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
38038
38039 2007-12-13  Eric Blake  <ebb9@byu.net>
38040
38041         Another fseek test.
38042         * tests/test-fseek.c (main): Also test ungetc handling.
38043         * tests/test-fseeko.c (main): Likewise.
38044         * modules/fseeko (Depends-on): Add verify.
38045         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
38046         large.
38047         Reported by Larry Jones.
38048
38049         Fix fseeko on mingw.
38050         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
38051         seek.
38052
38053         Beef up fseek tests.
38054         * tests/test-fseek.c (main): Also test eof handling.
38055         * tests/test-fseeko.c (main): Likewise.
38056         Reported by Larry Jones.
38057
38058 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
38059
38060         Fix fseeko on BSD-based platforms.
38061         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
38062         successful seek.
38063
38064 2007-12-12  Eric Blake  <ebb9@byu.net>
38065
38066         Allow circular dependency of separate libtests.a
38067         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
38068         when use_libtests.
38069
38070 2007-12-11  Eric Blake  <ebb9@byu.net>
38071
38072         Fix bug with -0.0L in previous patch.
38073         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
38074         * tests/test-isnan.c (main): Also test on zeroes.
38075         * tests/test-isnanf.c (main): Likewise.
38076         * tests/test-isnanl.h (main): Likewise.
38077
38078         Detect pseudo-denormals on x86 even when cross-compiling.
38079         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
38080         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
38081         invalid bit patterns that happen to satisfy ==.
38082
38083         Avoid link failures with separate libtests.a.
38084         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
38085         last, to satisfy circular dependencies.
38086
38087 2007-12-11  Eric Blake  <ebb9@byu.net>
38088         and Bruno Haible  <bruno@clisp.org>
38089
38090         Fix OpenBSD 4.0 <float.h> handling of long double.
38091         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
38092         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
38093         * doc/headers/float.texi (float.h): Document OpenBSD bug.
38094
38095 2007-12-11  Jim Meyering  <meyering@redhat.com>
38096
38097         * users.txt: Add libvirt.
38098
38099         Support versions of autoconf prior to 2.59c.
38100         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
38101         if it is not already defined.
38102
38103 2007-12-09  Bruno Haible  <bruno@clisp.org>
38104
38105         Let 'gnulib-tool --import' collect sources needed for the tests in
38106         tests/ rather than in lib/.
38107         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
38108         argument. If true, add rules to generate libtests.a, and put libtests.a
38109         into $(LDADD). Consider source files in subdirectories and set
38110         uses_subdirs.
38111         (func_emit_initmacro_start, func_emit_initmacro_end,
38112         func_emit_initmacro_done): Pass all arguments explicitly.
38113         (func_import): Determine two module lists main_modules,
38114         testsrelated_modules. Determine use_libtests. Determine two variables
38115         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
38116         instead of just sed_transform_lib_file. Determine two variables
38117         main_files and testsrelated_files. Compute 'files' as the union of
38118         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
38119         func_add_or_update. In the generated gnulib-comp.m4, collect the
38120         object files for tests/ in different variables than those for lib/.
38121         Substitute LIBTESTS_LIBDEPS.
38122         (func_create_testdir): Combine the uses_subdirs results from
38123         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
38124
38125 2007-12-09  Bruno Haible  <bruno@clisp.org>
38126
38127         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
38128         the build-aux directory.
38129
38130 2007-12-09  Bruno Haible  <bruno@clisp.org>
38131
38132         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
38133         introduced on 2006-09-09.
38134
38135 2007-12-07  Jim Meyering  <meyering@redhat.com>
38136
38137         Let these macros work also with autoconf-2.59.
38138         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
38139         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
38140         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38141
38142 2007-12-06  Jim Meyering  <meyering@redhat.com>
38143
38144         Avoid a configure-time syntax error in gl_FUNC_ACL.
38145         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
38146         function in each branch, before testing the cache variable.
38147
38148 2007-12-04  Eric Blake  <ebb9@byu.net>
38149
38150         Make scripts executable.
38151         * build-aux/config.guess: Add execute permissions.
38152         * build-aux/config.sub: Likewise.
38153         * build-aux/gendocs.sh: Likewise.
38154
38155         Fix frexp on mingw.
38156         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
38157         cross-compiling.
38158         * doc/functions/frexp.texi (frexp): Document the bug.
38159
38160         Make cygwin fseeko check more reliable.
38161         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
38162         version numbers, rather than unrelated feature check.
38163         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
38164         * doc/functions/ftello.texi (ftello): Likewise.
38165         Reported by Bruno Haible.
38166
38167         * m4/strerror.m4: Bump version number.
38168
38169 2007-12-03  Bruno Haible  <bruno@clisp.org>
38170
38171         * doc/functions/mprotect.texi: Mention the mingw problem.
38172
38173 2007-12-03  Eric Blake  <ebb9@byu.net>
38174
38175         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
38176         REPLACE_STRERROR is initialized before this macro.
38177
38178 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38179
38180         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
38181         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
38182         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
38183         put -lsec in even for programs other than 'ls'.  This fixes a problem
38184         for gettext reported by Bruno Haible in
38185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
38186         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
38187         Add support for Solaris 10.  This isn't efficient, but should get the
38188         job done for now.
38189
38190 2007-12-03  James Youngman  <jay@gnu.org>
38191
38192         * doc/regexprops-generic.texi: change "an close-group" to "a
38193         close-group" and "illegal" to "not allowed".
38194
38195 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38196
38197         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
38198         pr_byname.h. Needed for the rare case when the maintainer has done
38199         "make maintainer-clean" in the source directory and then attempts a
38200         build outside the source directory.
38201         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
38202         scripts_byname.h.
38203
38204 2007-12-02  Martin Lambers <marlam@marlam.de>
38205             Bruno Haible  <bruno@clisp.org>
38206
38207         * lib/getpagesize.h: Remove file.
38208         * lib/unistd.in.h: Include declaration of getpagesize here.
38209         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
38210         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
38211         HAVE_SYS_PARAM_H.
38212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
38213         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38214         * modules/getpagesize (Files): Remove lib/getpagesize.h.
38215         (Depends-on): Add unistd.
38216         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38217         (Include): Use <unistd.h> instead of getpagesize.h.
38218         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
38219         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38220         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
38221         gl_GETPAGESIZE invocation, already handled by module dependency.
38222         * lib/pagealign_alloc.c: Don't include getpagesize.h.
38223
38224 2007-12-02  Bruno Haible  <bruno@clisp.org>
38225
38226         * modules/strings-tests: New file.
38227         * tests/test-strings.c: New file.
38228
38229         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
38230         * lib/strings.in.h: New file.
38231         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
38232         * m4/strings_h.m4: New file.
38233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
38234         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
38235         * modules/strings: New file.
38236         * modules/string (Makefile.am): Update.
38237         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
38238         Reported by Karl Berry.
38239
38240 2007-12-01  Eric Blake  <ebb9@byu.net>
38241
38242         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
38243         accomodate fix in cygwin 1.5.25.
38244
38245 2007-12-01  Jim Meyering  <meyering@redhat.com>
38246
38247         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
38248         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
38249         that would inhibit utf8-optimization of a regexp containing line-
38250         or buffer-anchors, e.g., `^', `$'.
38251
38252 2007-11-30  Bruno Haible  <bruno@clisp.org>
38253
38254         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
38255         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
38256         glthread_recursive_lock_init.
38257         * lib/lock.c (glthread_recursive_lock_init)
38258         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
38259         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38260
38261 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
38262
38263         New function qset_acl, like set_acl but with syscall semantics.
38264         * lib/acl.h (qset_acl): New decl.
38265         * lib/acl.c (qset_acl): New function.
38266         (set_acl): Use new function.  Use more-consistent diagnostics.
38267
38268 2007-11-28  Jim Meyering  <meyering@redhat.com>
38269
38270         * modules/physmem (License): Change from GPL to LGPLv2+.
38271
38272 2007-11-26  Bruno Haible  <bruno@clisp.org>
38273
38274         * lib/vasnprintf.c (decode_long_double): Don't abort if the
38275         'long double' type has excess precision.
38276         Reported by Jim Meyering in
38277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
38278
38279 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38280
38281         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
38282         Sync from <http://gnu.org/licenses>.
38283         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
38284         with license text from same location.
38285         * doc/maintain.texi, doc/standards.texi:  Sync from
38286         <http://savannah.gnu.org/projects/gnustandards>.
38287
38288 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
38289         and Jim Meyering  <meyering@redhat.com>
38290
38291         Adjust getdate' grammar to accept a slightly more regular language.
38292         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
38293         Before, the former was rejected.
38294         * lib/getdate.y (digits_to_date_time): New function, factored
38295         out of ...
38296         (number): ...here.  Just call digits_to_date_time.
38297         (hybrid): New non-terminal to handle an <unsigned number,
38298         signed relative offset> sequence consistently.
38299
38300 2007-11-18  Jim Meyering  <meyering@redhat.com>
38301
38302         Pull my changes from coreutils:
38303         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
38304         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
38305         use of $gnulib_tool_option_extras, so that it's separated from the
38306         preceding argument.
38307
38308         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
38309         * build-aux/bootstrap (cp_mark_as_generated): Create any required
38310         parent destination directories before copying a file into place.
38311
38312 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38313
38314         bootstrap: work also with 4-argument variant of AC_INIT
38315         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
38316
38317 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38318
38319         Port test-getaddrinfo to Solaris.
38320         Problem reported by Bruno Haible in
38321         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
38322         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
38323         explanation of setting 'hints'.
38324         Don't reject an implementation merely because it returns EAI_SERVICE.
38325         (EAI_SERVICE): Define to 0 if not defined.
38326
38327 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38328
38329         The license of gnu-make and posix-shell is now "GPLed build tool".
38330         * modules/gnu-make (License): Likewise.
38331         * modules/posix-shell (License): Likewise.
38332
38333         New module posix-shell, for determining a POSIX shell
38334         or perhaps something that is close enough to a POSIX shell.
38335         * m4/posix-shell.m4: New file.
38336         * modules/posix-shell: New file.
38337
38338         * MODULES.html.sh: Mention new module.
38339
38340         New module gnu-make, for determining whether we're using GNU Make.
38341         * m4/gnu-make.m4: New file.
38342         * modules/gnu-make: New file.
38343         * MODULES.html.sh: Mention new module.
38344
38345 2007-11-14  Jim Meyering  <meyering@redhat.com>
38346
38347         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
38348         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
38349         use this macro to create a function _definition_.
38350         Remove useless "#undef ARGMATCH_DIE".
38351
38352 2007-11-14  Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/config.charset: Update for OpenBSD 4.1.
38355         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
38356
38357 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
38358
38359         Document 64-bit #if problems in stdint.texi.
38360         * doc/headers/stdint.texi (stdint.h): Mention problems with
38361         64-bit-#if, and how to work around them.
38362
38363         Don't insist on 'long long int' support in the preprocessor.  It
38364         breaks too many things.  For example, PRIdMAX still uses a 'long
38365         long int' format with the latest Sun compiler, even though
38366         HAVE_LONG_LONG_INT isn't defined due to that compiler's
38367         preprocessor problem.  This causes the latest coreutils to dump
38368         core on Solaris 10 sparc with the Sun C compiler.
38369         Instead, fix the 2007-10-16 problem in a different way, by evaluating
38370         the troublesome expressions at configure-time, not at #if-time.
38371         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
38372         preprocessor.
38373         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
38374         compile-time C checks, done at 'configure'-time.
38375         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
38376         * modules/inttypes (Makefile): Substitute the new symbols that
38377         gl_INTTYPES_H now generates.
38378         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
38379
38380 2007-11-12  Bruno Haible  <bruno@clisp.org>
38381
38382         Tests for Unicode character classification functions.
38383
38384         * modules/unictype/bidicategory-byname-tests: New file.
38385         * modules/unictype/bidicategory-name-tests: New file.
38386         * modules/unictype/bidicategory-of-tests: New file.
38387         * modules/unictype/bidicategory-test-tests: New file.
38388         * modules/unictype/block-list-tests: New file.
38389         * modules/unictype/block-of-tests: New file.
38390         * modules/unictype/block-test-tests: New file.
38391         * modules/unictype/category-C-tests: New file.
38392         * modules/unictype/category-Cc-tests: New file.
38393         * modules/unictype/category-Cf-tests: New file.
38394         * modules/unictype/category-Cn-tests: New file.
38395         * modules/unictype/category-Co-tests: New file.
38396         * modules/unictype/category-Cs-tests: New file.
38397         * modules/unictype/category-L-tests: New file.
38398         * modules/unictype/category-Ll-tests: New file.
38399         * modules/unictype/category-Lm-tests: New file.
38400         * modules/unictype/category-Lo-tests: New file.
38401         * modules/unictype/category-Lt-tests: New file.
38402         * modules/unictype/category-Lu-tests: New file.
38403         * modules/unictype/category-M-tests: New file.
38404         * modules/unictype/category-Mc-tests: New file.
38405         * modules/unictype/category-Me-tests: New file.
38406         * modules/unictype/category-Mn-tests: New file.
38407         * modules/unictype/category-N-tests: New file.
38408         * modules/unictype/category-Nd-tests: New file.
38409         * modules/unictype/category-Nl-tests: New file.
38410         * modules/unictype/category-No-tests: New file.
38411         * modules/unictype/category-P-tests: New file.
38412         * modules/unictype/category-Pc-tests: New file.
38413         * modules/unictype/category-Pd-tests: New file.
38414         * modules/unictype/category-Pe-tests: New file.
38415         * modules/unictype/category-Pf-tests: New file.
38416         * modules/unictype/category-Pi-tests: New file.
38417         * modules/unictype/category-Po-tests: New file.
38418         * modules/unictype/category-Ps-tests: New file.
38419         * modules/unictype/category-S-tests: New file.
38420         * modules/unictype/category-Sc-tests: New file.
38421         * modules/unictype/category-Sk-tests: New file.
38422         * modules/unictype/category-Sm-tests: New file.
38423         * modules/unictype/category-So-tests: New file.
38424         * modules/unictype/category-Z-tests: New file.
38425         * modules/unictype/category-Zl-tests: New file.
38426         * modules/unictype/category-Zp-tests: New file.
38427         * modules/unictype/category-Zs-tests: New file.
38428         * modules/unictype/category-and-not-tests: New file.
38429         * modules/unictype/category-and-tests: New file.
38430         * modules/unictype/category-byname-tests: New file.
38431         * modules/unictype/category-name-tests: New file.
38432         * modules/unictype/category-none-tests: New file.
38433         * modules/unictype/category-of-tests: New file.
38434         * modules/unictype/category-or-tests: New file.
38435         * modules/unictype/category-test-withtable-tests: New file.
38436         * modules/unictype/combining-class-tests: New file.
38437         * modules/unictype/ctype-alnum-tests: New file.
38438         * modules/unictype/ctype-alpha-tests: New file.
38439         * modules/unictype/ctype-blank-tests: New file.
38440         * modules/unictype/ctype-cntrl-tests: New file.
38441         * modules/unictype/ctype-digit-tests: New file.
38442         * modules/unictype/ctype-graph-tests: New file.
38443         * modules/unictype/ctype-lower-tests: New file.
38444         * modules/unictype/ctype-print-tests: New file.
38445         * modules/unictype/ctype-punct-tests: New file.
38446         * modules/unictype/ctype-space-tests: New file.
38447         * modules/unictype/ctype-upper-tests: New file.
38448         * modules/unictype/ctype-xdigit-tests: New file.
38449         * modules/unictype/decimal-digit-tests: New file.
38450         * modules/unictype/digit-tests: New file.
38451         * modules/unictype/mirror-tests: New file.
38452         * modules/unictype/numeric-tests: New file.
38453         * modules/unictype/property-alphabetic-tests: New file.
38454         * modules/unictype/property-ascii-hex-digit-tests: New file.
38455         * modules/unictype/property-bidi-arabic-digit-tests: New file.
38456         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
38457         * modules/unictype/property-bidi-block-separator-tests: New file.
38458         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
38459         * modules/unictype/property-bidi-common-separator-tests: New file.
38460         * modules/unictype/property-bidi-control-tests: New file.
38461         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38462         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38463         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38464         * modules/unictype/property-bidi-european-digit-tests: New file.
38465         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38466         * modules/unictype/property-bidi-left-to-right-tests: New file.
38467         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38468         * modules/unictype/property-bidi-other-neutral-tests: New file.
38469         * modules/unictype/property-bidi-pdf-tests: New file.
38470         * modules/unictype/property-bidi-segment-separator-tests: New file.
38471         * modules/unictype/property-bidi-whitespace-tests: New file.
38472         * modules/unictype/property-byname-tests: New file.
38473         * modules/unictype/property-combining-tests: New file.
38474         * modules/unictype/property-composite-tests: New file.
38475         * modules/unictype/property-currency-symbol-tests: New file.
38476         * modules/unictype/property-dash-tests: New file.
38477         * modules/unictype/property-decimal-digit-tests: New file.
38478         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38479         * modules/unictype/property-deprecated-tests: New file.
38480         * modules/unictype/property-diacritic-tests: New file.
38481         * modules/unictype/property-extender-tests: New file.
38482         * modules/unictype/property-format-control-tests: New file.
38483         * modules/unictype/property-grapheme-base-tests: New file.
38484         * modules/unictype/property-grapheme-extend-tests: New file.
38485         * modules/unictype/property-grapheme-link-tests: New file.
38486         * modules/unictype/property-hex-digit-tests: New file.
38487         * modules/unictype/property-hyphen-tests: New file.
38488         * modules/unictype/property-id-continue-tests: New file.
38489         * modules/unictype/property-id-start-tests: New file.
38490         * modules/unictype/property-ideographic-tests: New file.
38491         * modules/unictype/property-ids-binary-operator-tests: New file.
38492         * modules/unictype/property-ids-trinary-operator-tests: New file.
38493         * modules/unictype/property-ignorable-control-tests: New file.
38494         * modules/unictype/property-iso-control-tests: New file.
38495         * modules/unictype/property-join-control-tests: New file.
38496         * modules/unictype/property-left-of-pair-tests: New file.
38497         * modules/unictype/property-line-separator-tests: New file.
38498         * modules/unictype/property-logical-order-exception-tests: New file.
38499         * modules/unictype/property-lowercase-tests: New file.
38500         * modules/unictype/property-math-tests: New file.
38501         * modules/unictype/property-non-break-tests: New file.
38502         * modules/unictype/property-not-a-character-tests: New file.
38503         * modules/unictype/property-numeric-tests: New file.
38504         * modules/unictype/property-other-alphabetic-tests: New file.
38505         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38506         * modules/unictype/property-other-grapheme-extend-tests: New file.
38507         * modules/unictype/property-other-id-continue-tests: New file.
38508         * modules/unictype/property-other-id-start-tests: New file.
38509         * modules/unictype/property-other-lowercase-tests: New file.
38510         * modules/unictype/property-other-math-tests: New file.
38511         * modules/unictype/property-other-uppercase-tests: New file.
38512         * modules/unictype/property-paired-punctuation-tests: New file.
38513         * modules/unictype/property-paragraph-separator-tests: New file.
38514         * modules/unictype/property-pattern-syntax-tests: New file.
38515         * modules/unictype/property-pattern-white-space-tests: New file.
38516         * modules/unictype/property-private-use-tests: New file.
38517         * modules/unictype/property-punctuation-tests: New file.
38518         * modules/unictype/property-quotation-mark-tests: New file.
38519         * modules/unictype/property-radical-tests: New file.
38520         * modules/unictype/property-sentence-terminal-tests: New file.
38521         * modules/unictype/property-soft-dotted-tests: New file.
38522         * modules/unictype/property-space-tests: New file.
38523         * modules/unictype/property-terminal-punctuation-tests: New file.
38524         * modules/unictype/property-test-tests: New file.
38525         * modules/unictype/property-titlecase-tests: New file.
38526         * modules/unictype/property-unassigned-code-value-tests: New file.
38527         * modules/unictype/property-unified-ideograph-tests: New file.
38528         * modules/unictype/property-uppercase-tests: New file.
38529         * modules/unictype/property-variation-selector-tests: New file.
38530         * modules/unictype/property-white-space-tests: New file.
38531         * modules/unictype/property-xid-continue-tests: New file.
38532         * modules/unictype/property-xid-start-tests: New file.
38533         * modules/unictype/property-zero-width-tests: New file.
38534         * modules/unictype/scripts-tests: New file.
38535         * modules/unictype/syntax-c-ident-tests: New file.
38536         * modules/unictype/syntax-c-whitespace-tests: New file.
38537         * modules/unictype/syntax-java-ident-tests: New file.
38538         * modules/unictype/syntax-java-whitespace-tests: New file.
38539         * tests/unictype/test-bidi_byname.c: New file.
38540         * tests/unictype/test-bidi_name.c: New file.
38541         * tests/unictype/test-bidi_of.c: New file.
38542         * tests/unictype/test-bidi_test.c: New file.
38543         * tests/unictype/test-block_list.c: New file.
38544         * tests/unictype/test-block_of.c: New file.
38545         * tests/unictype/test-block_test.c: New file.
38546         * tests/unictype/test-categ_and.c: New file.
38547         * tests/unictype/test-categ_and_not.c: New file.
38548         * tests/unictype/test-categ_byname.c: New file.
38549         * tests/unictype/test-categ_name.c: New file.
38550         * tests/unictype/test-categ_none.c: New file.
38551         * tests/unictype/test-categ_of.c: New file.
38552         * tests/unictype/test-categ_or.c: New file.
38553         * tests/unictype/test-categ_test_withtable.c: New file.
38554         * tests/unictype/test-combining.c: New file.
38555         * tests/unictype/test-decdigit.c: New file.
38556         * tests/unictype/test-digit.c: New file.
38557         * tests/unictype/test-mirror.c: New file.
38558         * tests/unictype/test-numeric.c: New file.
38559         * tests/unictype/test-pr_byname.c: New file.
38560         * tests/unictype/test-pr_test.c: New file.
38561         * tests/unictype/test-predicate-part1.h: New file.
38562         * tests/unictype/test-predicate-part2.h: New file.
38563         * tests/unictype/test-scripts.c: New file.
38564         * tests/unictype/test-sy_c_ident.c: New file.
38565         * tests/unictype/test-sy_java_ident.c: New file.
38566
38567         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38568         for Unicode 5.0.0.
38569         * tests/unictype/test-categ_Cc.c: Likewise.
38570         * tests/unictype/test-categ_Cf.c: Likewise.
38571         * tests/unictype/test-categ_Cn.c: Likewise.
38572         * tests/unictype/test-categ_Co.c: Likewise.
38573         * tests/unictype/test-categ_Cs.c: Likewise.
38574         * tests/unictype/test-categ_L.c: Likewise.
38575         * tests/unictype/test-categ_Ll.c: Likewise.
38576         * tests/unictype/test-categ_Lm.c: Likewise.
38577         * tests/unictype/test-categ_Lo.c: Likewise.
38578         * tests/unictype/test-categ_Lt.c: Likewise.
38579         * tests/unictype/test-categ_Lu.c: Likewise.
38580         * tests/unictype/test-categ_M.c: Likewise.
38581         * tests/unictype/test-categ_Mc.c: Likewise.
38582         * tests/unictype/test-categ_Me.c: Likewise.
38583         * tests/unictype/test-categ_Mn.c: Likewise.
38584         * tests/unictype/test-categ_N.c: Likewise.
38585         * tests/unictype/test-categ_Nd.c: Likewise.
38586         * tests/unictype/test-categ_Nl.c: Likewise.
38587         * tests/unictype/test-categ_No.c: Likewise.
38588         * tests/unictype/test-categ_P.c: Likewise.
38589         * tests/unictype/test-categ_Pc.c: Likewise.
38590         * tests/unictype/test-categ_Pd.c: Likewise.
38591         * tests/unictype/test-categ_Pe.c: Likewise.
38592         * tests/unictype/test-categ_Pf.c: Likewise.
38593         * tests/unictype/test-categ_Pi.c: Likewise.
38594         * tests/unictype/test-categ_Po.c: Likewise.
38595         * tests/unictype/test-categ_Ps.c: Likewise.
38596         * tests/unictype/test-categ_S.c: Likewise.
38597         * tests/unictype/test-categ_Sc.c: Likewise.
38598         * tests/unictype/test-categ_Sk.c: Likewise.
38599         * tests/unictype/test-categ_Sm.c: Likewise.
38600         * tests/unictype/test-categ_So.c: Likewise.
38601         * tests/unictype/test-categ_Z.c: Likewise.
38602         * tests/unictype/test-categ_Zl.c: Likewise.
38603         * tests/unictype/test-categ_Zp.c: Likewise.
38604         * tests/unictype/test-categ_Zs.c: Likewise.
38605         * tests/unictype/test-ctype_alnum.c: Likewise.
38606         * tests/unictype/test-ctype_alpha.c: Likewise.
38607         * tests/unictype/test-ctype_blank.c: Likewise.
38608         * tests/unictype/test-ctype_cntrl.c: Likewise.
38609         * tests/unictype/test-ctype_digit.c: Likewise.
38610         * tests/unictype/test-ctype_graph.c: Likewise.
38611         * tests/unictype/test-ctype_lower.c: Likewise.
38612         * tests/unictype/test-ctype_print.c: Likewise.
38613         * tests/unictype/test-ctype_punct.c: Likewise.
38614         * tests/unictype/test-ctype_space.c: Likewise.
38615         * tests/unictype/test-ctype_upper.c: Likewise.
38616         * tests/unictype/test-ctype_xdigit.c: Likewise.
38617         * tests/unictype/test-decdigit.h: Likewise.
38618         * tests/unictype/test-digit.h: Likewise.
38619         * tests/unictype/test-numeric.h: Likewise.
38620         * tests/unictype/test-pr_alphabetic.c: Likewise.
38621         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38622         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38623         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38624         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38625         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38626         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38627         * tests/unictype/test-pr_bidi_control.c: Likewise.
38628         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38629         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38630         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38631         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38632         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38633         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38634         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38635         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38636         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38637         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38638         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38639         * tests/unictype/test-pr_combining.c: Likewise.
38640         * tests/unictype/test-pr_composite.c: Likewise.
38641         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38642         * tests/unictype/test-pr_dash.c: Likewise.
38643         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38644         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38645         * tests/unictype/test-pr_deprecated.c: Likewise.
38646         * tests/unictype/test-pr_diacritic.c: Likewise.
38647         * tests/unictype/test-pr_extender.c: Likewise.
38648         * tests/unictype/test-pr_format_control.c: Likewise.
38649         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38650         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38651         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38652         * tests/unictype/test-pr_hex_digit.c: Likewise.
38653         * tests/unictype/test-pr_hyphen.c: Likewise.
38654         * tests/unictype/test-pr_id_continue.c: Likewise.
38655         * tests/unictype/test-pr_id_start.c: Likewise.
38656         * tests/unictype/test-pr_ideographic.c: Likewise.
38657         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38658         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38659         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38660         * tests/unictype/test-pr_iso_control.c: Likewise.
38661         * tests/unictype/test-pr_join_control.c: Likewise.
38662         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38663         * tests/unictype/test-pr_line_separator.c: Likewise.
38664         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38665         * tests/unictype/test-pr_lowercase.c: Likewise.
38666         * tests/unictype/test-pr_math.c: Likewise.
38667         * tests/unictype/test-pr_non_break.c: Likewise.
38668         * tests/unictype/test-pr_not_a_character.c: Likewise.
38669         * tests/unictype/test-pr_numeric.c: Likewise.
38670         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38671         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38672         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38673         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38674         * tests/unictype/test-pr_other_id_start.c: Likewise.
38675         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38676         * tests/unictype/test-pr_other_math.c: Likewise.
38677         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38678         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38679         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38680         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38681         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38682         * tests/unictype/test-pr_private_use.c: Likewise.
38683         * tests/unictype/test-pr_punctuation.c: Likewise.
38684         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38685         * tests/unictype/test-pr_radical.c: Likewise.
38686         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38687         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38688         * tests/unictype/test-pr_space.c: Likewise.
38689         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38690         * tests/unictype/test-pr_titlecase.c: Likewise.
38691         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38692         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38693         * tests/unictype/test-pr_uppercase.c: Likewise.
38694         * tests/unictype/test-pr_variation_selector.c: Likewise.
38695         * tests/unictype/test-pr_white_space.c: Likewise.
38696         * tests/unictype/test-pr_xid_continue.c: Likewise.
38697         * tests/unictype/test-pr_xid_start.c: Likewise.
38698         * tests/unictype/test-pr_zero_width.c: Likewise.
38699         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38700         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38701
38702 2007-11-12  Bruno Haible  <bruno@clisp.org>
38703
38704         Unicode character classification functions.
38705         * lib/unictype.h: New file.
38706         * modules/unictype/base: New file.
38707         * modules/unictype/category-L: New file.
38708         * modules/unictype/category-Lu: New file.
38709         * modules/unictype/category-Ll: New file.
38710         * modules/unictype/category-Lt: New file.
38711         * modules/unictype/category-Lm: New file.
38712         * modules/unictype/category-Lo: New file.
38713         * modules/unictype/category-M: New file.
38714         * modules/unictype/category-Mn: New file.
38715         * modules/unictype/category-Mc: New file.
38716         * modules/unictype/category-Me: New file.
38717         * modules/unictype/category-N: New file.
38718         * modules/unictype/category-Nd: New file.
38719         * modules/unictype/category-Nl: New file.
38720         * modules/unictype/category-No: New file.
38721         * modules/unictype/category-P: New file.
38722         * modules/unictype/category-Pc: New file.
38723         * modules/unictype/category-Pd: New file.
38724         * modules/unictype/category-Ps: New file.
38725         * modules/unictype/category-Pe: New file.
38726         * modules/unictype/category-Pi: New file.
38727         * modules/unictype/category-Pf: New file.
38728         * modules/unictype/category-Po: New file.
38729         * modules/unictype/category-S: New file.
38730         * modules/unictype/category-Sm: New file.
38731         * modules/unictype/category-Sc: New file.
38732         * modules/unictype/category-Sk: New file.
38733         * modules/unictype/category-So: New file.
38734         * modules/unictype/category-Z: New file.
38735         * modules/unictype/category-Zs: New file.
38736         * modules/unictype/category-Zl: New file.
38737         * modules/unictype/category-Zp: New file.
38738         * modules/unictype/category-C: New file.
38739         * modules/unictype/category-Cc: New file.
38740         * modules/unictype/category-Cf: New file.
38741         * modules/unictype/category-Cs: New file.
38742         * modules/unictype/category-Co: New file.
38743         * modules/unictype/category-Cn: New file.
38744         * modules/unictype/category-or: New file.
38745         * modules/unictype/category-of: New file.
38746         * modules/unictype/category-test: New file.
38747         * modules/unictype/category-test-withtable: New file.
38748         * modules/unictype/category-byname: New file.
38749         * modules/unictype/category-none: New file.
38750         * modules/unictype/category-and: New file.
38751         * modules/unictype/category-and-not: New file.
38752         * modules/unictype/category-name: New file.
38753         * modules/unictype/combining-class: New file.
38754         * modules/unictype/category-all: New file.
38755         * modules/unictype/bidicategory-all: New file.
38756         * modules/unictype/bidicategory-byname: New file.
38757         * modules/unictype/bidicategory-name: New file.
38758         * modules/unictype/bidicategory-of: New file.
38759         * modules/unictype/bidicategory-test: New file.
38760         * modules/unictype/decimal-digit: New file.
38761         * modules/unictype/digit: New file.
38762         * modules/unictype/numeric: New file.
38763         * modules/unictype/mirror: New file.
38764         * modules/unictype/property-white-space: New file.
38765         * modules/unictype/property-alphabetic: New file.
38766         * modules/unictype/property-other-alphabetic: New file.
38767         * modules/unictype/property-not-a-character: New file.
38768         * modules/unictype/property-default-ignorable-code-point: New file.
38769         * modules/unictype/property-other-default-ignorable-code-point: New
38770         file.
38771         * modules/unictype/property-deprecated: New file.
38772         * modules/unictype/property-logical-order-exception: New file.
38773         * modules/unictype/property-variation-selector: New file.
38774         * modules/unictype/property-private-use: New file.
38775         * modules/unictype/property-unassigned-code-value: New file.
38776         * modules/unictype/property-uppercase: New file.
38777         * modules/unictype/property-other-uppercase: New file.
38778         * modules/unictype/property-lowercase: New file.
38779         * modules/unictype/property-other-lowercase: New file.
38780         * modules/unictype/property-titlecase: New file.
38781         * modules/unictype/property-soft-dotted: New file.
38782         * modules/unictype/property-id-start: New file.
38783         * modules/unictype/property-other-id-start: New file.
38784         * modules/unictype/property-id-continue: New file.
38785         * modules/unictype/property-other-id-continue: New file.
38786         * modules/unictype/property-xid-start: New file.
38787         * modules/unictype/property-xid-continue: New file.
38788         * modules/unictype/property-pattern-white-space: New file.
38789         * modules/unictype/property-pattern-syntax: New file.
38790         * modules/unictype/property-join-control: New file.
38791         * modules/unictype/property-grapheme-base: New file.
38792         * modules/unictype/property-grapheme-extend: New file.
38793         * modules/unictype/property-other-grapheme-extend: New file.
38794         * modules/unictype/property-grapheme-link: New file.
38795         * modules/unictype/property-bidi-control: New file.
38796         * modules/unictype/property-bidi-left-to-right: New file.
38797         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38798         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38799         * modules/unictype/property-bidi-european-digit: New file.
38800         * modules/unictype/property-bidi-eur-num-separator: New file.
38801         * modules/unictype/property-bidi-eur-num-terminator: New file.
38802         * modules/unictype/property-bidi-arabic-digit: New file.
38803         * modules/unictype/property-bidi-common-separator: New file.
38804         * modules/unictype/property-bidi-block-separator: New file.
38805         * modules/unictype/property-bidi-segment-separator: New file.
38806         * modules/unictype/property-bidi-whitespace: New file.
38807         * modules/unictype/property-bidi-non-spacing-mark: New file.
38808         * modules/unictype/property-bidi-boundary-neutral: New file.
38809         * modules/unictype/property-bidi-pdf: New file.
38810         * modules/unictype/property-bidi-embedding-or-override: New file.
38811         * modules/unictype/property-bidi-other-neutral: New file.
38812         * modules/unictype/property-hex-digit: New file.
38813         * modules/unictype/property-ascii-hex-digit: New file.
38814         * modules/unictype/property-ideographic: New file.
38815         * modules/unictype/property-unified-ideograph: New file.
38816         * modules/unictype/property-radical: New file.
38817         * modules/unictype/property-ids-binary-operator: New file.
38818         * modules/unictype/property-ids-trinary-operator: New file.
38819         * modules/unictype/property-zero-width: New file.
38820         * modules/unictype/property-space: New file.
38821         * modules/unictype/property-non-break: New file.
38822         * modules/unictype/property-iso-control: New file.
38823         * modules/unictype/property-format-control: New file.
38824         * modules/unictype/property-dash: New file.
38825         * modules/unictype/property-hyphen: New file.
38826         * modules/unictype/property-punctuation: New file.
38827         * modules/unictype/property-line-separator: New file.
38828         * modules/unictype/property-paragraph-separator: New file.
38829         * modules/unictype/property-quotation-mark: New file.
38830         * modules/unictype/property-sentence-terminal: New file.
38831         * modules/unictype/property-terminal-punctuation: New file.
38832         * modules/unictype/property-currency-symbol: New file.
38833         * modules/unictype/property-math: New file.
38834         * modules/unictype/property-other-math: New file.
38835         * modules/unictype/property-paired-punctuation: New file.
38836         * modules/unictype/property-left-of-pair: New file.
38837         * modules/unictype/property-combining: New file.
38838         * modules/unictype/property-composite: New file.
38839         * modules/unictype/property-decimal-digit: New file.
38840         * modules/unictype/property-numeric: New file.
38841         * modules/unictype/property-diacritic: New file.
38842         * modules/unictype/property-extender: New file.
38843         * modules/unictype/property-ignorable-control: New file.
38844         * modules/unictype/property-test: New file.
38845         * modules/unictype/property-byname: New file.
38846         * modules/unictype/property-all: New file.
38847         * modules/unictype/scripts: New file.
38848         * modules/unictype/scripts-all: New file.
38849         * modules/unictype/block-of: New file.
38850         * modules/unictype/block-test: New file.
38851         * modules/unictype/block-list: New file.
38852         * modules/unictype/block-all: New file.
38853         * modules/unictype/syntax-c-whitespace: New file.
38854         * modules/unictype/syntax-java-whitespace: New file.
38855         * modules/unictype/syntax-c-ident: New file.
38856         * modules/unictype/syntax-java-ident: New file.
38857         * modules/unictype/ctype-alnum: New file.
38858         * modules/unictype/ctype-alpha: New file.
38859         * modules/unictype/ctype-cntrl: New file.
38860         * modules/unictype/ctype-digit: New file.
38861         * modules/unictype/ctype-graph: New file.
38862         * modules/unictype/ctype-lower: New file.
38863         * modules/unictype/ctype-print: New file.
38864         * modules/unictype/ctype-punct: New file.
38865         * modules/unictype/ctype-space: New file.
38866         * modules/unictype/ctype-upper: New file.
38867         * modules/unictype/ctype-xdigit: New file.
38868         * modules/unictype/ctype-blank: New file.
38869         * lib/unictype/bidi_byname.c: New file.
38870         * lib/unictype/bidi_name.c: New file.
38871         * lib/unictype/bidi_of.c: New file.
38872         * lib/unictype/bidi_test.c: New file.
38873         * lib/unictype/bitmap.h: New file.
38874         * lib/unictype/block_test.c: New file.
38875         * lib/unictype/blocks.c: New file.
38876         * lib/unictype/categ_C.c: New file.
38877         * lib/unictype/categ_Cc.c: New file.
38878         * lib/unictype/categ_Cf.c: New file.
38879         * lib/unictype/categ_Cn.c: New file.
38880         * lib/unictype/categ_Co.c: New file.
38881         * lib/unictype/categ_Cs.c: New file.
38882         * lib/unictype/categ_L.c: New file.
38883         * lib/unictype/categ_Ll.c: New file.
38884         * lib/unictype/categ_Lm.c: New file.
38885         * lib/unictype/categ_Lo.c: New file.
38886         * lib/unictype/categ_Lt.c: New file.
38887         * lib/unictype/categ_Lu.c: New file.
38888         * lib/unictype/categ_M.c: New file.
38889         * lib/unictype/categ_Mc.c: New file.
38890         * lib/unictype/categ_Me.c: New file.
38891         * lib/unictype/categ_Mn.c: New file.
38892         * lib/unictype/categ_N.c: New file.
38893         * lib/unictype/categ_Nd.c: New file.
38894         * lib/unictype/categ_Nl.c: New file.
38895         * lib/unictype/categ_No.c: New file.
38896         * lib/unictype/categ_P.c: New file.
38897         * lib/unictype/categ_Pc.c: New file.
38898         * lib/unictype/categ_Pd.c: New file.
38899         * lib/unictype/categ_Pe.c: New file.
38900         * lib/unictype/categ_Pf.c: New file.
38901         * lib/unictype/categ_Pi.c: New file.
38902         * lib/unictype/categ_Po.c: New file.
38903         * lib/unictype/categ_Ps.c: New file.
38904         * lib/unictype/categ_S.c: New file.
38905         * lib/unictype/categ_Sc.c: New file.
38906         * lib/unictype/categ_Sk.c: New file.
38907         * lib/unictype/categ_Sm.c: New file.
38908         * lib/unictype/categ_So.c: New file.
38909         * lib/unictype/categ_Z.c: New file.
38910         * lib/unictype/categ_Zl.c: New file.
38911         * lib/unictype/categ_Zp.c: New file.
38912         * lib/unictype/categ_Zs.c: New file.
38913         * lib/unictype/categ_and.c: New file.
38914         * lib/unictype/categ_and_not.c: New file.
38915         * lib/unictype/categ_byname.c: New file.
38916         * lib/unictype/categ_name.c: New file.
38917         * lib/unictype/categ_none.c: New file.
38918         * lib/unictype/categ_of.c: New file.
38919         * lib/unictype/categ_or.c: New file.
38920         * lib/unictype/categ_test.c: New file.
38921         * lib/unictype/combining.c: New file.
38922         * lib/unictype/ctype_alnum.c: New file.
38923         * lib/unictype/ctype_alpha.c: New file.
38924         * lib/unictype/ctype_blank.c: New file.
38925         * lib/unictype/ctype_cntrl.c: New file.
38926         * lib/unictype/ctype_digit.c: New file.
38927         * lib/unictype/ctype_graph.c: New file.
38928         * lib/unictype/ctype_lower.c: New file.
38929         * lib/unictype/ctype_print.c: New file.
38930         * lib/unictype/ctype_punct.c: New file.
38931         * lib/unictype/ctype_space.c: New file.
38932         * lib/unictype/ctype_upper.c: New file.
38933         * lib/unictype/ctype_xdigit.c: New file.
38934         * lib/unictype/decdigit.c: New file.
38935         * lib/unictype/digit.c: New file.
38936         * lib/unictype/identsyntaxmap.h: New file.
38937         * lib/unictype/mirror.c: New file.
38938         * lib/unictype/numeric.c: New file.
38939         * lib/unictype/pr_alphabetic.c: New file.
38940         * lib/unictype/pr_ascii_hex_digit.c: New file.
38941         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38942         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38943         * lib/unictype/pr_bidi_block_separator.c: New file.
38944         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38945         * lib/unictype/pr_bidi_common_separator.c: New file.
38946         * lib/unictype/pr_bidi_control.c: New file.
38947         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38948         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38949         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38950         * lib/unictype/pr_bidi_european_digit.c: New file.
38951         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38952         * lib/unictype/pr_bidi_left_to_right.c: New file.
38953         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38954         * lib/unictype/pr_bidi_other_neutral.c: New file.
38955         * lib/unictype/pr_bidi_pdf.c: New file.
38956         * lib/unictype/pr_bidi_segment_separator.c: New file.
38957         * lib/unictype/pr_bidi_whitespace.c: New file.
38958         * lib/unictype/pr_byname.c: New file.
38959         * lib/unictype/pr_byname.gperf: New file.
38960         * lib/unictype/pr_combining.c: New file.
38961         * lib/unictype/pr_composite.c: New file.
38962         * lib/unictype/pr_currency_symbol.c: New file.
38963         * lib/unictype/pr_dash.c: New file.
38964         * lib/unictype/pr_decimal_digit.c: New file.
38965         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38966         * lib/unictype/pr_deprecated.c: New file.
38967         * lib/unictype/pr_diacritic.c: New file.
38968         * lib/unictype/pr_extender.c: New file.
38969         * lib/unictype/pr_format_control.c: New file.
38970         * lib/unictype/pr_grapheme_base.c: New file.
38971         * lib/unictype/pr_grapheme_extend.c: New file.
38972         * lib/unictype/pr_grapheme_link.c: New file.
38973         * lib/unictype/pr_hex_digit.c: New file.
38974         * lib/unictype/pr_hyphen.c: New file.
38975         * lib/unictype/pr_id_continue.c: New file.
38976         * lib/unictype/pr_id_start.c: New file.
38977         * lib/unictype/pr_ideographic.c: New file.
38978         * lib/unictype/pr_ids_binary_operator.c: New file.
38979         * lib/unictype/pr_ids_trinary_operator.c: New file.
38980         * lib/unictype/pr_ignorable_control.c: New file.
38981         * lib/unictype/pr_iso_control.c: New file.
38982         * lib/unictype/pr_join_control.c: New file.
38983         * lib/unictype/pr_left_of_pair.c: New file.
38984         * lib/unictype/pr_line_separator.c: New file.
38985         * lib/unictype/pr_logical_order_exception.c: New file.
38986         * lib/unictype/pr_lowercase.c: New file.
38987         * lib/unictype/pr_math.c: New file.
38988         * lib/unictype/pr_non_break.c: New file.
38989         * lib/unictype/pr_not_a_character.c: New file.
38990         * lib/unictype/pr_numeric.c: New file.
38991         * lib/unictype/pr_other_alphabetic.c: New file.
38992         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38993         * lib/unictype/pr_other_grapheme_extend.c: New file.
38994         * lib/unictype/pr_other_id_continue.c: New file.
38995         * lib/unictype/pr_other_id_start.c: New file.
38996         * lib/unictype/pr_other_lowercase.c: New file.
38997         * lib/unictype/pr_other_math.c: New file.
38998         * lib/unictype/pr_other_uppercase.c: New file.
38999         * lib/unictype/pr_paired_punctuation.c: New file.
39000         * lib/unictype/pr_paragraph_separator.c: New file.
39001         * lib/unictype/pr_pattern_syntax.c: New file.
39002         * lib/unictype/pr_pattern_white_space.c: New file.
39003         * lib/unictype/pr_private_use.c: New file.
39004         * lib/unictype/pr_punctuation.c: New file.
39005         * lib/unictype/pr_quotation_mark.c: New file.
39006         * lib/unictype/pr_radical.c: New file.
39007         * lib/unictype/pr_sentence_terminal.c: New file.
39008         * lib/unictype/pr_soft_dotted.c: New file.
39009         * lib/unictype/pr_space.c: New file.
39010         * lib/unictype/pr_terminal_punctuation.c: New file.
39011         * lib/unictype/pr_test.c: New file.
39012         * lib/unictype/pr_titlecase.c: New file.
39013         * lib/unictype/pr_unassigned_code_value.c: New file.
39014         * lib/unictype/pr_unified_ideograph.c: New file.
39015         * lib/unictype/pr_uppercase.c: New file.
39016         * lib/unictype/pr_variation_selector.c: New file.
39017         * lib/unictype/pr_white_space.c: New file.
39018         * lib/unictype/pr_xid_continue.c: New file.
39019         * lib/unictype/pr_xid_start.c: New file.
39020         * lib/unictype/pr_zero_width.c: New file.
39021         * lib/unictype/scripts.c: New file.
39022         * lib/unictype/sy_c_ident.c: New file.
39023         * lib/unictype/sy_c_whitespace.c: New file.
39024         * lib/unictype/sy_java_ident.c: New file.
39025         * lib/unictype/sy_java_whitespace.c: New file.
39026
39027         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
39028         Unicode 5.0.0.
39029         * lib/unictype/blocks.h: Likewise.
39030         * lib/unictype/categ_C.h: Likewise.
39031         * lib/unictype/categ_Cc.h: Likewise.
39032         * lib/unictype/categ_Cf.h: Likewise.
39033         * lib/unictype/categ_Cn.h: Likewise.
39034         * lib/unictype/categ_Co.h: Likewise.
39035         * lib/unictype/categ_Cs.h: Likewise.
39036         * lib/unictype/categ_L.h: Likewise.
39037         * lib/unictype/categ_Ll.h: Likewise.
39038         * lib/unictype/categ_Lm.h: Likewise.
39039         * lib/unictype/categ_Lo.h: Likewise.
39040         * lib/unictype/categ_Lt.h: Likewise.
39041         * lib/unictype/categ_Lu.h: Likewise.
39042         * lib/unictype/categ_M.h: Likewise.
39043         * lib/unictype/categ_Mc.h: Likewise.
39044         * lib/unictype/categ_Me.h: Likewise.
39045         * lib/unictype/categ_Mn.h: Likewise.
39046         * lib/unictype/categ_N.h: Likewise.
39047         * lib/unictype/categ_Nd.h: Likewise.
39048         * lib/unictype/categ_Nl.h: Likewise.
39049         * lib/unictype/categ_No.h: Likewise.
39050         * lib/unictype/categ_P.h: Likewise.
39051         * lib/unictype/categ_Pc.h: Likewise.
39052         * lib/unictype/categ_Pd.h: Likewise.
39053         * lib/unictype/categ_Pe.h: Likewise.
39054         * lib/unictype/categ_Pf.h: Likewise.
39055         * lib/unictype/categ_Pi.h: Likewise.
39056         * lib/unictype/categ_Po.h: Likewise.
39057         * lib/unictype/categ_Ps.h: Likewise.
39058         * lib/unictype/categ_S.h: Likewise.
39059         * lib/unictype/categ_Sc.h: Likewise.
39060         * lib/unictype/categ_Sk.h: Likewise.
39061         * lib/unictype/categ_Sm.h: Likewise.
39062         * lib/unictype/categ_So.h: Likewise.
39063         * lib/unictype/categ_Z.h: Likewise.
39064         * lib/unictype/categ_Zl.h: Likewise.
39065         * lib/unictype/categ_Zp.h: Likewise.
39066         * lib/unictype/categ_Zs.h: Likewise.
39067         * lib/unictype/categ_of.h: Likewise.
39068         * lib/unictype/combining.h: Likewise.
39069         * lib/unictype/ctype_alnum.h: Likewise.
39070         * lib/unictype/ctype_alpha.h: Likewise.
39071         * lib/unictype/ctype_blank.h: Likewise.
39072         * lib/unictype/ctype_cntrl.h: Likewise.
39073         * lib/unictype/ctype_digit.h: Likewise.
39074         * lib/unictype/ctype_graph.h: Likewise.
39075         * lib/unictype/ctype_lower.h: Likewise.
39076         * lib/unictype/ctype_print.h: Likewise.
39077         * lib/unictype/ctype_punct.h: Likewise.
39078         * lib/unictype/ctype_space.h: Likewise.
39079         * lib/unictype/ctype_upper.h: Likewise.
39080         * lib/unictype/ctype_xdigit.h: Likewise.
39081         * lib/unictype/decdigit.h: Likewise.
39082         * lib/unictype/digit.h: Likewise.
39083         * lib/unictype/mirror.h: Likewise.
39084         * lib/unictype/numeric.h: Likewise.
39085         * lib/unictype/pr_alphabetic.h: Likewise.
39086         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39087         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39088         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39089         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39090         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39091         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39092         * lib/unictype/pr_bidi_control.h: Likewise.
39093         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39094         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39095         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39096         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39097         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39098         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39099         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39100         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39101         * lib/unictype/pr_bidi_pdf.h: Likewise.
39102         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39103         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39104         * lib/unictype/pr_combining.h: Likewise.
39105         * lib/unictype/pr_composite.h: Likewise.
39106         * lib/unictype/pr_currency_symbol.h: Likewise.
39107         * lib/unictype/pr_dash.h: Likewise.
39108         * lib/unictype/pr_decimal_digit.h: Likewise.
39109         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39110         * lib/unictype/pr_deprecated.h: Likewise.
39111         * lib/unictype/pr_diacritic.h: Likewise.
39112         * lib/unictype/pr_extender.h: Likewise.
39113         * lib/unictype/pr_format_control.h: Likewise.
39114         * lib/unictype/pr_grapheme_base.h: Likewise.
39115         * lib/unictype/pr_grapheme_extend.h: Likewise.
39116         * lib/unictype/pr_grapheme_link.h: Likewise.
39117         * lib/unictype/pr_hex_digit.h: Likewise.
39118         * lib/unictype/pr_hyphen.h: Likewise.
39119         * lib/unictype/pr_id_continue.h: Likewise.
39120         * lib/unictype/pr_id_start.h: Likewise.
39121         * lib/unictype/pr_ideographic.h: Likewise.
39122         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39123         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39124         * lib/unictype/pr_ignorable_control.h: Likewise.
39125         * lib/unictype/pr_iso_control.h: Likewise.
39126         * lib/unictype/pr_join_control.h: Likewise.
39127         * lib/unictype/pr_left_of_pair.h: Likewise.
39128         * lib/unictype/pr_line_separator.h: Likewise.
39129         * lib/unictype/pr_logical_order_exception.h: Likewise.
39130         * lib/unictype/pr_lowercase.h: Likewise.
39131         * lib/unictype/pr_math.h: Likewise.
39132         * lib/unictype/pr_non_break.h: Likewise.
39133         * lib/unictype/pr_not_a_character.h: Likewise.
39134         * lib/unictype/pr_numeric.h: Likewise.
39135         * lib/unictype/pr_other_alphabetic.h: Likewise.
39136         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39137         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39138         * lib/unictype/pr_other_id_continue.h: Likewise.
39139         * lib/unictype/pr_other_id_start.h: Likewise.
39140         * lib/unictype/pr_other_lowercase.h: Likewise.
39141         * lib/unictype/pr_other_math.h: Likewise.
39142         * lib/unictype/pr_other_uppercase.h: Likewise.
39143         * lib/unictype/pr_paired_punctuation.h: Likewise.
39144         * lib/unictype/pr_paragraph_separator.h: Likewise.
39145         * lib/unictype/pr_pattern_syntax.h: Likewise.
39146         * lib/unictype/pr_pattern_white_space.h: Likewise.
39147         * lib/unictype/pr_private_use.h: Likewise.
39148         * lib/unictype/pr_punctuation.h: Likewise.
39149         * lib/unictype/pr_quotation_mark.h: Likewise.
39150         * lib/unictype/pr_radical.h: Likewise.
39151         * lib/unictype/pr_sentence_terminal.h: Likewise.
39152         * lib/unictype/pr_soft_dotted.h: Likewise.
39153         * lib/unictype/pr_space.h: Likewise.
39154         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39155         * lib/unictype/pr_titlecase.h: Likewise.
39156         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39157         * lib/unictype/pr_unified_ideograph.h: Likewise.
39158         * lib/unictype/pr_uppercase.h: Likewise.
39159         * lib/unictype/pr_variation_selector.h: Likewise.
39160         * lib/unictype/pr_white_space.h: Likewise.
39161         * lib/unictype/pr_xid_continue.h: Likewise.
39162         * lib/unictype/pr_xid_start.h: Likewise.
39163         * lib/unictype/pr_zero_width.h: Likewise.
39164         * lib/unictype/scripts.h: Likewise.
39165         * lib/unictype/scripts_byname.gperf: Likewise.
39166         * lib/unictype/sy_c_ident.h: Likewise.
39167         * lib/unictype/sy_c_whitespace.h: Likewise.
39168         * lib/unictype/sy_java_ident.h: Likewise.
39169         * lib/unictype/sy_java_whitespace.h: Likewise.
39170
39171         * lib/unictype/Makefile: New file.
39172         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
39173         glibc.
39174         * lib/unictype/3level.h: New file, copied from glibc.
39175         * lib/unictype/3levelbit.h: New file.
39176
39177 2007-11-11  Bruno Haible  <bruno@clisp.org>
39178
39179         * modules/gperf: New file.
39180         * modules/iconv_open (Depends-on): Add it.
39181         (Makefile.am): Remove the GPERF definition.
39182
39183 2007-11-11  Bruno Haible  <bruno@clisp.org>
39184
39185         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
39186         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
39187
39188 2007-11-11  Bruno Haible  <bruno@clisp.org>
39189
39190         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
39191         (usage): Remove function.
39192
39193 2007-11-11  Bruno Haible  <bruno@clisp.org>
39194
39195         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
39196         gl_FUNC_CEILF_LIBS.
39197         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
39198         gl_FUNC_CEIL_LIBS.
39199         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
39200         gl_FUNC_CEILL_LIBS.
39201         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
39202         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
39203         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
39204
39205 2007-11-11  Bruno Haible  <bruno@clisp.org>
39206
39207         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
39208         roundf were declared but do not exist on functions.
39209         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
39210         roundl were declared but do not exist on functions.
39211         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
39212         HAVE_FLOORL_AND_CEILL, respectively.
39213         Needed for Sun C on Solaris 10.
39214
39215 2007-11-11  Bruno Haible  <bruno@clisp.org>
39216
39217         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
39218         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
39219         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
39220         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
39221         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
39222         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
39223         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
39224         HAVE_DECL_ROUNDF.
39225         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
39226         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
39227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
39228         of HAVE_DECL_ROUND*.
39229         * modules/math (Makefile.am): Update.
39230
39231 2007-11-10  Bruno Haible  <bruno@clisp.org>
39232
39233         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
39234         ptrdiff_t as m4/intl.m4.
39235
39236 2007-11-10  Jim Meyering  <meyering@redhat.com>
39237
39238         Avoid link failure for the argmatch test.
39239         * tests/test-argmatch.c (usage): Define function to avoid a link
39240         failure: argmatch_die requires a usage function.
39241
39242 2007-11-09  Bruno Haible  <bruno@clisp.org>
39243
39244         * doc/functions/snprintf.texi: Mention BeOS deficiency.
39245         * doc/functions/vsnprintf.texi: Likewise.
39246         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
39247         with a size argument < 2.
39248
39249 2007-11-09  Bruno Haible  <bruno@clisp.org>
39250
39251         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
39252         buffer. Fixes an inefficiency introduced on 2007-11-03.
39253
39254 2007-11-09  Bruno Haible  <bruno@clisp.org>
39255
39256         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
39257         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
39258
39259 2007-11-08  Jim Meyering  <meyering@redhat.com>
39260
39261         Change cache variable name prefix "jm_" to "gl_" everywhere.
39262         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
39263         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
39264         * m4/uptime.m4: s/gl_/jm_/
39265
39266 2007-11-07  Bruno Haible  <bruno@clisp.org>
39267
39268         Update to GNU gettext 0.17.
39269         * m4/intl.m4: Update to GNU gettext 0.17.
39270         * m4/po.m4: Likewise.
39271         * modules/gettext (Files): Remove m4/ulonglong.m4.
39272         (configure.ac): Require gettext infrastructure from version 0.17.
39273
39274 2007-11-06  Bruno Haible  <bruno@clisp.org>
39275
39276         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
39277         symbolic values are not defined in a public header.
39278         * lib/freadable.c (freadable) [QNX]: Likewise.
39279         * lib/freadahead.c (freadahead) [QNX]: Likewise.
39280         * lib/freading.c (freading) [QNX]: Likewise.
39281         * lib/fseterr.c (fseterr) [QNX]: Likewise.
39282         * lib/fwritable.c (fwritable) [QNX]: Likewise.
39283         * lib/fwriting.c (fwriting) [QNX]: Likewise.
39284         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
39285         Reported by Alain Magloire.
39286
39287         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
39288
39289 2007-11-05  Bruno Haible  <bruno@clisp.org>
39290
39291         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
39292         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
39293         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
39294         Reported by Eric Blake.
39295
39296 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39297             Bruno Haible  <bruno@clisp.org>
39298
39299         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
39300         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
39301         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
39302         (malloc): Undefine also before including <stdlib.h>.
39303         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
39304         Needed on OSF/1 4.0.
39305
39306 2007-11-05  Jim Meyering  <meyering@redhat.com>
39307
39308         git-version-gen: sync from coreutils.
39309         * build-aux/git-version-gen: Add comments.
39310         Change the first '-' to '.' in the snapshot version string,
39311         e.g., 6.9-377-08144 -> 6.9.377-08144
39312         Remove first parameter.
39313         Don't declare a version "-dirty" merely because a time
39314         stamp has changed.
39315
39316 2007-11-04  Bruno Haible  <bruno@clisp.org>
39317
39318         * lib/lock.h: Protect all macro definitions containing an 'if'
39319         statement through a "do { ... } while (0)".
39320         * lib/tls.h: Likewise.
39321
39322 2007-11-04  Bruno Haible  <bruno@clisp.org>
39323
39324         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
39325
39326 2007-11-04  Bruno Haible  <bruno@clisp.org>
39327
39328         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
39329         * modules/fprintf-posix (Depends-on): Add nocrash.
39330         * modules/snprintf-posix (Depends-on): Likewise.
39331         * modules/sprintf-posix (Depends-on): Likewise.
39332         * modules/vasnprintf-posix (Depends-on): Likewise.
39333         * modules/vasprintf-posix (Depends-on): Likewise.
39334         * modules/vfprintf-posix (Depends-on): Likewise.
39335         * modules/vsnprintf-posix (Depends-on): Likewise.
39336         * modules/vsprintf-posix (Depends-on): Likewise.
39337         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39338         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39339         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39340         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39341         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39342         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39343         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39344
39345 2007-11-04  Bruno Haible  <bruno@clisp.org>
39346
39347         * modules/nocrash: New file.
39348         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
39349         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
39350
39351 2007-11-04  Bruno Haible  <bruno@clisp.org>
39352
39353         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
39354         precision handling.
39355         * tests/test-vasprintf-posix.c (test_function): Likewise.
39356         * tests/test-snprintf-posix.h (test_function): Likewise.
39357         * tests/test-sprintf-posix.h (test_function): Likewise.
39358
39359         Fix *printf behaviour for large precisions on mingw and BeOS.
39360         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
39361         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
39362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
39363         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39365         gl_PRINTF_PRECISION and test its result. Invoke
39366         gl_PREREQ_VASNPRINTF_PRECISION.
39367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39368         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39374         * doc/functions/fprintf.texi: Update.
39375         * doc/functions/printf.texi: Update.
39376         * doc/functions/snprintf.texi: Update.
39377         * doc/functions/sprintf.texi: Update.
39378         * doc/functions/vfprintf.texi: Update.
39379         * doc/functions/vprintf.texi: Update.
39380         * doc/functions/vsnprintf.texi: Update.
39381         * doc/functions/vsprintf.texi: Update.
39382
39383 2007-11-04  Bruno Haible  <bruno@clisp.org>
39384
39385         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
39386
39387 2007-11-04  Bruno Haible  <bruno@clisp.org>
39388
39389         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
39390         Reported by Sylvain Beucler <beuc@gnu.org>.
39391
39392 2007-11-03  Bruno Haible  <bruno@clisp.org>
39393
39394         * tests/test-fprintf-posix2.sh: New file.
39395         * tests/test-fprintf-posix2.c: New file.
39396         * modules/fprintf-posix-tests (Files): Add them.
39397         (TESTS): Add test-fprintf-posix2.sh.
39398         (configure.ac): Check for getrlimit and setrlimit.
39399         (check_PROGRAMS): Add test-fprintf-posix2.
39400
39401         * tests/test-printf-posix2.sh: New file.
39402         * tests/test-printf-posix2.c: New file.
39403         * modules/printf-posix-tests (Files): Add them.
39404         (TESTS): Add test-printf-posix2.sh.
39405         (configure.ac): Check for getrlimit and setrlimit.
39406         (check_PROGRAMS): Add test-printf-posix2.
39407
39408         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39409         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39410         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39411         (decode_double): New function, copied from decode_long_double.
39412         (scale10_round_decimal_decoded): New function, extracted from
39413         scale10_round_decimal_long_double.
39414         (scale10_round_decimal_long_double): Use it.
39415         (scale10_round_decimal_double): New function.
39416         (floorlog10): New function.
39417         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39419         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39421         gl_PRINTF_ENOMEM and test its result. Invoke
39422         gl_PREREQ_VASNPRINTF_ENOMEM.
39423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39424         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39425         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39426         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39430         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39431         * modules/snprintf-posix (Depends-on): Likewise.
39432         * modules/sprintf-posix (Depends-on): Likewise.
39433         * modules/vasnprintf-posix (Depends-on): Likewise.
39434         * modules/vasprintf-posix (Depends-on): Likewise.
39435         * modules/vfprintf-posix (Depends-on): Likewise.
39436         * modules/vsnprintf-posix (Depends-on): Likewise.
39437         * modules/vsprintf-posix (Depends-on): Likewise.
39438         * doc/functions/fprintf.texi: Update.
39439         * doc/functions/printf.texi: Update.
39440         * doc/functions/snprintf.texi: Update.
39441         * doc/functions/sprintf.texi: Update.
39442         * doc/functions/vfprintf.texi: Update.
39443         * doc/functions/vprintf.texi: Update.
39444         * doc/functions/vsnprintf.texi: Update.
39445         * doc/functions/vsprintf.texi: Update.
39446
39447 2007-11-03  Bruno Haible  <bruno@clisp.org>
39448
39449         * modules/frexp-nolibm-tests: New file.
39450
39451         * modules/frexp-nolibm: New file.
39452         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
39453
39454 2007-11-03  Bruno Haible  <bruno@clisp.org>
39455
39456         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
39457         value is C99 compliant.
39458         Needed for OSF/1 5.1.
39459
39460 2007-11-03  Bruno Haible  <bruno@clisp.org>
39461
39462         Fix out-of-memory handling of vasnprintf.
39463         * lib/printf-parse.c: Include <errno.h>.
39464         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39465         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39466         is already set.
39467
39468 2007-11-02  Eric Blake  <ebb9@byu.net>
39469
39470         Fix tests on cygwin.
39471         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39472
39473 2007-11-01  Bruno Haible  <bruno@clisp.org>
39474
39475         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39476         warning.
39477         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39478         needed for POSIX compatibility.
39479
39480 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39481
39482         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39483         for compatibility with GNU.
39484
39485 2007-11-01  Bruno Haible  <bruno@clisp.org>
39486
39487         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39488         (putenv): Renamed from rpl_putenv. Change argument type from
39489         'const char *' to 'char *'.
39490         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39491         of defining putenv in config.h, just set REPLACE_PUTENV.
39492         * modules/putenv (Depends-on): Add stdlib.
39493         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39494         (Include): Use <stdlib.h>.
39495         * lib/stdlib.in.h (putenv): New declaration.
39496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39497         REPLACE_PUTENV.
39498         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39499         REPLACE_PUTENV.
39500         Needed for MacOS X 10.5.0.
39501         Reported by Peter O'Gorman <peter@pogma.com>.
39502
39503 2007-11-01  Jim Meyering  <meyering@redhat.com>
39504
39505         Treat an empty date string exactly like "0".
39506         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39507         if the remaining date string (to be parsed) is empty, use "0".
39508         Reported by Mischa Molhoek and discussed in this thread:
39509         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39510
39511 2007-10-31  Bruno Haible  <bruno@clisp.org>
39512
39513         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39514         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39515         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39516         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39517         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39518         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39519
39520 2007-10-31  Bruno Haible  <bruno@clisp.org>
39521
39522         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39523         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39524         (AC_TYPE_LONG_LONG_INT): Use it.
39525         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39526         it as well.
39527         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39528         to m4/longlong.m4.
39529         * modules/stdint (Files): Remove m4/ulonglong.m4.
39530         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39531         m4/ulonglong.m4.
39532         * modules/strtoumax (Files): Likewise.
39533
39534 2007-10-30  Bruno Haible  <bruno@clisp.org>
39535
39536         * modules/xvasprintf-posix: New file.
39537         Suggested by Eric Blake.
39538
39539 2007-10-30  Bruno Haible  <bruno@clisp.org>
39540
39541         * modules/xprintf-posix-tests: New file.
39542         * tests/test-xprintf-posix.sh: New file.
39543         * tests/test-xprintf-posix.c: New file.
39544         * tests/test-xfprintf-posix.c: New file.
39545
39546         * modules/xprintf-posix: New file.
39547
39548 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39549
39550         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39551         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39552         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39553
39554 2007-10-29  Bruno Haible  <bruno@clisp.org>
39555
39556         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39557         contain the special marker '_cv_'.
39558         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39559         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39560         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39561         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39562         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39563         Reported by Ralf Wildenhues.
39564
39565 2007-10-29  Bruno Haible  <bruno@clisp.org>
39566
39567         * gnulib-tool (func_import): When --lgpl is not specified, set
39568         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39569         GPLv3.
39570         Reported by Simon Josefsson.
39571
39572 2007-10-28  Bruno Haible  <bruno@clisp.org>
39573
39574         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39575         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39576         HAVE_DECL_ISFINITE.
39577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39578         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39579         HAVE_DECL_ISFINITE.
39580
39581 2007-10-28  Bruno Haible  <bruno@clisp.org>
39582
39583         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39584         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39585
39586 2007-10-28  Bruno Haible  <bruno@clisp.org>
39587
39588         Fix link errors with Sun C 5.0 on Solaris 10.
39589         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39590         function is declared but not present in the compiler's libm.
39591         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39592         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39593         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39594         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39595         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39596         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39597         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39599         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39600         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39601         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39602         HAVE_DECL_FLOORL.
39603
39604 2007-10-28  Bruno Haible  <bruno@clisp.org>
39605
39606         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39607         gl_FUNC_FLOORL. Cache the result.
39608         (gl_FUNC_FLOORL): Use it.
39609         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39610         gl_FUNC_CEILL. Cache the result.
39611         (gl_FUNC_CEILL): Use it.
39612
39613         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39614         gl_FUNC_FLOOR. Cache the result.
39615         (gl_FUNC_FLOOR): Use it.
39616         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39617         gl_FUNC_CEIL. Cache the result.
39618         (gl_FUNC_CEIL): Use it.
39619
39620         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39621         gl_FUNC_FLOORF. Cache the result.
39622         (gl_FUNC_FLOORF): Use it.
39623         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39624         gl_FUNC_CEILF. Cache the result.
39625         (gl_FUNC_CEILF): Use it.
39626
39627 2007-10-28  Bruno Haible  <bruno@clisp.org>
39628
39629         * gnulib-tool: Allow specifying the LGPL version number through
39630         --lgpl=2 or --lgpl=3.
39631         (func_usage): Document --lgpl with argument.
39632         Handle --lgpl=... arguments.
39633         (func_import): Recognize also gl_LGPL calls with an argument. When
39634         --lgpl=2 is used and the module's license is just LGPL, report an
39635         error. Set sed_transform_lib_file according to the lgpl variable. In
39636         the generated files, use --lgpl or gl_LGPL invocations with argument,
39637         if necessary.
39638         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39639         an LGPv2+ license.
39640         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39641         gl_LGPL macro.
39642
39643 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39644             Bruno Haible  <bruno@clisp.org>
39645
39646         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39647         (u16_uctomb_aux): Likewise.
39648         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39649         !HAVE_INLINE.
39650         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39651
39652 2007-10-28  Bruno Haible  <bruno@clisp.org>
39653
39654         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39655         Invoke AM_GETTEXT_OPTION if it exists.
39656         * modules/vasprintf: Likewise.
39657         * modules/verror: Likewise.
39658         * modules/xprintf: Likewise.
39659         * modules/xvasprintf: Likewise.
39660
39661 2007-10-27  Ben Pfaff  <blp@gnu.org>
39662
39663         * lib/math.in.h: Define isfinite macro and prototypes for
39664         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39665         implementations.
39666         * m4/math_h.m4: New substitutions for isfinite module.
39667         * lib/isfinite.c: New file.
39668         * m4/isfinite.m4: New file.
39669         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39670         * modules/isfinite: New file.
39671         * modules/isfinite-tests: New file.
39672         * tests/tests-isfinite.c: New file.
39673         * doc/functions/isfinite.texi: Mention isfinite module.
39674         * MODULES.html.sh: Mention new module.
39675
39676 2007-10-27  Ben Pfaff  <blp@gnu.org>
39677
39678         Ralf Wildenhues reported that Tru64 4.0D declares the round
39679         functions but does not have definitions.
39680         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39681         cannot be found in any library, set the output variable to
39682         "missing" instead of "".
39683         * m4/round.m4: Also use our substitute if we cannot find round in
39684         any library, even if it is declared.
39685         * m4/roundf.m4: Likewise for roundf.
39686         * m4/roundl.m4: Likewise for roundl.
39687         * lib/math.in.h: Undefine roundf, round, roundl before defining
39688         their replacements, to allow for hypothetical systems where these
39689         may be defined as macros but not available in libraries.
39690
39691 2007-10-27  Bruno Haible  <bruno@clisp.org>
39692
39693         * doc/gnulib.texi: Invoke @firstparagraphindent.
39694         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39695         changes in gnulib.
39696         (Source changes): New section.
39697
39698 2007-10-26  Bruno Haible  <bruno@clisp.org>
39699
39700         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39701         borrowed from autoconf.
39702
39703 2007-10-26  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39706         strerror returned the empty string. Needed on HP-UX 11.00.
39707
39708 2007-10-24  Micah Cowan  <micah@cowan.name>
39709
39710         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39711         * build-aux/bootstrap: Remove support for now-unnecessary option,
39712         --cvs-user, and envvars CVS_USER, CVS_RSH.
39713
39714 2007-10-24  Jim Meyering  <meyering@redhat.com>
39715
39716         Avoid diagnostics from sha1sum when there is no cached checksum.
39717         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39718         if the po.s1 file hasn't been created yet.
39719
39720         * build-aux/bootstrap: Sync from coreutils:
39721         2007-10-24  Jim Meyering  <meyering@redhat.com>
39722         Get gnulib from the git repository, not from an obsolete cvs one.
39723         * build-aux/bootstrap: Suggestion from Micah Cowan.
39724         2007-10-04  Jim Meyering  <jim@meyering.net>
39725         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39726         (update_po_files): Work also when there are no .po files in po/.
39727
39728 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39729
39730         * README: Append ".git" to git and cg examples.
39731         Problem reported by Benoit Sigoure.
39732
39733 2007-10-23  Micah Cowan  <micah@cowan.name>
39734
39735         * users.txt: Add wget.
39736
39737 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39738
39739         Fix linking of some unistdio tests on FreeBSD.
39740         * modules/unistdio/u16-vsnprintf-tests
39741         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39742         * modules/unistdio/u16-vsprintf-tests
39743         (test_u16_vsnprintf1_LDADD): Likewise.
39744         * modules/unistdio/u32-vsnprintf-tests
39745         (test_u32_vsnprintf1_LDADD): Likewise.
39746         * modules/unistdio/u32-vsprintf-tests
39747         (test_u32_vsprintf1_LDADD): Likewise.
39748         * modules/unistdio/u8-vsnprintf-tests
39749         (test_u8_vsnprintf1_LDADD): Likewise.
39750         * modules/unistdio/u8-vsprintf-tests
39751         (test_u8_vsprintf1_LDADD): Likewise.
39752         * modules/unistdio/ulc-vsnprintf-tests
39753         (test_ulc_vsnprintf1_LDADD): Likewise.
39754         * modules/unistdio/ulc-vsprintf-tests
39755         (test_ulc_vsprintf1_LDADD): Likewise.
39756
39757         Fix linking of some uniconv tests on FreeBSD.
39758         * modules/uniconv/u16-conv-from-enc-tests
39759         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39760         * modules/uniconv/u16-conv-to-enc-tests
39761         (test_u16_conv_to_enc_LDADD): Likewise.
39762         * modules/uniconv/u16-strconv-from-enc-tests
39763         (test_u16_strconv_from_enc_LDADD): Likewise.
39764         * modules/uniconv/u16-strconv-to-enc-tests
39765         (test_u16_strconv_to_enc_LDADD): Likewise.
39766         * modules/uniconv/u32-conv-from-enc-tests
39767         (test_u32_conv_from_enc_LDADD): Likewise.
39768         * modules/uniconv/u32-conv-to-enc-tests
39769         (test_u32_conv_to_enc_LDADD): Likewise.
39770         * modules/uniconv/u32-strconv-from-enc-tests
39771         (test_u32_strconv_from_enc_LDADD): Likewise.
39772         * modules/uniconv/u32-strconv-to-enc-tests
39773         (test_u32_strconv_to_enc_LDADD): Likewise.
39774         * modules/uniconv/u8-conv-from-enc-tests
39775         (test_u8_conv_from_enc_LDADD): Likewise.
39776         * modules/uniconv/u8-conv-to-enc-tests
39777         (test_u8_conv_to_enc_LDADD): Likewise.
39778         * modules/uniconv/u8-strconv-from-enc-tests
39779         (test_u8_strconv_from_enc_LDADD): Likewise.
39780         * modules/uniconv/u8-strconv-to-enc-tests
39781         (test_u8_strconv_to_enc_LDADD): Likewise.
39782
39783 2007-10-22  Bruno Haible  <bruno@clisp.org>
39784
39785         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39786         size.
39787
39788 2007-10-22  Eric Blake  <ebb9@byu.net>
39789
39790         Tweak x*printf documentation.
39791         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39792         variable name and comments.
39793         Suggested by Bruno Haible.
39794
39795 2007-10-22  Bruno Haible  <bruno@clisp.org>
39796
39797         * lib/acl.c (copy_acl): Fix file name in comment.
39798
39799 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39800
39801         Fix Tru64 problem with stdbool.h.
39802         * lib/stdbool.in.h (false, true):
39803         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39804         Don't declare as an enum in this situation; it runs afoul of Tru64.
39805         Problem reported by Steven M. Schweda in
39806         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39807
39808 2007-10-22  Eric Blake  <ebb9@byu.net>
39809
39810         Also wrap vf?printf.
39811         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39812         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39813         (xvprintf, xvfprintf): New functions.
39814
39815 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39816
39817         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39818         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39819
39820         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39821         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39822
39823 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39824
39825         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39826         by Bruno Haible.
39827
39828 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39829
39830         * lib/getloadavg.c
39831         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39832         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39833
39834         * tests/test-i-ring.c: Work for C89.
39835
39836 2007-10-22  Bruno Haible  <bruno@clisp.org>
39837
39838         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39839         -1u, in preprocessor expression, so that we don't test for the bug
39840         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39841         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39842
39843 2007-10-22  Eric Blake  <ebb9@byu.net>
39844
39845         * tests/test-yesno.sh: Silence stderr during test.
39846
39847 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39848
39849         * modules/crypto/gc-camellia: New file.
39850
39851         * m4/gc-camellia.m4: New file.
39852
39853         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39854
39855         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39856
39857 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39858
39859         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39860         --help to stdout.  Reported by sms@antinode.org (Steven
39861         M. Schweda).
39862
39863 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39864
39865         * users.txt: Fix link to libksba.
39866
39867 2007-10-21  Ben Pfaff  <blp@gnu.org>
39868
39869         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39870         round.c roundf implementation that depends on floorf and ceilf to
39871         be tested unconditionally.
39872
39873 2007-10-21  Ben Pfaff  <blp@gnu.org>
39874
39875         * m4/check-libm-func.m4: Removed.
39876         * m4/check-math-lib.m4: New file.
39877         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39878         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39879         definition and lack of AC_LIBOBJ([roundf]).
39880         * m4/roundl.m4: Ditto, and similarly for roundl.
39881         * modules/round: Reference new m4 file.
39882         * modules/roundf: Ditto.
39883         * modules/roundl: Ditto.
39884         * tests/test-round2.c (main): Use ROUND instead of round.
39885         Bug report from Bruno Haible.
39886
39887 2007-10-21  Bruno Haible  <bruno@clisp.org>
39888
39889         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39890         context.
39891
39892 2007-10-21  Bruno Haible  <bruno@clisp.org>
39893
39894         * tests/test-wcwidth.c (main): Allow negative result for some control
39895         characters.
39896
39897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39898         Needed on OSF/1 5.1.
39899
39900 2007-10-21  Bruno Haible  <bruno@clisp.org>
39901
39902         * tests/test-floorf1.c: Include isnanf.h.
39903         (main): Use isnanf() instead of isnan().
39904         * tests/test-ceilf1.c: Include isnanf.h.
39905         (main): Use isnanf() instead of isnan().
39906         * tests/test-truncf1.c: Include isnanf.h.
39907         (main): Use isnanf() instead of isnan().
39908         * tests/test-roundf1.c: Include isnanf.h.
39909         (main): Use isnanf() instead of isnan().
39910
39911 2007-10-21  Eric Blake  <ebb9@byu.net>
39912
39913         * users.txt: Update URL for m4.
39914
39915 2007-10-21  Bruno Haible  <bruno@clisp.org>
39916
39917         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39918
39919 2007-10-21  Bruno Haible  <bruno@clisp.org>
39920
39921         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39922         Git's management files if the CVS files are not present.
39923
39924 2007-10-20  Bruno Haible  <bruno@clisp.org>
39925
39926         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39927         gcc-3.4.x.
39928
39929 2007-10-20  Ben Pfaff  <blp@gnu.org>
39930
39931         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39932         implementations.
39933         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39934         * lib/round.c: New file.
39935         * lib/roundf.c: New file.
39936         * lib/roundl.c: New file.
39937         * m4/round.m4: New file.
39938         * m4/roundf.m4: New file.
39939         * m4/roundl.m4: New file.
39940         * m4/check-libm-func-m4: New file.
39941         * modules/math: Replace round, roundf, roundl related @VARS@ in
39942         math.in.h.
39943         * modules/round: New file.
39944         * modules/round-tests: New file.
39945         * modules/roundf: New file.
39946         * modules/roundf-tests: New file.
39947         * modules/roundl: New file.
39948         * modules/roundl-tests: New file.
39949         * tests/test-round1.c: New file.
39950         * tests/test-round2.c: New file.
39951         * tests/test-roundf1.c: New file.
39952         * tests/test-roundf2.c: New file.
39953         * tests/test-roundl.c: New file.
39954         * doc/functions/round.texi: Mention round module.
39955         * doc/functions/roundf.texi: Mention roundf module.
39956         * doc/functions/roundl.texi: Mention roundl module.
39957         * MODULES.html.sh: Mention new modules.
39958         Thanks to Bruno Haible for suggestions.
39959
39960 2007-10-20  Jim Meyering  <meyering@redhat.com>
39961
39962         * lib/xprintf.c: Include <config.h> unconditionally.
39963
39964         Change xprintf's license to GPL.
39965         * modules/xprintf (License): s/LGPL/GPL/, since this module
39966         depends on modules (exit and exitfail) which are GPL.
39967         Suggestion from Bruno Haible.
39968
39969         xprintf fixes.
39970         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39971         Use a clearer diagnostic.
39972         Patch from Bruno Haible.
39973
39974 2007-10-20  Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39977         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39979
39980 2007-10-20  Bruno Haible  <bruno@clisp.org>
39981
39982         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39983         precision in the comparison result > x - 1 or similar.
39984         * tests/test-ceilf2.c (correct_result_p): Likewise.
39985         * tests/test-truncf2.c (correct_result_p): Likewise.
39986         * tests/test-trunc2.c (correct_result_p): Likewise.
39987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39988
39989 2007-10-20  Bruno Haible  <bruno@clisp.org>
39990
39991         * modules/ceil: New file.
39992         * m4/ceil.m4: New file.
39993         * doc/functions/ceil.texi: Mention the 'ceil' module.
39994
39995 2007-10-20  Bruno Haible  <bruno@clisp.org>
39996
39997         * modules/floor: New file.
39998         * m4/floor.m4: New file.
39999         * doc/functions/floor.texi: Mention the 'floor' module.
40000
40001 2007-10-20  Bruno Haible  <bruno@clisp.org>
40002
40003         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
40004         of %a.
40005         * modules/floorf-tests (Depends-on): Likewise.
40006         * modules/truncf-tests (Depends-on): Likewise.
40007         * modules/trunc-tests (Depends-on): Likewise.
40008         Reported by Ben Pfaff.
40009
40010 2007-10-19  Jim Meyering  <meyering@redhat.com>
40011
40012         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
40013         Don't bother testing specific errno values.  Just test ferror.
40014
40015         New module: xprintf
40016         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
40017
40018 2007-10-19  Bruno Haible  <bruno@clisp.org>
40019
40020         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
40021         syntax.
40022         * modules/javaexec (Makefile.am): Likewise.
40023         * modules/relocatable-prog (Makefile.am): Likewise.
40024         Suggested by Jim Meyering.
40025
40026 2007-10-18  Bruno Haible  <bruno@clisp.org>
40027
40028         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
40029         Reported by Jim Meyering.
40030
40031 2007-10-18  Eric Blake  <ebb9@byu.net>
40032
40033         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
40034
40035 2007-10-18  Bruno Haible  <bruno@clisp.org>
40036
40037         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
40038         the format string into writable memory. Needed in Fortify conditions.
40039
40040 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
40041             Bruno Haible  <bruno@clisp.org>
40042
40043         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
40044         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
40045         * modules/trim (Depends-on): Add mbchar.
40046         (configure.ac): Add gl_FUNC_MBRTOWC.
40047         (Makefile.am): Augment lib_SOURCES.
40048
40049 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40050
40051         Modify glob.c to use fstatat and dirfd, to simplify it.
40052         Suggested by Eric Blake.
40053         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
40054         Don't include <stdbool.h>; not used.
40055         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
40056         (link_exists_p): Simplify implementation, since we can now assume
40057         dirfd and fstatat.
40058         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
40059
40060 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40061
40062         * gnulib-tool (func_get_dependencies): Fix sed script to
40063         match only tests.
40064
40065 2007-10-17  Bruno Haible  <bruno@clisp.org>
40066
40067         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
40068         allow locale names without encoding suffix.
40069         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40070         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40071
40072 2007-10-16  Bruno Haible  <bruno@clisp.org>
40073
40074         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
40075         * lib/getgroups.c (getgroups): Likewise.
40076         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
40077
40078 2007-10-16  Bruno Haible  <bruno@clisp.org>
40079
40080         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
40081         * modules/malloc-posix (License): Likewise.
40082         * modules/realloc-posix (License): Likewise.
40083         * modules/calloc-posix (License): Likewise.
40084         * modules/intprops (License): Change from GPL to LGPL, with
40085         Paul Eggert's approval.
40086
40087 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40088
40089         Merge glibc changes into lib/glob.c.
40090
40091         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
40092         2007-10-15 04:59:03 UTC.  Here are the changes:
40093
40094         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
40095
40096         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
40097
40098         * lib/glob.c: Add some branch prediction throughout.
40099
40100         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
40101
40102         [BZ #5103]
40103         * lib/glob.c (glob): Recognize patterns starting \/.
40104
40105         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
40106
40107         [BZ #3996]
40108         * lib/glob.c (attribute_hidden): Define if not defined.
40109         (glob): Unescape dirname, filename or username when needed and not
40110         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
40111         is NULL.  Handle unescaped [ in pattern without closing ].
40112         Don't pass GLOB_CHECK down to recursive glob for directories.
40113         (__glob_pattern_type): New function.
40114         (__glob_pattern_p): Implement using __glob_pattern_type.
40115         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
40116         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
40117         Remove unreachable code.
40118
40119         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
40120
40121         * lib/glob.c (glob_in_dir): Add some comments and asserts to
40122         explain why there are no leaks.
40123
40124         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
40125
40126         [BZ #3253]
40127         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
40128         time, rather allocate increasingly bigger arrays of pointers, if
40129         possible with alloca, if too large with malloc.
40130
40131 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40132
40133         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
40134         Problem reported by H.Merijn Brand in
40135         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
40136         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
40137         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40138
40139 2007-10-15  Bruno Haible  <bruno@clisp.org>
40140
40141         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
40142         with explicit rpl_ prefix.
40143         * lib/fopen.c (fopen): Likewise.
40144         * lib/freopen.c (freopen): Likewise.
40145         * lib/iconv.c (iconv): Likewise.
40146         * lib/iconv_close.c (iconv_close): Likewise.
40147
40148 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40149
40150         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
40151
40152 2007-10-15  Bruno Haible  <bruno@clisp.org>
40153
40154         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
40155         <stddef.h> instead of <stdlib.h> since we only need NULL.
40156         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40157
40158 2007-10-15  Bruno Haible  <bruno@clisp.org>
40159
40160         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
40161         Replace paragraph talking about LIBOBJS.
40162         Reported by Colin Watson <cjwatson@debian.org>.
40163
40164 2007-10-15  Bruno Haible  <bruno@clisp.org>
40165
40166         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
40167         <stdlib.h> before using NULL.
40168
40169 2007-10-15  Simon Josefsson  <simon@josefsson.org>
40170
40171         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
40172         Reported by Albert Chin <china@thewrittenword.com>.
40173
40174 2007-10-14  Bruno Haible  <bruno@clisp.org>
40175
40176         * modules/iconv_open-utf-tests: New file.
40177         * tests/test-iconv-utf.c: New file.
40178
40179         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
40180         * modules/iconv_open-utf: New file.
40181         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
40182         (iconv, iconv_close): New declarations.
40183         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
40184         be defined.
40185         (iconv_open): Add special handling of conversion between UTF-8 and
40186         UTF-{16,32}{BE,LE}.
40187         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
40188         * lib/iconv_close.c: New file.
40189         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
40190         gl_FUNC_ICONV_OPEN.
40191         (gl_FUNC_ICONV_OPEN): Use it.
40192         (gl_FUNC_ICONV_OPEN_UTF): New macro.
40193         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
40194         and REPLACE_ICONV_UTF.
40195         * modules/iconv_open (Depends-on): Add c-strcase.
40196         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
40197         ICONV_CONST.
40198         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
40199
40200 2007-10-13  Albert Chin  <china@thewrittenword.com>
40201             Bruno Haible  <bruno@clisp.org>
40202
40203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
40204         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
40205
40206 2007-10-13  Bruno Haible  <bruno@clisp.org>
40207
40208         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
40209         defined, use the ISO C99 inline semantics.
40210         * lib/argp.h (ARGP_EI): Likewise.
40211
40212 2007-10-13  Bruno Haible  <bruno@clisp.org>
40213
40214         Handle 'inline' change in gcc 4.3.0.
40215         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
40216         argp_fmtstream_write, argp_fmtstream_set_lmargin,
40217         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
40218         argp_fmtstream_point): Disable 'extern' declaration if the function
40219         definition is going to be provided inline.
40220         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
40221         semantics, not the ISO C99 inline semantics.
40222         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
40223         'extern' declaration if the function definition is going to be provided
40224         inline.
40225         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
40226         the GNU C inline semantics, not the ISO C99 inline semantics. With
40227         GCC 4.2, avoid a warning.
40228
40229 2007-10-13  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/freading.h (freading): Enable the use of __freading for
40232         glibc >= 2.7.
40233         * lib/freading.c (freading): Likewise.
40234
40235 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40236
40237         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
40238         "warning: C99 inline functions are not supported; using GNU89".
40239
40240 2007-10-12  Bruno Haible  <bruno@clisp.org>
40241
40242         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
40243         of 2.
40244         * tests/test-ceilf2.c: New file.
40245         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
40246
40247         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
40248         * modules/ceilf-tests: Update.
40249
40250 2007-10-12  Bruno Haible  <bruno@clisp.org>
40251
40252         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
40253         of 2.
40254         * tests/test-floorf2.c: New file.
40255         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
40256
40257         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
40258         * modules/floorf-tests: Update.
40259
40260 2007-10-12  Bruno Haible  <bruno@clisp.org>
40261
40262         * tests/test-trunc2.c: New file.
40263         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
40264
40265         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
40266         * modules/trunc-tests: Update.
40267
40268 2007-10-12  Bruno Haible  <bruno@clisp.org>
40269
40270         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
40271         of 2.
40272         * tests/test-truncf2.c: New file.
40273         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
40274
40275         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
40276         * modules/truncf-tests: Update.
40277
40278 2007-10-11  Eric Blake  <ebb9@byu.net>
40279
40280         Don't claim strerror is broken on Interix.
40281         * doc/functions/strerror.texi (strerror): Known broken systems are
40282         now Solaris 8, and not Interix.
40283         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
40284         Interix on cross-compile.
40285         Reported by Martin Koeppe in
40286         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
40287
40288 2007-10-11  Bruno Haible  <bruno@clisp.org>
40289
40290         * modules/i-ring-tests: New file.
40291         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
40292         instead of assert.
40293
40294 2007-10-11  Bruno Haible  <bruno@clisp.org>
40295
40296         * modules/filenamecat-tests: New file.
40297         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
40298         * lib/filenamecat.c: Remove test code.
40299
40300 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40301
40302         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
40303
40304         * lib/strerror.c: Include <string.h> always, to test interface,
40305         and to remove the need for the dummy.
40306         Include intprops.h to compute width instead of doing it ourselves
40307         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
40308         (strerror): Define it to return NULL if there's no system strerror.
40309         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
40310         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
40311         ancient pre-strerror Unix systems well any more.  Saying "unknown
40312         system error" is enough.
40313         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
40314         simpler strerror.c implementation.
40315         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
40316         Simplify the tests to reflect the simpler strerror implementation.
40317         * modules/strerror (Depends-on): Add intprops.
40318
40319 2007-10-09  Eric Blake  <ebb9@byu.net>
40320
40321         Silence test-fpending.
40322         * modules/fpending-tests (Files): Add wrapper script.
40323         * tests/test-fpending.sh: New file.
40324
40325 2007-10-09  Bruno Haible  <bruno@clisp.org>
40326
40327         * MODULES.html.sh (func_module): Don't create a hyperlink for
40328         function names like 'printf_frexp'.
40329         (Misc): Add crc, memxor.
40330         (Characteristics of floating types): New section.
40331         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
40332         isnanf-nolibm, signbit, trunc, truncf, truncl.
40333         (Enhancements for ISO C 99 functions): New subsection Input/output.
40334         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
40335         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
40336         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
40337         (Compatibility checks for POSIX:2001 functions): Add clock-time.
40338         (Enhancements for POSIX:2001 functions): Add chdir-long.
40339         (File system functions): Add areadlink, chdir-safer, read-file.
40340         Remove cycle-check.
40341         (File system as inode set): New section.
40342         (Date and time): Add gethrxtime.
40343         (Multithreading): Add openmp.
40344         (Internationalization functions): Add localename.
40345         (Unicode string functions): Add unistr/u*-mbsnlen.
40346         (Support for maintaining and releasing projects): Add git-version-gen.
40347         (Lone files): Remove directories.
40348
40349 2007-10-08  Ben Pfaff  <blp@gnu.org>
40350
40351         * lib/xmalloca.h: Fix typo in comment.
40352
40353 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40354
40355         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
40356         when avoiding problems with integer overflow.  Use a portable test
40357         instead.
40358
40359 2007-10-08  Simon Josefsson  <simon@josefsson.org>
40360
40361         * modules/dummy (License): Change to LGPLv2+.
40362         * modules/float (License): Likewise
40363         * modules/realloc (License): Likewise
40364         * modules/stdlib (License): Likewise
40365
40366 2007-10-07  Bruno Haible  <bruno@clisp.org>
40367
40368         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
40369         * floor.c (TWO_MANT_DIG): Likewise.
40370         * ceil.c (TWO_MANT_DIG): Likewise.
40371         Reported by Ben Pfaff.
40372
40373 2007-10-07  Bruno Haible  <bruno@clisp.org>
40374
40375         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
40376         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
40377         * lib/frexp.c (FUNC): Likewise.
40378         * lib/printf-frexp.h (printf_frexp): Likewise.
40379         * lib/printf-frexpl.h (printf_frexpl): Likewise.
40380         * lib/printf-frexp.c (FUNC): Likewise.
40381         Suggested by Jim Meyering.
40382
40383 2007-10-07  Jim Meyering  <meyering@redhat.com>
40384
40385         Make xnanosleep's integer overflow test more robust.
40386         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
40387         so that gcc-4.3.0 doesn't optimize away this test for overflow.
40388
40389 2007-10-07  Bruno Haible  <bruno@clisp.org>
40390
40391         * NEWS: Mention the license change.
40392
40393         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
40394         abbreviations in the modules files.
40395
40396         Change copyright notice from GPLv2+ to GPLv3+.
40397         * README: Change copyright notice.
40398         * MODULES.html.sh: Likewise.
40399         * build-aux/bootstrap.conf: Likewise.
40400         * build-aux/config.libpath: Likewise.
40401         * build-aux/csharpcomp.sh.in: Likewise.
40402         * build-aux/csharpexec.sh.in: Likewise.
40403         * build-aux/install-reloc: Likewise.
40404         * build-aux/javacomp.sh.in: Likewise.
40405         * build-aux/javaexec.sh.in: Likewise.
40406         * build-aux/ldd.sh.in: Likewise.
40407         * build-aux/reloc-ldflags: Likewise.
40408         * build-aux/relocatable.sh.in: Likewise.
40409         * build-aux/x-to-1.in: Likewise.
40410         * check-module: Likewise.
40411         * config/srclistvars.sh: Likewise.
40412         * gnulib-tool: Likewise.
40413         * lib/acl-internal.h: Likewise.
40414         * lib/acl.c: Likewise.
40415         * lib/acl.h: Likewise.
40416         * lib/acl_entries.c: Likewise.
40417         * lib/areadlink-with-size.c: Likewise.
40418         * lib/areadlink.c: Likewise.
40419         * lib/areadlink.h: Likewise.
40420         * lib/argmatch.c: Likewise.
40421         * lib/argmatch.h: Likewise.
40422         * lib/argp-ba.c: Likewise.
40423         * lib/argp-eexst.c: Likewise.
40424         * lib/argp-fmtstream.c: Likewise.
40425         * lib/argp-fmtstream.h: Likewise.
40426         * lib/argp-fs-xinl.c: Likewise.
40427         * lib/argp-help.c: Likewise.
40428         * lib/argp-namefrob.h: Likewise.
40429         * lib/argp-parse.c: Likewise.
40430         * lib/argp-pin.c: Likewise.
40431         * lib/argp-pv.c: Likewise.
40432         * lib/argp-pvh.c: Likewise.
40433         * lib/argp-xinl.c: Likewise.
40434         * lib/argp.h: Likewise.
40435         * lib/at-func.c: Likewise.
40436         * lib/atanl.c: Likewise.
40437         * lib/backupfile.c: Likewise.
40438         * lib/backupfile.h: Likewise.
40439         * lib/basename.c: Likewise.
40440         * lib/binary-io.h: Likewise.
40441         * lib/byteswap.in.h: Likewise.
40442         * lib/c-stack.c: Likewise.
40443         * lib/c-stack.h: Likewise.
40444         * lib/c-strcasestr.c: Likewise.
40445         * lib/c-strcasestr.h: Likewise.
40446         * lib/c-strstr.c: Likewise.
40447         * lib/c-strstr.h: Likewise.
40448         * lib/c-strtod.c: Likewise.
40449         * lib/calloc.c: Likewise.
40450         * lib/canon-host.c: Likewise.
40451         * lib/canon-host.h: Likewise.
40452         * lib/canonicalize-lgpl.c: Likewise.
40453         * lib/canonicalize.c: Likewise.
40454         * lib/canonicalize.h: Likewise.
40455         * lib/ceil.c: Likewise.
40456         * lib/ceilf.c: Likewise.
40457         * lib/ceill.c: Likewise.
40458         * lib/chdir-long.c: Likewise.
40459         * lib/chdir-long.h: Likewise.
40460         * lib/chdir-safer.c: Likewise.
40461         * lib/chdir-safer.h: Likewise.
40462         * lib/chown.c: Likewise.
40463         * lib/classpath.c: Likewise.
40464         * lib/classpath.h: Likewise.
40465         * lib/clean-temp.c: Likewise.
40466         * lib/clean-temp.h: Likewise.
40467         * lib/cloexec.c: Likewise.
40468         * lib/close-stream.c: Likewise.
40469         * lib/closein.c: Likewise.
40470         * lib/closein.h: Likewise.
40471         * lib/closeout.c: Likewise.
40472         * lib/closeout.h: Likewise.
40473         * lib/concat-filename.c: Likewise.
40474         * lib/copy-file.c: Likewise.
40475         * lib/copy-file.h: Likewise.
40476         * lib/count-one-bits.h: Likewise.
40477         * lib/crc.c: Likewise.
40478         * lib/crc.h: Likewise.
40479         * lib/creat-safer.c: Likewise.
40480         * lib/csharpcomp.c: Likewise.
40481         * lib/csharpcomp.h: Likewise.
40482         * lib/csharpexec.c: Likewise.
40483         * lib/csharpexec.h: Likewise.
40484         * lib/cycle-check.c: Likewise.
40485         * lib/cycle-check.h: Likewise.
40486         * lib/diacrit.c: Likewise.
40487         * lib/diacrit.h: Likewise.
40488         * lib/diffseq.h: Likewise.
40489         * lib/dirchownmod.c: Likewise.
40490         * lib/dirent.in.h: Likewise.
40491         * lib/dirfd.c: Likewise.
40492         * lib/dirfd.h: Likewise.
40493         * lib/dirname.c: Likewise.
40494         * lib/dirname.h: Likewise.
40495         * lib/dummy.c: Likewise.
40496         * lib/dup-safer.c: Likewise.
40497         * lib/dup2.c: Likewise.
40498         * lib/eealloc.h: Likewise.
40499         * lib/error.c: Likewise.
40500         * lib/error.h: Likewise.
40501         * lib/euidaccess.c: Likewise.
40502         * lib/exclude.c: Likewise.
40503         * lib/exclude.h: Likewise.
40504         * lib/execute.c: Likewise.
40505         * lib/execute.h: Likewise.
40506         * lib/exitfail.c: Likewise.
40507         * lib/exitfail.h: Likewise.
40508         * lib/expl.c: Likewise.
40509         * lib/fatal-signal.c: Likewise.
40510         * lib/fatal-signal.h: Likewise.
40511         * lib/fbufmode.c: Likewise.
40512         * lib/fbufmode.h: Likewise.
40513         * lib/fchdir.c: Likewise.
40514         * lib/fchmodat.c: Likewise.
40515         * lib/fchownat.c: Likewise.
40516         * lib/fcntl--.h: Likewise.
40517         * lib/fcntl-safer.h: Likewise.
40518         * lib/fcntl.in.h: Likewise.
40519         * lib/fd-safer.c: Likewise.
40520         * lib/fflush.c: Likewise.
40521         * lib/file-has-acl.c: Likewise.
40522         * lib/file-set.c: Likewise.
40523         * lib/file-type.c: Likewise.
40524         * lib/file-type.h: Likewise.
40525         * lib/fileblocks.c: Likewise.
40526         * lib/filemode.c: Likewise.
40527         * lib/filemode.h: Likewise.
40528         * lib/filename.h: Likewise.
40529         * lib/filenamecat.c: Likewise.
40530         * lib/filenamecat.h: Likewise.
40531         * lib/findprog.c: Likewise.
40532         * lib/findprog.h: Likewise.
40533         * lib/float.in.h: Likewise.
40534         * lib/floor.c: Likewise.
40535         * lib/floorf.c: Likewise.
40536         * lib/floorl.c: Likewise.
40537         * lib/fopen-safer.c: Likewise.
40538         * lib/fopen.c: Likewise.
40539         * lib/fpending.c: Likewise.
40540         * lib/fpending.h: Likewise.
40541         * lib/fprintf.c: Likewise.
40542         * lib/fprintftime.h: Likewise.
40543         * lib/fpucw.h: Likewise.
40544         * lib/fpurge.c: Likewise.
40545         * lib/fpurge.h: Likewise.
40546         * lib/freadable.c: Likewise.
40547         * lib/freadable.h: Likewise.
40548         * lib/freadahead.c: Likewise.
40549         * lib/freadahead.h: Likewise.
40550         * lib/freading.c: Likewise.
40551         * lib/freading.h: Likewise.
40552         * lib/free.c: Likewise.
40553         * lib/freopen.c: Likewise.
40554         * lib/frexp.c: Likewise.
40555         * lib/frexpl.c: Likewise.
40556         * lib/fseek.c: Likewise.
40557         * lib/fseterr.c: Likewise.
40558         * lib/fseterr.h: Likewise.
40559         * lib/fstatat.c: Likewise.
40560         * lib/fstrcmp.c: Likewise.
40561         * lib/fstrcmp.h: Likewise.
40562         * lib/fsusage.c: Likewise.
40563         * lib/fsusage.h: Likewise.
40564         * lib/ftell.c: Likewise.
40565         * lib/ftello.c: Likewise.
40566         * lib/fts-cycle.c: Likewise.
40567         * lib/fts.c: Likewise.
40568         * lib/fts_.h: Likewise.
40569         * lib/full-read.c: Likewise.
40570         * lib/full-read.h: Likewise.
40571         * lib/full-write.c: Likewise.
40572         * lib/full-write.h: Likewise.
40573         * lib/fwritable.c: Likewise.
40574         * lib/fwritable.h: Likewise.
40575         * lib/fwriteerror.c: Likewise.
40576         * lib/fwriteerror.h: Likewise.
40577         * lib/fwriting.c: Likewise.
40578         * lib/fwriting.h: Likewise.
40579         * lib/gcd.c: Likewise.
40580         * lib/gcd.h: Likewise.
40581         * lib/getcwd.c: Likewise.
40582         * lib/getdate.h: Likewise.
40583         * lib/getdate.y: Likewise.
40584         * lib/getdomainname.c: Likewise.
40585         * lib/getdomainname.h: Likewise.
40586         * lib/getgroups.c: Likewise.
40587         * lib/gethostname.c: Likewise.
40588         * lib/gethrxtime.c: Likewise.
40589         * lib/gethrxtime.h: Likewise.
40590         * lib/getloadavg.c: Likewise.
40591         * lib/getndelim2.c: Likewise.
40592         * lib/getndelim2.h: Likewise.
40593         * lib/getnline.c: Likewise.
40594         * lib/getnline.h: Likewise.
40595         * lib/getopt.c: Likewise.
40596         * lib/getopt.in.h: Likewise.
40597         * lib/getopt1.c: Likewise.
40598         * lib/getopt_int.h: Likewise.
40599         * lib/getpagesize.h: Likewise.
40600         * lib/getsubopt.c: Likewise.
40601         * lib/gettime.c: Likewise.
40602         * lib/getugroups.c: Likewise.
40603         * lib/getugroups.h: Likewise.
40604         * lib/getusershell.c: Likewise.
40605         * lib/gl_anyavltree_list1.h: Likewise.
40606         * lib/gl_anyavltree_list2.h: Likewise.
40607         * lib/gl_anyhash_list1.h: Likewise.
40608         * lib/gl_anyhash_list2.h: Likewise.
40609         * lib/gl_anylinked_list1.h: Likewise.
40610         * lib/gl_anylinked_list2.h: Likewise.
40611         * lib/gl_anyrbtree_list1.h: Likewise.
40612         * lib/gl_anyrbtree_list2.h: Likewise.
40613         * lib/gl_anytree_list1.h: Likewise.
40614         * lib/gl_anytree_list2.h: Likewise.
40615         * lib/gl_anytree_oset.h: Likewise.
40616         * lib/gl_anytreehash_list1.h: Likewise.
40617         * lib/gl_anytreehash_list2.h: Likewise.
40618         * lib/gl_array_list.c: Likewise.
40619         * lib/gl_array_list.h: Likewise.
40620         * lib/gl_array_oset.c: Likewise.
40621         * lib/gl_array_oset.h: Likewise.
40622         * lib/gl_avltree_list.c: Likewise.
40623         * lib/gl_avltree_list.h: Likewise.
40624         * lib/gl_avltree_oset.c: Likewise.
40625         * lib/gl_avltree_oset.h: Likewise.
40626         * lib/gl_avltreehash_list.c: Likewise.
40627         * lib/gl_avltreehash_list.h: Likewise.
40628         * lib/gl_carray_list.c: Likewise.
40629         * lib/gl_carray_list.h: Likewise.
40630         * lib/gl_linked_list.c: Likewise.
40631         * lib/gl_linked_list.h: Likewise.
40632         * lib/gl_linkedhash_list.c: Likewise.
40633         * lib/gl_linkedhash_list.h: Likewise.
40634         * lib/gl_list.c: Likewise.
40635         * lib/gl_list.h: Likewise.
40636         * lib/gl_oset.c: Likewise.
40637         * lib/gl_oset.h: Likewise.
40638         * lib/gl_rbtree_list.c: Likewise.
40639         * lib/gl_rbtree_list.h: Likewise.
40640         * lib/gl_rbtree_oset.c: Likewise.
40641         * lib/gl_rbtree_oset.h: Likewise.
40642         * lib/gl_rbtreehash_list.c: Likewise.
40643         * lib/gl_rbtreehash_list.h: Likewise.
40644         * lib/gl_sublist.c: Likewise.
40645         * lib/gl_sublist.h: Likewise.
40646         * lib/group-member.c: Likewise.
40647         * lib/group-member.h: Likewise.
40648         * lib/hard-locale.c: Likewise.
40649         * lib/hard-locale.h: Likewise.
40650         * lib/hash-pjw.c: Likewise.
40651         * lib/hash-pjw.h: Likewise.
40652         * lib/hash-triple.c: Likewise.
40653         * lib/hash.c: Likewise.
40654         * lib/hash.h: Likewise.
40655         * lib/human.c: Likewise.
40656         * lib/human.h: Likewise.
40657         * lib/i-ring.c: Likewise.
40658         * lib/i-ring.h: Likewise.
40659         * lib/idcache.c: Likewise.
40660         * lib/imaxabs.c: Likewise.
40661         * lib/imaxdiv.c: Likewise.
40662         * lib/inet_pton.c: Likewise.
40663         * lib/inet_pton.h: Likewise.
40664         * lib/intprops.h: Likewise.
40665         * lib/inttostr.c: Likewise.
40666         * lib/inttostr.h: Likewise.
40667         * lib/inttypes.in.h: Likewise.
40668         * lib/isapipe.c: Likewise.
40669         * lib/isdir.c: Likewise.
40670         * lib/isnan.c: Likewise.
40671         * lib/isnan.h: Likewise.
40672         * lib/isnanf.c: Likewise.
40673         * lib/isnanf.h: Likewise.
40674         * lib/isnanl-nolibm.h: Likewise.
40675         * lib/isnanl.c: Likewise.
40676         * lib/isnanl.h: Likewise.
40677         * lib/javacomp.c: Likewise.
40678         * lib/javacomp.h: Likewise.
40679         * lib/javaexec.c: Likewise.
40680         * lib/javaexec.h: Likewise.
40681         * lib/javaversion.c: Likewise.
40682         * lib/javaversion.h: Likewise.
40683         * lib/javaversion.java: Likewise.
40684         * lib/lbrkprop.h: Likewise.
40685         * lib/lchmod.h: Likewise.
40686         * lib/lchown.c: Likewise.
40687         * lib/ldexpl.c: Likewise.
40688         * lib/linebreak.c: Likewise.
40689         * lib/linebreak.h: Likewise.
40690         * lib/linebuffer.c: Likewise.
40691         * lib/linebuffer.h: Likewise.
40692         * lib/locale.in.h: Likewise.
40693         * lib/logl.c: Likewise.
40694         * lib/long-options.c: Likewise.
40695         * lib/long-options.h: Likewise.
40696         * lib/lstat.c: Likewise.
40697         * lib/lstat.h: Likewise.
40698         * lib/math.in.h: Likewise.
40699         * lib/mbchar.c: Likewise.
40700         * lib/mbchar.h: Likewise.
40701         * lib/mbfile.h: Likewise.
40702         * lib/mbiter.h: Likewise.
40703         * lib/mbscasecmp.c: Likewise.
40704         * lib/mbscasestr.c: Likewise.
40705         * lib/mbschr.c: Likewise.
40706         * lib/mbscspn.c: Likewise.
40707         * lib/mbslen.c: Likewise.
40708         * lib/mbsncasecmp.c: Likewise.
40709         * lib/mbsnlen.c: Likewise.
40710         * lib/mbspbrk.c: Likewise.
40711         * lib/mbspcasecmp.c: Likewise.
40712         * lib/mbsrchr.c: Likewise.
40713         * lib/mbssep.c: Likewise.
40714         * lib/mbsspn.c: Likewise.
40715         * lib/mbsstr.c: Likewise.
40716         * lib/mbstok_r.c: Likewise.
40717         * lib/mbswidth.c: Likewise.
40718         * lib/mbswidth.h: Likewise.
40719         * lib/mbuiter.h: Likewise.
40720         * lib/memcasecmp.c: Likewise.
40721         * lib/memcasecmp.h: Likewise.
40722         * lib/memchr.c: Likewise.
40723         * lib/memcmp.c: Likewise.
40724         * lib/memcoll.c: Likewise.
40725         * lib/memcoll.h: Likewise.
40726         * lib/memcpy.c: Likewise.
40727         * lib/memrchr.c: Likewise.
40728         * lib/mkancesdirs.c: Likewise.
40729         * lib/mkdir-p.c: Likewise.
40730         * lib/mkdir-p.h: Likewise.
40731         * lib/mkdir.c: Likewise.
40732         * lib/mkdirat.c: Likewise.
40733         * lib/mkdtemp.c: Likewise.
40734         * lib/mkstemp-safer.c: Likewise.
40735         * lib/mkstemp.c: Likewise.
40736         * lib/modechange.c: Likewise.
40737         * lib/modechange.h: Likewise.
40738         * lib/mountlist.c: Likewise.
40739         * lib/mountlist.h: Likewise.
40740         * lib/mpsort.c: Likewise.
40741         * lib/nanosleep.c: Likewise.
40742         * lib/obstack.c: Likewise.
40743         * lib/obstack.h: Likewise.
40744         * lib/open-safer.c: Likewise.
40745         * lib/open.c: Likewise.
40746         * lib/openat-die.c: Likewise.
40747         * lib/openat-priv.h: Likewise.
40748         * lib/openat-proc.c: Likewise.
40749         * lib/openat.c: Likewise.
40750         * lib/openat.h: Likewise.
40751         * lib/pagealign_alloc.c: Likewise.
40752         * lib/pagealign_alloc.h: Likewise.
40753         * lib/physmem.c: Likewise.
40754         * lib/physmem.h: Likewise.
40755         * lib/pipe-safer.c: Likewise.
40756         * lib/pipe.c: Likewise.
40757         * lib/pipe.h: Likewise.
40758         * lib/posixtm.c: Likewise.
40759         * lib/posixtm.h: Likewise.
40760         * lib/posixver.c: Likewise.
40761         * lib/printf-frexp.c: Likewise.
40762         * lib/printf-frexp.h: Likewise.
40763         * lib/printf-frexpl.c: Likewise.
40764         * lib/printf-frexpl.h: Likewise.
40765         * lib/printf.c: Likewise.
40766         * lib/progname.c: Likewise.
40767         * lib/progname.h: Likewise.
40768         * lib/progreloc.c: Likewise.
40769         * lib/putenv.c: Likewise.
40770         * lib/quote.c: Likewise.
40771         * lib/quote.h: Likewise.
40772         * lib/quotearg.c: Likewise.
40773         * lib/quotearg.h: Likewise.
40774         * lib/raise.c: Likewise.
40775         * lib/readline.c: Likewise.
40776         * lib/readline.h: Likewise.
40777         * lib/readlink.c: Likewise.
40778         * lib/readtokens.c: Likewise.
40779         * lib/readtokens.h: Likewise.
40780         * lib/readtokens0.c: Likewise.
40781         * lib/readtokens0.h: Likewise.
40782         * lib/readutmp.c: Likewise.
40783         * lib/readutmp.h: Likewise.
40784         * lib/realloc.c: Likewise.
40785         * lib/relocwrapper.c: Likewise.
40786         * lib/rename-dest-slash.c: Likewise.
40787         * lib/rename.c: Likewise.
40788         * lib/rmdir.c: Likewise.
40789         * lib/rpmatch.c: Likewise.
40790         * lib/safe-read.c: Likewise.
40791         * lib/safe-read.h: Likewise.
40792         * lib/safe-write.c: Likewise.
40793         * lib/safe-write.h: Likewise.
40794         * lib/same-inode.h: Likewise.
40795         * lib/same.c: Likewise.
40796         * lib/same.h: Likewise.
40797         * lib/save-cwd.c: Likewise.
40798         * lib/save-cwd.h: Likewise.
40799         * lib/savedir.c: Likewise.
40800         * lib/savedir.h: Likewise.
40801         * lib/savewd.c: Likewise.
40802         * lib/savewd.h: Likewise.
40803         * lib/search.in.h: Likewise.
40804         * lib/setenv.c: Likewise.
40805         * lib/setenv.h: Likewise.
40806         * lib/settime.c: Likewise.
40807         * lib/sh-quote.c: Likewise.
40808         * lib/sh-quote.h: Likewise.
40809         * lib/sig2str.c: Likewise.
40810         * lib/sig2str.h: Likewise.
40811         * lib/signal.in.h: Likewise.
40812         * lib/signbitd.c: Likewise.
40813         * lib/signbitf.c: Likewise.
40814         * lib/signbitl.c: Likewise.
40815         * lib/sigprocmask.c: Likewise.
40816         * lib/sincosl.c: Likewise.
40817         * lib/sleep.c: Likewise.
40818         * lib/sprintf.c: Likewise.
40819         * lib/sqrtl.c: Likewise.
40820         * lib/stat-time.h: Likewise.
40821         * lib/stdio--.h: Likewise.
40822         * lib/stdio-safer.h: Likewise.
40823         * lib/stdlib--.h: Likewise.
40824         * lib/stdlib-safer.h: Likewise.
40825         * lib/stdlib.in.h: Likewise.
40826         * lib/stpcpy.c: Likewise.
40827         * lib/stpncpy.c: Likewise.
40828         * lib/strchrnul.c: Likewise.
40829         * lib/strcspn.c: Likewise.
40830         * lib/strerror.c: Likewise.
40831         * lib/strftime.c: Likewise.
40832         * lib/strftime.h: Likewise.
40833         * lib/striconveh.c: Likewise.
40834         * lib/striconveh.h: Likewise.
40835         * lib/striconveha.c: Likewise.
40836         * lib/striconveha.h: Likewise.
40837         * lib/stripslash.c: Likewise.
40838         * lib/strnlen1.c: Likewise.
40839         * lib/strnlen1.h: Likewise.
40840         * lib/strtod.c: Likewise.
40841         * lib/strtoimax.c: Likewise.
40842         * lib/strtok_r.c: Likewise.
40843         * lib/strtol.c: Likewise.
40844         * lib/strtoll.c: Likewise.
40845         * lib/strtoul.c: Likewise.
40846         * lib/strtoull.c: Likewise.
40847         * lib/sysexits.in.h: Likewise.
40848         * lib/tempname.c: Likewise.
40849         * lib/tempname.h: Likewise.
40850         * lib/timespec.h: Likewise.
40851         * lib/tls.c: Likewise.
40852         * lib/tls.h: Likewise.
40853         * lib/tmpdir.c: Likewise.
40854         * lib/tmpdir.h: Likewise.
40855         * lib/tmpfile-safer.c: Likewise.
40856         * lib/tmpfile.c: Likewise.
40857         * lib/trigl.c: Likewise.
40858         * lib/trigl.h: Likewise.
40859         * lib/trim.c: Likewise.
40860         * lib/trim.h: Likewise.
40861         * lib/trunc.c: Likewise.
40862         * lib/truncf.c: Likewise.
40863         * lib/truncl.c: Likewise.
40864         * lib/tsearch.c: Likewise.
40865         * lib/unicodeio.c: Likewise.
40866         * lib/unicodeio.h: Likewise.
40867         * lib/unistd--.h: Likewise.
40868         * lib/unistd-safer.h: Likewise.
40869         * lib/unistdio/ulc-fprintf.c: Likewise.
40870         * lib/unistdio/ulc-vfprintf.c: Likewise.
40871         * lib/unlinkdir.c: Likewise.
40872         * lib/unlinkdir.h: Likewise.
40873         * lib/unlocked-io.h: Likewise.
40874         * lib/unsetenv.c: Likewise.
40875         * lib/userspec.c: Likewise.
40876         * lib/utime.c: Likewise.
40877         * lib/utimecmp.c: Likewise.
40878         * lib/utimecmp.h: Likewise.
40879         * lib/utimens.c: Likewise.
40880         * lib/verify.h: Likewise.
40881         * lib/verror.c: Likewise.
40882         * lib/verror.h: Likewise.
40883         * lib/version-etc-fsf.c: Likewise.
40884         * lib/version-etc.c: Likewise.
40885         * lib/version-etc.h: Likewise.
40886         * lib/vfprintf.c: Likewise.
40887         * lib/vprintf.c: Likewise.
40888         * lib/vsprintf.c: Likewise.
40889         * lib/w32spawn.h: Likewise.
40890         * lib/wait-process.c: Likewise.
40891         * lib/wait-process.h: Likewise.
40892         * lib/wcwidth.c: Likewise.
40893         * lib/write-any-file.c: Likewise.
40894         * lib/xalloc-die.c: Likewise.
40895         * lib/xalloc.h: Likewise.
40896         * lib/xasprintf.c: Likewise.
40897         * lib/xgetcwd.c: Likewise.
40898         * lib/xgetcwd.h: Likewise.
40899         * lib/xgetdomainname.c: Likewise.
40900         * lib/xgetdomainname.h: Likewise.
40901         * lib/xgethostname.c: Likewise.
40902         * lib/xmalloc.c: Likewise.
40903         * lib/xmalloca.c: Likewise.
40904         * lib/xmalloca.h: Likewise.
40905         * lib/xmemcoll.c: Likewise.
40906         * lib/xnanosleep.c: Likewise.
40907         * lib/xreadlink.c: Likewise.
40908         * lib/xreadlink.h: Likewise.
40909         * lib/xsetenv.c: Likewise.
40910         * lib/xsetenv.h: Likewise.
40911         * lib/xstriconv.c: Likewise.
40912         * lib/xstriconv.h: Likewise.
40913         * lib/xstrndup.c: Likewise.
40914         * lib/xstrndup.h: Likewise.
40915         * lib/xstrtod.c: Likewise.
40916         * lib/xstrtod.h: Likewise.
40917         * lib/xstrtol-error.c: Likewise.
40918         * lib/xstrtol.c: Likewise.
40919         * lib/xstrtol.h: Likewise.
40920         * lib/xtime.h: Likewise.
40921         * lib/xvasprintf.c: Likewise.
40922         * lib/xvasprintf.h: Likewise.
40923         * lib/yesno.c: Likewise.
40924         * lib/yesno.h: Likewise.
40925         * posix-modules: Likewise.
40926         * tests/test-alloca-opt.c: Likewise.
40927         * tests/test-arcfour.c: Likewise.
40928         * tests/test-arctwo.c: Likewise.
40929         * tests/test-argmatch.c: Likewise.
40930         * tests/test-argp-2.sh: Likewise.
40931         * tests/test-argp.c: Likewise.
40932         * tests/test-arpa_inet.c: Likewise.
40933         * tests/test-array_list.c: Likewise.
40934         * tests/test-array_oset.c: Likewise.
40935         * tests/test-atexit.c: Likewise.
40936         * tests/test-avltree_list.c: Likewise.
40937         * tests/test-avltree_oset.c: Likewise.
40938         * tests/test-avltreehash_list.c: Likewise.
40939         * tests/test-base64.c: Likewise.
40940         * tests/test-binary-io.c: Likewise.
40941         * tests/test-byteswap.c: Likewise.
40942         * tests/test-c-ctype.c: Likewise.
40943         * tests/test-c-strcasecmp.c: Likewise.
40944         * tests/test-c-strcasestr.c: Likewise.
40945         * tests/test-c-strncasecmp.c: Likewise.
40946         * tests/test-c-strstr.c: Likewise.
40947         * tests/test-canonicalize-lgpl.c: Likewise.
40948         * tests/test-canonicalize.c: Likewise.
40949         * tests/test-carray_list.c: Likewise.
40950         * tests/test-ceilf.c: Likewise.
40951         * tests/test-ceill.c: Likewise.
40952         * tests/test-count-one-bits.c: Likewise.
40953         * tests/test-crc.c: Likewise.
40954         * tests/test-dirname.c: Likewise.
40955         * tests/test-fbufmode.c: Likewise.
40956         * tests/test-fcntl.c: Likewise.
40957         * tests/test-fflush.c: Likewise.
40958         * tests/test-floorf.c: Likewise.
40959         * tests/test-floorl.c: Likewise.
40960         * tests/test-fopen.c: Likewise.
40961         * tests/test-fprintf-posix.c: Likewise.
40962         * tests/test-fprintf-posix.h: Likewise.
40963         * tests/test-fpurge.c: Likewise.
40964         * tests/test-freadable.c: Likewise.
40965         * tests/test-freadahead.c: Likewise.
40966         * tests/test-freading.c: Likewise.
40967         * tests/test-freopen.c: Likewise.
40968         * tests/test-frexp.c: Likewise.
40969         * tests/test-frexpl.c: Likewise.
40970         * tests/test-fseek.c: Likewise.
40971         * tests/test-fseeko.c: Likewise.
40972         * tests/test-fseterr.c: Likewise.
40973         * tests/test-fstrcmp.c: Likewise.
40974         * tests/test-ftell.c: Likewise.
40975         * tests/test-ftello.c: Likewise.
40976         * tests/test-fwritable.c: Likewise.
40977         * tests/test-fwriting.c: Likewise.
40978         * tests/test-getaddrinfo.c: Likewise.
40979         * tests/test-getpass.c: Likewise.
40980         * tests/test-gettimeofday.c: Likewise.
40981         * tests/test-hmac-md5.c: Likewise.
40982         * tests/test-hmac-sha1.c: Likewise.
40983         * tests/test-iconv.c: Likewise.
40984         * tests/test-iconvme.c: Likewise.
40985         * tests/test-inttypes.c: Likewise.
40986         * tests/test-isnan.c: Likewise.
40987         * tests/test-isnanf.c: Likewise.
40988         * tests/test-isnanl-nolibm.c: Likewise.
40989         * tests/test-isnanl.c: Likewise.
40990         * tests/test-isnanl.h: Likewise.
40991         * tests/test-ldexpl.c: Likewise.
40992         * tests/test-linked_list.c: Likewise.
40993         * tests/test-linkedhash_list.c: Likewise.
40994         * tests/test-locale.c: Likewise.
40995         * tests/test-localename.c: Likewise.
40996         * tests/test-lock.c: Likewise.
40997         * tests/test-lseek.c: Likewise.
40998         * tests/test-malloca.c: Likewise.
40999         * tests/test-math.c: Likewise.
41000         * tests/test-mbscasecmp.c: Likewise.
41001         * tests/test-mbscasestr1.c: Likewise.
41002         * tests/test-mbscasestr2.c: Likewise.
41003         * tests/test-mbscasestr3.c: Likewise.
41004         * tests/test-mbscasestr4.c: Likewise.
41005         * tests/test-mbschr.c: Likewise.
41006         * tests/test-mbscspn.c: Likewise.
41007         * tests/test-mbsncasecmp.c: Likewise.
41008         * tests/test-mbspbrk.c: Likewise.
41009         * tests/test-mbspcasecmp.c: Likewise.
41010         * tests/test-mbsrchr.c: Likewise.
41011         * tests/test-mbsspn.c: Likewise.
41012         * tests/test-mbsstr1.c: Likewise.
41013         * tests/test-mbsstr2.c: Likewise.
41014         * tests/test-mbsstr3.c: Likewise.
41015         * tests/test-md5.c: Likewise.
41016         * tests/test-memmem.c: Likewise.
41017         * tests/test-netinet_in.c: Likewise.
41018         * tests/test-open.c: Likewise.
41019         * tests/test-printf-frexp.c: Likewise.
41020         * tests/test-printf-frexpl.c: Likewise.
41021         * tests/test-printf-posix.c: Likewise.
41022         * tests/test-printf-posix.h: Likewise.
41023         * tests/test-rbtree_list.c: Likewise.
41024         * tests/test-rbtree_oset.c: Likewise.
41025         * tests/test-rbtreehash_list.c: Likewise.
41026         * tests/test-read-file.c: Likewise.
41027         * tests/test-rijndael.c: Likewise.
41028         * tests/test-search.c: Likewise.
41029         * tests/test-signbit.c: Likewise.
41030         * tests/test-sleep.c: Likewise.
41031         * tests/test-snprintf-posix.c: Likewise.
41032         * tests/test-snprintf-posix.h: Likewise.
41033         * tests/test-snprintf.c: Likewise.
41034         * tests/test-sprintf-posix.c: Likewise.
41035         * tests/test-sprintf-posix.h: Likewise.
41036         * tests/test-stat-time.c: Likewise.
41037         * tests/test-stdbool.c: Likewise.
41038         * tests/test-stdint.c: Likewise.
41039         * tests/test-stdio.c: Likewise.
41040         * tests/test-stdlib.c: Likewise.
41041         * tests/test-stpncpy.c: Likewise.
41042         * tests/test-strcasestr.c: Likewise.
41043         * tests/test-striconv.c: Likewise.
41044         * tests/test-striconveh.c: Likewise.
41045         * tests/test-striconveha.c: Likewise.
41046         * tests/test-string.c: Likewise.
41047         * tests/test-sys_select.c: Likewise.
41048         * tests/test-sys_socket.c: Likewise.
41049         * tests/test-sys_stat.c: Likewise.
41050         * tests/test-sys_time.c: Likewise.
41051         * tests/test-sysexits.c: Likewise.
41052         * tests/test-time.c: Likewise.
41053         * tests/test-tls.c: Likewise.
41054         * tests/test-trunc.c: Likewise.
41055         * tests/test-truncf.c: Likewise.
41056         * tests/test-truncl.c: Likewise.
41057         * tests/test-unistd.c: Likewise.
41058         * tests/test-vasnprintf-posix.c: Likewise.
41059         * tests/test-vasnprintf-posix2.c: Likewise.
41060         * tests/test-vasnprintf.c: Likewise.
41061         * tests/test-vasprintf-posix.c: Likewise.
41062         * tests/test-vasprintf.c: Likewise.
41063         * tests/test-verify.c: Likewise.
41064         * tests/test-vfprintf-posix.c: Likewise.
41065         * tests/test-vprintf-posix.c: Likewise.
41066         * tests/test-vsnprintf-posix.c: Likewise.
41067         * tests/test-vsnprintf.c: Likewise.
41068         * tests/test-vsprintf-posix.c: Likewise.
41069         * tests/test-wchar.c: Likewise.
41070         * tests/test-wctype.c: Likewise.
41071         * tests/test-wcwidth.c: Likewise.
41072         * tests/test-xstrtol.c: Likewise.
41073         * tests/test-xvasprintf.c: Likewise.
41074         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41075         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41076         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41077         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41078         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41079         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41080         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41081         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41082         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41083         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41084         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41085         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41086         * tests/uniname/test-uninames.c: Likewise.
41087         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41088         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
41089         * tests/unistdio/test-u16-printf1.h: Likewise.
41090         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41091         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41092         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41093         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41094         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41095         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41096         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41097         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
41098         * tests/unistdio/test-u32-printf1.h: Likewise.
41099         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41100         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41101         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41102         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41103         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41104         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41105         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41106         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
41107         * tests/unistdio/test-u8-printf1.h: Likewise.
41108         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41109         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41110         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41111         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41112         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41113         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41114         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41115         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
41116         * tests/unistdio/test-ulc-printf1.h: Likewise.
41117         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41118         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41119         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41120         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41121         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41122         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41123         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41124         * tests/uniwidth/test-u16-width.c: Likewise.
41125         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41126         * tests/uniwidth/test-u32-width.c: Likewise.
41127         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41128         * tests/uniwidth/test-u8-width.c: Likewise.
41129         * tests/uniwidth/test-uc_width.c: Likewise.
41130         * config/srclist-update: Likewise.
41131         (fixlicense): Update to GPLv3+.
41132
41133         Change copyright notice from LGPLv2.1+ to LGPLv3+.
41134         * tests/test-tsearch.c: Change copyright notice.
41135
41136         Change copyright notice from LGPLv2.0+ to LGPLv3+.
41137         * lib/c-strcaseeq.h: Change copyright notice.
41138         * lib/streq.h: Likewise.
41139         * lib/uniconv.h: Likewise.
41140         * lib/uniconv/u-conv-from-enc.h: Likewise.
41141         * lib/uniconv/u-conv-to-enc.h: Likewise.
41142         * lib/uniconv/u-strconv-from-enc.h: Likewise.
41143         * lib/uniconv/u-strconv-to-enc.h: Likewise.
41144         * lib/uniconv/u16-conv-from-enc.c: Likewise.
41145         * lib/uniconv/u16-conv-to-enc.c: Likewise.
41146         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
41147         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
41148         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
41149         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
41150         * lib/uniconv/u32-conv-from-enc.c: Likewise.
41151         * lib/uniconv/u32-conv-to-enc.c: Likewise.
41152         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
41153         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
41154         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
41155         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
41156         * lib/uniconv/u8-conv-from-enc.c: Likewise.
41157         * lib/uniconv/u8-conv-to-enc.c: Likewise.
41158         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
41159         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
41160         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
41161         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
41162         * lib/uniname.h: Likewise.
41163         * lib/uniname/uniname.c: Likewise.
41164         * lib/unistdio.h: Likewise.
41165         * lib/unistdio/u-asnprintf.h: Likewise.
41166         * lib/unistdio/u-asprintf.h: Likewise.
41167         * lib/unistdio/u-printf-args.c: Likewise.
41168         * lib/unistdio/u-printf-args.h: Likewise.
41169         * lib/unistdio/u-printf-parse.h: Likewise.
41170         * lib/unistdio/u-snprintf.h: Likewise.
41171         * lib/unistdio/u-sprintf.h: Likewise.
41172         * lib/unistdio/u-vasprintf.h: Likewise.
41173         * lib/unistdio/u-vsnprintf.h: Likewise.
41174         * lib/unistdio/u-vsprintf.h: Likewise.
41175         * lib/unistdio/u16-asnprintf.c: Likewise.
41176         * lib/unistdio/u16-asprintf.c: Likewise.
41177         * lib/unistdio/u16-printf-parse.c: Likewise.
41178         * lib/unistdio/u16-snprintf.c: Likewise.
41179         * lib/unistdio/u16-sprintf.c: Likewise.
41180         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
41181         * lib/unistdio/u16-u16-asprintf.c: Likewise.
41182         * lib/unistdio/u16-u16-snprintf.c: Likewise.
41183         * lib/unistdio/u16-u16-sprintf.c: Likewise.
41184         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
41185         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
41186         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
41187         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
41188         * lib/unistdio/u16-vasnprintf.c: Likewise.
41189         * lib/unistdio/u16-vasprintf.c: Likewise.
41190         * lib/unistdio/u16-vsnprintf.c: Likewise.
41191         * lib/unistdio/u16-vsprintf.c: Likewise.
41192         * lib/unistdio/u32-asnprintf.c: Likewise.
41193         * lib/unistdio/u32-asprintf.c: Likewise.
41194         * lib/unistdio/u32-printf-parse.c: Likewise.
41195         * lib/unistdio/u32-snprintf.c: Likewise.
41196         * lib/unistdio/u32-sprintf.c: Likewise.
41197         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
41198         * lib/unistdio/u32-u32-asprintf.c: Likewise.
41199         * lib/unistdio/u32-u32-snprintf.c: Likewise.
41200         * lib/unistdio/u32-u32-sprintf.c: Likewise.
41201         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
41202         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
41203         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
41204         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
41205         * lib/unistdio/u32-vasnprintf.c: Likewise.
41206         * lib/unistdio/u32-vasprintf.c: Likewise.
41207         * lib/unistdio/u32-vsnprintf.c: Likewise.
41208         * lib/unistdio/u32-vsprintf.c: Likewise.
41209         * lib/unistdio/u8-asnprintf.c: Likewise.
41210         * lib/unistdio/u8-asprintf.c: Likewise.
41211         * lib/unistdio/u8-printf-parse.c: Likewise.
41212         * lib/unistdio/u8-snprintf.c: Likewise.
41213         * lib/unistdio/u8-sprintf.c: Likewise.
41214         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
41215         * lib/unistdio/u8-u8-asprintf.c: Likewise.
41216         * lib/unistdio/u8-u8-snprintf.c: Likewise.
41217         * lib/unistdio/u8-u8-sprintf.c: Likewise.
41218         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
41219         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
41220         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
41221         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
41222         * lib/unistdio/u8-vasnprintf.c: Likewise.
41223         * lib/unistdio/u8-vasprintf.c: Likewise.
41224         * lib/unistdio/u8-vsnprintf.c: Likewise.
41225         * lib/unistdio/u8-vsprintf.c: Likewise.
41226         * lib/unistdio/ulc-asnprintf.c: Likewise.
41227         * lib/unistdio/ulc-asprintf.c: Likewise.
41228         * lib/unistdio/ulc-printf-parse.c: Likewise.
41229         * lib/unistdio/ulc-snprintf.c: Likewise.
41230         * lib/unistdio/ulc-sprintf.c: Likewise.
41231         * lib/unistdio/ulc-vasnprintf.c: Likewise.
41232         * lib/unistdio/ulc-vasprintf.c: Likewise.
41233         * lib/unistdio/ulc-vsnprintf.c: Likewise.
41234         * lib/unistdio/ulc-vsprintf.c: Likewise.
41235         * lib/unistr.h: Likewise.
41236         * lib/unistr/u-cpy-alloc.h: Likewise.
41237         * lib/unistr/u-cpy.h: Likewise.
41238         * lib/unistr/u-endswith.h: Likewise.
41239         * lib/unistr/u-move.h: Likewise.
41240         * lib/unistr/u-set.h: Likewise.
41241         * lib/unistr/u-startswith.h: Likewise.
41242         * lib/unistr/u-stpcpy.h: Likewise.
41243         * lib/unistr/u-stpncpy.h: Likewise.
41244         * lib/unistr/u-strcat.h: Likewise.
41245         * lib/unistr/u-strcpy.h: Likewise.
41246         * lib/unistr/u-strcspn.h: Likewise.
41247         * lib/unistr/u-strdup.h: Likewise.
41248         * lib/unistr/u-strlen.h: Likewise.
41249         * lib/unistr/u-strncat.h: Likewise.
41250         * lib/unistr/u-strncpy.h: Likewise.
41251         * lib/unistr/u-strnlen.h: Likewise.
41252         * lib/unistr/u-strpbrk.h: Likewise.
41253         * lib/unistr/u-strspn.h: Likewise.
41254         * lib/unistr/u-strstr.h: Likewise.
41255         * lib/unistr/u-strtok.h: Likewise.
41256         * lib/unistr/u16-check.c: Likewise.
41257         * lib/unistr/u16-chr.c: Likewise.
41258         * lib/unistr/u16-cmp.c: Likewise.
41259         * lib/unistr/u16-cpy-alloc.c: Likewise.
41260         * lib/unistr/u16-cpy.c: Likewise.
41261         * lib/unistr/u16-endswith.c: Likewise.
41262         * lib/unistr/u16-mblen.c: Likewise.
41263         * lib/unistr/u16-mbsnlen.c: Likewise.
41264         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41265         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41266         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41267         * lib/unistr/u16-mbtouc.c: Likewise.
41268         * lib/unistr/u16-mbtoucr.c: Likewise.
41269         * lib/unistr/u16-move.c: Likewise.
41270         * lib/unistr/u16-next.c: Likewise.
41271         * lib/unistr/u16-prev.c: Likewise.
41272         * lib/unistr/u16-set.c: Likewise.
41273         * lib/unistr/u16-startswith.c: Likewise.
41274         * lib/unistr/u16-stpcpy.c: Likewise.
41275         * lib/unistr/u16-stpncpy.c: Likewise.
41276         * lib/unistr/u16-strcat.c: Likewise.
41277         * lib/unistr/u16-strchr.c: Likewise.
41278         * lib/unistr/u16-strcmp.c: Likewise.
41279         * lib/unistr/u16-strcpy.c: Likewise.
41280         * lib/unistr/u16-strcspn.c: Likewise.
41281         * lib/unistr/u16-strdup.c: Likewise.
41282         * lib/unistr/u16-strlen.c: Likewise.
41283         * lib/unistr/u16-strmblen.c: Likewise.
41284         * lib/unistr/u16-strmbtouc.c: Likewise.
41285         * lib/unistr/u16-strncat.c: Likewise.
41286         * lib/unistr/u16-strncmp.c: Likewise.
41287         * lib/unistr/u16-strncpy.c: Likewise.
41288         * lib/unistr/u16-strnlen.c: Likewise.
41289         * lib/unistr/u16-strpbrk.c: Likewise.
41290         * lib/unistr/u16-strrchr.c: Likewise.
41291         * lib/unistr/u16-strspn.c: Likewise.
41292         * lib/unistr/u16-strstr.c: Likewise.
41293         * lib/unistr/u16-strtok.c: Likewise.
41294         * lib/unistr/u16-to-u32.c: Likewise.
41295         * lib/unistr/u16-to-u8.c: Likewise.
41296         * lib/unistr/u16-uctomb-aux.c: Likewise.
41297         * lib/unistr/u16-uctomb.c: Likewise.
41298         * lib/unistr/u32-check.c: Likewise.
41299         * lib/unistr/u32-chr.c: Likewise.
41300         * lib/unistr/u32-cmp.c: Likewise.
41301         * lib/unistr/u32-cpy-alloc.c: Likewise.
41302         * lib/unistr/u32-cpy.c: Likewise.
41303         * lib/unistr/u32-endswith.c: Likewise.
41304         * lib/unistr/u32-mblen.c: Likewise.
41305         * lib/unistr/u32-mbsnlen.c: Likewise.
41306         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41307         * lib/unistr/u32-mbtouc.c: Likewise.
41308         * lib/unistr/u32-mbtoucr.c: Likewise.
41309         * lib/unistr/u32-move.c: Likewise.
41310         * lib/unistr/u32-next.c: Likewise.
41311         * lib/unistr/u32-prev.c: Likewise.
41312         * lib/unistr/u32-set.c: Likewise.
41313         * lib/unistr/u32-startswith.c: Likewise.
41314         * lib/unistr/u32-stpcpy.c: Likewise.
41315         * lib/unistr/u32-stpncpy.c: Likewise.
41316         * lib/unistr/u32-strcat.c: Likewise.
41317         * lib/unistr/u32-strchr.c: Likewise.
41318         * lib/unistr/u32-strcmp.c: Likewise.
41319         * lib/unistr/u32-strcpy.c: Likewise.
41320         * lib/unistr/u32-strcspn.c: Likewise.
41321         * lib/unistr/u32-strdup.c: Likewise.
41322         * lib/unistr/u32-strlen.c: Likewise.
41323         * lib/unistr/u32-strmblen.c: Likewise.
41324         * lib/unistr/u32-strmbtouc.c: Likewise.
41325         * lib/unistr/u32-strncat.c: Likewise.
41326         * lib/unistr/u32-strncmp.c: Likewise.
41327         * lib/unistr/u32-strncpy.c: Likewise.
41328         * lib/unistr/u32-strnlen.c: Likewise.
41329         * lib/unistr/u32-strpbrk.c: Likewise.
41330         * lib/unistr/u32-strrchr.c: Likewise.
41331         * lib/unistr/u32-strspn.c: Likewise.
41332         * lib/unistr/u32-strstr.c: Likewise.
41333         * lib/unistr/u32-strtok.c: Likewise.
41334         * lib/unistr/u32-to-u16.c: Likewise.
41335         * lib/unistr/u32-to-u8.c: Likewise.
41336         * lib/unistr/u32-uctomb.c: Likewise.
41337         * lib/unistr/u8-check.c: Likewise.
41338         * lib/unistr/u8-chr.c: Likewise.
41339         * lib/unistr/u8-cmp.c: Likewise.
41340         * lib/unistr/u8-cpy-alloc.c: Likewise.
41341         * lib/unistr/u8-cpy.c: Likewise.
41342         * lib/unistr/u8-endswith.c: Likewise.
41343         * lib/unistr/u8-mblen.c: Likewise.
41344         * lib/unistr/u8-mbsnlen.c: Likewise.
41345         * lib/unistr/u8-mbtouc-aux.c: Likewise.
41346         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41347         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41348         * lib/unistr/u8-mbtouc.c: Likewise.
41349         * lib/unistr/u8-mbtoucr.c: Likewise.
41350         * lib/unistr/u8-move.c: Likewise.
41351         * lib/unistr/u8-next.c: Likewise.
41352         * lib/unistr/u8-prev.c: Likewise.
41353         * lib/unistr/u8-set.c: Likewise.
41354         * lib/unistr/u8-startswith.c: Likewise.
41355         * lib/unistr/u8-stpcpy.c: Likewise.
41356         * lib/unistr/u8-stpncpy.c: Likewise.
41357         * lib/unistr/u8-strcat.c: Likewise.
41358         * lib/unistr/u8-strchr.c: Likewise.
41359         * lib/unistr/u8-strcmp.c: Likewise.
41360         * lib/unistr/u8-strcpy.c: Likewise.
41361         * lib/unistr/u8-strcspn.c: Likewise.
41362         * lib/unistr/u8-strdup.c: Likewise.
41363         * lib/unistr/u8-strlen.c: Likewise.
41364         * lib/unistr/u8-strmblen.c: Likewise.
41365         * lib/unistr/u8-strmbtouc.c: Likewise.
41366         * lib/unistr/u8-strncat.c: Likewise.
41367         * lib/unistr/u8-strncmp.c: Likewise.
41368         * lib/unistr/u8-strncpy.c: Likewise.
41369         * lib/unistr/u8-strnlen.c: Likewise.
41370         * lib/unistr/u8-strpbrk.c: Likewise.
41371         * lib/unistr/u8-strrchr.c: Likewise.
41372         * lib/unistr/u8-strspn.c: Likewise.
41373         * lib/unistr/u8-strstr.c: Likewise.
41374         * lib/unistr/u8-strtok.c: Likewise.
41375         * lib/unistr/u8-to-u16.c: Likewise.
41376         * lib/unistr/u8-to-u32.c: Likewise.
41377         * lib/unistr/u8-uctomb-aux.c: Likewise.
41378         * lib/unistr/u8-uctomb.c: Likewise.
41379         * lib/unitypes.h: Likewise.
41380         * lib/uniwidth.h: Likewise.
41381         * lib/uniwidth/cjk.h: Likewise.
41382         * lib/uniwidth/u16-strwidth.c: Likewise.
41383         * lib/uniwidth/u16-width.c: Likewise.
41384         * lib/uniwidth/u32-strwidth.c: Likewise.
41385         * lib/uniwidth/u32-width.c: Likewise.
41386         * lib/uniwidth/u8-strwidth.c: Likewise.
41387         * lib/uniwidth/u8-width.c: Likewise.
41388         * lib/uniwidth/width.c: Likewise.
41389
41390 2007-10-07  Bruno Haible  <bruno@clisp.org>
41391
41392         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
41393         The file is still under LGPL (see modules/inttypes).
41394
41395 2007-10-06  Bruno Haible  <bruno@clisp.org>
41396
41397         * modules/trunc (Dependencies): Add 'extensions'.
41398         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
41399         Reported by Ben Pfaff <blp@gnu.org>.
41400
41401 2007-10-06  Bruno Haible  <bruno@clisp.org>
41402
41403         * modules/freopen-tests: New file.
41404         * tests/test-freopen.c: New file.
41405
41406         * modules/fopen-tests: New file.
41407         * tests/test-fopen.c: New file.
41408
41409         * modules/fopen: New file.
41410         * lib/fopen.c: New file.
41411         * m4/fopen.m4: New file.
41412         * modules/freopen: New file.
41413         * lib/freopen.c: New file.
41414         * m4/freopen.m4: New file.
41415         * lib/stdio.in.h (fopen, freopen): New declarations.
41416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41417         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41418         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41419         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41420         * doc/functions/fopen.texi: Mention the 'fopen' module.
41421         * doc/functions/freopen.texi: Mention the 'freopen' module.
41422
41423 2007-10-06  Bruno Haible  <bruno@clisp.org>
41424
41425         * modules/open-tests: New file.
41426         * tests/test-open.c: New file.
41427
41428         * modules/open: New file.
41429         * lib/open.c: New file.
41430         * m4/open.m4: New file.
41431         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41432         lib/open.c does.
41433         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41434         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41435         macros.
41436         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41437         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41438         REPLACE_OPEN.
41439         * doc/functions/open.texi: Mention the 'open' module.
41440
41441 2007-10-04  Bruno Haible  <bruno@clisp.org>
41442
41443         * modules/ceill-tests: New file.
41444         * tests/test-ceill.c: New file.
41445
41446         * modules/ceill: New file.
41447         * lib/ceill.c: Replace entire file.
41448         * m4/ceill.m4: New file.
41449         * lib/math.in.h (ceill): Replace declaration.
41450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
41451         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
41452         * doc/functions/ceill.texi: Mention the 'ceill' module.
41453         * modules/mathl (Files): Remove lib/ceill.c.
41454         (Depends-on): Add ceill.
41455
41456 2007-10-04  Bruno Haible  <bruno@clisp.org>
41457
41458         * modules/ceilf-tests: New file.
41459         * tests/test-ceilf.c: New file.
41460
41461         * modules/ceilf: New file.
41462         * lib/ceil.c: New file.
41463         * lib/ceilf.c: New file.
41464         * m4/ceilf.m4: New file.
41465         * lib/math.in.h (ceilf): New declaration.
41466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41467         HAVE_DECL_CEILF.
41468         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41469         HAVE_DECL_CEILF.
41470         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41471
41472 2007-10-04  Bruno Haible  <bruno@clisp.org>
41473
41474         * modules/floorl-tests: New file.
41475         * tests/test-floorl.c: New file.
41476
41477         * modules/floorl: New file.
41478         * lib/floorl.c: Replace entire file.
41479         * m4/floorl.m4: New file.
41480         * lib/math.in.h (floorl): Replace declaration.
41481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41482         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41483         * doc/functions/floorl.texi: Mention the 'floorl' module.
41484         * modules/mathl (Files): Remove lib/floorl.c.
41485         (Depends-on): Add floorl.
41486
41487 2007-10-04  Bruno Haible  <bruno@clisp.org>
41488
41489         * modules/floorf-tests: New file.
41490         * tests/test-floorf.c: New file.
41491
41492         * modules/floorf: New file.
41493         * lib/floor.c: New file.
41494         * lib/floorf.c: New file.
41495         * m4/floorf.m4: New file.
41496         * lib/math.in.h (floorf): New declaration.
41497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41498         HAVE_DECL_FLOORF.
41499         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41500         HAVE_DECL_FLOORF.
41501         * doc/functions/floorf.texi: Mention the 'floorf' module.
41502
41503 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41504             Bruno Haible  <bruno@clisp.org>
41505
41506         Advertise for the Git server instead of the CVS server.
41507         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41508         repository instead of the CVS one.
41509         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41510         about all VCS systems generically.
41511         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41512
41513 2007-10-04  Bruno Haible  <bruno@clisp.org>
41514
41515         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41516         means.
41517         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41518
41519 2007-10-04  Bruno Haible  <bruno@clisp.org>
41520
41521         * modules/truncl-tests: New file.
41522         * tests/test-truncl.c: New file.
41523
41524         * modules/truncl: New file.
41525         * lib/truncl.c: New file.
41526         * m4/truncl.m4: New file.
41527         * lib/math.in.h (truncl): New declaration.
41528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41529         HAVE_DECL_TRUNCL.
41530         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41531         HAVE_DECL_TRUNCL.
41532         * doc/functions/truncl.texi: Mention the 'truncl' module.
41533
41534 2007-10-04  Bruno Haible  <bruno@clisp.org>
41535
41536         * modules/truncf-tests: New file.
41537         * tests/test-truncf.c: New file.
41538
41539         * modules/truncf: New file.
41540         * lib/trunc.c: Make paramerizable through USE_* macros.
41541         * lib/truncf.c: New file.
41542         * m4/truncf.m4: New file.
41543         * lib/math.in.h (truncf): New declaration.
41544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41545         HAVE_DECL_TRUNCF.
41546         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41547         HAVE_DECL_TRUNCF.
41548         * doc/functions/truncf.texi: Mention the 'truncf' module.
41549
41550 2007-10-03  Bruno Haible  <bruno@clisp.org>
41551
41552         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41553         augmentation also for tests modules.
41554         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41555         * modules/atexit-tests (Makefile.am): Likewise.
41556         * modules/binary-io-tests (Makefile.am): Likewise.
41557         * modules/c-strcase-tests (Makefile.am): Likewise.
41558         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41559         * modules/canonicalize-tests (Makefile.am): Likewise.
41560         * modules/closein-tests (Makefile.am): Likewise.
41561         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41562         * modules/freadahead-tests (Makefile.am): Likewise.
41563         * modules/fseek-tests (Makefile.am): Likewise.
41564         * modules/fseeko-tests (Makefile.am): Likewise.
41565         * modules/ftell-tests (Makefile.am): Likewise.
41566         * modules/ftello-tests (Makefile.am): Likewise.
41567         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41568         * modules/isnanl-tests (Makefile.am): Likewise.
41569         * modules/lseek-tests (Makefile.am): Likewise.
41570         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41571         * modules/mbscasestr-tests (Makefile.am): Likewise.
41572         * modules/mbschr-tests (Makefile.am): Likewise.
41573         * modules/mbscspn-tests (Makefile.am): Likewise.
41574         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41575         * modules/mbspbrk-tests (Makefile.am): Likewise.
41576         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41577         * modules/mbsrchr-tests (Makefile.am): Likewise.
41578         * modules/mbsspn-tests (Makefile.am): Likewise.
41579         * modules/mbsstr-tests (Makefile.am): Likewise.
41580         * modules/printf-posix-tests (Makefile.am): Likewise.
41581         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41582         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41583         * modules/tsearch-tests (Makefile.am): Likewise.
41584         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41585         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41586         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41587         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41588         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41589         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41590         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41591         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41592         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41593         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41594         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41595         * modules/xstrtol-tests (Makefile.am): Likewise.
41596         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41597         * modules/yesno-tests (Makefile.am): Likewise.
41598
41599 2007-10-03  Bruno Haible  <bruno@clisp.org>
41600
41601         * modules/trunc-tests: New file.
41602         * tests/test-trunc.c: New file.
41603
41604         * modules/trunc: New file.
41605         * lib/trunc.c: New file.
41606         * m4/trunc.m4: New file.
41607         * lib/math.in.h (trunc): New declaration.
41608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41609         HAVE_DECL_TRUNC.
41610         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41611         HAVE_DECL_TRUNC.
41612         * doc/functions/trunc.texi: Mention the 'trunc' module.
41613
41614 2007-10-03  Bruno Haible  <bruno@clisp.org>
41615
41616         * tests/test-fpending.c: New file, mostly copied
41617         from coreutils/lib/t-fpending.c.
41618         * modules/fpending-tests: New file.
41619
41620 2007-10-03  Bruno Haible  <bruno@clisp.org>
41621
41622         Port the stdio extensions to QNX (untested).
41623         * lib/fseterr.c (fseterr): Add support for QNX.
41624         * lib/fbufmode.c (fbufmode): Likewise.
41625         * lib/freadable.c (freadable): Likewise.
41626         * lib/fwritable.c (fwritable): Likewise.
41627         * lib/freading.c (freading): Likewise.
41628         * lib/fwriting.c (fwriting): Likewise.
41629         * lib/freadahead.c (freadahed): Likewise.
41630         * lib/fpurge.c (fpurge): Likewise.
41631         * lib/fseeko.c (rpl_fseeko): Likewise.
41632
41633 2007-10-03  Bruno Haible  <bruno@clisp.org>
41634             Jim Meyering  <jim@meyering.net>
41635             Eric Blake  <ebb9@byu.net>
41636
41637         * doc/relocatable.texi: Use @command instead of @program.
41638
41639 2007-10-02  Jim Meyering  <jim@meyering.net>
41640
41641         Perform one more "_.h" -> ".in.h" substitution.
41642         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41643         instead of unistd_.h here, too.
41644
41645 2007-10-01  Bruno Haible  <bruno@clisp.org>
41646
41647         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41648         Needed for the alloca-opt module.
41649
41650 2007-09-30  Bruno Haible  <bruno@clisp.org>
41651
41652         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41653         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41654         alloca_.h.
41655         * lib/argz.in.h: Renamed from lib/argz_.h.
41656         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41657         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41658         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41659         byteswap_.h.
41660         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41661         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41662         dirent_.h.
41663         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41664         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41665         fcntl_.h.
41666         * lib/float.in.h: Renamed from lib/float_.h.
41667         * modules/float (Files, Makefile.am): Use float.in.h instead of
41668         float_.h.
41669         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41670         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41671         fnmatch_.h.
41672         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41673         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41674         getopt_.h.
41675         * lib/glob.in.h: Renamed from lib/glob_.h.
41676         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41677         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41678         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41679         iconv_.h.
41680         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41681         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41682         inttypes_.h.
41683         * lib/locale.in.h: Renamed from lib/locale_.h.
41684         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41685         locale_.h.
41686         * lib/math.in.h: Renamed from lib/math_.h.
41687         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41688         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41689         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41690         of netinet_in_.h. Add dependency.
41691         * lib/poll.in.h: Renamed from lib/poll_.h.
41692         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41693         * lib/search.in.h: Renamed from lib/search_.h.
41694         * modules/search (Files, Makefile.am): Use search.in.h instead of
41695         search_.h.
41696         * lib/signal.in.h: Renamed from lib/signal_.h.
41697         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41698         _signal.h.
41699         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41700         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41701         stdbool_.h.
41702         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41703         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41704         stdint_.h.
41705         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41706         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41707         stdio_.h.
41708         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41709         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41710         stdlib_.h.
41711         * lib/string.in.h: Renamed from lib/string_.h.
41712         * modules/string (Files, Makefile.am): Use string.in.h instead of
41713         string_.h.
41714         * doc/gnulib-tool.texi (Initial import): Update.
41715         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41716         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41717         of sys_select_.h. Add dependency.
41718         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41719         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41720         of sys_socket_.h.
41721         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41722         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41723         sys_stat_.h.
41724         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41725         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41726         sys_time_.h.
41727         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41728         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41729         sysexits_.h.
41730         * lib/time.in.h: Renamed from lib/time_.h.
41731         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41732         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41733         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41734         unistd_.h.
41735         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41736         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41737         wchar_.h.
41738         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41739         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41740         wctype_.h.
41741         * build-aux/bootstrap (slurp): Update.
41742         * lib/.cppi-disable: Update.
41743
41744 2007-09-30  Bruno Haible  <bruno@clisp.org>
41745
41746         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41747         Needed on BeOS.
41748
41749 2007-09-30  Bruno Haible  <bruno@clisp.org>
41750
41751         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41752
41753 2007-09-29  Bruno Haible  <bruno@clisp.org>
41754
41755         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41756
41757 2007-09-29  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41760         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41761         * build-aux/install-reloc: Compile also areadlink.c.
41762         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41763
41764 2007-09-29  Bruno Haible  <bruno@clisp.org>
41765
41766         * gnulib-tool (func_emit_initmacro_done): Indentation.
41767
41768 2007-09-29  Bruno Haible  <bruno@clisp.org>
41769
41770         * README: Add CVS checkout update instructions.
41771         Info from Bob Proulx <bob@proulx.com>.
41772
41773 2007-09-28  Eric Blake  <ebb9@byu.net>
41774
41775         Provide move-if-change.
41776         * build-aux/move-if-change: New file, based on best practice
41777         rather than any canonical upstream location.
41778
41779 2007-09-28  Jim Meyering  <jim@meyering.net>
41780
41781         Fix canonicalize loop-detection corner case.
41782         Do not attempt to stat the symlink values stored via seen_triple.
41783         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41784         on linux-2.6.18, (but not 2.6.22).
41785         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41786         triple_compare.  The former compares dev,ino,filename, while the latter
41787         would actually stat dirname(filename) when dev and ino were equal.
41788         * lib/hash-triple.c: Install <string.h>.
41789         (STREQ): Define.
41790         (triple_compare_ino_str): New function.
41791         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41792
41793 2007-09-28  Eric Blake  <ebb9@byu.net>
41794
41795         Enforce that AC_REPLACE_FUNCS files exist.
41796         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41797         override check for typos.
41798
41799         Fix test-closein on Solaris 10.
41800         * tests/test-closein.c (main): Don't assume stdin can be inherited
41801         closed on all systems.
41802         * tests/test-closein.sh: Likewise.
41803         Reported by Piotr Tarnowski.
41804
41805 2007-09-28  Jim Meyering  <jim@meyering.net>
41806
41807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41808
41809 2007-09-27  Jim Meyering  <jim@meyering.net>
41810
41811         canonicalize: Avoid a false-positive cycle failure.
41812         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41813         Sort.  Remove cycle-check.
41814         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41815         not cycle-check.h.
41816         (seen_triple): New function.
41817         (canonicalize_filename_mode): Use it instead of cycle-check.
41818         * tests/test-canonicalize.c: Add a test for this bug.
41819         * tests/test-canonicalize.sh: Set up and run the test.
41820
41821         New module, file-set, from coreutils.
41822         * modules/file-set: Define it.
41823         * lib/file-set.c, lib/file-set.h: Implement.
41824
41825         New module, hash-triple, from coreutils.
41826         * modules/hash-triple: Define it.
41827         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41828
41829 2007-09-25  Eric Blake  <ebb9@byu.net>
41830
41831         Fix strerror on Interix.
41832         * lib/string_.h (strerror): Declare replacement.
41833         * doc/functions/strerror.texi (strerror): Document the Interix
41834         shortcoming.
41835         * modules/string (Makefile.am): Support new hooks.
41836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41837         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41838         gl_FUNC_STRERROR_SEPARATE.
41839         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41840         * lib/strerror.c (rpl_strerror): Provide replacement.
41841         * modules/strerror (Depends-on): Add string.
41842         (configure.ac): Detect use of module.
41843         * tests/test-strerror.c: New file.
41844         * modules/strerror-tests: New test module.
41845         * modules/argp (Depends-on): Add strerror.
41846         * modules/error (Depends-on): Likewise.
41847         Reported by Martin Koeppe.
41848
41849 2007-09-24  Bruno Haible  <bruno@clisp.org>
41850
41851         * README: Update git instructions.
41852
41853 2007-09-24  Eric Blake  <ebb9@byu.net>
41854
41855         Revert fpending breakage from 2007-09-08.
41856         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41857         __fpending.c.
41858
41859 2007-09-24  Jim Meyering  <jim@meyering.net>
41860
41861         filenamecat.c: Add a test.
41862         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41863         showing how the function works when DIR is the empty string.
41864
41865 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41866
41867         * tests/test-canonicalize.sh: Turn on executable bit.
41868
41869 2007-09-19  Eric Blake  <ebb9@byu.net>
41870
41871         * README: Update CVS instructions.
41872
41873 2007-09-18  Bruno Haible  <bruno@clisp.org>
41874
41875         * modules/areadlink: New file.
41876         * lib/areadlink.h (areadlink): New declaration.
41877         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41878
41879 2007-09-17  Jim Meyering  <jim@meyering.net>
41880
41881         * lib/savewd.c (ESTALE) [!defined]: Define.
41882         Reported to be required on Interix by Martin Koeppe.
41883
41884 2007-09-17  Bruno Haible  <bruno@clisp.org>
41885
41886         * gnulib-tool (func_version): Use $version.
41887
41888 2007-09-16  Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41891         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41892         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41893         Reported by Greg Schafer <gschafer@zip.com.au>.
41894
41895 2007-09-15  Bruno Haible  <bruno@clisp.org>
41896
41897         * gnulib-tool (sed): Try a little harder to make bash understand the
41898         alias.
41899         Reported by Bruce Korb <bruce.korb@gmail.com>.
41900
41901 2007-09-13  Eric Blake  <ebb9@byu.net>
41902
41903         * ChangeLog: Remove conflict markers.
41904
41905 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41906
41907         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41908         Reported by Bruno Haible <bruno@clisp.org>.
41909
41910 2007-09-12  Bruno Haible  <bruno@clisp.org>
41911
41912         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41913         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41914         is not defined.
41915
41916 2007-09-12  Eric Blake  <ebb9@byu.net>
41917
41918         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41919         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41920         Autoconf definition.
41921         * modules/euidaccess (Depends-on): Add extensions, for
41922         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41923         * modules/fnmatch (Depends-on): Likewise.
41924         * modules/getaddrinfo (Depends-on): Likewise.
41925         * modules/getdelim (Depends-on): Likewise.
41926         * modules/getline (Depends-on): Likewise.
41927         * modules/getsubopt (Depends-on): Likewise.
41928         * modules/gettext (Depends-on): Likewise.
41929         * modules/group-member (Depends-on): Likewise.
41930         * modules/mbchar (Depends-on): Likewise.
41931         * modules/memmem (Depends-on): Likewise.
41932         * modules/mempcpy (Depends-on): Likewise.
41933         * modules/memrchr (Depends-on): Likewise.
41934         * modules/pagealign_alloc (Depends-on): Likewise.
41935         * modules/readutmp (Depends-on): Likewise.
41936         * modules/stpcpy (Depends-on): Likewise.
41937         * modules/stpncpy (Depends-on): Likewise.
41938         * modules/strchrnul (Depends-on): Likewise.
41939         * modules/strndup (Depends-on): Likewise.
41940         * modules/strsep (Depends-on): Likewise.
41941         * modules/strverscmp (Depends-on): Likewise.
41942         * modules/vasprintf (Depends-on): Likewise.
41943         * modules/wcwidth (Depends-on): Likewise.
41944         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41945         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41946         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41947         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41948         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41949         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41950         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41951         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41952         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41953         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41955         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41956         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41957         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41958         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41959         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41960         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41961         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41962         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41963         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41965         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41966         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41967         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41968         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41970         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41971         so that lock.m4 can be used in gettext without extensions module.
41972
41973 2007-09-11  Bruno Haible  <bruno@clisp.org>
41974
41975         * m4/isc-posix.m4: Remove file.
41976         Suggested by Eric Blake.
41977
41978 2007-09-11  Eric Blake  <ebb9@byu.net>
41979
41980         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41981
41982 2007-09-10  Bruno Haible  <bruno@clisp.org>
41983
41984         * posix-modules: Fix typo in error message.
41985         Reported by Matt <mkraai@beckman.com>.
41986
41987 2007-09-09  Bruno Haible  <bruno@clisp.org>
41988
41989         * doc/functions/getdelim.texi: Update list of platforms lacking the
41990         function.
41991         * doc/functions/getline.texi: Likewise.
41992
41993 2007-09-09  Jim Meyering  <jim@meyering.net>
41994
41995         * lib/hash.c (hash_initialize): Detect calloc failure.
41996         Reported by Bruno Haible.
41997
41998 2007-09-09  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
42001         malloc or realloc fails.
42002
42003 2007-09-09  Bruno Haible  <bruno@clisp.org>
42004
42005         * modules/getcwd (Depends-on): Add malloc-posix.
42006         * modules/glob (Depends-on): Likewise.
42007         * modules/putenv (Depends-on): Likewise.
42008         * modules/strdup (Depends-on): Likewise.
42009         * modules/getdelim (Depends-on): Add realloc-posix.
42010         * modules/read-file (Depends-on): Likewise.
42011
42012 2007-09-09  Bruno Haible  <bruno@clisp.org>
42013
42014         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
42015         (gl_FUNC_MALLOC_POSIX): Require it.
42016         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
42017         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
42018         * modules/realloc (Files): Add m4/malloc.m4.
42019         * modules/calloc (Files): Likewise.
42020
42021 2007-09-09  Bruno Haible  <bruno@clisp.org>
42022
42023         * modules/malloc-posix: New file.
42024         * modules/malloc (Depends-on): Add malloc-posix.
42025         * lib/malloc.c: Include errno.h.
42026         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
42027         and a POSIX-compatible malloc into a single function. Set ENOMEM
42028         when returning NULL.
42029         * m4/malloc.m4: New file.
42030         * doc/functions/malloc.texi: Mention the malloc-posix module.
42031         * lib/stdlib_.h (malloc): New declaration.
42032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42033         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
42034         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
42035         and HAVE_MALLOC_POSIX.
42036
42037 2007-09-09  Bruno Haible  <bruno@clisp.org>
42038
42039         * modules/realloc-posix: New file.
42040         * modules/realloc (Depends-on): Add realloc-posix.
42041         * lib/realloc.c: Include errno.h.
42042         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
42043         and a POSIX-compatible realloc into a single function. Set ENOMEM
42044         when returning NULL.
42045         * m4/realloc.m4: New file.
42046         * doc/functions/realloc.texi: Mention the realloc-posix module.
42047         * lib/stdlib_.h (realloc): New declaration.
42048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42049         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
42050         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
42051         and HAVE_REALLOC_POSIX.
42052
42053 2007-09-09  Bruno Haible  <bruno@clisp.org>
42054
42055         * modules/calloc-posix: New file.
42056         * modules/calloc (Depends-on): Add calloc-posix.
42057         * lib/calloc.c: Include errno.h.
42058         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
42059         and a POSIX-compatible calloc into a single function. Set ENOMEM
42060         when returning NULL.
42061         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
42062         * doc/functions/calloc.texi: Mention the calloc-posix module.
42063         * lib/stdlib_.h (calloc): New declaration.
42064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42065         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
42066         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
42067         and HAVE_CALLOC_POSIX.
42068
42069 2007-09-09  Bruno Haible  <bruno@clisp.org>
42070
42071         Allow for modules to show an arbitrary notice.
42072         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
42073         * gnulib-tool: New option --extract-notice.
42074         (func_usage): Document it.
42075         (sed_extract_prog): Update.
42076         (func_get_notice): New function.
42077         (func_modules_notice): New function.
42078         (func_import, func_create_testdir): Invoke it.
42079         Suggested by Jim Meyering.
42080
42081 2007-09-09  Bruno Haible  <bruno@clisp.org>
42082
42083         * gnulib-tool: New options --verbose, --quiet.
42084         (func_usage): Document them.
42085         (verbose): New variable.
42086         (func_execute_command): New function.
42087         (func_import): Don't show the module list and the file list if
42088         $verbose < 0.
42089         (func_create_testdir): Likewise. Use func_execute_command.
42090         (func_create_megatestdir): Use func_execute_command.
42091
42092 2007-09-08  Bruno Haible  <bruno@clisp.org>
42093
42094         * gnulib-tool (func_import): Prefer rsync over wget when available,
42095         for fetching the PO files.
42096
42097 2007-09-08  Bruno Haible  <bruno@clisp.org>
42098
42099         * posix-modules: New file. Portions copied from gnulib-tool.
42100         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
42101
42102 2007-09-08  Jim Meyering  <jim@meyering.net>
42103
42104         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
42105         * lib/fpending.h: Rename from __fpending.h.
42106         * lib/fpending.c: Rename from __fpending.c.
42107         Include "fpending.h", not "__fpending.h".
42108         * lib/__fpending.h, lib/__fpending.c: Remove files.
42109         * modules/fpending (Files): Reflect new file names.
42110         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
42111
42112 2007-09-08  Bruno Haible  <bruno@clisp.org>
42113
42114         * m4/inttypes-h.m4: Remove stub file.
42115
42116 2007-09-07  Simon Josefsson  <simon@josefsson.org>
42117
42118         * doc/headers/stdint.texi: Discuss #include_next issue.
42119
42120 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42121
42122         * build-aux/bootstrap: Remove obsolete comment about wget --help.
42123
42124 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42125
42126         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
42127         in variable name.
42128
42129 2007-09-03  Jim Meyering  <jim@meyering.net>
42130
42131         New module: git-version-gen.
42132         * modules/git-version-gen: New file.
42133
42134         Import changes from coreutils for bootstrap script.
42135
42136         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
42137
42138         bootstrap: uses rsync to download the .po files
42139         * build-aux/bootstrap (po_download_command_format): New global.
42140         (download_po_files): Use rsync.
42141         (update_po_files): Don't remove .po files after download,
42142         so future rsync runs can take advantage of the copies.
42143
42144         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
42145
42146         Solve the unnecessary-.po-file-regeneration problem once and for all.
42147         * build-aux/bootstrap (download_po_files): New function, renamed from
42148         get_translations.  Now, downloads, but doesn't update LINGUAS.
42149         (update_po_files): New function.
42150
42151         bootstrap: Ignore more.
42152         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
42153         uniwidth to e.g., lib/.gitignore.
42154         (slurp): Handle the sys_stat_.h -> sys mapping, too.
42155
42156         * build-aux/bootstrap: New setting: vc_ignore.
42157         (insert_sorted_if_absent): Create $file if absent.
42158         Adapt to new, possibly empty, list: $vc_ignore.
42159
42160         bootstrap: generate more ignorable names
42161         * build-aux/bootstrap (slurp): When generating ignorable names,
42162         also map .sin to .sed, .gperf to .c, and .y to .c.
42163
42164 2007-09-03  Jim Meyering  <jim@meyering.net>
42165
42166         * build-aux/git-version-gen: New file, from coreutils.  For details, see
42167         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
42168
42169 2007-09-02  Bruno Haible  <bruno@clisp.org>
42170
42171         Fix mis-recognition of 'mcs' on QNX 6.
42172         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
42173         output contains the string "Mono".
42174         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
42175         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
42176
42177 2007-09-01  Bruno Haible  <bruno@clisp.org>
42178
42179         Fix collision between uniwidth/* and linebreak modules.
42180         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
42181         u32_width): Remove declarations.
42182         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
42183         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
42184         streq3, streq2, streq1, streq0): Remove functions.
42185         (STREQ): Remove macro.
42186         (is_cjk_encoding): Remove function.
42187         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
42188         (uc_width, u8_width, u16_width, u32_width): Remove functions.
42189         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
42190         * NEWS: Document the change.
42191
42192 2007-09-01  Bruno Haible  <bruno@clisp.org>
42193
42194         * lib/streq.h: Add double-inclusion guard.
42195
42196 2007-09-01  Karl Berry  <karl@gnu.org>
42197
42198         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
42199
42200 2007-08-28  Jim Meyering  <jim@meyering.net>
42201
42202         Rename mreadlink_with_size to areadlink_with_size.
42203         * NEWS: Document the change.
42204         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
42205         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
42206         * lib/mreadlink.h: Rename this to...
42207         * lib/areadlink.h: ...this.
42208         * modules/mreadlink-with-size: Rename this to...
42209         * modules/areadlink-with-size: ...this.
42210         * lib/canonicalize.c: Reflect the renaming.
42211         * modules/canonicalize: Likewise.
42212
42213 2007-08-26  Bruno Haible  <bruno@clisp.org>
42214
42215         * gnulib-tool (func_import): When deciding which files to remove,
42216         consider also dangling symbolic links.
42217         Reported by Eric Blake.
42218
42219 2007-08-26  Bruno Haible  <bruno@clisp.org>
42220
42221         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
42222
42223 2007-08-23  Simon Josefsson  <simon@josefsson.org>
42224
42225         * lib/readline.c: Don't include getline.h, the prototype is now
42226         found in stdio.h.
42227
42228 2007-08-23  Jim Meyering  <jim@meyering.net>
42229
42230         Getdelim touchup.
42231         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
42232         around the funlockfile call, since funlockfile never sets errno.
42233         Don't set errno upon failed realloc.
42234
42235 2007-08-22  Eric Blake  <ebb9@byu.net>
42236
42237         Getline touchups.
42238         * lib/getdelim.c (getdelim): Revert regression that required *n to
42239         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
42240         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
42241         getdelim, rather than whether implementation is missing.
42242         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
42243         * lib/stdio_.h (getline): Also declare if replacement is
42244         required.
42245         * doc/functions/getdelim.texi: New file.
42246         * doc/functions/getline.texi: Likewise.
42247         * doc/gnulib.texi (Function Substitutes): Add new files.
42248         Reported by Bruno Haible.
42249
42250 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
42251
42252         * users.txt: Add Guile.
42253
42254 2007-08-22  Eric Blake  <ebb9@byu.net>
42255
42256         * tests/test-getdelim.c (main): Use remove, not unlink.
42257         * tests/test-getline.c (main): Likewise.
42258
42259         Move getline and getdelim into stdio.h, per POSIX 200x.
42260         * modules/getline (Files): Remove getline.h.
42261         (Depends-on): Add stdio.
42262         (configure.ac): Add module indicator.
42263         * modules/getdelim (Files): Remove getdelim.h.
42264         (Depends-on): Add stdio.
42265         (configure.ac): Add module indicator.
42266         * modules/stdio (Makefile.am): Work with new indicators.
42267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42268         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
42269         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42270         * lib/getdelim.h: Delete.
42271         * lib/getline.h: Delete.
42272         * lib/stdio_.h (getdelim, getline): Declare.
42273         * modules/getdelim-tests: New module.
42274         * modules/getline-tests: Likewise.
42275         * tests/test-getdelim.c: New file.
42276         * tests/test-getline.c: Likewise.
42277         * NEWS: Document the change.
42278         * lib/getline.c: Update choice of header.
42279         * lib/csharpcomp.c: Likewise.
42280         * lib/getpass.c: Likewise.
42281         * lib/javacomp.c: Likewise.
42282         * lib/javaversion.c: Likewise.
42283         * lib/yesno.c: Likewise.
42284         * lib/getdelim.c: Likewise.
42285         (getdelim): Set errno on failure, and avoid memory leak.
42286
42287 2007-08-19  Bruno Haible  <bruno@clisp.org>
42288
42289         * modules/closein (Depends-on): Add freadahead.
42290         * lib/closein.c: Include freadahead.h.
42291         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
42292         is zero.
42293
42294 2007-08-19  Bruno Haible  <bruno@clisp.org>
42295
42296         * modules/freadahead-tests: New file.
42297         * tests/test-freadahead.sh: New file.
42298         * tests/test-freadahead.c: New file.
42299
42300         * modules/freadahead: New file.
42301         * lib/freadahead.h: New file.
42302         * lib/freadahead.c: New file.
42303         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
42304         fbufmode, fpurge, freadable, fwritable.
42305
42306 2007-08-19  Eric Blake  <ebb9@byu.net>
42307
42308         Test yesno in combination with closein.
42309         * lib/yesno.c (yesno): Document use of stdin.
42310         * modules/yesno-tests (Files): New module.
42311         * tests/test-yesno.c (main): New file.
42312         * tests/test-yesno.sh: Likewise.
42313
42314 2007-08-19  Bruno Haible  <bruno@clisp.org>
42315
42316         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
42317         * lib/fseeko.c (rpl_fseeko): Likewise.
42318         * lib/fseterr.c (fseterr): Likewise.
42319
42320 2007-08-19  Bruno Haible  <bruno@clisp.org>
42321
42322         * tests/test-lseek.c (main): Disable a test for BeOS.
42323         * doc/functions/lseek.texi: Document the BeOS bug.
42324
42325 2007-08-19  Bruno Haible  <bruno@clisp.org>
42326             Eric Blake  <ebb9@byu.net>
42327
42328         * lib/lseek.c: Include <sys/stat.h>.
42329         (rpl_lseek): Add workaround code also for Unix platforms.
42330         Needed for BeOS.
42331         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
42332         * doc/functions/lseek.texi: Document BeOS definiency.
42333
42334 2007-08-18  Bruno Haible  <bruno@clisp.org>
42335
42336         * modules/fstrcmp-tests: New file.
42337         * tests/test-fstrcmp.c: New file.
42338
42339 2007-08-18  Bruno Haible  <bruno@clisp.org>
42340
42341         * modules/fstrcmp: New file, from GNU gettext with modifications.
42342         * lib/fstrcmp.h: New file, from GNU gettext.
42343         * lib/fstrcmp.c: New file, from GNU gettext.
42344         * MODULES.html.sh (String handling): Add fstrcmp.
42345
42346 2007-08-18  Bruno Haible  <bruno@clisp.org>
42347
42348         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
42349         'bool'.
42350         (diag, compareseq): Remove const from the ctxt argument.
42351         (USE_HEURISTIC): Undefine at the end.
42352
42353 2007-08-18  Jim Meyering  <jim@meyering.net>
42354
42355         New file: lib/idcache.h
42356         * NEWS: Mention the addition.
42357         * modules/idcache (Files): Add lib/idcache.h
42358         * lib/idcache.c: Include "idcache.h".
42359         Don't include <sys/types.h>.
42360         Add a FIXME comment.
42361         Move file-scoped "static" declarations to the top.
42362         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
42363
42364 2007-08-17  Bruno Haible  <bruno@clisp.org>
42365         and Paul Eggert  <eggert@cs.ucla.edu>
42366
42367         * MODULES.html.sh: Add diffseq.
42368         * modules/diffseq: New file.
42369         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
42370         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
42371
42372 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42373
42374         Import changes from coreutils for bootstrap script.
42375
42376         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
42377
42378         * build-aux/bootstrap (slurp): Work even in environments where
42379         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
42380         current code does not slurp files whose names start with ".", and
42381         this looks like it might be a troublesome area.
42382
42383         2007-07-11  Jim Meyering  <jim@meyering.net>
42384
42385         If there's a GPL vN copyright comment, require that N == 3.
42386
42387         2007-07-08  Jim Meyering  <jim@meyering.net>
42388
42389         Run the coreutils-specific code only if tests/Makefile.am.in exists.
42390         * build-aux/bootstrap (mam_template): Move definition out of loop.
42391
42392         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
42393
42394         * build-aux/bootstrap (symlink_to_dir): Rename function from
42395         symlink_to_gnulib.  Add a directory parameter.  Update all
42396         callers.
42397         (cp_mark_as_generated): Also check for -- and link to -- files in
42398         gl/.
42399
42400         2007-07-08  Jim Meyering  <jim@meyering.net>
42401
42402         Adapt to deeper hierarchy in gnulib.
42403         * build-aux/bootstrap (symlink_to_dir): If the destination
42404         directory doesn't exist, create it. This is required at least for
42405         "lib/uniwidth/cjk.h".
42406
42407         2007-05-15  Jim Meyering  <jim@meyering.net>
42408
42409         * build-aux/bootstrap: Now that generated Makefile.am files
42410         are no longer under version control, they must be created at
42411         bootstrap time.
42412
42413 2007-08-14  Ben Pfaff  <blp@gnu.org>
42414
42415         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42416
42417 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42418
42419         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42420         given the changes below.
42421         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42422         even on hosts that have padding bits beyond the supported 64.
42423
42424 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42425
42426         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42427         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42428         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42429         depends on it.
42430         (xstrtol_error): Remove.
42431         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42432         but with a different signature.
42433         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42434         * lib/xstrtol-error.c: Include exitfail.h.
42435         (xstrtol_fatal): New function, with a different signature from the
42436         old xstrtol_error, so that the caller need not worry about passing
42437         in an exit status, or about storage management of the option argument.
42438         (xstrtol_error): Now a static function.  Redo signature to
42439         implement xstrtol_fatal.  Output the correct number of hyphens in
42440         front of the option so that the caller need not worry about
42441         storage management.
42442         (N_): New macro.
42443         (_): Remove; not used now.
42444         * modules/xstrtol: Depend on getopt.
42445         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42446         of old STRTOL_FATAL_ERROR macro.
42447         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42448         of test program.
42449         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
42450         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
42451
42452 2007-08-08  Eric Blake  <ebb9@byu.net>
42453
42454         * lib/xstrtol-error.c: Add missing include.
42455
42456         Move xstrtol messages into gnulib domain, when --pobase is used.
42457         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
42458         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
42459         * modules/xstrtol (Files): Distribute new file.
42460         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42461         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42462         * tests/test-xstrtol.c: ...into new file.
42463         * tests/test-xstrtoul.c: Also test xstrtoul.
42464         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42465         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42466         * tests/test-xstrtol.sh: Drive the tests.
42467         * tests/test-xstrtoimax.sh: Likewise.
42468         * tests/test-xstrtoumax.sh: Likewise.
42469         * modules/xstrtol-tests: New module.
42470         * modules/xstrtoimax-tests: Likewise.
42471         * modules/xstrtoumax-tests: Likewise.
42472
42473 2007-08-08  Jim Meyering  <jim@meyering.net>
42474
42475         New function: mfile_name_concat.
42476         * lib/filenamecat.c (mfile_name_concat): New function, just like
42477         file_name_concat, but return NULL upon failure rather than exiting
42478         with a diagnostic.
42479         * lib/filenamecat.h: Declare it.
42480
42481 2007-08-07  Bruno Haible  <bruno@clisp.org>
42482
42483         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42484         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42485         warning from gcc.
42486         Reported by Eric Blake.
42487
42488 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42489
42490         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42491         * modules/crypto/arcfour (License): Likewise.
42492         * modules/crypto/des-tests (License): Likewise.
42493         * modules/crypto/gc-arctwo-tests (License): Likewise.
42494         * modules/crypto/gc-des-tests (License): Likewise.
42495         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42496         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42497         * modules/crypto/gc-md2-tests (License): Likewise.
42498         * modules/crypto/gc-md4-tests (License): Likewise.
42499         * modules/crypto/gc-md5-tests (License): Likewise.
42500         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42501         * modules/crypto/gc-rijndael-tests (License): Likewise.
42502         * modules/crypto/gc-sha1-tests (License): Likewise.
42503         * modules/crypto/gc-tests (License): Likewise.
42504         * modules/crypto/hmac-md5 (License): Likewise.
42505         * modules/crypto/hmac-sha1 (License): Likewise.
42506         * modules/crypto/md2-tests (License): Likewise.
42507         * modules/crypto/md4-tests (License): Likewise.
42508         * modules/crypto/md5 (License): Likewise.
42509         * modules/crypto/rijndael (License): Likewise.
42510         * modules/crypto/sha1 (License): Likewise.
42511         * modules/memxor (License): Likewise.
42512
42513 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42514         and Bruno Haible  <bruno@clisp.org>
42515
42516         * NEWS: Describe interface changes to human, xstrtol.
42517         * lib/human.h: Include <xstrtol.h>.
42518         (human_options): Return enum strtol_error, not int.  Remove
42519         bool arg; take int * instead.
42520         * lib/human.c: Don't include "gettext.h".
42521         (_): Remove; no longer used.
42522         Don't include <xstrtol.h>, since human.h does it.
42523         (human_options): Adjust to abovementioned interface changes.
42524         Do not report error to stderr; that's now the caller's
42525         responsibility.
42526         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42527         interface change.
42528         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42529         Str, Argument_type_string.  All uses changed.  Put " argument"
42530         in diagnostics to make them clearer.  Change wording of suffix
42531         message for clarity.
42532         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42533         Argument_type_string.
42534         (STRTOL_FATAL_WARN): Remove; no longer used.
42535         * modules/human (Depends-on): Remove gettext-h.
42536
42537 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42538
42539         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42540
42541 2007-07-31  Bruno Haible  <bruno@clisp.org>
42542
42543         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42544         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42545         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42546
42547 2007-07-31  Bruno Haible  <bruno@clisp.org>
42548
42549         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42550         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42551
42552 2007-07-30  Bruno Haible  <bruno@clisp.org>
42553
42554         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42555         * modules/c-ctype (License): Likewise.
42556         * modules/c-strcase (License): Likewise.
42557         * modules/check-version (License): Likewise.
42558         * modules/iconv (License): Likewise.
42559         * modules/iconv_open (License): Likewise.
42560         * modules/read-file (License): Likewise.
42561         * modules/striconv (License): Likewise.
42562         * modules/strverscmp (License): Likewise.
42563         * modules/vasprintf (License): Likewise.
42564         * modules/crypto/des (License): Likewise.
42565         * modules/crypto/gc (License): Likewise.
42566         * modules/crypto/gc-arcfour (License): Likewise.
42567         * modules/crypto/gc-arctwo (License): Likewise.
42568         * modules/crypto/gc-des (License): Likewise.
42569         * modules/crypto/gc-hmac-md5 (License): Likewise.
42570         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42571         * modules/crypto/gc-md2 (License): Likewise.
42572         * modules/crypto/gc-md4 (License): Likewise.
42573         * modules/crypto/gc-md5 (License): Likewise.
42574         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42575         * modules/crypto/gc-random (License): Likewise.
42576         * modules/crypto/gc-rijndael (License): Likewise.
42577         * modules/crypto/gc-sha1 (License): Likewise.
42578         * modules/crypto/md2 (License): Likewise.
42579         * modules/crypto/md4 (License): Likewise.
42580
42581 2007-07-30  Jim Meyering  <jim@meyering.net>
42582
42583         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42584         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42585         it has valid stat data.  This bug would cause du not to count the
42586         sizes of inaccessible directories.
42587         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42588         in <http://bugzilla.redhat.com/250077>.
42589
42590 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42591             Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42594         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42595         #include_next, gives a diagnostic about it, but reports no error in
42596         the exit code.
42597         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42598
42599 2007-07-24  Ben Pfaff  <blp@gnu.org>
42600
42601         Improve name: "count-one-bits" is better than "popcount".
42602         * MODULES.html.sh: Update name.
42603         * lib/popcount.h: Renamed lib/count-one-bits.h.
42604         (popcount): Renamed count_one_bits.
42605         (popcountl): Renamed count_one_bits_l.
42606         (popcountll): Renamed count_one_bits_ll.
42607         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42608         * modules/popcount: Renamed module/count-one-bits.
42609         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42610         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42611
42612 2007-07-23  Ben Pfaff  <blp@gnu.org>
42613
42614         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42615         better code generation, and add U to large constants to avoid
42616         warnings, in non-GCC case.
42617         Suggested by Bruno Haible.
42618
42619 2007-07-23  Ben Pfaff  <blp@gnu.org>
42620
42621         * lib/popcount.h: Use verify_true instead of if...abort.
42622         * modules/popcount: Depend on verify module.
42623         Suggested by Jim Meyering.
42624
42625 2007-07-23  Bruno Haible  <bruno@clisp.org>
42626
42627         * gnulib-tool (func_import): Create a .cvsignore file also when the
42628         directory is not yet in CVS but the toplevel directory is. When
42629         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42630         Reported by Karl Berry.
42631
42632 2007-07-22  Ben Pfaff  <blp@gnu.org>
42633
42634         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42635         case.
42636         Suggested by Eric Blake.
42637
42638 2007-07-22  Ben Pfaff  <blp@gnu.org>
42639
42640         New module: popcount.
42641         * MODULES.html.sh: Add popcount.
42642         * modules/popcount: New file.
42643         * modules/popcount-tests: New file.
42644         * tests/test-popcount.c: New file.
42645         * lib/popcount.h: New file.
42646         * m4/popcount.m4: New file.
42647
42648 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42649
42650         * build-aux/announce-gen: Update to GPLv3.
42651
42652         * build-aux/config.guess: Update from config.
42653
42654 2007-07-21  Bruno Haible  <bruno@clisp.org>
42655
42656         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42657         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42658
42659 2007-07-20  Jim Meyering  <jim@meyering.net>
42660
42661         * check-module: Diagnose a self-dependency.
42662
42663 2007-07-19  Bruno Haible  <bruno@clisp.org>
42664
42665         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42666         empty.
42667         Reported by Eric Blake.
42668
42669 2007-07-18  Bruno Haible  <bruno@clisp.org>
42670
42671         * gnulib-tool: New options --po-base, --po-domain.
42672         (func_usage): Document them.
42673         (pobase, po_domain): New variables.
42674         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42675         DEFAULT_TEXT_DOMAIN.
42676         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42677         (func_import): Consider pobase and po_domain. Create a po/ directory.
42678         (func_create_testdir): Set pobase and po_domain to empty.
42679         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42680         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42681
42682 2007-07-18  Bruno Haible  <bruno@clisp.org>
42683
42684         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42685         EXTRA_DIST augmentation for files in build-aux/.
42686
42687 2007-07-16  Bruno Haible  <bruno@clisp.org>
42688
42689         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42690         * modules/getdelim (License): Likewise.
42691
42692 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42693
42694         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42695         * modules/d-type (License): Likewise.
42696         * modules/extensions (License): Likewise.
42697         * modules/fnmatch (License): Likewise.
42698         * modules/fseeko (License): Likewise.
42699         * modules/getaddrinfo (License): Likewise.
42700         * modules/getline (License): Likewise.
42701         * modules/getlogin_r (License): Likewise.
42702         * modules/getpass (License): Likewise.
42703         * modules/gettimeofday (License): Likewise.
42704         * modules/glob (License): Likewise.
42705         * modules/inet_ntop (License): Likewise.
42706         * modules/malloc (License): Likewise.
42707         * modules/malloca (License): Likewise.
42708         * modules/memmem (License): Likewise.
42709         * modules/mempcpy (License): Likewise.
42710         * modules/memset (License): Likewise.
42711         * modules/minmax (License): Likewise.
42712         * modules/mktime (License): Likewise.
42713         * modules/netinet_in (License): Likewise.
42714         * modules/pathmax (License): Likewise.
42715         * modules/poll (License): Likewise.
42716         * modules/regex (License): Likewise.
42717         * modules/snprintf (License): Likewise.
42718         * modules/stdbool (License): Likewise.
42719         * modules/stdint (License): Likewise.
42720         * modules/stdio (License): Likewise.
42721         * modules/strcase (License): Likewise.
42722         * modules/strcasestr (License): Likewise.
42723         * modules/strdup (License): Likewise.
42724         * modules/string (License): Likewise.
42725         * modules/strndup (License): Likewise.
42726         * modules/strnlen (License): Likewise.
42727         * modules/strpbrk (License): Likewise.
42728         * modules/strptime (License): Likewise.
42729         * modules/strsep (License): Likewise.
42730         * modules/sys_select (License): Likewise.
42731         * modules/sys_socket (License): Likewise.
42732         * modules/sys_stat (License): Likewise.
42733         * modules/sys_time (License): Likewise.
42734         * modules/time (License): Likewise.
42735         * modules/time_r (License): Likewise.
42736         * modules/timegm (License): Likewise.
42737         * modules/unistd (License): Likewise.
42738         * modules/vsnprintf (License): Likewise.
42739         * modules/wctype (License): Likewise.
42740
42741 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42742
42743         * modules/argz (License): LGPLv2+.
42744
42745 2007-07-15  Karl Berry  <karl@gnu.org>
42746
42747         * doc/gnulib.texi: revise node structure per new fdl.texi.
42748
42749 2007-07-14  Bruno Haible  <bruno@clisp.org>
42750
42751         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42752         the output file.
42753         * lib/uniname/uninames.h: Regenerated.
42754
42755 2007-07-14  Karl Berry  <karl@gnu.org>
42756
42757         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42758         omitting sectioning and index commands.
42759
42760 2007-07-13  Bruno Haible  <bruno@clisp.org>
42761
42762         New gnulib-tool option --more-symlinks.
42763         * gnulib-tool (func_usage): Document --more-symlinks.
42764         (do_copyrights): New variable.
42765         Recognize option --more-symlinks.
42766         (func_import): Don't add a copyright notice transform to
42767         sed_transform_lib_file if do_copyrights is empty.
42768
42769 2007-07-13  Bruno Haible  <bruno@clisp.org>
42770
42771         * lib/vasnprintf.c (decimal_point_char): Define also if
42772         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42773         && !NEED_PRINTF_DIRECTIVE_A.
42774         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42775         Gary V. Vaughan <gary@gnu.org>.
42776
42777 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42778
42779         * lib/inttypes_.h: Undo previous change, since it was fixed
42780         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42781
42782 2007-07-13  Bruno Haible  <bruno@clisp.org>
42783
42784         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42785         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42786
42787 2007-07-13  Jim Meyering  <jim@meyering.net>
42788
42789         df: Don't fail for Tru64's "file-on-file mount".
42790         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42791         so we fall through and use statfs instead.  Details here:
42792         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42793         Reported by Albert Chin.
42794
42795 2007-07-13  Bruno Haible  <bruno@clisp.org>
42796
42797         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42798         * modules/configmake (License): Likewise.
42799         * modules/gettext (License): Likewise.
42800         * modules/gettext-h (License): Likewise.
42801         * modules/include_next (License): Likewise.
42802         * modules/link-warning (License): Likewise.
42803         * modules/localcharset (License): Likewise.
42804         * modules/localename (License): Likewise.
42805         * modules/lock (License): Likewise.
42806         * modules/relocatable-lib-lgpl (License): Likewise.
42807         * modules/size_max (License): Likewise.
42808         * modules/vasnprintf (License): Likewise.
42809         * modules/wchar (License): Likewise.
42810         * modules/xsize (License): Likewise.
42811
42812 2007-07-13  Bruno Haible  <bruno@clisp.org>
42813
42814         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42815         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42816
42817 2007-07-12  Bruno Haible  <bruno@clisp.org>
42818
42819         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42820         in the modules files.
42821
42822 2007-07-11  Karl Berry  <karl@gnu.org>
42823
42824         * MODULES.html.sh (func_module): use
42825          sed -e '\|^'"${includefile}"'$|d'
42826          instead of /.../d, to avoid errors on $includefile's containing /.
42827
42828 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42829
42830         * gnulib-tool (func_import): Avoid duplication of --avoid
42831         statements
42832         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42833         names to `_' in variable names.
42834
42835 2007-07-10  Eric Blake  <ebb9@byu.net>
42836
42837         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42838         * NEWS: Document this change.
42839
42840 2007-07-08  Bruno Haible  <bruno@clisp.org>
42841
42842         Update to Unicode 5.0.
42843         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42844         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42845         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42846         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42847         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42848         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42849         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42850         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42851         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42852         U+10A3F, U+1D242..U+1D244.
42853         (nonspacing_table_ind): Update.
42854         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42855         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42856
42857 2007-07-08  Bruno Haible  <bruno@clisp.org>
42858
42859         Update to Unicode 5.0.
42860         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42861         code transform. Extend the name index field of unicode_name_to_code and
42862         unicode_code_to_name from 16 to 24 bits.
42863         * lib/uniname/uniname.c (unicode_character_name,
42864         unicode_name_character): Add the range 0x12xxx to the code transform.
42865         * lib/uniname/uninames.h: Regenerated.
42866         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42867
42868 2007-07-07  Bruno Haible  <bruno@clisp.org>
42869
42870         * modules/wcwidth-tests: New file.
42871         * tests/test-wcwidth.c: New file.
42872
42873         Work around MacOS X wcwidth() bug.
42874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42875         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42876         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42877         original wcwidth in non-UTF-8 locales.
42878         * modules/wcwidth (Depends-on): Add localcharset, streq,
42879         uniwidth/width.
42880         * doc/functions/wcwidth.texi: Update.
42881
42882 2007-07-07  Bruno Haible  <bruno@clisp.org>
42883
42884         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42885         (wcwidth): New declaration.
42886         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42887         macros.
42888         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42889         here. Prepare for creating <wchar.h> unconditionally.
42890         * modules/wchar (Depends-on): Add link-warning.
42891         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42892         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42893         * lib/wcwidth.h: Remove file.
42894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42895         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42896         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42897         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42898         (Include): Replace wcwidth.h with <wchar.h>.
42899         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42900         * lib/mbchar.h: Don't include wcwidth.h.
42901         * lib/mbswidth.c: Likewise.
42902         * NEWS: Mention the change.
42903
42904 2007-07-07  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42907         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42908         definition with an external declaration.
42909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42910         defined as a function. Remove AC_C_INLINE requirement.
42911         * modules/wcwidth (Files): Add lib/wcwidth.c.
42912         (Makefile.am): Remove redundant statement.
42913
42914 2007-07-07  Bruno Haible  <bruno@clisp.org>
42915
42916         * MODULES.html.sh (Unicode string functions): Add the new modules.
42917
42918         * tests/uniwidth/test-u32-strwidth.c: New file.
42919         * modules/uniwidth/u32-strwidth-tests: New file.
42920
42921         * lib/uniwidth/u32-strwidth.c: New file.
42922         * modules/uniwidth/u32-strwidth: New file.
42923
42924         * tests/uniwidth/test-u16-strwidth.c: New file.
42925         * modules/uniwidth/u16-strwidth-tests: New file.
42926
42927         * lib/uniwidth/u16-strwidth.c: New file.
42928         * modules/uniwidth/u16-strwidth: New file.
42929
42930         * tests/uniwidth/test-u8-strwidth.c: New file.
42931         * modules/uniwidth/u8-strwidth-tests: New file.
42932
42933         * lib/uniwidth/u8-strwidth.c: New file.
42934         * modules/uniwidth/u8-strwidth: New file.
42935
42936         * tests/uniwidth/test-u32-width.c: New file.
42937         * modules/uniwidth/u32-width-tests: New file.
42938
42939         * lib/uniwidth/u32-width.c: New file.
42940         * modules/uniwidth/u32-width: New file.
42941
42942         * tests/uniwidth/test-u16-width.c: New file.
42943         * modules/uniwidth/u16-width-tests: New file.
42944
42945         * lib/uniwidth/u16-width.c: New file.
42946         * modules/uniwidth/u16-width: New file.
42947
42948         * tests/uniwidth/test-u8-width.c: New file.
42949         * modules/uniwidth/u8-width-tests: New file.
42950
42951         * lib/uniwidth/u8-width.c: New file.
42952         * modules/uniwidth/u8-width: New file.
42953
42954         * tests/uniwidth/test-uc_width.c: New file.
42955         * modules/uniwidth/width-tests: New file.
42956
42957         * lib/uniwidth/width.c: New file, from GNU libiconv.
42958         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42959         * modules/uniwidth/width: New file.
42960
42961         * lib/uniwidth.h: New file, from GNU libiconv.
42962         * modules/uniwidth/base: New file.
42963
42964 2007-07-07  Bruno Haible  <bruno@clisp.org>
42965
42966         * lib/uniname.h: New file, from GNU gettext.
42967         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42968         * lib/uniname/uninames.h: New file, from GNU gettext.
42969         * lib/uniname/uniname.c: New file, from GNU gettext.
42970         * tests/uniname/test-uninames.sh: New file.
42971         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42972         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42973         * modules/uniname/base: New file.
42974         * modules/uniname/uniname: New file.
42975         * modules/uniname/uniname-tests: New file.
42976         * MODULES.html.sh (Unicode string functions): Add the new modules.
42977
42978 2007-07-06  Bruno Haible  <bruno@clisp.org>
42979
42980         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42981
42982 2007-07-06  Bruno Haible  <bruno@clisp.org>
42983
42984         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42985         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42986         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42987         include <sys/time.h>.
42988         Reported by Eric Blake.
42989
42990 2007-07-06  Eric Blake  <ebb9@byu.net>
42991
42992         Fix testing canonicalize on cygwin.
42993         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42994         Revert patch from 2007-06-19.
42995         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42996         canonicalize module is also in use.
42997         * tests/test-canonicalize.c: New file.
42998         * tests/test-canonicalize.sh: Likewise.
42999         * modules/canonicalize-tests: Likewise.
43000
43001 2007-07-06  Jim Meyering  <jim@meyering.net>
43002
43003         * lib/getugroups.c (getugroups): Detect getgrent failure.
43004         Adjust comment to reflect reality: this function may return -1.
43005
43006 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
43007
43008         * build-aux/bootstrap (TP_URL,get_translations): Update to use
43009         the new TP address.
43010         (usage): Fix typo
43011         (gnulib_mk): New variable.
43012
43013 2007-07-05  Jim Meyering  <jim@meyering.net>
43014
43015         Don't let endgrent clobber errno, no matter how improbable.
43016         * lib/getugroups.c (getugroups): Save and restore errno around
43017         endgrent call.
43018
43019         Close the group DB even when failing with 2^31 or more members.
43020         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
43021
43022 2007-07-04  Jim Meyering  <jim@meyering.net>
43023
43024         * lib/getugroups.h: New file.
43025         * lib/getugroups.c: Include "getugroups.h".
43026         Remove uses of "register" keyword.
43027         Move local variable, "cp", down into scope where used.
43028         Give "username" parameter the "const" attribute.
43029         * modules/getugroups (Files): Add lib/getugroups.h
43030
43031 2007-07-04  Karl Berry  <karl@gnu.org>
43032
43033         * MODULES.html.sh (func_all_modules): Complete rename of
43034         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
43035
43036 2007-07-02  Bruno Haible  <bruno@clisp.org>
43037
43038         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
43039         mode, when inttypes.h comes from gnulib.
43040         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43041
43042 2007-07-02  Simon Josefsson  <simon@josefsson.org>
43043
43044         * NEWS: Mention lgpl module name change.
43045
43046         * modules/lgpl-2.1: Renamed from lgpl.
43047
43048         * NEWS: Mention gpl module name change.
43049
43050         * modules/gpl-3.0: New file, based on gpl-2.0.
43051
43052         * modules/gpl-2.0: Renamed from gpl.
43053
43054         * modules/gpl: Fix filename, doc/gpl.texi is now found at
43055         doc/gpl-2.0.texi.
43056
43057 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43058
43059         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
43060         #define __STDC_LIMIT_MACROS temporarily while including
43061         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
43062         Problem reported by Joel E. Denny in
43063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
43064
43065 2007-07-01  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/unistdio.h: New file.
43068         * lib/unistdio/u-asnprintf.h: New file.
43069         * lib/unistdio/u-asprintf.h: New file.
43070         * lib/unistdio/u-printf-args.c: New file.
43071         * lib/unistdio/u-printf-args.h: New file.
43072         * lib/unistdio/u-printf-parse.h: New file.
43073         * lib/unistdio/u-snprintf.h: New file.
43074         * lib/unistdio/u-sprintf.h: New file.
43075         * lib/unistdio/u-vasprintf.h: New file.
43076         * lib/unistdio/u-vsnprintf.h: New file.
43077         * lib/unistdio/u-vsprintf.h: New file.
43078         * lib/unistdio/ulc-asnprintf.c: New file.
43079         * lib/unistdio/ulc-asprintf.c: New file.
43080         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
43081         * lib/unistdio/ulc-printf-parse.c: New file.
43082         * lib/unistdio/ulc-snprintf.c: New file.
43083         * lib/unistdio/ulc-sprintf.c: New file.
43084         * lib/unistdio/ulc-vasnprintf.c: New file.
43085         * lib/unistdio/ulc-vasprintf.c: New file.
43086         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
43087         * lib/unistdio/ulc-vsnprintf.c: New file.
43088         * lib/unistdio/ulc-vsprintf.c: New file.
43089         * lib/unistdio/u8-asnprintf.c: New file.
43090         * lib/unistdio/u8-asprintf.c: New file.
43091         * lib/unistdio/u8-printf-parse.c: New file.
43092         * lib/unistdio/u8-snprintf.c: New file.
43093         * lib/unistdio/u8-sprintf.c: New file.
43094         * lib/unistdio/u8-vasnprintf.c: New file.
43095         * lib/unistdio/u8-vasprintf.c: New file.
43096         * lib/unistdio/u8-vsnprintf.c: New file.
43097         * lib/unistdio/u8-vsprintf.c: New file.
43098         * lib/unistdio/u8-u8-asnprintf.c: New file.
43099         * lib/unistdio/u8-u8-asprintf.c: New file.
43100         * lib/unistdio/u8-u8-snprintf.c: New file.
43101         * lib/unistdio/u8-u8-sprintf.c: New file.
43102         * lib/unistdio/u8-u8-vasnprintf.c: New file.
43103         * lib/unistdio/u8-u8-vasprintf.c: New file.
43104         * lib/unistdio/u8-u8-vsnprintf.c: New file.
43105         * lib/unistdio/u8-u8-vsprintf.c: New file.
43106         * lib/unistdio/u16-asnprintf.c: New file.
43107         * lib/unistdio/u16-asprintf.c: New file.
43108         * lib/unistdio/u16-printf-parse.c: New file.
43109         * lib/unistdio/u16-snprintf.c: New file.
43110         * lib/unistdio/u16-sprintf.c: New file.
43111         * lib/unistdio/u16-vasnprintf.c: New file.
43112         * lib/unistdio/u16-vasprintf.c: New file.
43113         * lib/unistdio/u16-vsnprintf.c: New file.
43114         * lib/unistdio/u16-vsprintf.c: New file.
43115         * lib/unistdio/u16-u16-asnprintf.c: New file.
43116         * lib/unistdio/u16-u16-asprintf.c: New file.
43117         * lib/unistdio/u16-u16-snprintf.c: New file.
43118         * lib/unistdio/u16-u16-sprintf.c: New file.
43119         * lib/unistdio/u16-u16-vasnprintf.c: New file.
43120         * lib/unistdio/u16-u16-vasprintf.c: New file.
43121         * lib/unistdio/u16-u16-vsnprintf.c: New file.
43122         * lib/unistdio/u16-u16-vsprintf.c: New file.
43123         * lib/unistdio/u32-asnprintf.c: New file.
43124         * lib/unistdio/u32-asprintf.c: New file.
43125         * lib/unistdio/u32-printf-parse.c: New file.
43126         * lib/unistdio/u32-snprintf.c: New file.
43127         * lib/unistdio/u32-sprintf.c: New file.
43128         * lib/unistdio/u32-vasnprintf.c: New file.
43129         * lib/unistdio/u32-vasprintf.c: New file.
43130         * lib/unistdio/u32-vsnprintf.c: New file.
43131         * lib/unistdio/u32-vsprintf.c: New file.
43132         * lib/unistdio/u32-u32-asnprintf.c: New file.
43133         * lib/unistdio/u32-u32-asprintf.c: New file.
43134         * lib/unistdio/u32-u32-snprintf.c: New file.
43135         * lib/unistdio/u32-u32-sprintf.c: New file.
43136         * lib/unistdio/u32-u32-vasnprintf.c: New file.
43137         * lib/unistdio/u32-u32-vasprintf.c: New file.
43138         * lib/unistdio/u32-u32-vsnprintf.c: New file.
43139         * lib/unistdio/u32-u32-vsprintf.c: New file.
43140         * tests/unistdio/test-ulc-asnprintf1.c: New file.
43141         * tests/unistdio/test-ulc-asnprintf1.h: New file.
43142         * tests/unistdio/test-ulc-printf1.h: New file.
43143         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
43144         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
43145         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
43146         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
43147         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
43148         * tests/unistdio/test-ulc-vasprintf1.c: New file.
43149         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
43150         * tests/unistdio/test-ulc-vsprintf1.c: New file.
43151         * tests/unistdio/test-u8-asnprintf1.c: New file.
43152         * tests/unistdio/test-u8-asnprintf1.h: New file.
43153         * tests/unistdio/test-u8-printf1.h: New file.
43154         * tests/unistdio/test-u8-vasnprintf1.c: New file.
43155         * tests/unistdio/test-u8-vasnprintf2.c: New file.
43156         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
43157         * tests/unistdio/test-u8-vasnprintf3.c: New file.
43158         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
43159         * tests/unistdio/test-u8-vasprintf1.c: New file.
43160         * tests/unistdio/test-u8-vsnprintf1.c: New file.
43161         * tests/unistdio/test-u8-vsprintf1.c: New file.
43162         * tests/unistdio/test-u16-asnprintf1.c: New file.
43163         * tests/unistdio/test-u16-asnprintf1.h: New file.
43164         * tests/unistdio/test-u16-printf1.h: New file.
43165         * tests/unistdio/test-u16-vasnprintf1.c: New file.
43166         * tests/unistdio/test-u16-vasnprintf2.c: New file.
43167         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
43168         * tests/unistdio/test-u16-vasnprintf3.c: New file.
43169         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
43170         * tests/unistdio/test-u16-vasprintf1.c: New file.
43171         * tests/unistdio/test-u16-vsnprintf1.c: New file.
43172         * tests/unistdio/test-u16-vsprintf1.c: New file.
43173         * tests/unistdio/test-u32-asnprintf1.c: New file.
43174         * tests/unistdio/test-u32-asnprintf1.h: New file.
43175         * tests/unistdio/test-u32-printf1.h: New file.
43176         * tests/unistdio/test-u32-vasnprintf1.c: New file.
43177         * tests/unistdio/test-u32-vasnprintf2.c: New file.
43178         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
43179         * tests/unistdio/test-u32-vasnprintf3.c: New file.
43180         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
43181         * tests/unistdio/test-u32-vasprintf1.c: New file.
43182         * tests/unistdio/test-u32-vsnprintf1.c: New file.
43183         * tests/unistdio/test-u32-vsprintf1.c: New file.
43184         * modules/unistdio/base: New file.
43185         * modules/unistdio/u-printf-args: New file.
43186         * modules/unistdio/ulc-asnprintf: New file.
43187         * modules/unistdio/ulc-asprintf: New file.
43188         * modules/unistdio/ulc-fprintf: New file.
43189         * modules/unistdio/ulc-printf-parse: New file.
43190         * modules/unistdio/ulc-snprintf: New file.
43191         * modules/unistdio/ulc-sprintf: New file.
43192         * modules/unistdio/ulc-vasnprintf: New file.
43193         * modules/unistdio/ulc-vasprintf: New file.
43194         * modules/unistdio/ulc-vfprintf: New file.
43195         * modules/unistdio/ulc-vsnprintf: New file.
43196         * modules/unistdio/ulc-vsprintf: New file.
43197         * modules/unistdio/u8-asnprintf: New file.
43198         * modules/unistdio/u8-asprintf: New file.
43199         * modules/unistdio/u8-printf-parse: New file.
43200         * modules/unistdio/u8-snprintf: New file.
43201         * modules/unistdio/u8-sprintf: New file.
43202         * modules/unistdio/u8-vasnprintf: New file.
43203         * modules/unistdio/u8-vasprintf: New file.
43204         * modules/unistdio/u8-vsnprintf: New file.
43205         * modules/unistdio/u8-vsprintf: New file.
43206         * modules/unistdio/u8-u8-asnprintf: New file.
43207         * modules/unistdio/u8-u8-asprintf: New file.
43208         * modules/unistdio/u8-u8-snprintf: New file.
43209         * modules/unistdio/u8-u8-sprintf: New file.
43210         * modules/unistdio/u8-u8-vasnprintf: New file.
43211         * modules/unistdio/u8-u8-vasprintf: New file.
43212         * modules/unistdio/u8-u8-vsnprintf: New file.
43213         * modules/unistdio/u8-u8-vsprintf: New file.
43214         * modules/unistdio/u16-asnprintf: New file.
43215         * modules/unistdio/u16-asprintf: New file.
43216         * modules/unistdio/u16-printf-parse: New file.
43217         * modules/unistdio/u16-snprintf: New file.
43218         * modules/unistdio/u16-sprintf: New file.
43219         * modules/unistdio/u16-vasnprintf: New file.
43220         * modules/unistdio/u16-vasprintf: New file.
43221         * modules/unistdio/u16-vsnprintf: New file.
43222         * modules/unistdio/u16-vsprintf: New file.
43223         * modules/unistdio/u16-u16-asnprintf: New file.
43224         * modules/unistdio/u16-u16-asprintf: New file.
43225         * modules/unistdio/u16-u16-snprintf: New file.
43226         * modules/unistdio/u16-u16-sprintf: New file.
43227         * modules/unistdio/u16-u16-vasnprintf: New file.
43228         * modules/unistdio/u16-u16-vasprintf: New file.
43229         * modules/unistdio/u16-u16-vsnprintf: New file.
43230         * modules/unistdio/u16-u16-vsprintf: New file.
43231         * modules/unistdio/u32-asnprintf: New file.
43232         * modules/unistdio/u32-asprintf: New file.
43233         * modules/unistdio/u32-printf-parse: New file.
43234         * modules/unistdio/u32-snprintf: New file.
43235         * modules/unistdio/u32-sprintf: New file.
43236         * modules/unistdio/u32-vasnprintf: New file.
43237         * modules/unistdio/u32-vasprintf: New file.
43238         * modules/unistdio/u32-vsnprintf: New file.
43239         * modules/unistdio/u32-vsprintf: New file.
43240         * modules/unistdio/u32-u32-asnprintf: New file.
43241         * modules/unistdio/u32-u32-asprintf: New file.
43242         * modules/unistdio/u32-u32-snprintf: New file.
43243         * modules/unistdio/u32-u32-sprintf: New file.
43244         * modules/unistdio/u32-u32-vasnprintf: New file.
43245         * modules/unistdio/u32-u32-vasprintf: New file.
43246         * modules/unistdio/u32-u32-vsnprintf: New file.
43247         * modules/unistdio/u32-u32-vsprintf: New file.
43248         * modules/unistdio/ulc-asnprintf-tests: New file.
43249         * modules/unistdio/ulc-vasnprintf-tests: New file.
43250         * modules/unistdio/ulc-vasprintf-tests: New file.
43251         * modules/unistdio/ulc-vsnprintf-tests: New file.
43252         * modules/unistdio/ulc-vsprintf-tests: New file.
43253         * modules/unistdio/u8-asnprintf-tests: New file.
43254         * modules/unistdio/u8-vasnprintf-tests: New file.
43255         * modules/unistdio/u8-vasprintf-tests: New file.
43256         * modules/unistdio/u8-vsnprintf-tests: New file.
43257         * modules/unistdio/u8-vsprintf-tests: New file.
43258         * modules/unistdio/u16-asnprintf-tests: New file.
43259         * modules/unistdio/u16-vasnprintf-tests: New file.
43260         * modules/unistdio/u16-vasprintf-tests: New file.
43261         * modules/unistdio/u16-vsnprintf-tests: New file.
43262         * modules/unistdio/u16-vsprintf-tests: New file.
43263         * modules/unistdio/u32-asnprintf-tests: New file.
43264         * modules/unistdio/u32-vasnprintf-tests: New file.
43265         * modules/unistdio/u32-vasprintf-tests: New file.
43266         * modules/unistdio/u32-vsnprintf-tests: New file.
43267         * modules/unistdio/u32-vsprintf-tests: New file.
43268         * MODULES.html.sh (Unicode string functions): Add the new modules.
43269
43270 2007-07-01  Bruno Haible  <bruno@clisp.org>
43271
43272         * lib/sprintf.c (sprintf): Limit the available length estimation,
43273         to avoid address wraparound.
43274         * lib/vsprintf.c (vsprintf): Likewise.
43275         * modules/sprintf-posix (Dependencies): Add stdint.
43276         * modules/vsprintf-posix (Dependencies): Likewise.
43277
43278 2007-07-01  Bruno Haible  <bruno@clisp.org>
43279
43280         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
43281         Windows PATH as well. Conservative double-quoting. Comments.
43282
43283 2007-07-01  Bruno Haible  <bruno@clisp.org>
43284             Eric Blake  <ebb9@byu.net>
43285             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43286
43287         * gnulib-tool (self_abspathname): Fix algorithm to cope with
43288         empty components in $PATH, denoting '.'.
43289
43290 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43291
43292         * gnulib-tool: Fix indentation.
43293         (func_create_megatestdir): Likewise.
43294         Report by Bruno Haible.
43295
43296 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43297
43298         Sync from Automake.
43299         * build-aux/gnupload: Fix shell portability issues with for loops.
43300         Report by Karl Berry.
43301
43302 2007-06-29  Simon Josefsson  <simon@josefsson.org>
43303
43304         * build-aux/maint.mk (POURL): Use translationproject.org.
43305
43306 2007-06-27  Simon Josefsson  <simon@josefsson.org>
43307             Bruno Haible  <bruno@clisp.org>
43308
43309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
43310         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
43311         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
43312         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
43313         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
43314
43315 2007-06-27  Bruno Haible  <bruno@clisp.org>
43316
43317         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
43318         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
43319
43320 2007-06-26  Karl Berry  <karl@gnu.org>
43321
43322         * MODULES.html.sh: remove xreadlink-with-size.
43323
43324 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43325
43326         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43327         method that I hope also handles the double-include problem noted
43328         by Bruno Haible in
43329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
43330
43331 2007-06-23  Bruno Haible  <bruno@clisp.org>
43332
43333         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43334         Don't let the 'mostlyclean' target fail if the last subdirectory could
43335         not be removed.
43336         Reported by Karl Berry.
43337
43338 2007-06-23  Bruno Haible  <bruno@clisp.org>
43339
43340         * gnulib-tool (echo): Add a speedier workaround for ksh.
43341         * tests/test-echo.sh: Likewise.
43342
43343 2007-06-23  Bruno Haible  <bruno@clisp.org>
43344
43345         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
43346         * tests/test-echo.sh: Likewise.
43347
43348 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43349
43350         * gnulib-tool (IFS): Initialize early, so we don't set it to
43351         empty later.
43352         (self_abspathname): Rewrite algorithm to set it, reindent.
43353         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
43354         (func_create_megatestdir): Merge some sed scripts.
43355
43356 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43357
43358         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
43359         exposed by Sun Studio 11 cc on Solaris 8.
43360
43361 2007-06-22  Bruno Haible  <bruno@clisp.org>
43362
43363         * gnulib-tool (echo): Ensure the echo primitive does not interpret
43364         backslashes.
43365         * tests/test-echo.sh: New file.
43366
43367 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43368
43369         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
43370         simplify `sed_replace_build_aux' scripts, they are portable but
43371         echoing them with `echo' is not.
43372         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
43373
43374 2007-06-21  Karl Berry  <karl@gnu.org>
43375
43376         * config/srclist.txt: guess we can't handle the licenses via
43377         srclist at the moment.
43378
43379 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43380
43381         * MODULES.html.sh: Add include_next.
43382         * modules/include_next: New file.
43383
43384 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43385
43386         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
43387         INCLUDE_NEXT.
43388         (gl_CHECK_NEXT_HEADERS): New macro.
43389         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
43390         the obsolescent gl_ABSOLUTE_HEADER.
43391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
43392         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
43393         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43394         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43395         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43396         * m4/math_h.m4 (gl_MATH_H): Likewise.
43397         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43398         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43399         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43400         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43401         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
43402         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
43403         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
43404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43408         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43409         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43410         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43411         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43412         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43413         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43414         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43415         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43416         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43417         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43418         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43419         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43420         * lib/float_.h: Likewise.
43421         * lib/inttypes_.h: Likewise.
43422         * lib/math_.h: Likewise.
43423         * lib/search_.h: Likewise.
43424         * lib/signal_.h: Likewise.
43425         * lib/stdint_.h: Likewise.
43426         * lib/stdio_.h: Likewise.
43427         * lib/stdlib_.h: Likewise.
43428         * lib/string_.h: Likewise.
43429         * lib/sys_stat_.h: Likewise.
43430         * lib/sys_time_.h: Likewise.
43431         * lib/time_.h: Likewise.
43432         * lib/unistd_.h: Likewise.
43433         * lib/wchar_.h: Likewise.
43434         * lib/wctype_.h: Likewise.
43435         * lib/dirent_.h: Likewise.
43436         * lib/iconv_.h: Likewise.
43437         * lib/locale_.h: Likewise.
43438         * lib/netinet_in_.h: Likewise.
43439         * lib/sys_select_.h: Likewise.
43440         * lib/sys_socket_.h: Likewise.
43441         * lib/sysexits_.h: Likewise.
43442         * modules/fcntl (Depends-on): Depend on include_next, not
43443         absolute_header.
43444         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43445         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43446         * modules/fchdir: Likewise.
43447         * modules/float: Likewise.
43448         * modules/iconv_open: Likewise.
43449         * modules/inttypes: Likewise.
43450         * modules/locale: Likewise.
43451         * modules/math: Likewise.
43452         * modules/netinet_in: Likewise.
43453         * modules/search: Likewise.
43454         * modules/signal: Likewise.
43455         * modules/stdint: Likewise.
43456         * modules/stdio: Likewise.
43457         * modules/stdlib: Likewise.
43458         * modules/string: Likewise.
43459         * modules/sys_select: Likewise.
43460         * modules/sys_socket: Likewise.
43461         * modules/sys_stat: Likewise.
43462         * modules/sys_time: Likewise.
43463         * modules/sysexits: Likewise.
43464         * modules/time: Likewise.
43465         * modules/unistd: Likewise.
43466         * modules/wchar: Likewise.
43467         * modules/wctype: Likewise.
43468         * modules/sys_stat: Change maintainer to "all".
43469         * modules/unistd: Likewise.
43470
43471 2007-06-20  Karl Berry  <karl@gnu.org>
43472
43473         * config/srclist.txt: track www changes in license files.
43474
43475 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43476
43477         * build-aux/bootstrap: Remove stray dot.
43478         Make sure build_aux settings are honored when linking
43479         gnulib_extra_files.
43480
43481 2007-06-19  Eric Blake  <ebb9@byu.net>
43482
43483         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43484         Allow compilation on cygwin.
43485
43486 2007-06-19  Jim Meyering  <jim@meyering.net>
43487
43488         xreadlink-with-size: Remove module.  No longer used.
43489         Ex-callers now use xreadlink or mreadlink-with-size.
43490         * modules/xreadlink-with-size: Remove module.
43491         * lib/xreadlink-with-size.c: Remove file.
43492         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43493         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43494         just before the function definition *is* accurate.
43495
43496         Eliminate one way canonicalize_filename_mode could exit.
43497         * lib/canonicalize.c (canonicalize_filename_mode):
43498         Use mreadlink_with_size, not xreadlink_with_size.
43499
43500 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43501
43502         Detect porting problems to FreeBSD/arm, which has time_t wider than
43503         long int.  Original problem reported for GNU diff by Xin Li in
43504         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43505         * modules/getdate (Depends-on): Add intprops, verify.
43506         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43507         is an integer type no wider than long int.
43508
43509 2007-06-18  Jim Meyering  <jim@meyering.net>
43510
43511         New module: mreadlink-with-size.
43512         * MODULES.html.sh: Add mreadlink-with-size.
43513         * modules/mreadlink-with-size: New module
43514         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43515         not xreadlink-with-size.
43516         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43517
43518 2007-06-16  Bruno Haible  <bruno@clisp.org>
43519
43520         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43521         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43522         Reported by Gary V. Vaughan <gary@gnu.org>.
43523
43524 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43525
43526         Revamp lchown so that it lives in unistd.h where it belongs.
43527         * lib/lchown.h: Remove.
43528         * lib/dirchownmod.c: Don't include lib/lchown.h.
43529         * lib/fchownat.c: Likewise.
43530         * lib/openat.c: Likewise.
43531         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43532         does not follow symlinks.
43533         (EOPNOTSUPP): Define if not defined.
43534         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43535         is defined to 0.
43536         (lchown): New decl.
43537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43538         Do not check for lchown decl.
43539         Set REPLACE_LCHOWN.
43540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43541         REPLACE_LCHOWN.
43542         * modules/chown: Make it clear it follows symlinks.
43543         * modules/lchown: Make it clear it doesn't follow symlinks.
43544         (Files): Remove lib/lchown.h
43545         (Depends-on): Add unistd.
43546         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43547         (Include): Include <unistd.h>, not "lchown.h".
43548         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43549         REPLACE_LCHOWN.
43550
43551 2007-06-15  Jim Meyering  <jim@meyering.net>
43552
43553         Change license (GPL to LGPL) of fsusage and dependents.
43554         * modules/fsusage (License): Change to LGPL.
43555         * modules/full-read (License): Likewise.
43556         * modules/full-write (License): Likewise.
43557         * modules/safe-read (License): Likewise.
43558         * modules/safe-write (License): Likewise.
43559
43560 2007-06-14  Ben Pfaff  <blp@gnu.org>
43561
43562         Missing part of allocsa -> malloca transition.
43563         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43564         gl_MALLOCA.
43565
43566 2007-06-12  Bruno Haible  <bruno@clisp.org>
43567
43568         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43569         to ia64, x86_64, i386.
43570         Reported by Eric Blake.
43571
43572 2007-06-12  Bruno Haible  <bruno@clisp.org>
43573
43574         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43575         cross-compiling to x86_64.
43576
43577 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43578
43579         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43580         glitch reported by Ralf Wildenhues in
43581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43582
43583         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43584         Vin Shelton.
43585
43586 2007-06-11  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43589         replacement string.
43590         Reported by Eric Blake.
43591
43592 2007-06-10  Bruno Haible  <bruno@clisp.org>
43593
43594         Prepare vasnprintf code for use with Unicode strings.
43595         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43596         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43597         TYPE_U32_STRING.
43598         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43599         a_u32_string variants.
43600         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43601         * lib/printf-args.c: Don't include config.h and the specification
43602         header if PRINTF_FETCHARGS is already defined.
43603         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43604         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43605         TYPE_U16_STRING, TYPE_U32_STRING.
43606         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43607         u16_directive, u16_directives, u32_directive, u32_directives): New
43608         types.
43609         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43610         New declarations.
43611         * lib/printf-parse.c: Don't include config.h and the specification
43612         header if PRINTF_PARSE is already defined. Eliminate the set of
43613         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43614         them now. Include c-ctype.h.
43615         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43616         directive and CHAR_T_ONLY_ASCII.
43617         * lib/vasnprintf.c: Don't include config.h and the specification header
43618         if VASNPRINTF is already defined.
43619         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43620         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43621         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43622         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43623         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43624         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43625         code accordingly.
43626         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43627         pad_ourselves also in this case, with the 'c' and 's' directives, and
43628         with a different notion of "width".
43629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43630
43631 2007-06-10  Bruno Haible  <bruno@clisp.org>
43632
43633         * modules/unistr/u32-mbsnlen: New file.
43634         * lib/unistr/u32-mbsnlen.c: New file.
43635
43636         * modules/unistr/u16-mbsnlen: New file.
43637         * lib/unistr/u16-mbsnlen.c: New file.
43638
43639         * modules/unistr/u8-mbsnlen: New file.
43640         * lib/unistr/u8-mbsnlen.c: New file.
43641
43642         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43643         declarations.
43644
43645 2007-06-10  Bruno Haible  <bruno@clisp.org>
43646
43647         * lib/string_.h (mbsnlen): New declaration.
43648         * lib/mbsnlen.c: New file.
43649         * m4/mbsnlen.m4: New file.
43650         * modules/mbsnlen: New file.
43651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43652         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43653         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43654
43655 2007-06-10  Bruno Haible  <bruno@clisp.org>
43656
43657         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43658
43659 2007-06-10  Bruno Haible  <bruno@clisp.org>
43660
43661         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43662         * lib/mbuiter.h: Likewise.
43663
43664 2007-06-10  Bruno Haible  <bruno@clisp.org>
43665
43666         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43667         declaration.
43668
43669 2007-06-10  Karl Berry  <karl@gnu.org>
43670
43671         * config/srclist.txt: remove gettext entries, Bruno prefers
43672         to update individually.
43673
43674 2007-06-10  Bruno Haible  <bruno@clisp.org>
43675
43676         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43677         'maxlen'. Ensure only length + width bytes are allocated, not
43678         length + 1 + width.
43679
43680 2007-06-09  Bruno Haible  <bruno@clisp.org>
43681
43682         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43683         (CHAR_T): Remove macro.
43684         (VASNPRINTF): Update.
43685
43686 2007-06-09  Bruno Haible  <bruno@clisp.org>
43687
43688         * MODULES.html.sh (Unicode string functions): Add the new modules.
43689
43690         * modules/uniconv/u32-conv-to-enc: New file.
43691         * lib/uniconv/u32-conv-to-enc.c: New file.
43692         * modules/uniconv/u32-conv-to-enc-tests: New file.
43693         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43694
43695         * modules/uniconv/u16-conv-to-enc: New file.
43696         * lib/uniconv/u16-conv-to-enc.c: New file.
43697         * lib/uniconv/u-conv-to-enc.h: New file.
43698         * modules/uniconv/u16-conv-to-enc-tests: New file.
43699         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43700
43701         * modules/uniconv/u8-conv-to-enc: New file.
43702         * lib/uniconv/u8-conv-to-enc.c: New file.
43703         * modules/uniconv/u8-conv-to-enc-tests: New file.
43704         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43705
43706         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43707         u32_conv_to_encoding): New declarations.
43708
43709 2007-06-09  Bruno Haible  <bruno@clisp.org>
43710
43711         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43712
43713 2007-06-09  Bruno Haible  <bruno@clisp.org>
43714
43715         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43716         * modules/malloca: Renamed from modules/allocsa, updated.
43717         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43718         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43719         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43720         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43721         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43722         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43723         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43724         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43725         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43726         * modules/c-strcasestr (Depends-on): Update.
43727         * lib/c-strcasestr.c: Update.
43728         * modules/c-strstr (Depends-on): Update.
43729         * lib/c-strstr.c: Update.
43730         * modules/canonicalize-lgpl (Depends-on): Update.
43731         * lib/canonicalize-lgpl.c: Update.
43732         * modules/clean-temp (Depends-on): Update.
43733         * lib/clean-temp.c: Update.
43734         * modules/csharpcomp (Depends-on): Update.
43735         * lib/csharpcomp.c: Update.
43736         * modules/csharpexec (Depends-on): Update.
43737         * lib/csharpexec.c: Update.
43738         * modules/javacomp (Depends-on): Update.
43739         * lib/javacomp.c: Update.
43740         * modules/javaexec (Depends-on): Update.
43741         * lib/javaexec.c: Update.
43742         * modules/mbscasestr (Depends-on): Update.
43743         * lib/mbscasestr.c: Update.
43744         * modules/mbsstr (Depends-on): Update.
43745         * lib/mbsstr.c: Update.
43746         * modules/setenv (Depends-on): Update.
43747         * lib/setenv.c: Update.
43748         * modules/strcasestr (Depends-on): Update.
43749         * lib/strcasestr.c: Update.
43750         * modules/striconveha (Depends-on): Update.
43751         * lib/striconveha.c: Update.
43752         * modules/relocatable-prog-wrapper (Files): Update.
43753         * lib/relocwrapper.c: Update.
43754         * build-aux/install-reloc: Update.
43755         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43756
43757 2007-06-08  Bruno Haible  <bruno@clisp.org>
43758
43759         Port to uClibc.
43760         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43761         * lib/fpurge.c (fpurge): Likewise.
43762         * lib/freading.c (freading): Likewise.
43763         * lib/fseeko.c (rpl_fseeko): Likewise.
43764         * lib/fseterr.c (fseterr): Likewise.
43765         * lib/fwriting.c (fwriting): Likewise.
43766         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43767
43768 2007-06-08  Bruno Haible  <bruno@clisp.org>
43769
43770         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43771         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43772         * modules/gettext (Files): Add m4/intlmacosx.m4.
43773
43774 2007-06-07  Bruno Haible  <bruno@clisp.org>
43775
43776         * modules/localename-tests: New file.
43777         * tests/test-localename.c: New file.
43778
43779         New module 'localename'.
43780         * lib/localename.h: New file.
43781         * lib/localename.c: New file, from GNU gettext.
43782         * m4/localename.m4: New file.
43783         * modules/localename: New file.
43784
43785 2007-06-07  Bruno Haible  <bruno@clisp.org>
43786
43787         Work around the lack of <wchar.h> on some builds of uClibc.
43788         * doc/headers/wchar.texi: Update.
43789         * lib/wchar_.h: Include <wchar.h> only if it exists.
43790         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43791         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43792         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43793         doesn't exist.
43794         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43795         * modules/mbfile (Depends-on): Add wchar.
43796         * modules/mbiter (Depends-on): Likewise.
43797         * modules/mbuiter (Depends-on): Likewise.
43798         Reported by Simon Josefsson.
43799
43800 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43801
43802         Work around problem reported by Steven M. Schweda in
43803         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43804         Tru64 5.1B with the Compaq compiler environment installed declares
43805         an 'isblank' function but does not define it in the C library.
43806         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43807         * lib/regex_internal.h (isblank): Likewise.
43808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43809         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43810
43811 2007-06-05  Bruno Haible  <bruno@clisp.org>
43812
43813         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43814         ia64.
43815         * modules/printf-safe: New file.
43816         * modules/fprintf-posix (Depends-on): Add printf-safe.
43817         * modules/printf-posix (Depends-on): Likewise.
43818         * modules/snprintf-posix (Depends-on): Likewise.
43819         * modules/sprintf-posix (Depends-on): Likewise.
43820         * modules/vasnprintf-posix (Depends-on): Likewise.
43821         * modules/vasprintf-posix (Depends-on): Likewise.
43822         * modules/vfprintf-posix (Depends-on): Likewise.
43823         * modules/vprintf-posix (Depends-on): Likewise.
43824         * modules/vsnprintf-posix (Depends-on): Likewise.
43825         * modules/vsprintf-posix (Depends-on): Likewise.
43826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43827         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43828         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43829         "no" on i386, x86_64, ia64.
43830         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43831         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43832         on i386, x86_64, ia64.
43833         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43834         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43835         on i386, x86_64, ia64.
43836         * tests/test-vasnprintf-posix.c: Include float.h.
43837         (LDBL80_WORDS): New macro.
43838         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43839         on i386, x86_64, ia64.
43840         * tests/test-vasprintf-posix.c: Include float.h.
43841         (LDBL80_WORDS): New macro.
43842         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43843         on i386, x86_64, ia64.
43844         * tests/test-snprintf-posix.c: Include float.h.
43845         * tests/test-sprintf-posix.c: Likewise.
43846         * tests/test-vsnprintf-posix.c: Likewise.
43847         * tests/test-vsprintf-posix.c: Likewise.
43848
43849 2007-06-05  Bruno Haible  <bruno@clisp.org>
43850
43851         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43852         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43853         non-IEEE numbers on i386, x86_64, ia64.
43854         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43855         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43856         * tests/test-isnanl.h: Include float.h.
43857         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43858
43859 2007-06-05  Bruno Haible  <bruno@clisp.org>
43860
43861         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43862         also the %a / %A. Handle the %a / %A code before this extra handling.
43863
43864 2007-06-05  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43867         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43868
43869 2007-06-05  Bruno Haible  <bruno@clisp.org>
43870
43871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43872         typo in variable name.
43873
43874 2007-06-05  Eric Blake  <ebb9@byu.net>
43875
43876         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43877         Reported by Simon Josefsson.
43878
43879 2007-06-04  Bruno Haible  <bruno@clisp.org>
43880
43881         Avoid test failures on some PowerPC platforms.
43882         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43883         Define differently for PowerPC.
43884         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43885         Reported by Gary V. Vaughan <gary@gnu.org>.
43886
43887 2007-06-02  Bruno Haible  <bruno@clisp.org>
43888
43889         Fix test-stdint failure on FreeBSD/ia64.
43890         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43891         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43892         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43893         * doc/headers/stdint.texi: Update.
43894
43895 2007-06-01  Bruno Haible  <bruno@clisp.org>
43896
43897         * tests/test-binary-io.c (main): Pass a third argument to open().
43898         Reported by Gary V. Vaughan <gary@gnu.org>.
43899
43900 2007-06-01  Bruno Haible  <bruno@clisp.org>
43901
43902         * doc/functions/frexpl.texi: Update for mingw.
43903
43904 2007-06-01  Bruno Haible  <bruno@clisp.org>
43905
43906         * tests/test-lseek.c (main): Disable test of errno for invalid third
43907         argument.
43908         * doc/functions/lseek.texi: Update.
43909         Reported by Gary V. Vaughan <gary@gnu.org>.
43910
43911 2007-05-28  Bruno Haible  <bruno@clisp.org>
43912
43913         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43914
43915 2007-05-31  Eric Blake  <ebb9@byu.net>
43916
43917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43918         cross compiling.
43919
43920 2007-05-30  Eric Blake  <ebb9@byu.net>
43921         and Bruno Haible  <bruno@clisp.org>
43922
43923         Work around mingw test failures exposed by m4-1.4.9b.
43924         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43925         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43926         moment.
43927
43928 2007-05-30  Bruno Haible  <bruno@clisp.org>
43929
43930         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43931         assuming that they are closed. Needed on HP-UX 11.
43932
43933 2007-05-29  Bruno Haible  <bruno@clisp.org>
43934
43935         Fix a problem with #include_next.
43936         * lib/dirent_.h: Split the double-inclusion guard.
43937         * lib/fcntl_.h: Likewise.
43938         * lib/float_.h: Likewise.
43939         * lib/iconv_.h: Likewise.
43940         * lib/inttypes_.h: Likewise.
43941         * lib/locale_.h: Likewise.
43942         * lib/math_.h: Likewise.
43943         * lib/netinet_in_.h: Likewise.
43944         * lib/search_.h: Likewise.
43945         * lib/signal_.h: Likewise.
43946         * lib/stdint_.h: Likewise.
43947         * lib/stdio_.h: Likewise.
43948         * lib/stdlib_.h: Likewise.
43949         * lib/string_.h: Likewise.
43950         * lib/sys_select_.h: Likewise.
43951         * lib/sys_socket_.h: Likewise.
43952         * lib/sys_stat_.h: Likewise.
43953         * lib/sys_time_.h: Likewise.
43954         * lib/sysexits_.h: Likewise.
43955         * lib/time_.h: Likewise.
43956         * lib/unistd_.h: Likewise.
43957         * lib/wchar_.h: Likewise.
43958         * lib/wctype_.h: Likewise.
43959
43960 2007-05-29  Bruno Haible  <bruno@clisp.org>
43961
43962         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43963         for the moment.
43964
43965 2007-05-29  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43968         invocation.
43969         Reported by Eric Blake.
43970
43971 2007-05-29  Bruno Haible  <bruno@clisp.org>
43972
43973         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43974         compiling case.
43975
43976 2007-05-29  Eric Blake  <ebb9@byu.net>
43977             Bruno Haible  <bruno@clisp.org>
43978
43979         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43980         cross compiles.
43981
43982 2007-05-28  Eric Blake  <ebb9@byu.net>
43983
43984         * modules/closein-tests (test_closein_LDADD): Support test on
43985         cygwin with libtool.
43986
43987 2007-05-28  Bruno Haible  <bruno@clisp.org>
43988
43989         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43990         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43991         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43992         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43993         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43994         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43995         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43996         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43997         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43998
43999 2007-05-28  Eric Blake  <ebb9@byu.net>
44000
44001         Unconditionally include <config.h> in unit tests.
44002         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
44003         * tests/test-allocsa.c, tests/test-arcfour.c,
44004         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
44005         tests/test-array_list.c, tests/test-array_oset.c,
44006         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
44007         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
44008         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
44009         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
44010         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
44011         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
44012         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
44013         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
44014         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
44015         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
44016         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
44017         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
44018         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
44019         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
44020         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
44021         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
44022         test-md5.c, test-memmem.c, test-printf-posix.c,
44023         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
44024         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
44025         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
44026         test-strcasestr.c, test-striconv.c, test-striconveh.c,
44027         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
44028         test-vasnprintf-posix2.c, test-vasnprintf.c,
44029         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
44030         test-vfprintf-posix.c, test-vprintf-posix.c,
44031         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
44032         test-xvasprintf.c: Likewise.
44033
44034 2007-05-28  Bruno Haible  <bruno@clisp.org>
44035
44036         * gnulib-tool (func_import): Remember the --with-tests command-line
44037         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
44038         Reported by Eric Blake.
44039
44040 2007-05-28  Bruno Haible  <bruno@clisp.org>
44041
44042         * modules/ftell-tests: New file.
44043         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
44044         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
44045
44046         * lib/ftell.c: New file.
44047         * modules/ftell: New file.
44048         * m4/ftell.m4: New file.
44049         * doc/functions/ftell.texi: Update.
44050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
44051         REPLACE_FTELL.
44052         * lib/stdio_.h (rpl_ftell): New declaration.
44053         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
44054         REPLACE_FTELL.
44055
44056 2007-05-28  Eric Blake  <ebb9@byu.net>
44057
44058         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
44059
44060 2007-05-28  Bruno Haible  <bruno@clisp.org>
44061
44062         * modules/fseek-tests: New file.
44063         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
44064         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
44065
44066         * lib/fseek.c: New file.
44067         * modules/fseek: New file.
44068         * m4/fseek.m4: New file.
44069         * doc/functions/fseek.texi: Update.
44070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
44071         REPLACE_FSEEK.
44072         * lib/stdio_.h (rpl_fseek): New declaration.
44073         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
44074         REPLACE_FSEEK.
44075
44076 2007-05-28  Bruno Haible  <bruno@clisp.org>
44077
44078         * lib/stdio_.h (fflush): More comments.
44079
44080 2007-05-28  Bruno Haible  <bruno@clisp.org>
44081
44082         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
44083         runtime test.
44084
44085 2007-05-28  Eric Blake  <ebb9@byu.net>
44086
44087         Improve lseek module.
44088         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
44089         * lib/unistd_.h (lseek): Scale back link warning message.
44090         * tests/test-lseek.c: Beef up test.
44091         * tests/test-lseek.sh: Exercise more facets of lseek.
44092         Reported by Bruno Haible.
44093
44094 2007-05-28  Bruno Haible  <bruno@clisp.org>
44095
44096         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
44097         to define.
44098
44099 2007-05-27  Bruno Haible  <bruno@clisp.org>
44100
44101         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
44102
44103 2007-05-27  Bruno Haible  <bruno@clisp.org>
44104
44105         * modules/openmp: New file.
44106         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
44107         Noah Misch.
44108
44109 2007-05-26  Bruno Haible  <bruno@clisp.org>
44110
44111         * modules/chdir-long (Depends-on): Add fchdir.
44112         * modules/chdir-safer (Depends-on): Likewise.
44113         * modules/fts (Depends-on): Likewise.
44114         * modules/fts-lgpl (Depends-on): Likewise.
44115         * modules/openat (Depends-on): Likewise.
44116         * modules/savewd (Depends-on): Likewise.
44117
44118 2007-05-24  Eric Blake  <ebb9@byu.net>
44119
44120         Fix lseek on mingw.
44121         * modules/lseek: New module.
44122         * m4/lseek.m4: New file.
44123         * lib/lseek.c: New file.
44124         * modules/lseek-tests: New file.
44125         * tests/test-lseek.c: New file.
44126         * tests/test-lseek.sh: New file.
44127         * MODULES.html.sh: Document lseek module.
44128         * modules/fflush (Depends-on): Add lseek, fseeko.
44129         * modules/fseeko (Depends-on): Likewise.
44130         * modules/ftello (Depends-on): Likewise.
44131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
44132         broken.
44133         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
44134         broken.
44135         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
44136         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
44137         * lib/ftello.c (rpl_ftello): Likewise.
44138         * tests/test-fseeko.c (main): Test this.
44139         * tests/test-fseeko.sh: Likewise.
44140         * tests/test-ftello.c (main): Likewise.
44141         * tests/test-ftello.sh: Likewise.
44142         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
44143         implies replacing fseek.
44144         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
44145         HAVE_FTELLO.
44146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
44147         * modules/unistd (Makefile.am): Likewise.
44148         * lib/unistd_.h (lseek): Declare a replacement.
44149         * doc/functions/lseek.texi (lseek): Document this fix.
44150         * doc/functions/fseek.texi (fseek): Likewise.
44151         * doc/functions/ftell.texi (ftell): Likewise.
44152
44153 2007-05-24  Bruno Haible  <bruno@clisp.org>
44154
44155         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
44156         in the printed representation of a NaN.
44157         * tests/test-vasprintf-posix.c (test_function): Likewise.
44158         * tests/test-snprintf-posix.h (test_function): Likewise.
44159         * tests/test-sprintf-posix.h (test_function): Likewise.
44160         Reported by Eric Blake.
44161
44162 2007-05-23  Eric Blake  <ebb9@byu.net>
44163
44164         Fix fseeko/ftello on cygwin 1.5.24.
44165         * doc/functions/fseeko.texi (fseeko): Document the fix.
44166         * doc/functions/ftello.texi (ftello): Document the fix.
44167         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
44168         * doc/functions/stdout.text (stdout): New file.
44169         * doc/functions/stderr.text (stderr): New file.
44170         * doc/gnulib.texi (Function Substitutes): Use new files.
44171         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
44172         prior to 1.7.0.
44173         * tests/test-ftello.c (main): Likewise for ftello.
44174         * tests/test-fseeko.sh: New file.
44175         * tests/test-ftello.sh: New file.
44176         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
44177         with seekable stdin.
44178         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
44179         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
44180         (gl_REPLACE_FSEEKO): New macro.
44181         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
44182         * modules/fseeko (Files): Distribute fseeko.c.
44183         * modules/ftello (Files): Distribute ftello.c.
44184         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
44185         mode.
44186         * lib/ftello.c (rpl_ftello): New file.
44187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
44188         fseeko, ftello.
44189         (gl_STDIN_LARGE_OFFSET): New macro.
44190         * modules/stdio (Makefile.am): Perform the replacement.
44191         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
44192
44193 2007-05-23  Bruno Haible  <bruno@clisp.org>
44194
44195         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
44196         GNULIB_POSIXCHECK is defined.
44197
44198 2007-05-21  Bruno Haible  <bruno@clisp.org>
44199
44200         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
44201         Check also the output for NaN arguments. When cross-compiling, guess
44202         no on IRIX.
44203         * lib/vasnprintf.c: Update comments.
44204         * tests/test-vasnprintf-posix.c (strisnan): New function.
44205         (test_function): Use it.
44206         * tests/test-vasprintf-posix.c (strisnan): New function.
44207         (test_function): Use it.
44208         * tests/test-snprintf-posix.h (strisnan): New function.
44209         (test_function): Use it.
44210         * tests/test-sprintf-posix.h (strisnan): New function.
44211         (test_function): Use it.
44212         Reported by Eric Blake.
44213
44214 2007-05-20  Bruno Haible  <bruno@clisp.org>
44215
44216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
44217         numbers that fails on BeOS.
44218         * doc/functions/frexpl.texi: Update.
44219
44220 2007-05-20  Jim Meyering  <jim@meyering.net>
44221
44222         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
44223         forced upon us by glibc-2.6.
44224
44225 2007-05-20  Bruno Haible  <bruno@clisp.org>
44226
44227         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
44228         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
44229         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
44230         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
44231         NEED_PRINTF_INFINITE.
44232         (is_infinitel): New function.
44233         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
44234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
44235         gl_PREREQ_VASNPRINTF_INFINITE.
44236         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
44237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44238         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
44239         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
44240         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
44241         gl_PREREQ_VASNPRINTF_INFINITE.
44242         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44243         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44249         * doc/functions/fprintf.texi: Update.
44250         * doc/functions/printf.texi: Update.
44251         * doc/functions/snprintf.texi: Update.
44252         * doc/functions/sprintf.texi: Update.
44253         * doc/functions/vfprintf.texi: Update.
44254         * doc/functions/vprintf.texi: Update.
44255         * doc/functions/vsnprintf.texi: Update.
44256         * doc/functions/vsprintf.texi: Update.
44257
44258 2007-05-20  Bruno Haible  <bruno@clisp.org>
44259
44260         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
44261         was not found in libc.
44262         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44263
44264 2007-05-20  Bruno Haible  <bruno@clisp.org>
44265
44266         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44267         printed as "-nan" instead of "nan".
44268         * tests/test-vasprintf-posix.c (test_function): Likewise.
44269         * tests/test-snprintf-posix.h (test_function): Likewise.
44270         * tests/test-sprintf-posix.h (test_function): Likewise.
44271         Needed for HP-UX 11.
44272
44273 2007-05-20  Jim Meyering  <jim@meyering.net>
44274
44275         Fix buggy test for the fchownat-deref bug.
44276         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
44277         symlink required for the run-test.  Without it, this test would
44278         always declare that fchownat doesn't work, and client code would
44279         unnecessarily use the replacement function with fixed libc.
44280         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
44281         Reported by Greg Schafer.
44282
44283 2007-05-19  Bruno Haible  <bruno@clisp.org>
44284
44285         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
44286         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
44287         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
44288         Needed for IRIX 6.5 and Solaris 2.5.1.
44289
44290 2007-05-19  Bruno Haible  <bruno@clisp.org>
44291
44292         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
44293         (test_function): Skip tests involving -0.0 on platforms where
44294         -0.0 = 0.0.
44295         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
44296         (test_function): Skip tests involving -0.0 on platforms where
44297         -0.0 = 0.0.
44298         * tests/test-snprintf-posix.h (have_minus_zero): New function.
44299         (test_function): Skip tests involving -0.0 on platforms where
44300         -0.0 = 0.0.
44301         * tests/test-sprintf-posix.h (have_minus_zero): New function.
44302         (test_function): Skip tests involving -0.0 on platforms where
44303         -0.0 = 0.0.
44304         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
44305         tests.
44306         * tests/test-printf-posix.h (test_function): Likewise.
44307         * tests/test-printf-posix.output: Remove all -0.0 related results.
44308         Needed for IRIX 6.5.
44309
44310 2007-05-19  Bruno Haible  <bruno@clisp.org>
44311
44312         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44313         printed as "nan0x7fffffff" instead of "nan".
44314         * tests/test-vasprintf-posix.c (test_function): Likewise.
44315         * tests/test-snprintf-posix.h (test_function): Likewise.
44316         * tests/test-sprintf-posix.h (test_function): Likewise.
44317         * tests/test-fprintf-posix.h (NaN): Remove macro.
44318         (test_function): Remove all NaN related tests.
44319         * tests/test-printf-posix.h (NaN): Remove macro.
44320         (test_function): Remove all NaN related tests.
44321         * tests/test-printf-posix.output: Remove all NaN related results.
44322         Needed for IRIX 6.5.
44323
44324 2007-05-19  Bruno Haible  <bruno@clisp.org>
44325
44326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44328
44329 2007-05-19  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/float_.h: New file.
44332         * m4/float_h.m4: New file.
44333         * modules/float: New file.
44334         * modules/isnanl (Dependencies): Add float.
44335         * modules/isnanl-nolibm (Dependencies): Likewise.
44336         * modules/mathl (Dependencies): Likewise.
44337         * modules/printf-frexpl (Dependencies): Likewise.
44338         * modules/signbit (Dependencies): Likewise.
44339         * modules/vasnprintf (Dependencies): Likewise.
44340         * doc/headers/float.texi: Update.
44341
44342 2007-05-19  Jim Meyering  <jim@meyering.net>
44343
44344         * lib/utimens.c (gl_futimens): Rename from futimens,
44345         now that glibc-2.6 declares futimens.
44346         * lib/utimens.h: Likewise.
44347
44348 2007-05-19  Bruno Haible  <bruno@clisp.org>
44349
44350         Avoid test failures on mingw.
44351         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
44352         * tests/test-printf-posix.sh: Likewise.
44353         * tests/test-vfprintf-posix.sh: Likewise.
44354         * tests/test-vprintf-posix.sh: Likewise.
44355
44356 2007-05-19  Bruno Haible  <bruno@clisp.org>
44357
44358         Fix *printf result for NaN, Inf, -0.0 on mingw.
44359         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
44360         * lib/vasnprintf.c: Include math.h and isnan.h.
44361         (is_infinite_or_zero): New function.
44362         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
44363         values in the %f, %F, %e, %E, %g, %G directives.
44364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
44365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44366         gl_PRINTF_INFINITE and test its result. Invoke
44367         gl_PREREQ_VASNPRINTF_INFINITE.
44368         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44371         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44372         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44374         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44375         * doc/functions/fprintf.texi: Update.
44376         * doc/functions/printf.texi: Update.
44377         * doc/functions/snprintf.texi: Update.
44378         * doc/functions/sprintf.texi: Update.
44379         * doc/functions/vfprintf.texi: Update.
44380         * doc/functions/vprintf.texi: Update.
44381         * doc/functions/vsnprintf.texi: Update.
44382         * doc/functions/vsprintf.texi: Update.
44383
44384 2007-05-19  Bruno Haible  <bruno@clisp.org>
44385
44386         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
44387         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
44388         Instead of multiplying with 10^k, set extra_zeroes to k.
44389         (scale10_round_long_double): Remove function.
44390
44391 2007-05-18  Bruno Haible  <bruno@clisp.org>
44392
44393         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
44394         introduced on 2007-05-06.
44395
44396 2007-05-18  Bruno Haible  <bruno@clisp.org>
44397
44398         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
44399         %g directives.
44400         * tests/test-vasprintf-posix.c (test_function): Likewise.
44401         * tests/test-snprintf-posix.h (test_function): Likewise.
44402         * tests/test-sprintf-posix.h (test_function): Likewise.
44403
44404 2007-05-18  Bruno Haible  <bruno@clisp.org>
44405
44406         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
44407         (strmatch): New function.
44408         (test_function): Test the %f directive on numbers of various exponents.
44409         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44410         (strmatch): New function.
44411         (test_function): Test the %f directive on numbers of various exponents.
44412         * tests/test-snprintf-posix.h (strmatch): New function.
44413         (test_function): Test the %f directive on numbers of various exponents.
44414         * tests/test-sprintf-posix.h (strmatch): New function.
44415         (test_function): Test the %f directive on numbers of various exponents.
44416         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44417         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44418         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44419         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44420
44421 2007-05-18  Bruno Haible  <bruno@clisp.org>
44422
44423         Add support for 'long double' number output.
44424         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44425         * lib/vasnprintf.c: Include math.h and float+.h.
44426         (mp_limb_t): New type.
44427         (GMP_LIMB_BITS): New macro.
44428         (mp_twolimb_t): New type.
44429         (GMP_TWOLIMB_BITS): New macro.
44430         (mpn_t): New type.
44431         (multiply, divide, convert_to_decimal, decode_long_double,
44432         scale10_round_long_double, scale10_round_decimal_long_double,
44433         floorlog10l): New functions.
44434         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44435         for the %f, %F, %e, %E, %g, %G directives.
44436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44438         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44439         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44447         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44448         * modules/snprintf-posix (Depends-on): Likewise.
44449         * modules/sprintf-posix (Depends-on): Likewise.
44450         * modules/vasnprintf-posix (Depends-on): Likewise.
44451         * modules/vasprintf-posix (Depends-on): Likewise.
44452         * modules/vfprintf-posix (Depends-on): Likewise.
44453         * modules/vsnprintf-posix (Depends-on): Likewise.
44454         * modules/vsprintf-posix (Depends-on): Likewise.
44455         * modules/vasnprintf (Files): Add lib/float+.h.
44456         * doc/functions/fprintf.texi: Update.
44457         * doc/functions/printf.texi: Update.
44458         * doc/functions/snprintf.texi: Update.
44459         * doc/functions/sprintf.texi: Update.
44460         * doc/functions/vfprintf.texi: Update.
44461         * doc/functions/vprintf.texi: Update.
44462         * doc/functions/vsnprintf.texi: Update.
44463         * doc/functions/vsprintf.texi: Update.
44464
44465 2007-05-18  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44468
44469 2007-05-18  Bruno Haible  <bruno@clisp.org>
44470
44471         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44472         for printing 64-bit integers. Needed for mingw.
44473
44474 2007-05-18  Bruno Haible  <bruno@clisp.org>
44475
44476         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44477         gl_FUNC_FREXPL_WORKS.
44478         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44479
44480 2007-05-18  Bruno Haible  <bruno@clisp.org>
44481
44482         * modules/frexpl-nolibm-tests: New file.
44483
44484         * modules/frexpl-nolibm: New file.
44485         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44486
44487 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44488
44489         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44490         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44491         GCC 4.2, which otherwise issues a lot of warnings.
44492         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44493         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44494         Likewise.
44495         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44496         * modules/iconv_open (iconv.h): Likewise.
44497         * modules/locale (locale.h): Likewise.
44498         * modules/netinet_in (netinet/in.h): Likewise.
44499         * modules/sys_select (sys_select.h): Likewise.
44500         * modules/sys_socket (sys/socket.h): Likewise.
44501         * modules/sys_stat (sys/stat.h): Likewise.
44502         * modules/sysexits (sysexits.h): Likewise.
44503         * modules/unistd (unistd.h): Likewise.
44504
44505 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44506
44507         * modules/closein-tests (Makefile.am): Distribute
44508         `test-closein.sh'.
44509
44510 2007-05-17  Bruno Haible  <bruno@clisp.org>
44511
44512         * tests/test-printf-posix.output: Renamed from
44513         tests/test-fprintf-posix.out.
44514         * modules/fprintf-posix-tests: Update.
44515         * modules/printf-posix-tests: Update.
44516         * modules/vfprintf-posix-tests: Update.
44517         * modules/vprintf-posix-tests: Update.
44518         * tests/test-fprintf-posix.sh: Update.
44519         * tests/test-printf-posix.sh: Update.
44520         * tests/test-vfprintf-posix.sh: Update.
44521         * tests/test-vprintf-posix.sh: Update.
44522         Reported by Ralf Wildenhues.
44523
44524 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44525
44526         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44527         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44528         GCC 4.2, which otherwise issues a lot of warnings.
44529         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44530         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44531         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44532         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44533         it should no longer be needed.
44534         * lib/string_.h: Likewise.
44535         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44536         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44537         * modules/inttypes (inttypes.h): Likewise.
44538         * modules/math (math.h): Likewise.
44539         * modules/search (search.h): Likewise.
44540         * modules/signal (signal.h): Likewise.
44541         * modules/stdint (stdint.h): Likewise.
44542         * modules/stdio (stdio.h): Likewise.
44543         * modules/stdlib (stdlib.h): Likewise.
44544         * modules/string (string.h): Likewise.
44545         * modules/sys_time (sys/time.h): Likewise.
44546         * modules/time (time.h): Likewise.
44547         * modules/wchar (wchar.h): Likewise.
44548         * modules/wctype (wtype.h): Likewise.
44549
44550 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44551
44552         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44553
44554 2007-05-13  Bruno Haible  <bruno@clisp.org>
44555
44556         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44557         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44558         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44559         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44560         (gl_PREREQ_STRTOK_R): Don't require it here.
44561
44562 2007-05-13  Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44565         when used in C++ mode.
44566
44567 2007-05-12  Bruno Haible  <bruno@clisp.org>
44568
44569         * lib/linebuffer.h: Tweak doc.
44570         * lib/linebuffer.c: Likewise.
44571
44572 2007-05-12  James Youngman  <jay@gnu.org>
44573
44574         * lib/linebuffer.c (readlinebuffer_delim): New function,
44575         like readlinebuffer, but use a caller-specified delimiter.
44576         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44577         as the delimiter.
44578         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44579
44580 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44581
44582         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44583         * modules/openat (Files): Remove openat-die.c.
44584         (Depends-on): Add openat-die.
44585         * modules/openat-die: New module.
44586
44587 2007-05-06  Bruno Haible  <bruno@clisp.org>
44588
44589         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44590         Update with info about Cygwin.
44591         * doc/functions/fprintf.texi: Update.
44592         * doc/functions/printf.texi: Update.
44593         * doc/functions/snprintf.texi: Update.
44594         * doc/functions/sprintf.texi: Update.
44595         * doc/functions/vfprintf.texi: Update.
44596         * doc/functions/vprintf.texi: Update.
44597         * doc/functions/vsnprintf.texi: Update.
44598         * doc/functions/vsprintf.texi: Update.
44599         Reported by Eric Blake.
44600
44601 2007-05-06  Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44604         padding ourselves for the floating-point directives.
44605         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44607         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44608         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44609         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44617         * tests/test-snprintf-posix.h (test_function): Also check the width
44618         and some flags in the %f directive.
44619         * tests/test-sprintf-posix.h (test_function): Likewise.
44620         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44621         * tests/test-vasprintf-posix.c (test_function): Likewise.
44622         * doc/functions/fprintf.texi: Update.
44623         * doc/functions/printf.texi: Update.
44624         * doc/functions/snprintf.texi: Update.
44625         * doc/functions/sprintf.texi: Update.
44626         * doc/functions/vfprintf.texi: Update.
44627         * doc/functions/vprintf.texi: Update.
44628         * doc/functions/vsnprintf.texi: Update.
44629         * doc/functions/vsprintf.texi: Update.
44630
44631 2007-05-06  Bruno Haible  <bruno@clisp.org>
44632
44633         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44634         pass the ' flag character to sprintf or snprintf.
44635         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44638         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44639         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44647         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44648         flag.
44649         * tests/test-sprintf-posix.h (test_function): Likewise.
44650         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44651         * tests/test-vasprintf-posix.c (test_function): Likewise.
44652         * doc/functions/fprintf.texi: Update.
44653         * doc/functions/printf.texi: Update.
44654         * doc/functions/snprintf.texi: Update.
44655         * doc/functions/sprintf.texi: Update.
44656         * doc/functions/vfprintf.texi: Update.
44657         * doc/functions/vprintf.texi: Update.
44658         * doc/functions/vsnprintf.texi: Update.
44659         * doc/functions/vsprintf.texi: Update.
44660
44661 2007-05-01  Bruno Haible  <bruno@clisp.org>
44662
44663         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44664
44665 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44666
44667         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44668         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44669
44670 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44671
44672         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44673         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44675
44676 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44677
44678         * lib/argp-help.c (struct hol_entry): New member `ord'.
44679         (HOL_ENTRY_PTRCMP): Use ord for comparison
44680         (hol_sort): Initialize ord.
44681
44682 2007-05-01  Bruno Haible  <bruno@clisp.org>
44683
44684         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44685         Reported by Eric Blake.
44686         * doc/gnulib.texi (Function Substitutes): Update.
44687
44688 2007-05-01  Bruno Haible  <bruno@clisp.org>
44689
44690         * doc/functions.texi: Remove file, now redundant through
44691         doc/functions/*.texi.
44692
44693 2007-05-01  Bruno Haible  <bruno@clisp.org>
44694
44695         * modules/argp (Depends-on): Add sleep.
44696
44697 2007-05-01  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/sleep-tests: New file.
44700         * tests/test-sleep.c: New file.
44701
44702         * modules/sleep: New file.
44703         * lib/sleep.c: New file.
44704         * m4/sleep.m4: New file.
44705         * lib/unistd_.h (sleep): New declaration.
44706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44707         HAVE_SLEEP.
44708         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44709         * doc/functions/sleep.texi: Document the sleep module.
44710
44711 2007-05-01  Bruno Haible  <bruno@clisp.org>
44712
44713         * lib/sigprocmask.h: Remove file.
44714         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44715         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44716         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44717         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44718         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44719         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44720         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44721         HAVE_SIGSET_T as a shell variable.
44722         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44723         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44724         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44725         (Depends-on): Add signal. Remove verify.
44726         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44727         (Include): Mention <signal.h> instead of sigprocmask.h.
44728         * NEWS: Mention the change.
44729         * lib/fatal-signal.c: Don't include sigprocmask.h.
44730
44731 2007-05-01  Bruno Haible  <bruno@clisp.org>
44732
44733         * modules/signal: New file.
44734         * lib/signal_.h: New file.
44735         * m4/signal_h.m4: New file.
44736
44737 2007-05-01  Bruno Haible  <bruno@clisp.org>
44738
44739         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44740         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44741         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44742         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44743
44744 2007-05-01  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44747         configure time.
44748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44749         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44750         * modules/sys_stat (Makefile.am): Substitute their values into
44751         sys/stat.h.
44752
44753 2007-05-01  Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44756         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44757         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44758
44759 2007-05-01  Bruno Haible  <bruno@clisp.org>
44760
44761         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44762         'assert' module here.
44763
44764 2007-05-01  Bruno Haible  <bruno@clisp.org>
44765
44766         * doc/functions/*.texi: New files.
44767         * doc/functions/google-ranking.txt: New file.
44768         * doc/gnulib.texi (Function Substitutes): New chapter.
44769         (ctime, inet_ntoa): Remove sections.
44770         * doc/ctime.texi: Remove file.
44771         * doc/inet_ntoa.texi: Remove file.
44772         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44773         dependencies.
44774         (%.info): New rule, specifying a --reference-limit.
44775
44776 2007-05-01  Bruno Haible  <bruno@clisp.org>
44777
44778         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44779
44780 2007-05-01  Bruno Haible  <bruno@clisp.org>
44781
44782         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44783         the portability of 'mkdir' to mingw systems.
44784
44785 2007-05-01  Bruno Haible  <bruno@clisp.org>
44786
44787         * doc/headers/google-ranking.txt: New file.
44788
44789 2007-04-30  Eric Blake  <ebb9@byu.net>
44790
44791         Prefer fseeko to fseek.
44792         * modules/getpass (Depends-on): Add fseeko.
44793         * lib/getpass.c (getpass): Use fseeko, not fseek.
44794
44795 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44796
44797         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44798         assumes the sorting is stable, while most qsort implementations
44799         are not.  Use argument addresses to ensure they never compare as
44800         equal.
44801
44802         * tests/test-argp-2.sh (usage-indent test): Fix output
44803         (func_compare): Restore diff options
44804         * tests/test-argp.c: Restore #include "progname.h"
44805
44806 2007-04-29  Bruno Haible  <bruno@clisp.org>
44807
44808         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44809         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44810         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44812         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44813         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44814         (TESTS, check_PROGRAMS): Add test-snprintf.
44815         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44816         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44817         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44818         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44819         assertions that fail on HP-UX, OSF/1, or IRIX.
44820         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44821
44822 2007-04-29  Bruno Haible  <bruno@clisp.org>
44823
44824         * MODULES.html.sh (posix_functions): Remove 'contents'.
44825
44826 2007-04-29  Karl Berry  <karl@gnu.org>
44827
44828         * config/srclist.txt (gendocs_template_min): new entry.
44829
44830 2007-04-29  Bruno Haible  <bruno@clisp.org>
44831
44832         Work around fpurge bug on BSD systems.
44833         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44834         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44835         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44836         fpurge to rpl_fpurge if the system already has this function.
44837         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44838         the case where the system already has this function. Correct invariants
44839         on BSD systems.
44840         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44841         BSD systems.
44842
44843 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44844
44845         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44846         proposed by Sven Verdoolaege.
44847
44848         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44849         options.
44850         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44851         (usage and help tests): Update
44852
44853 2007-04-29  Bruno Haible  <bruno@clisp.org>
44854
44855         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44856         Print more information in case of failure. Disable a test on BeOS.
44857
44858 2007-04-29  Bruno Haible  <bruno@clisp.org>
44859
44860         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44861         This helps debugging on systems on which no gdb is available.
44862
44863 2007-04-29  Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/freading.h: Improve comments.
44866         * lib/fwriting.h: Likewise.
44867         * tests/test-freading.c (main): Don't check freading immediately after
44868         repositioning. Needed for glibc.
44869
44870 2007-04-29  Bruno Haible  <bruno@clisp.org>
44871
44872         * lib/freading.c (freading): Trivial simplification.
44873
44874 2007-04-28  Bruno Haible  <bruno@clisp.org>
44875
44876         * tests/test-fwriting.c (main): Also test the interaction between
44877         fflush and fwriting.
44878         * modules/fwriting-tests (Depends-on): Add fflush.
44879
44880         * tests/test-freading.c (main): Also test the interaction between
44881         fflush and freading.
44882         * modules/freading-tests (Depends-on): Add fflush.
44883
44884 2007-04-28  Bruno Haible  <bruno@clisp.org>
44885
44886         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44887         fseeko and ftello.
44888         Suggested by Eric Blake.
44889
44890 2007-04-28  Jim Meyering  <jim@meyering.net>
44891
44892         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44893         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44894         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44895
44896 2007-04-27  Eric Blake  <ebb9@byu.net>
44897
44898         * doc/headers/assert.texi (assert.h): Document assert module use.
44899
44900 2007-04-27  Bruno Haible  <bruno@clisp.org>
44901
44902         * doc/headers/*.texi: New files.
44903         * doc/gnulib.texi (Header File Substitutes): New chapter.
44904         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44905         dependencies.
44906         (standards.info ,standards.html, standards.dvi): Update dependencies.
44907         (mostlyclean, clean): New targets.
44908
44909 2007-04-27  Bruno Haible  <bruno@clisp.org>
44910
44911         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44912         * modules/sysexits (Files, Makefile.am): Update.
44913
44914         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44915         * modules/sys_socket (Files, Makefile.am): Update.
44916
44917         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44918         * modules/sys_stat (Files, Makefile.am): Update.
44919
44920 2007-04-27  Eric Blake  <ebb9@byu.net>
44921
44922         * lib/freading.h: Improve comments.
44923         * lib/fwriting.h: Likewise.
44924         * lib/fflush.c: Likewise.
44925
44926         Fix closein for mingw.
44927         * modules/closein-tests: Add tests for closein.
44928         * tests/test-closein.c: New file.
44929         * tests/test-closein.sh: Likewise.
44930         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44931         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44932
44933 2007-04-27  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44936         version is < 6.
44937         * lib/math_.h [__DECC]: Likewise.
44938         * lib/stdio_.h [__DECC]: Likewise.
44939         * lib/stdlib_.h [__DECC]: Likewise.
44940         * lib/string_.h [__DECC]: Likewise.
44941         * lib/time_.h [__DECC]: Likewise.
44942         * lib/wchar_.h [__DECC]: Likewise.
44943         * lib/wctype_.h [__DECC]: Likewise.
44944
44945 2007-04-27  Bruno Haible  <bruno@clisp.org>
44946
44947         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44948
44949 2007-04-27  Bruno Haible  <bruno@clisp.org>
44950
44951         * lib/fflush.c: Add comments.
44952         * modules/fpurge-tests (Depends-on): Add fflush.
44953         * modules/freadable-tests (Depends-on): Likewise.
44954         * modules/fwritable-tests (Depends-on): Likewise.
44955
44956 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44957
44958         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44959         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44960         Report by Bruno Haible <bruno@clisp.org>.
44961
44962 2007-04-26  Eric Blake  <ebb9@byu.net>
44963
44964         Fix fflush on mingw.
44965         * modules/fflush (Depends-on): Add freading.
44966         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44967         but unread data.
44968
44969 2007-04-26  Eric Blake  <ebb9@byu.net>
44970         and Bruno Haible  <bruno@clisp.org>
44971
44972         Implement freading and fwriting.
44973         * lib/freading.c: New file.
44974         * lib/freading.h: Likewise.
44975         * m4/freading.m4: Likewise.
44976         * modules/freading: Likewise.
44977         * modules/freading-tests: Likewise.
44978         * tests/test-freading.c: Likewise.
44979         * lib/fwriting.c: New file.
44980         * lib/fwriting.h: Likewise.
44981         * m4/fwriting.m4: Likewise.
44982         * modules/fwriting: Likewise.
44983         * modules/fwriting-tests: Likewise.
44984         * tests/test-fwriting.c: Likewise.
44985         * MODULES.html.sh (File stream based Input/Output): Mention them.
44986
44987 2007-04-26  Bruno Haible  <bruno@clisp.org>
44988
44989         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44990         'long' when we assume it.
44991         Suggested by Eric Blake.
44992
44993 2007-04-26  Bruno Haible  <bruno@clisp.org>
44994
44995         Ensure fseeko, ftello are declared on glibc systems.
44996         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44997         * modules/fseeko (configure.ac-early): Likewise.
44998         * modules/ftello (configure.ac-early): Likewise.
44999         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
45000         AC_FUNC_FSEEKO for this.
45001         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
45002         (gl_CHECK_FSEEKO): Remove macro.
45003
45004 2007-04-26  Bruno Haible  <bruno@clisp.org>
45005
45006         * tests/test-fflush.c (main): Also check the ftell result after
45007         fflush and fseek/fseeko.
45008         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
45009         file descriptor position cache in the stream.
45010         * lib/fseeko.c (rpl_fseeko): Likewise.
45011
45012 2007-04-26  Bruno Haible  <bruno@clisp.org>
45013
45014         * modules/fflush-tests (Depends-on): Add fseeko.
45015
45016 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
45017             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45018
45019         * lib/argz_.h: ensure error_t definition is obtained in same
45020         mechanism system argz.h would have.
45021         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
45022         argz facilities are known bad.  Err on the side of caution if
45023         cross-compiling.
45024
45025 2007-04-25  Eric Blake  <ebb9@byu.net>
45026
45027         * lib/fpurge.c (includes): Use stdlib.h for free.
45028         * tests/test-fflush.c (main): Also test fflush-fseeko.
45029
45030 2007-04-25  Bruno Haible  <bruno@clisp.org>
45031
45032         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
45033         * lib/fseeko.c: New file.
45034         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
45035         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
45036         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45037         gl_FUNC_FSEEKO.
45038         (gl_FUNC_FSEEKO): Invoke it.
45039         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
45040         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
45041         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
45042
45043 2007-04-25  Bruno Haible  <bruno@clisp.org>
45044
45045         * modules/fflush (Depends-on): Add ftello.
45046
45047 2007-04-25  Bruno Haible  <bruno@clisp.org>
45048
45049         * modules/ftello-tests: New file.
45050         * tests/test-ftello.c: New file.
45051
45052         * modules/ftello: New file.
45053         * m4/ftello.m4: New file.
45054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
45055         HAVE_FTELLO.
45056         * lib/stdio_.h (ftello): New declaration.
45057         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
45058         HAVE_FTELLO.
45059
45060 2007-04-25  Bruno Haible  <bruno@clisp.org>
45061
45062         * modules/fseeko-tests: New file.
45063         * tests/test-fseeko.c: New file.
45064
45065         * modules/fseeko: New file.
45066         * m4/fseeko.m4: New file.
45067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
45068         HAVE_FSEEKO.
45069         * lib/stdio_.h (fseeko): New declaration.
45070         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
45071         HAVE_FSEEKO.
45072
45073 2007-04-25  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
45076
45077 2007-04-25  Bruno Haible  <bruno@clisp.org>
45078
45079         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
45080         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
45081         * tests/test-unistd.c: Likewise.
45082         * tests/test-fcntl.c: Likewise.
45083
45084 2007-04-23  Eric Blake  <ebb9@byu.net>
45085
45086         * lib/fflush.c: Fix missing include.
45087         Reported by Bruno Haible.
45088
45089 2007-04-23  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
45092         Reported by Eric Blake.
45093
45094 2007-04-23  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
45097
45098 2007-04-23  Bruno Haible  <bruno@clisp.org>
45099
45100         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
45101
45102 2007-04-23  Bruno Haible  <bruno@clisp.org>
45103
45104         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
45105         Needed on HP-UX 11.
45106
45107 2007-04-16  Eric Blake  <ebb9@byu.net>
45108
45109         Make fflush rely on fpurge.
45110         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
45111         open coding all variants.
45112         * modules/fflush (Depends-on): Add fpurge and unistd.
45113         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
45114         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
45115
45116         Fix --with-tests compilation on cygwin.
45117         * modules/argmatch-tests (Makefile.am): List gnulib library first
45118         in LDADD.
45119         * modules/argp-tests (Makefile.am): Likewise.
45120         * modules/array-list-tests (Makefile.am): Likewise.
45121         * modules/array-oset-tests (Makefile.am): Likewise.
45122         * modules/avltree-list-tests (Makefile.am): Likewise.
45123         * modules/avltree-oset-tests (Makefile.am): Likewise.
45124         * modules/avltreehash-list-tests (Makefile.am): Likewise.
45125         * modules/carray-list-tests (Makefile.am): Likewise.
45126         * modules/dirname-tests (Makefile.am): Likewise.
45127         * modules/frexp-tests (Makefile.am): Likewise.
45128         * modules/isnanl-tests (Makefile.am): Likewise.
45129         * modules/linked-list-tests (Makefile.am): Likewise.
45130         * modules/linkedhash-list-tests (Makefile.am): Likewise.
45131         * modules/lock-tests (Makefile.am): Likewise.
45132         * modules/rbtree-list-tests (Makefile.am): Likewise.
45133         * modules/rbtree-oset-tests (Makefile.am): Likewise.
45134         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
45135         * modules/tls-tests (Makefile.am): Likewise.
45136         * modules/tsearch-tests (Makefile.am): Likewise.
45137         * modules/xvasprintf-tests (Makefile.am): Likewise.
45138
45139         Fix fpurge for cygwin.
45140         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
45141         value.
45142         * modules/fpurge-tests (Depends-on): Clean up trash.
45143
45144 2007-04-16  Simon Josefsson  <simon@josefsson.org>
45145
45146         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
45147
45148         * m4/autobuild.m4: Re-indent.
45149
45150 2007-04-13  Bruno Haible  <bruno@clisp.org>
45151
45152         * modules/fpurge-tests: New file.
45153         * tests/test-fpurge.c: New file.
45154
45155         * modules/fpurge: New file.
45156         * lib/fpurge.h: New file.
45157         * lib/fpurge.c: New file.
45158         * m4/fpurge.m4: New file.
45159
45160 2007-04-13  Bruno Haible  <bruno@clisp.org>
45161
45162         * modules/fbufmode-tests: New file.
45163         * tests/test-fbufmode.c: New file.
45164
45165         * modules/fbufmode: New file.
45166         * lib/fbufmode.h: New file.
45167         * lib/fbufmode.c: New file.
45168         * m4/fbufmode.m4: New file.
45169
45170 2007-04-13  Bruno Haible  <bruno@clisp.org>
45171
45172         * modules/fwritable-tests: New file.
45173         * tests/test-fwritable.c: New file.
45174
45175         * modules/fwritable: New file.
45176         * lib/fwritable.h: New file.
45177         * lib/fwritable.c: New file.
45178         * m4/fwritable.m4: New file.
45179
45180 2007-04-13  Bruno Haible  <bruno@clisp.org>
45181
45182         * modules/freadable-tests: New file.
45183         * tests/test-freadable.c: New file.
45184
45185         * modules/freadable: New file.
45186         * lib/freadable.h: New file.
45187         * lib/freadable.c: New file.
45188         * m4/freadable.m4: New file.
45189
45190 2007-04-13  Bruno Haible  <bruno@clisp.org>
45191
45192         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
45193         MOSTLYCLEANFILES.
45194
45195 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45196
45197         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
45198         gzip bootstrap.conf to avoid dragging in i18n machinery.
45199         (gnulib_tool_option): Use it.
45200
45201 2007-04-13  Bruno Haible  <bruno@clisp.org>
45202
45203         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
45204         %F directives.
45205         * tests/test-vasprintf-posix.c (test_function): Likewise.
45206         * tests/test-snprintf-posix.h (test_function): Likewise.
45207         * tests/test-sprintf-posix.h (test_function): Likewise.
45208         * tests/test-fprintf-posix.h (test_function): Likewise.
45209         * tests/test-printf-posix.h (test_function): Likewise.
45210         * tests/test-fprintf-posix.out: Likewise.
45211
45212 2007-04-13  Bruno Haible  <bruno@clisp.org>
45213
45214         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
45215         * modules/tls-tests (configure.ac): Likewise.
45216         Reported by Arto C. Nirkko <anirkko@insel.ch>.
45217
45218 2007-04-13  Bruno Haible  <bruno@clisp.org>
45219
45220         * lib/tls.c (glthread_tls_get): Fix return type.
45221         Patch by Arto C. Nirkko <anirkko@insel.ch>.
45222
45223 2007-04-12  Eric Blake  <ebb9@byu.net>
45224
45225         * modules/gettime (Depends-on): Remove gettime.
45226         Reported by Dmitry V. Levin.
45227
45228 2007-04-12  Bruno Haible  <bruno@clisp.org>
45229
45230         * modules/fflush (Include): Mention <stdio.h>.
45231         * modules/strtoimax (Include): Mention <inttypes.h>.
45232         * modules/strtoumax (Include): Likewise.
45233
45234 2007-04-12  Eric Blake  <ebb9@byu.net>
45235
45236         * .cvsignore: New file.
45237         * .gitignore: Likewise.
45238
45239 2007-04-12  Bruno Haible  <bruno@clisp.org>
45240
45241         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
45242         not before, since $(LDADD) often contains libgnu.a.
45243         * modules/striconv-tests (test_striconv_LDADD): Likewise.
45244         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
45245         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
45246         Needed on Cygwin.
45247
45248 2007-04-12  Eric Blake  <ebb9@byu.net>
45249
45250         Work around glibc's failure to flush stdin on fclose.
45251         * lib/closein.c (close_stdin): Flush stdin before closing.
45252
45253         Work around glibc's failure to reset seekable stdin on exit.
45254         * modules/closein: New module.
45255         * lib/closein.c: New file.
45256         * lib/closein.h: Likewise.
45257         * m4/closein.m4: Likewise.
45258         * MODULES.html.sh (File stream based Input/Output): Document it.
45259
45260 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45261
45262         * gnulib-tool: Rename generated 'autobuild' script to
45263         'do-autobuild' in --create-megatestdir output.
45264
45265         * doc/gnulib.texi (Build robot for gnulib): Fix.
45266
45267 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45268
45269         * modules/sysexits (Depends-on): Add absolute-header.
45270
45271 2007-04-12  Eric Blake  <ebb9@byu.net>
45272
45273         No need to preserve errno on success.
45274         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
45275         Reported by Bruno Haible.
45276
45277 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45278
45279         * MODULES.html.sh (Support for maintaining and releasing
45280         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
45281
45282 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45283
45284         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
45285
45286 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45287
45288         * modules/autobuild: New module.
45289
45290         * m4/autobuild.m4: New file.
45291
45292 2007-04-11  Bruno Haible  <bruno@clisp.org>
45293
45294         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
45295         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
45296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
45297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
45298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45299         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45300         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45302         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45303         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
45305         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45306         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
45308         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45309         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
45311         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45312         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45313         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
45314         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45315         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
45317         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45318         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
45320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45322         Reported by Eric Blake.
45323
45324 2007-04-11  Bruno Haible  <bruno@clisp.org>
45325
45326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45327
45328 2007-04-10  Bruno Haible  <bruno@clisp.org>
45329
45330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
45331         for NaN and Infinity. Needed on FreeBSD 6.1.
45332         * tests/test-vasnprintf-posix.c (test_function): Undo last change
45333         regarding results for "%010a" of Infinity and NaN.
45334         * tests/test-vasprintf-posix.c (test_function): Likewise.
45335         * tests/test-snprintf-posix.h (test_function): Likewise.
45336         * tests/test-sprintf-posix.h (test_function): Likewise.
45337         * tests/test-fprintf-posix.h (test_function): Likewise.
45338         * tests/test-printf-posix.h (test_function): Likewise.
45339         * tests/test-fprintf-posix.out: Likewise.
45340
45341 2007-04-10  Bruno Haible  <bruno@clisp.org>
45342
45343         * modules/locale-tests: New file.
45344         * tests/test-locale.c: New file.
45345
45346         * modules/locale: New file.
45347         * lib/locale_.h: New file.
45348         * m4/locale_h.m4: New file.
45349
45350 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
45351             Bruno Haible  <bruno@clisp.org>
45352
45353         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
45354         be determined, test for availability of the copysignf, copysign,
45355         copysignl functions.
45356         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
45357         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
45358         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
45359
45360 2007-04-09  Eric Blake  <ebb9@byu.net>
45361
45362         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
45363         * modules/stdio (Makefile.am): Support fflush.
45364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45365         * modules/fflush: New file.
45366         * lib/fflush.c: Likewise.
45367         * m4/fflush.m4: Likewise.
45368         * modules/fflush-tests: New test.
45369         * tests/test-fflush.c: Likewise.
45370         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
45371
45372 2007-04-06  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
45375         (VASNPRINTF): Use signbit for faster determination whether to print a
45376         minus sign.
45377         * modules/vasnprintf (Files): Remove lib/float+.h.
45378         * modules/fprintf-posix (Depends-on): Add signbit.
45379         * modules/snprintf-posix (Depends-on): Likewise.
45380         * modules/sprintf-posix (Depends-on): Likewise.
45381         * modules/vasnprintf-posix (Depends-on): Likewise.
45382         * modules/vasprintf-posix (Depends-on): Likewise.
45383         * modules/vfprintf-posix (Depends-on): Likewise.
45384         * modules/vsnprintf-posix (Depends-on): Likewise.
45385         * modules/vsprintf-posix (Depends-on): Likewise.
45386
45387 2007-04-06  Bruno Haible  <bruno@clisp.org>
45388
45389         * tests/test-frexp.c (main): Test also the sign bit of zero results.
45390         * tests/test-frexpl.c (main): Likewise.
45391         * tests/test-ldexpl.c (main): Likewise.
45392         * modules/frexp-tests (Depends-on): Add signbit.
45393         * modules/frexpl-tests (Depdends-on): Likewise.
45394         * modules/ldexpl-tests (Depdends-on): Likewise.
45395
45396 2007-04-06  Bruno Haible  <bruno@clisp.org>
45397
45398         * modules/signbit-tests: New file.
45399         * tests/test-signbit.c: New file.
45400
45401         * modules/signbit: New file.
45402         * lib/signbitf.c: New file.
45403         * lib/signbitd.c: New file.
45404         * lib/signbitl.c: New file.
45405         * m4/signbit.m4: New file.
45406         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
45407         (signbit): New macro.
45408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45409         REPLACE_SIGNBIT.
45410         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45411         REPLACE_FREXPL into math.h.
45412
45413 2007-04-06  Bruno Haible  <bruno@clisp.org>
45414
45415         * modules/isnanf-nolibm-tests: New file.
45416         * tests/test-isnanf.c: New file.
45417
45418         * modules/isnanf-nolibm: New file.
45419         * lib/isnanf.h: New file.
45420         * lib/isnanf.c: New file.
45421         * lib/isnan.c: Consider the USE_FLOAT macro.
45422         * m4/isnanf.m4: New file.
45423
45424 2007-04-06  Bruno Haible  <bruno@clisp.org>
45425
45426         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45427         (Link): New section.
45428
45429         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45430
45431 2007-04-06  Bruno Haible  <bruno@clisp.org>
45432
45433         Assume the 'long double' type.
45434         * m4/longdouble.m4: Remove file.
45435         * config/srclist.txt: Don't mention longdouble.m4.
45436         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45437         * lib/float+.h: Likewise.
45438         * lib/frexp.c: Likewise.
45439         * lib/printf-args.h: Likewise.
45440         * lib/printf-args.c: Likewise.
45441         * lib/printf-frexp.c: Likewise.
45442         * lib/printf-parse.c: Likewise.
45443         * lib/vasnprintf.c: Likewise.
45444         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45445         * m4/intl.m4: Likewise.
45446         * m4/isnanl.m4: Likewise.
45447         * m4/printf.m4: Likewise.
45448         * m4/printf-frexpl.m4: Likewise.
45449         * m4/vasnprintf.m4: Likewise.
45450         * modules/allocsa (Files): Remove m4/longdouble.m4.
45451         * modules/gettext (Files): Likewise.
45452         * modules/relocatable-prog-wrapper (Files): Likewise.
45453         * modules/vasnprintf (Files): Likewise.
45454         * modules/isnanl (Files): Likewise.
45455         (Include): Simplify.
45456         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
45457         (Include): Simplify.
45458         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
45459         (Include): Simplify.
45460         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45461         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45462         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45463         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45464         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45465         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45466         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45467         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45468         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45469         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45470         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45471         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45472         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45473         * tests/test-isnanl.c: Likewise.
45474         * tests/test-snprintf-posix.h: Likewise.
45475         * tests/test-sprintf-posix.h: Likewise.
45476         * tests/test-vasnprintf-posix.c: Likewise.
45477         * tests/test-vasnprintf-posix2.c: Likewise.
45478         * tests/test-vasprintf-posix.c: Likewise.
45479
45480 2007-04-06  Bruno Haible  <bruno@clisp.org>
45481
45482         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45483         * lib/math_.h [__DECC]: Include the overridden include file through
45484         #include_next, outside the double-inclusion guard.
45485         * lib/stdio_.h [__DECC]: Likewise.
45486         * lib/stdlib_.h [__DECC]: Likewise.
45487         * lib/string_.h [__DECC]: Likewise.
45488         * lib/time_.h [__DECC]: Likewise.
45489         * lib/wchar_.h [__DECC]: Likewise.
45490         * lib/wctype_.h [__DECC]: Likewise.
45491         * lib/inttypes_.h [__DECC]: Likewise.
45492         Reported by Albert Chin <china@thewrittenword.com> in
45493         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45494
45495 2007-04-04  Eric Blake  <ebb9@byu.net>
45496
45497         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45498         1.5.x.
45499
45500 2007-04-04  Bruno Haible  <bruno@clisp.org>
45501
45502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45503         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45504
45505 2007-04-04  Bruno Haible  <bruno@clisp.org>
45506
45507         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45508         results for "%010a" of Infinity and NaN.
45509         * tests/test-vasprintf-posix.c (test_function): Likewise.
45510         * tests/test-snprintf-posix.h (test_function): Likewise.
45511         * tests/test-sprintf-posix.h (test_function): Likewise.
45512         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45513         * tests/test-printf-posix.h (test_function): Likewise.
45514         * tests/test-fprintf-posix.out: Update.
45515         Needed for FreeBSD 6.1.
45516
45517 2007-04-04  Bruno Haible  <bruno@clisp.org>
45518
45519         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45520         directly used by the gnulib modules nor by gnulib-tool.
45521
45522 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45523
45524         * DEPENDENCIES: Give overall description of version dependency
45525         desirability.  Use more-typical names for apps.
45526         Add shell, coreutils, diffutils, grep, tar, gzip.
45527
45528 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45529
45530         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45531
45532 2007-04-04  Karl Berry  <karl@gnu.org>
45533
45534         * MODULES.html.sh (func_module): missing '.
45535
45536 2007-04-03  Bruno Haible  <bruno@clisp.org>
45537
45538         * modules/argmatch-tests (Makefile.am): New variable
45539         test_argmatch_LDADD.
45540         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45541         * modules/array-list-tests (Makefile.am): New variable
45542         test_array_list_LDADD.
45543         * modules/array-oset-tests (Makefile.am): New variable
45544         test_array_oset_LDADD.
45545         * modules/avltree-list-tests (Makefile.am): New variable
45546         test_avltree_list_LDADD.
45547         * modules/avltree-oset-tests (Makefile.am): New variable
45548         test_avltree_oset_LDADD.
45549         * modules/avltreehash-list-tests (Makefile.am): New variable
45550         test_avltreehash_list_LDADD.
45551         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45552         test_canonicalize_lgpl_LDADD.
45553         * modules/carray-list-tests (Makefile.am): New variable
45554         test_carray_list_LDADD.
45555         * modules/dirname-tests (Makefile.am): New variable
45556         test_dirname_LDADD.
45557         * modules/linked-list-tests (Makefile.am): New variable
45558         test_linked_list_LDADD.
45559         * modules/linkedhash-list-tests (Makefile.am): New variable
45560         test_linkedhash_list_LDADD.
45561         * modules/rbtree-list-tests (Makefile.am): New variable
45562         test_rbtree_list_LDADD.
45563         * modules/rbtree-oset-tests (Makefile.am): New variable
45564         test_rbtree_oset_LDADD.
45565         * modules/rbtreehash-list-tests (Makefile.am): New variable
45566         test_rbtreehash_list_LDADD.
45567         * modules/xvasprintf-tests (Makefile.am): New variable
45568         test_xvasprintf_LDADD.
45569         Reported by Eric Blake.
45570
45571 2007-04-03  Eric Blake  <ebb9@byu.net>
45572
45573         * DEPENDENCIES: Weaken m4 requirements.
45574
45575 2007-04-03  Bruno Haible  <bruno@clisp.org>
45576
45577         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45578         * modules/isnanl-tests (configure.ac): Likewise.
45579
45580 2007-04-03  Ben Pfaff  <blp@gnu.org>
45581
45582         * modules/iconv_open: Add $(srcdir)/ to source directory
45583         references in Makefile fragments that call gperf, to fix VPATH
45584         builds.
45585
45586 2007-04-03  Bruno Haible  <bruno@clisp.org>
45587
45588         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45589         * lib/ldexpl.c: Undo last change.
45590
45591 2007-04-03  Bruno Haible  <bruno@clisp.org>
45592
45593         * modules/printf-frexpl (Depends-on): Undo last change.
45594         (Files): Add m4/ldexpl.m4.
45595
45596 2007-04-03  Bruno Haible  <bruno@clisp.org>
45597
45598         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45599         * modules/isnanl (Link): New section.
45600
45601         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45602         * modules/frexp (Link): New section.
45603
45604         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45605         * modules/frexpl (Link): New section.
45606
45607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45608         * modules/ldexpl (Link): New section.
45609
45610 2007-04-03  Bruno Haible  <bruno@clisp.org>
45611
45612         * modules/TEMPLATE-EXTENDED: New file.
45613         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45614
45615 2007-04-03  Bruno Haible  <bruno@clisp.org>
45616
45617         * DEPENDENCIES: New file.
45618         Suggested by Simon Josefsson.
45619
45620 2007-04-03  Bruno Haible  <bruno@clisp.org>
45621
45622         * doc/gnulib.texi: Escape @.
45623
45624 2007-04-03  James Youngman  <jay@gnu.org>
45625         and Paul Eggert  <eggert@cs.ucla.edu>
45626
45627         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45628         birthtime on all systems that have birthtime, not just those which
45629         use st_birthtimensec rather than st_birthtim.  Putting zero in
45630         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45631         that the birth time is not available for files on an NFS mount.
45632
45633 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45634
45635         * modules/memxor: Move back from crypto/, suggested by Bruno.
45636         * modules/crypto/hmac-sha1: Fix memxor dependency.
45637
45638         * modules/crypto/gc: Moved from ../.
45639
45640 2007-04-02  Eric Blake  <ebb9@byu.net>
45641
45642         * lib/ldexpl.c (includes): Avoid libm.
45643
45644         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45645
45646 2007-04-02  Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45649         on IRIX.
45650
45651 2007-04-02  Bruno Haible  <bruno@clisp.org>
45652
45653         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45654         x86 or x86_64 platforms running MacOS X.
45655         Reported by Ryan Schmidt <@ryandesign.com>.
45656
45657 2007-04-02  Bruno Haible  <bruno@clisp.org>
45658
45659         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45660         i386.
45661
45662 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45663
45664         * modules/crypto/arcfour: Moved from ../.
45665         * modules/crypto/arcfour-tests: Moved from ../.
45666         * modules/crypto/arctwo: Moved from ../.
45667         * modules/crypto/arctwo-tests: Moved from ../.
45668         * modules/crypto/des: Moved from ../.
45669         * modules/crypto/des-tests: Moved from ../.
45670         * modules/crypto/gc-arcfour: Moved from ../.
45671         * modules/crypto/gc-arcfour-tests: Moved from ../.
45672         * modules/crypto/gc-arctwo: Moved from ../.
45673         * modules/crypto/gc-arctwo-tests: Moved from ../.
45674         * modules/crypto/gc-des: Moved from ../.
45675         * modules/crypto/gc-des-tests: Moved from ../.
45676         * modules/crypto/gc-hmac-md5: Moved from ../.
45677         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45678         * modules/crypto/gc-hmac-sha1: Moved from ../.
45679         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45680         * modules/crypto/gc-md2: Moved from ../.
45681         * modules/crypto/gc-md2-tests: Moved from ../.
45682         * modules/crypto/gc-md4: Moved from ../.
45683         * modules/crypto/gc-md4-tests: Moved from ../.
45684         * modules/crypto/gc-md5: Moved from ../.
45685         * modules/crypto/gc-md5-tests: Moved from ../.
45686         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45687         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45688         * modules/crypto/gc-random: Moved from ../.
45689         * modules/crypto/gc-rijndael: Moved from ../.
45690         * modules/crypto/gc-rijndael-tests: Moved from ../.
45691         * modules/crypto/gc-sha1: Moved from ../.
45692         * modules/crypto/gc-sha1-tests: Moved from ../.
45693         * modules/crypto/gc-tests: Moved from ../.
45694         * modules/crypto/hmac-md5: Moved from ../.
45695         * modules/crypto/hmac-md5-tests: Moved from ../.
45696         * modules/crypto/hmac-sha1: Moved from ../.
45697         * modules/crypto/hmac-sha1-tests: Moved from ../.
45698         * modules/crypto/md2: Moved from ../.
45699         * modules/crypto/md2-tests: Moved from ../.
45700         * modules/crypto/md4: Moved from ../.
45701         * modules/crypto/md4-tests: Moved from ../.
45702         * modules/crypto/md5: Moved from ../.
45703         * modules/crypto/md5-tests: Moved from ../.
45704         * modules/crypto/memxor: Moved from ../.
45705         * modules/crypto/rijndael: Moved from ../.
45706         * modules/crypto/rijndael-tests: Moved from ../.
45707         * modules/crypto/sha1: Moved from ../.
45708
45709 2007-03-30  James Youngman  <jay@gnu.org>
45710
45711         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45712         rename() to change the ctime of a file (because ctime is unaffected
45713         by rename on jfs2 on AIX 5.1).
45714         (main): Start by doing cleanup, in case a previous run failed leaving
45715         test files behind.
45716
45717 2007-03-31  Bruno Haible  <bruno@clisp.org>
45718
45719         Support old proprietary implementations of iconv.
45720         * modules/iconv_open: New file.
45721         * lib/iconv_.h: New file.
45722         * m4/iconv_h.m4: New file.
45723         * lib/iconv_open.c: New file.
45724         * lib/iconv_open-aix.gperf: New file.
45725         * lib/iconv_open-hpux.gperf: New file.
45726         * lib/iconv_open-irix.gperf: New file.
45727         * lib/iconv_open-osf.gperf: New file.
45728         * m4/iconv_open.m4: New file.
45729         * modules/linebreak (Depends-on): Add iconv_open.
45730         * modules/striconv (Depends-on): Likewise.
45731         * modules/striconveh (Depends-on): Likewise.
45732         * modules/unicodeio (Depends-on): Likewise.
45733         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45734         (iconv_t)(-1).
45735         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45736         conversion if cd is (iconv_t)(-1).
45737         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45738         is not possible.
45739
45740 2007-03-31  Bruno Haible  <bruno@clisp.org>
45741
45742         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45743         work on Solaris either. Protect also second use of "autodetect_jp".
45744
45745 2007-03-31  Bruno Haible  <bruno@clisp.org>
45746
45747         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45748         the function is not present.
45749
45750 2007-03-31  Bruno Haible  <bruno@clisp.org>
45751
45752         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45753         the function is not present.
45754
45755 2007-03-31  Bruno Haible  <bruno@clisp.org>
45756
45757         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45758         a bug in HP-UX iconv_open().
45759
45760 2007-03-31  Bruno Haible  <bruno@clisp.org>
45761
45762         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45763         (Mathematics <math.h>): New section, add fpieee.
45764         (Input/output <stdio.h>): Add fseterr.
45765         (Mathematics <math.h>): New section, add printf-frexp.
45766         (Container data structures): Add sublist.
45767         (Core language properties): Add fpucw, inline.
45768         (Functions for greatest-width integer types <inttypes.h>): Add
45769         imaxabs, imaxdiv, inttypes.
45770         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45771         isnanl-nolibm, ldexp.
45772         (Mathematics <math.h>): New section, add printf-frexpl.
45773         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45774         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45775         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45776         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45777         (Unicode string functions): Add unistr/u*-mbtoucr.
45778         (Java): Add javacomp-script, javaexec-script.
45779         (C#): Add csharpcomp-script, csharpexec-script.
45780         (Support for building libraries and executables): Add havelib,
45781         relocatable-*.
45782         (Support for maintaining and releasing projects): Renamed from
45783         'Support for maintaining and release projects'. Add announce-gen.
45784
45785 2007-03-31  Bruno Haible  <bruno@clisp.org>
45786
45787         * README: Talk primarily about git.
45788         (git and CVS): Renamed from CVS.
45789         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45790         gnulib is available through git.
45791         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45792
45793 2007-03-30  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45796         * lib/poll_.h: Likewise.
45797         * lib/stat_.h: Likewise.
45798         * lib/sys_time_.h: Likewise.
45799         * lib/sysexit_.h: Likewise.
45800         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45801         * lib/stdbool_.h: Likewise.
45802         * lib/byteswap_.h: Add double-inclusion guard.
45803
45804 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45805
45806         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45807
45808 2007-03-30  Karl Berry  <karl@gnu.org>
45809
45810         * config/srclist-update: double space after USA in the license
45811         substitution, since that's how it's usually (?) written.
45812
45813 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45814
45815         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45816         reported by Bruno Haible.
45817
45818 2007-03-29  Bruno Haible  <bruno@clisp.org>
45819
45820         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45821         a bug in AIX iconv().
45822
45823 2007-03-29  Bruno Haible  <bruno@clisp.org>
45824
45825         * modules/ldexpl-tests: New file.
45826         * tests/test-ldexpl.c: New file.
45827
45828 2007-03-29  Bruno Haible  <bruno@clisp.org>
45829
45830         * lib/ldexpl.c: Include fpucw.h.
45831         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45832         multiplication.
45833         * modules/ldexpl (Depends-on): Add fpucw.
45834
45835 2007-03-29  Bruno Haible  <bruno@clisp.org>
45836
45837         * modules/ldexpl: New file.
45838         * m4/ldexpl.m4: New file.
45839         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45840         set.
45841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45842         REPLACE_LDEXPL.
45843         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45844         REPLACE_LDEXPL.
45845         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45846         gl_FUNC_LDEXPL_WORKS.
45847         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45848         * modules/mathl (Files): Remove lib/ldexpl.c.
45849         (Depends-on): Add ldexpl.
45850
45851 2007-03-29  Bruno Haible  <bruno@clisp.org>
45852
45853         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45854
45855 2007-03-29  Bruno Haible  <bruno@clisp.org>
45856
45857         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45858         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45859         and possibly also HP-UX.
45860         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45861         work on AIX, IRIX, HP-UX, OSF/1.
45862         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45863         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45864         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45865         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45866         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45867         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45868
45869 2007-03-29  Bruno Haible  <bruno@clisp.org>
45870
45871         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45872
45873 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45874
45875         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45876         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45877
45878 2007-03-29  Eric Blake  <ebb9@byu.net>
45879
45880         * lib/acl-internal.h: Remove redundant include.
45881         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45882         Cygwin when a file is locked.
45883
45884 2007-03-29  Bruno Haible  <bruno@clisp.org>
45885
45886         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45887         file.
45888         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45889
45890 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45891
45892         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45893         try to remove a parent directory if the child couldn't be removed
45894         (except for the first rmdir, which could fail because the child
45895         doesn't exist).  Problem reported by Jeff Blaine in
45896         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45897
45898 2007-03-28  Bruno Haible  <bruno@clisp.org>
45899
45900         * lib/striconveh.c (utf8conv_carefully): New function.
45901         (mem_cd_iconveh_internal): Invoke it.
45902
45903 2007-03-28  Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45906         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45907         input.
45908         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45909         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45910         unistr/u8-uctomb.
45911
45912 2007-03-28  Bruno Haible  <bruno@clisp.org>
45913
45914         * modules/unistr/u8-mbtoucr: New file.
45915         * lib/unistr/u8-mbtoucr.c: New file.
45916         * modules/unistr/u16-mbtoucr: New file.
45917         * lib/unistr/u16-mbtoucr.c: New file.
45918         * modules/unistr/u16-mbtoucr: New file.
45919         * lib/unistr/u16-mbtoucr.c: New file.
45920         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45921
45922 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45923             Bruno Haible  <bruno@clisp.org>
45924
45925         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45926         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45927         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45928
45929         * m4/stdio_h.m4: Add stubs for vasprintf too.
45930
45931         * modules/stdio: Support vasprintf in sed command.
45932
45933         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45934         vasprintf.h.  Add stdio module indicator.
45935
45936         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45937         vasprintf.h.
45938
45939         * lib/vasprintf.h: File removed.
45940
45941         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45942         * lib/vasprintf.c: Ditto.
45943         * lib/xvasprintf.c: Ditto.
45944         * tests/test-vasprintf-posix.c: Ditto.
45945         * tests/test-vasprintf.c: Ditto.
45946
45947 2007-03-27  Bruno Haible  <bruno@clisp.org>
45948
45949         Make vasnprintf multithread-safe.
45950         * lib/vasnprintf.c (decimal_point_char): New function.
45951         (VASNPRINTF): Use it.
45952         Suggested by Simon Josefsson.
45953
45954 2007-03-27  Eric Blake  <ebb9@byu.net>
45955
45956         Support sub-second birthtime on cygwin.
45957         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45958         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45959         (get_stat_birthtime): Also work with st_birthtim.
45960
45961 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45962
45963         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45964         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45965         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45966         (get_stat_birthtime_ns): Simplify compile-time tests.
45967         (get_stat_birthtime): Change the API to look like
45968         get_stat_mtime etc., except return a negative tv_nsec on error.
45969         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45970         Don't check for "spare" fields.
45971         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45972         or for struct stat.st_birthtime, as these tests aren't used.
45973         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45974
45975 2007-03-27  Bruno Haible  <bruno@clisp.org>
45976
45977         * lib/stat-time.h: Include <sys/stat.h>.
45978
45979 2007-03-27  James Youngman  <jay@gnu.org>
45980
45981         * lib/stat-time.h (get_stat_birthtime): New function for
45982           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45983         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45984           and its variants.
45985         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45986         * modules/stat-time-test: New file.
45987         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45988
45989 2007-03-26  Bruno Haible  <bruno@clisp.org>
45990
45991         Better support of signalling NaNs.
45992         * lib/atanl.c: Include isnanl.h.
45993         (atanl): Perform test for NaN at the beginning of the function and
45994         through a call to isnanl.
45995         * lib/cosl.c: Include isnanl.h.
45996         (cosl): Perform test for NaN at the beginning of the function and
45997         through a call to isnanl.
45998         * lib/ldexpl.c: Include isnanl.h.
45999         (ldexpl): Perform test for NaN through a call to isnanl.
46000         * lib/logl.c: Include isnanl.h.
46001         (logl): Perform test for NaN at the beginning of the function and
46002         through a call to isnanl.
46003         * lib/sinl.c: Include isnanl.h.
46004         (sinl): Perform test for NaN at the beginning of the function and
46005         through a call to isnanl.
46006         * lib/sqrtl.c: Include isnanl.h.
46007         (sqrtl): Perform test for NaN at the beginning of the function and
46008         through a call to isnanl.
46009         * lib/tanl.c: Include isnanl.h.
46010         (tanl): Perform test for NaN at the beginning of the function and
46011         through a call to isnanl.
46012         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
46013         * modules/mathl (Depends-on): Add isnanl.
46014
46015 2007-03-26  Eric Blake  <ebb9@byu.net>
46016
46017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
46018         regression in logic sense of previous patch.
46019
46020 2007-03-26  Bruno Haible  <bruno@clisp.org>
46021
46022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
46023         unportable shell command "if ! ...".
46024         Reported by Ralf Wildenhues.
46025
46026 2007-03-25  Bruno Haible  <bruno@clisp.org>
46027
46028         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
46029         <sysexits.h> file, and only add EX_CONFIG.
46030         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
46031         absolute file name and whether it is sufficient. Substitute also
46032         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
46033         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
46034         ABSOLUTE_SYSEXITS_H into sysexits.h.
46035
46036 2007-03-25  Bruno Haible  <bruno@clisp.org>
46037
46038         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
46039         hints is NULL.
46040
46041 2007-03-25  Bruno Haible  <bruno@clisp.org>
46042
46043         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
46044         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
46045
46046 2007-03-25  Bruno Haible  <bruno@clisp.org>
46047
46048         * lib/vasnprintf.c: Include langinfo.h.
46049         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
46050         multithread-safe.
46051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
46052         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
46053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46058         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
46059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46060         Reported by Simon Josefsson.
46061
46062 2007-03-25  Bruno Haible  <bruno@clisp.org>
46063
46064         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
46065         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
46066         * modules/vasnprintf (Depends-on): Add stdint.
46067
46068 2007-03-25  Bruno Haible  <bruno@clisp.org>
46069
46070         * modules/fpieee: New file.
46071         * m4/fpieee.m4: New file.
46072         * modules/isnan-nolibm (Depends-on): Add fpieee.
46073         * modules/isnanl-nolibm (Depends-on): Add fpieee.
46074         * modules/isnanl (Depends-on): Add fpieee.
46075
46076 2007-03-25  Bruno Haible  <bruno@clisp.org>
46077
46078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
46079
46080 2007-03-25  Bruno Haible  <bruno@clisp.org>
46081
46082         Avoid test failures on IRIX 6.5.
46083         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
46084         (main): Use it.
46085         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
46086         macros.
46087         (main): Use them.
46088
46089 2007-03-25  Bruno Haible  <bruno@clisp.org>
46090
46091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
46092         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
46093         exists but doesn't work.
46094         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
46095         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
46096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
46097         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
46098
46099 2007-03-25  Bruno Haible  <bruno@clisp.org>
46100
46101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
46102         returns inf. Needed on IRIX 6.5.
46103
46104 2007-03-25  Bruno Haible  <bruno@clisp.org>
46105
46106         * tests/test-frexpl.c: Include isnanl-nolibm.h.
46107         (main): Use isnanl instead of x != x idiom.
46108         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
46109
46110         * tests/test-frexp.c: Include isnan.h.
46111         (main): Use isnan instead of x != x idiom.
46112         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
46113
46114 2007-03-25  Bruno Haible  <bruno@clisp.org>
46115
46116         * tests/test-frexp.c (NaN): New function/macro.
46117         (main): Use it instead of 0.0 / 0.0.
46118         * tests/test-isnan.c (NaN): New function/macro.
46119         (main): Use it instead of 0.0 / 0.0.
46120         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
46121         (test_function): Use it instead of 0.0 / 0.0.
46122         * tests/test-vasprintf-posix.c (NaN): New function/macro.
46123         (test_function): Use it instead of 0.0 / 0.0.
46124         * tests/test-snprintf-posix.h (NaN): New function/macro.
46125         (test_function): Use it instead of 0.0 / 0.0.
46126         * tests/test-sprintf-posix.h (NaN): New function/macro.
46127         (test_function): Use it instead of 0.0 / 0.0.
46128         * tests/test-fprintf-posix.h (NaN): New function/macro.
46129         (test_function): Use it instead of 0.0 / 0.0.
46130         * tests/test-printf-posix.h (NaN): New function/macro.
46131         (test_function): Use it instead of 0.0 / 0.0.
46132
46133         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
46134
46135 2007-03-25  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
46138
46139 2007-03-25  Bruno Haible  <bruno@clisp.org>
46140
46141         * lib/regexec.c (merge_state_with_log): Make static.
46142
46143 2007-03-25  Bruno Haible  <bruno@clisp.org>
46144
46145         * lib/trigl.c (kernel_rem_pio2): Make static.
46146
46147 2007-03-25  Bruno Haible  <bruno@clisp.org>
46148
46149         * lib/sincosl.c (sincosl_table): Make static.
46150
46151 2007-03-25  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
46154         if the compiler does not support C99.
46155
46156 2007-03-25  Bruno Haible  <bruno@clisp.org>
46157
46158         * modules/time (Makefile.am): Ensure all rule action lines start with a
46159         tab.
46160
46161 2007-03-24  Bruno Haible  <bruno@clisp.org>
46162
46163         * modules/tsearch-tests: New file.
46164         * tests/test-tsearch.sh: New file.
46165         * tests/test-tsearch.c: New file, mostly copied from glibc.
46166
46167         * modules/search-tests: New file.
46168         * tests/test-search.c: New file.
46169
46170         * modules/search: New file.
46171         * lib/search_.h: New file, incorporating lib/tsearch.h.
46172         * m4/search_h.m4: New file.
46173         * lib/tsearch.h: Remove file.
46174         * lib/tsearch.c: Include search.h instead of tsearch.h.
46175         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
46176         HAVE_TSEARCH.
46177         * modules/tsearch (Files): Remove lib/tsearch.h.
46178         (Depends-on): Add search.
46179         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
46180         (Include): Change tsearch.h into search.h.
46181
46182 2007-03-24  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/fpucw: New file.
46185         * lib/fpucw.h: New file.
46186         * lib/frexp.c: Include fpucw.h.
46187         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46188         (FUNC): Use them.
46189         * lib/printf-frexp.c: Include fpucw.h.
46190         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46191         (FUNC): Use them.
46192         * lib/vasnprintf.c: Include fpucw.h.
46193         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
46194         'long double' calculations.
46195         * tests/test-frexpl.c: Include fpucw.h.
46196         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46197         * tests/test-printf-frexpl.c: Include fpucw.h.
46198         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46199         * modules/frexpl (Depends-on): Add fpucw.
46200         * modules/printf-frexpl (Depends-on): Likewise.
46201         * modules/fprintf-posix (Depends-on): Likewise.
46202         * modules/snprintf-posix (Depends-on): Likewise.
46203         * modules/sprintf-posix (Depends-on): Likewise.
46204         * modules/vasnprintf-posix (Depends-on): Likewise.
46205         * modules/vasprintf-posix (Depends-on): Likewise.
46206         * modules/vfprintf-posix (Depends-on): Likewise.
46207         * modules/vsnprintf-posix (Depends-on): Likewise.
46208         * modules/vsprintf-posix (Depends-on): Likewise.
46209         * modules/frexpl-tests (Depends-on): Likewise.
46210         * modules/printf-frexpl-tests (Depends-on): Likewise.
46211
46212 2007-03-24  Bruno Haible  <bruno@clisp.org>
46213
46214         * lib/float+.h: New file.
46215         * lib/isnan.c: Include float+.h.
46216         (SIZE): New macro.
46217         (FUNC): Compare only SIZE bytes of the value.
46218         * lib/vasnprintf.c: Include float+.h.
46219         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
46220         SIZEOF_LDBL or SIZEOF_DBL bytes.
46221         * modules/isnan-nolibm (Files): Add lib/float+.h.
46222         * modules/isnanl-nolibm (Files): Add lib/float+.h.
46223         * modules/isnanl (Files): Add lib/float+.h.
46224         * modules/vasnprintf (Files): Add lib/float+.h.
46225
46226 2007-03-24  Bruno Haible  <bruno@clisp.org>
46227
46228         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
46229         include isnanl-nolibm.h.
46230
46231 2007-03-24  Bruno Haible  <bruno@clisp.org>
46232
46233         * tests/test-read-file.c (main): Don't produce spurious output for
46234         expected situations. Make the test fail if it encountered unexpected
46235         results.
46236
46237 2007-03-24  Bruno Haible  <bruno@clisp.org>
46238
46239         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
46240         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
46241
46242 2007-03-24  Bruno Haible  <bruno@clisp.org>
46243
46244         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
46245
46246 2007-03-24  Bruno Haible  <bruno@clisp.org>
46247
46248         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
46249         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
46250
46251         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
46252         * modules/utf8-ucs4: Turn into a symbolic link to module
46253         unistr/u8-mbtouc.
46254
46255         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
46256         utf8-ucs4-unsafe.
46257         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
46258         unistr/u8-mbtouc-unsafe.
46259
46260         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
46261         * modules/utf16-ucs4: Turn into a symbolic link to module
46262         unistr/u16-mbtouc.
46263
46264         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
46265         utf16-ucs4-unsafe.
46266         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
46267         unistr/u16-mbtouc-unsafe.
46268
46269         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
46270         * modules/ucs4-utf8: Turn into a symbolic link to module
46271         unistr/u8-ubtomb.
46272
46273         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
46274         * modules/ucs4-utf16: Turn into a symbolic link to module
46275         unistr/u16-ubtomb.
46276
46277 2007-03-24  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
46280         Enable the function only if HAVE_INLINE.
46281         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
46282         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46283         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
46284         Enable the function only if HAVE_INLINE.
46285         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
46286         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46287         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
46288         Enable the function only if HAVE_INLINE.
46289         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
46290         Enable the function only if HAVE_INLINE.
46291         * modules/utf8-ucs4: Update.
46292         * modules/utf8-ucs4-unsafe: Update.
46293         * modules/utf16-ucs4: Update.
46294         * modules/utf16-ucs4-unsafe: Update.
46295         * modules/ucs4-utf8: Update.
46296         * modules/ucs4-utf16: Update.
46297
46298 2007-03-24  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/utf8-ucs4.h: Remove file.
46301         * lib/utf8-ucs4-unsafe.h: Remove file.
46302         * lib/utf16-ucs4.h: Remove file.
46303         * lib/utf16-ucs4-unsafe.h: Remove file.
46304         * lib/ucs4-utf8.h: Remove file.
46305         * lib/ucs4-utf16.h: Remove file.
46306         * lib/unistr.h: Include their previous contents.
46307         * m4/utf-ucs4.m4: Remove file.
46308         * m4/ucs4-utf.m4: Remove file.
46309         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
46310         (Depends-on): Add unistr/base.
46311         (configure.ac): Remove gl_UTF_UCS4.
46312         (Makefile.am): Update.
46313         (Include): Change to unistr.h.
46314         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
46315         (Depends-on): Add unistr/base.
46316         (configure.ac): Remove gl_UTF_UCS4.
46317         (Makefile.am): Update.
46318         (Include): Change to unistr.h.
46319         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
46320         (Depends-on): Add unistr/base.
46321         (configure.ac): Remove gl_UTF_UCS4.
46322         (Makefile.am): Update.
46323         (Include): Change to unistr.h.
46324         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
46325         (Depends-on): Add unistr/base.
46326         (configure.ac): Remove gl_UTF_UCS4.
46327         (Makefile.am): Update.
46328         (Include): Change to unistr.h.
46329         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
46330         (Depends-on): Add unistr/base.
46331         (configure.ac): Remove gl_UCS4_UTF.
46332         (Makefile.am): Update.
46333         (Include): Change to unistr.h.
46334         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
46335         (Depends-on): Add unistr/base.
46336         (configure.ac): Remove gl_UCS4_UTF.
46337         (Makefile.am): Update.
46338         (Include): Change to unistr.h.
46339         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
46340         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
46341         utf8-ucs4-unsafe.h.
46342         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
46343         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
46344         utf16-ucs4-unsafe.h.
46345         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
46346         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
46347         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
46348         * lib/unistr/u8-strchr.c: Likewise.
46349         * lib/unistr/u8-strrchr.c: Likewise.
46350         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
46351         * lib/unistr/u16-strchr.c: Likewise.
46352         * lib/unistr/u16-strrchr.c: Likewise.
46353         * lib/striconveh.c: Update.
46354         * lib/linebreak.c: Update.
46355
46356 2007-03-24  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
46359         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
46360
46361 2007-03-22  Bruno Haible  <bruno@clisp.org>
46362
46363         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
46364
46365 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46366
46367         * MODULES.html.sh (File system functions): New module write-any-file.
46368         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
46369         * m4/write-any-file.m4: New files.
46370
46371 2007-03-23  Eric Blake  <ebb9@byu.net>
46372
46373         * gnulib-tool: Rearrange space-tab sequences, since some editors
46374         like to eat them.
46375
46376 2007-03-23  Eric Blake  <ebb9@byu.net>
46377
46378         * lib/version-etc.c (version_etc_va): Update license wording to
46379         be more concise.  Recommended by Richard Stallman.
46380
46381 2007-03-22  Bruno Haible  <bruno@clisp.org>
46382
46383         * lib/poll.c (MSG_PEEK): New fallback definition.
46384
46385 2007-03-22  Bruno Haible  <bruno@clisp.org>
46386
46387         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
46388         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
46389         (main): Update.
46390         Fixes a compilation error on BeOS.
46391
46392 2007-03-22  Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/frexpl-tests: New file.
46395         * tests/test-frexpl.c: New file.
46396
46397         * modules/frexpl: New file.
46398         * m4/frexpl.m4: New file.
46399         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
46400         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
46401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
46402         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
46403         (Depends-on): Add frexpl. Remove isnanl-nolibm.
46404         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
46405
46406 2007-03-22  Bruno Haible  <bruno@clisp.org>
46407
46408         * lib/frexpl.c: Share code with lib/frexp.c.
46409         * modules/mathl (Files): Add lib/frexp.c.
46410         (Depends-on): Add isnanl-nolibm.
46411
46412 2007-03-22  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/printf-frexp (Files): Add m4/frexp.m4.
46415         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46416         only if the found frexp function actually works.
46417
46418 2007-03-22  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/frexp.c: Remove older implementation that uses divisions.
46421
46422 2007-03-21  Bruno Haible  <bruno@clisp.org>
46423
46424         * modules/frexp-tests: New file.
46425         * tests/test-frexp.c: New file.
46426
46427         * modules/frexp: New file.
46428         * lib/frexp.c: New file.
46429         * m4/frexp.m4: New file.
46430         * lib/math_.h (frexp): New declaration.
46431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46432         REPLACE_FREXP.
46433         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46434
46435 2007-03-21  Bruno Haible  <bruno@clisp.org>
46436
46437         * modules/isnanl-tests: New file.
46438         * tests/test-isnanl.c: New file.
46439
46440         * modules/isnanl: New file.
46441         * lib/isnanl.h: New file.
46442         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46443         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46444         gl_FUNC_ISNANL_WORKS.
46445         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46446         New macros.
46447
46448 2007-03-21  Bruno Haible  <bruno@clisp.org>
46449
46450         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
46451         lib/isnanl.h.
46452         (Include): Update.
46453         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
46454         * lib/vasnprintf.c: Update.
46455         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
46456         tests/test-isnanl.h, remove tests/test-isnanl.c.
46457         (Makefile.am): Update.
46458         * tests/test-isnanl-nolibm.c: New file.
46459         * tests/test-isnanl.h: New file.
46460         * tests/test-isnanl.c: Remove file.
46461
46462 2007-03-21  Jim Meyering  <jim@meyering.net>
46463
46464         When trying to open ".", treat ESTALE like EACCES.
46465         * lib/savewd.c (savewd_save): Resort to forking not just upon
46466         failure with EACCES, but also when errno is ESTALE.
46467
46468 2007-03-20  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46471         Needed on AIX 5.1. Reported by Matthew Woehlke.
46472
46473 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46474
46475         Suggestions by Bruno Haible:
46476         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46477         our own.
46478         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46479         * modules/acl (Depends-on): Add gettext.
46480
46481 2007-03-19  Bruno Haible  <bruno@clisp.org>
46482
46483         * modules/iconvme: Remove file.
46484         * lib/iconvme.h: Remove file.
46485         * lib/iconvme.c: Remove file.
46486         * m4/iconvme.m4: Remove file.
46487
46488 2007-03-19  Bruno Haible  <bruno@clisp.org>
46489
46490         * doc/relocatable-maint.texi: Break long shell script line.
46491         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46492
46493 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46494
46495         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46496         handle file_has_acl.
46497         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46498         * lib/acl.c: Move header inclusions and related macro defns into
46499         lib/acl-internal.h.
46500         (S_ISLNK): Remove defn, since that's now done for us.
46501         (file_has_acl): Move to lib/file-has-acl.c.
46502         Call acl_trivial if available.  This is the crucial part of the fix.
46503         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46504         shared within the library.  Rewrite a bit, partly to make it compatible
46505         with the GNU coding style.
46506         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46507         Remove unnecessary double-quotes.
46508         Don't test for acl_to_text; the build will catch that.
46509         Replace acl_entries if it doesn't exist and it is needed.
46510         Check for -lsec and acl_trivial (as used on Solaris 10).
46511         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46512         lib/file-has-acl.c.
46513         (Depends-on): Add sys_stat, for S_ISLNK.
46514
46515 2007-03-19  Ben Pfaff  <blp@gnu.org>
46516
46517         * doc/gnulib.texi: Fix typos.
46518         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46519
46520 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46521
46522         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46523         If size is zero here, buf must be zero.
46524
46525 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46526
46527         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46528         <bruno@clisp.org>.
46529
46530 2007-03-18  Bruno Haible  <bruno@clisp.org>
46531
46532         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46533         Suggested by Eric Blake.
46534
46535 2007-03-18  Ben Pfaff  <blp@gnu.org>
46536
46537         * doc/relocatable.texi: Recommend using as prefix a directory
46538         that does not exist and will never be created.  Based on
46539         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46540         and others.
46541
46542 2007-03-17  Bruno Haible  <bruno@clisp.org>
46543
46544         * lib/fchownat.c: Include lchown.h.
46545
46546 2007-03-17  Bruno Haible  <bruno@clisp.org>
46547
46548         Fix endless loop when the given allocated size was > INT_MAX.
46549         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46550         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46551         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46552         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46553         * lib/sprintf.c (sprintf): Likewise.
46554
46555 2007-03-17  Bruno Haible  <bruno@clisp.org>
46556
46557         * tests/test-argp-2.sh (func_compare): Output a context diff.
46558
46559 2007-03-17  Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46562         locale's decimal-point character.
46563
46564 2007-03-17  Bruno Haible  <bruno@clisp.org>
46565
46566         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46567         before comparing it. Needed because on some platforms (e.g. x86) a
46568         'long double' occupies less bytes than sizeof (long double).
46569
46570 2007-03-17  Bruno Haible  <bruno@clisp.org>
46571
46572         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46573         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46574         * tests/test-getaddrinfo.c (simple): Likewise.
46575         * tests/test-read-file.c (main): Likewise.
46576
46577 2007-03-17  Bruno Haible  <bruno@clisp.org>
46578
46579         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46580
46581 2007-03-17  Bruno Haible  <bruno@clisp.org>
46582
46583         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46584         unused variable.
46585
46586 2007-03-17  Bruno Haible  <bruno@clisp.org>
46587
46588         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46589         * tests/test-c-strncasecmp.c: Likewise.
46590
46591 2007-03-17  Bruno Haible  <bruno@clisp.org>
46592
46593         * modules/stdlib (Depends-on): Add unistd.
46594         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46595         Needed for MacOS X 10.3.
46596
46597 2007-03-17  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46600
46601 2007-03-17  Bruno Haible  <bruno@clisp.org>
46602
46603         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46604
46605 2007-03-17  Bruno Haible  <bruno@clisp.org>
46606
46607         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46608         to reflect files copied from gnulib (with or without modifications).
46609         Suggested by Jim Meyering.
46610
46611 2007-03-17  Eric Blake  <ebb9@byu.net>
46612
46613         * NEWS: Document stdlib change from 2007-02-18.
46614
46615 2007-03-17  Jim Meyering  <jim@meyering.net>
46616
46617         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46618         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46619         someone uses a name containing shell meta-characters.
46620         Reported by Alfred M. Szmidt.
46621
46622         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46623
46624 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46625
46626         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46627         and copy gettext configuration files only if configure.ac contains
46628         a use of AM_GNU_GETTEXT_VERSION.
46629
46630 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46631
46632         * build-aux/bootstrap (gnulib_name): New variable.
46633         (gnulib_tool_options): Use it.
46634
46635 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46636
46637         * tests/test-des.c: Use new namespace.
46638
46639 2007-03-15  Bruno Haible  <bruno@clisp.org>
46640
46641         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46642         Reported by James Youngman <jay@gnu.org>.
46643
46644 2007-03-15  Bruno Haible  <bruno@clisp.org>
46645
46646         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46647         declared prototype. Needed with cc on OSF/1 5.1.
46648
46649 2007-03-15  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46652         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46653         (struct gl_list_implementation): Add dispose_fn argument to the
46654         'create_empty', 'create' methods.
46655         (struct gl_list_impl_base): Add field 'dispose_fn'.
46656         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46657         argument.
46658         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46659         dispose_fn argument.
46660         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46661         dispose_fn on the dropped values.
46662         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46663         dispose_fn argument.
46664         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46665         dropped values.
46666         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46667         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46668         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46669         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46670         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46671         argument.
46672         (gl_tree_list_free): Call dispose_fn on the dropped values.
46673         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46674         the dropped values.
46675         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46676         Add dispose_fn argument.
46677         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46678         Call dispose_fn on the dropped values.
46679         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46680         Add dispose_fn argument.
46681         (gl_sublist_create): Initialize the 'dispose_fn' field.
46682         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46683         * tests/test-array_list.c (main): Update.
46684         * tests/test-carray_list.c (main): Update.
46685         * tests/test-avltree_list.c (main): Update.
46686         * tests/test-rbtree_list.c (main): Update.
46687         * tests/test-avltreehash_list.c (main): Update.
46688         * tests/test-rbtreehash_list.c (main): Update.
46689         * tests/test-linked_list.c (main): Update.
46690         * tests/test-linkedhash_list.c (main): Update.
46691         * tests/test-array_oset.c (main): Update.
46692
46693 2007-03-15  Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46696         (gl_oset_create_empty): Add dispose_fn argument.
46697         (struct gl_oset_implementation): Add dispose_fn argument to
46698         'create_empty' method.
46699         (struct gl_oset_impl_base): Add dispose_fn field.
46700         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46701         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46702         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46703         values.
46704         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46705         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46706         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46707         dropped value.
46708         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46709         dropped value.
46710         * tests/test-array_oset.c (main): Update.
46711         * tests/test-avltree_oset.c (main): Update.
46712         * tests/test-rbtree_oset.c (main): Update.
46713         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46714
46715 2007-03-13  Bruno Haible  <bruno@clisp.org>
46716
46717         * tests/test-stdbool.c (i): Update after last patch.
46718
46719 2007-03-12  Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46722         the iswprint macro. Needed on Solaris 2.5.1.
46723
46724 2007-03-12  Bruno Haible  <bruno@clisp.org>
46725
46726         * tests/test-printf-frexp.c (main): Declare x as volatile.
46727
46728 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46729
46730         * doc/gnulib.texi (Build robot for gnulib): New section.
46731
46732 2007-03-12  Jim Meyering  <jim@meyering.net>
46733
46734         * build-aux/bootstrap: New file.
46735         * build-aux/bootstrap.conf: New file, from coreutils.
46736
46737 2007-03-11  Bruno Haible  <bruno@clisp.org>
46738
46739         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46740
46741 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46742
46743         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46744         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46745         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46746
46747 2007-03-11  Bruno Haible  <bruno@clisp.org>
46748
46749         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46750         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46751
46752 2007-03-11  Bruno Haible  <bruno@clisp.org>
46753
46754         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46755         formula. Needed for SunPRO C 5.0.
46756
46757 2007-03-11  Bruno Haible  <bruno@clisp.org>
46758
46759         * modules/long-options (Depends-on): Add getopt.
46760
46761 2007-03-11  Bruno Haible  <bruno@clisp.org>
46762
46763         * modules/modechange (Depends-on): Add stdbool.
46764
46765 2007-03-11  Bruno Haible  <bruno@clisp.org>
46766
46767         * modules/i-ring (Depends-on): Add stdbool.
46768
46769 2007-03-11  Bruno Haible  <bruno@clisp.org>
46770
46771         * modules/gc-des (Depends-on): Add stdbool.
46772
46773 2007-03-11  Bruno Haible  <bruno@clisp.org>
46774
46775         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46776
46777 2007-03-11  Bruno Haible  <bruno@clisp.org>
46778
46779         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46780
46781 2007-03-11  Bruno Haible  <bruno@clisp.org>
46782
46783         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46784
46785 2007-03-11  Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/vasnprintf.c (sprintf): Undefine.
46788
46789 2007-03-11  Bruno Haible  <bruno@clisp.org>
46790
46791         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46792         initializers in SunPRO C and Compaq C compilers.
46793
46794 2007-03-11  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46797         decrementing code ANSI C compliant.
46798
46799 2007-03-11  Bruno Haible  <bruno@clisp.org>
46800
46801         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46802         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46803
46804 2007-03-11  Bruno Haible  <bruno@clisp.org>
46805
46806         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46807         <stdbool.h> substitute doesn't pass.
46808
46809 2007-03-11  Bruno Haible  <bruno@clisp.org>
46810
46811         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46812
46813 2007-03-11  Bruno Haible  <bruno@clisp.org>
46814
46815         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46816         script, for submission to autobuild.josefsson.org.
46817
46818 2007-03-10  Bruno Haible  <bruno@clisp.org>
46819
46820         * modules/canonicalize-lgpl-tests: New file.
46821         * tests/test-canonicalize-lgpl.sh: New file.
46822         * tests/test-canonicalize-lgpl.c: New file.
46823
46824         * modules/c-strcase-tests: New file.
46825         * tests/test-c-strcase.sh: New file.
46826         * tests/test-c-strcasecmp.c: New file.
46827         * tests/test-c-strncasecmp.c: New file.
46828
46829         * modules/atexit-tests: New file.
46830         * tests/test-atexit.sh: New file.
46831         * tests/test-atexit.c: New file.
46832
46833 2007-03-10  Bruno Haible  <bruno@clisp.org>
46834
46835         * tests/test-binary-io.sh: Use temporary filenames that are not so
46836         likely to clash with those of other tests (in a parallel make).
46837         * tests/test-binary-io.c: Likewise.
46838
46839 2007-03-10  Bruno Haible  <bruno@clisp.org>
46840
46841         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46842         fallback; use #error instead.
46843         Suggested by Simon Josefsson.
46844
46845 2007-03-10  Bruno Haible  <bruno@clisp.org>
46846
46847         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46848         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46849         first and the last.
46850
46851 2007-03-10  Bruno Haible  <bruno@clisp.org>
46852
46853         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46854
46855 2007-03-10  Bruno Haible  <bruno@clisp.org>
46856
46857         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46858         "make distcheck".
46859         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46860         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46861         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46862
46863 2007-03-10  Bruno Haible  <bruno@clisp.org>
46864
46865         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46866         variable.
46867         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46868         variable.
46869
46870 2007-03-09  Eric Blake  <ebb9@byu.net>
46871         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46872
46873         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46874         types are not being provided by gnulib.
46875         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46876         types are supported.
46877
46878 2007-03-10  Bruno Haible  <bruno@clisp.org>
46879
46880         * lib/stdio_.h (__attribute__): New macro.
46881         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46882         vsprintf): Specify __attribute__ __format__ for GCC.
46883         Suggested by Eric Blake.
46884
46885 2007-03-09  Bruno Haible  <bruno@clisp.org>
46886
46887         * modules/printf-posix-tests: New file.
46888         * tests/test-printf-posix.sh: New file.
46889         * tests/test-printf-posix.c: New file.
46890
46891         * modules/printf-posix: New file.
46892         * lib/printf.c: New file.
46893         * m4/printf-posix-rpl.m4: New file.
46894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46895         REPLACE_PRINTF.
46896         * lib/stdio_.h (printf): New declaration.
46897         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46898         ____strfmon____): New macros.
46899         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46900         REPLACE_PRINTF.
46901
46902 2007-03-09  Bruno Haible  <bruno@clisp.org>
46903
46904         * tests/test-vasnprintf-posix2.sh: New file.
46905         * tests/test-vasnprintf-posix2.c: New file.
46906         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46907         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46908         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46909
46910         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46911         a locale dependent decimal point, rather than always '.'.
46912
46913 2007-03-09  Eric Blake  <ebb9@byu.net>
46914
46915         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46916         spite of platforms like Tandem/NSK that define it to -1.
46917
46918 2007-03-08  Bruno Haible  <bruno@clisp.org>
46919
46920         * modules/vprintf-posix-tests: New file.
46921         * tests/test-vprintf-posix.sh: New file.
46922         * tests/test-vprintf-posix.c: New file.
46923         * tests/test-printf-posix.h: New file.
46924
46925         * modules/vprintf-posix: New file.
46926         * lib/vprintf.c: New file.
46927         * m4/vprintf-posix.m4: New file.
46928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46929         REPLACE_VPRINTF.
46930         * lib/stdio_.h (vprintf): New declaration.
46931         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46932         REPLACE_VPRINTF.
46933
46934 2007-03-08  Bruno Haible  <bruno@clisp.org>
46935
46936         * modules/fprintf-posix-tests: New file.
46937         * tests/test-fprintf-posix.sh: New file.
46938         * tests/test-fprintf-posix.c: New file.
46939
46940         * modules/fprintf-posix: New file.
46941         * lib/fprintf.c: New file.
46942         * m4/fprintf-posix.m4: New file.
46943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46944         REPLACE_FPRINTF.
46945         * lib/stdio_.h (fprintf): New declaration.
46946         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46947         REPLACE_FPRINTF.
46948
46949 2007-03-08  Bruno Haible  <bruno@clisp.org>
46950
46951         * modules/vfprintf-posix-tests: New file.
46952         * tests/test-vfprintf-posix.sh: New file.
46953         * tests/test-vfprintf-posix.c: New file.
46954         * tests/test-fprintf-posix.h: New file.
46955         * tests/test-fprintf-posix.out: New file.
46956
46957         * modules/vfprintf-posix: New file.
46958         * lib/vfprintf.c: New file.
46959         * m4/vfprintf-posix.m4: New file.
46960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46961         REPLACE_VFPRINTF.
46962         * lib/stdio_.h (vfprintf): New declaration.
46963         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46964         REPLACE_VFPRINTF.
46965
46966 2007-03-08  Bruno Haible  <bruno@clisp.org>
46967
46968         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46969
46970 2007-03-08  Bruno Haible  <bruno@clisp.org>
46971
46972         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46973         instead of 'expr' invocations.
46974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46979         Suggested by Paul Eggert.
46980
46981 2007-03-08  Bruno Haible  <bruno@clisp.org>
46982
46983         * modules/fseterr-tests: New file.
46984         * tests/test-fseterr.c: New file.
46985
46986         * modules/fseterr: New file.
46987         * lib/fseterr.h: New file.
46988         * lib/fseterr.c: New file.
46989
46990 2007-03-08  Bruno Haible  <bruno@clisp.org>
46991
46992         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46993         * lib/getopt_.h: Likewise.
46994         * lib/mbswidth.h: Likewise.
46995         * lib/setenv.h: Likewise.
46996         * lib/vasnprintf.h: Likewise.
46997         * lib/vasprintf.h: Likewise.
46998         * lib/verror.h: Likewise.
46999         * lib/xsetenv.h: Likewise.
47000         * lib/xvasprintf.h: Likewise.
47001
47002 2007-03-08  Jim Meyering  <jim@meyering.net>
47003
47004         * users.txt: Add parted.
47005
47006         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
47007
47008 2007-03-07  Bruno Haible  <bruno@clisp.org>
47009
47010         * m4/printf.m4: Make the shell script snippets copy&pastable.
47011
47012 2007-03-02  Bruno Haible  <bruno@clisp.org>
47013
47014         * lib/netinet_in_.h: New file.
47015         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
47016         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
47017         * modules/netinet_in (Files): Add lib/netinet_in_.h.
47018         (Depends-on): Add absolute-header.
47019         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
47020         into netinet/in.h.
47021
47022 2007-03-03  Bruno Haible  <bruno@clisp.org>
47023
47024         * lib/sys_select_.h: New file.
47025         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
47026         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
47027         * modules/sys_select (Files): Add lib/sys_select_.h.
47028         (Depends-on): Add absolute-header.
47029         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
47030         into sys/select.h.
47031
47032 2007-03-02  Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
47035         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
47036         values.
47037         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
47038         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
47039         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
47040         * modules/sys_socket (Depends-on): Add absolute-header.
47041         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
47042         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
47043         (Include): Remove requirement of inclusion of <sys/types.h>.
47044
47045 2007-03-02  Bruno Haible  <bruno@clisp.org>
47046
47047         * lib/byteswap_.h (bswap_32): Fix formula.
47048
47049 2007-03-06  Bruno Haible  <bruno@clisp.org>
47050
47051         * modules/sprintf-posix-tests: New file.
47052         * tests/test-sprintf-posix.c: New file.
47053
47054         * modules/sprintf-posix: New file.
47055         * lib/sprintf.c: New file.
47056         * m4/sprintf-posix.m4: New file.
47057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
47058         REPLACE_SPRINTF.
47059         * lib/stdio_.h (sprintf): New declaration.
47060         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
47061         REPLACE_SPRINTF.
47062
47063 2007-03-06  Bruno Haible  <bruno@clisp.org>
47064
47065         * modules/vsprintf-posix-tests: New file.
47066         * tests/test-vsprintf-posix.c: New file.
47067         * tests/test-sprintf-posix.h: New file.
47068
47069         * modules/vsprintf-posix: New file.
47070         * lib/vsprintf.c: New file.
47071         * m4/vsprintf-posix.m4: New file.
47072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
47073         REPLACE_VSPRINTF.
47074         * lib/stdio_.h (vsprintf): New declaration.
47075         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
47076         REPLACE_VSPRINTF.
47077
47078 2007-03-06  Bruno Haible  <bruno@clisp.org>
47079
47080         * modules/vsnprintf (Depend-on): Remove minmax.
47081
47082 2007-03-06  Bruno Haible  <bruno@clisp.org>
47083
47084         * modules/snprintf-posix-tests: New file.
47085         * tests/test-snprintf-posix.c: New file.
47086
47087         * modules/snprintf-posix: New file.
47088         * m4/snprintf-posix.m4: New file.
47089         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
47090         gl_FUNC_SNPRINTF.
47091         (gl_FUNC_SNPRINTF): Invoke it.
47092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
47093         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
47094         is set.
47095         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
47096
47097 2007-03-06  Bruno Haible  <bruno@clisp.org>
47098
47099         * modules/vsnprintf-posix-tests: New file.
47100         * tests/test-vsnprintf-posix.c: New file.
47101         * tests/test-snprintf-posix.h: New file.
47102
47103         * modules/vsnprintf-posix: New file.
47104         * m4/vsnprintf-posix.m4: New file.
47105         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
47106         gl_FUNC_VSNPRINTF.
47107         (gl_FUNC_VSNPRINTF): Invoke it.
47108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
47109         * lib/stdio_.h (vsnprintf): Define as a replacement if
47110         REPLACE_VSNPRINTF is set.
47111         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
47112
47113 2007-03-06  Bruno Haible  <bruno@clisp.org>
47114
47115         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
47116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
47117
47118 2007-03-06  Bruno Haible  <bruno@clisp.org>
47119
47120         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
47121         (asinl): Declare also if HAVE_DECL_ASINL is set.
47122         (atanl): Declare also if HAVE_DECL_ATANL is set.
47123         (ceill): Declare also if HAVE_DECL_CEILL is set.
47124         (cosl): Declare also if HAVE_DECL_COSL is set.
47125         (expl): Declare also if HAVE_DECL_EXPL is set.
47126         (floorl): Declare also if HAVE_DECL_FLOORL is set.
47127         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
47128         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
47129         (logl): Declare also if HAVE_DECL_LOGL is set.
47130         (sinl): Declare also if HAVE_DECL_SINL is set.
47131         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
47132         (tanl): Declare also if HAVE_DECL_TANL is set.
47133         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
47134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
47135         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
47136         declaration of frexpl, ldexpl.
47137         * modules/printf-frexpl (Depends-on): Add math.
47138         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
47139
47140 2007-03-05  Bruno Haible  <bruno@clisp.org>
47141
47142         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
47143         frexpl and ldexpl are declared.
47144         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
47145
47146 2007-03-05  Bruno Haible  <bruno@clisp.org>
47147
47148         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
47149         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
47150
47151 2007-03-05  Bruno Haible  <bruno@clisp.org>
47152
47153         * lib/stdio_.h: Include <stddef.h>.
47154
47155 2007-03-05  Bruno Haible  <bruno@clisp.org>
47156
47157         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
47158
47159 2007-03-05  Bruno Haible  <bruno@clisp.org>
47160
47161         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
47162         NetBSD 4, from Ralf Wildenhues.
47163
47164 2007-03-04  Bruno Haible  <bruno@clisp.org>
47165
47166         * lib/vasprintf.h: Update #if logic for the case when the functions
47167         exist but are overridden.
47168
47169 2007-03-04  Bruno Haible  <bruno@clisp.org>
47170
47171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
47172         implementations: glibc-2.4 and MacOS X 10.3.
47173         * tests/test-vasnprintf-posix.c (test_function): Test also the case
47174         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
47175         * tests/test-vasprintf-posix.c (test_function): Likewise.
47176
47177 2007-03-04  Bruno Haible  <bruno@clisp.org>
47178
47179         * modules/vasprintf-posix-tests: New file.
47180         * tests/test-vasprintf-posix.c: New file.
47181
47182         * modules/vasprintf-posix: New file.
47183         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
47184         defined.
47185         * m4/vasprintf-posix.m4: New file.
47186         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
47187         gl_FUNC_VASPRINTF.
47188         (gl_FUNC_VASPRINTF): Invoke it.
47189         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
47190         here.
47191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
47192
47193 2007-03-04  Bruno Haible  <bruno@clisp.org>
47194
47195         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
47196         REPLACE_GETTIMEOFDAY.
47197         * modules/sys_time (Makefile.am): Likewise.
47198         * m4/sys_time_h.m4: Likewise.
47199         * m4/gettimeofday.m4: Likewise.
47200
47201 2007-03-04  Bruno Haible  <bruno@clisp.org>
47202
47203         * modules/vasnprintf-posix-tests: New file.
47204         * tests/test-vasnprintf-posix.c: New file.
47205
47206         * modules/vasnprintf-posix: New file.
47207         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
47208         printf-frexpl.h.
47209         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
47210         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
47211         REPLACE_VASNPRINTF is defined.
47212         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
47213         gl_FUNC_VASNPRINTF.
47214         (gl_FUNC_VASNPRINTF): Invoke it.
47215         * m4/vasnprintf-posix.m4: New file.
47216         * m4/printf.m4: New file.
47217
47218 2007-03-04  Bruno Haible  <bruno@clisp.org>
47219
47220         Compile progreloc.c only if --enable-relocatable is specified.
47221         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
47222         if --enable-relocatable was specified.
47223         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47224         lib_SOURCES.
47225
47226 2007-03-04  Jim Meyering  <jim@meyering.net>
47227
47228         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
47229         Use it consistently, rather than enumerating errno constants.
47230
47231 2007-03-04  Bruno Haible  <bruno@clisp.org>
47232
47233         * modules/xvasprintf-tests: New file.
47234         * tests/test-xvasprintf.c: New file.
47235
47236         * modules/vasprintf-tests: New file.
47237         * tests/test-vasprintf.c: New file.
47238
47239         * modules/vasnprintf-tests: New file.
47240         * tests/test-vasnprintf.c: New file.
47241
47242         * modules/vsnprintf-tests: New file.
47243         * tests/test-vsnprintf.c: New file.
47244
47245         * modules/snprintf-tests: New file.
47246         * tests/test-snprintf.c: New file.
47247
47248 2007-03-04  Bruno Haible  <bruno@clisp.org>
47249
47250         Compile relocatable.c only if --enable-relocatable is specified.
47251         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
47252         gl_RELOCATABLE_LIBRARY.
47253         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
47254         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
47255         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
47256         gl_RELOCATABLE_LIBRARY.
47257         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
47258         (Makefile.am): Remove lib_SOURCES.
47259         * modules/relocatable-lib-lgpl (configure.ac): Invoke
47260         gl_RELOCATABLE_LIBRARY.
47261         (Makefile.am): Remove lib_SOURCES.
47262         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
47263         always.
47264         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47265         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
47266
47267 2007-03-04  Bruno Haible  <bruno@clisp.org>
47268
47269         * modules/argmatch-tests: New file.
47270         * tests/test-argmatch.c: New file.
47271
47272         * tests/test-allocsa.c (main): Halve the number of loop runs.
47273
47274         * modules/alloca-opt-tests: New file.
47275         * tests/test-alloca-opt.c: New file.
47276
47277 2007-03-04  Jim Meyering  <jim@meyering.net>
47278
47279         Work around difference between Linux ACLs and Solaris 10 ZFS.
47280         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
47281         for EINVAL.
47282
47283 2007-03-03  Bruno Haible  <bruno@clisp.org>
47284
47285         * modules/relocatable-prog (Depends-on): Add back progreloc's
47286         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
47287
47288 2007-03-03  Bruno Haible  <bruno@clisp.org>
47289
47290         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
47291         * modules/relocatable-lib: New file.
47292
47293 2007-03-03  Bruno Haible  <bruno@clisp.org>
47294
47295         * modules/relocatable-prog: Renamed from modules/relocatable.
47296         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
47297
47298 2007-03-03  Bruno Haible  <bruno@clisp.org>
47299
47300         * modules/relocatable-script (Files): Add doc/relocatable.texi,
47301         m4/relocatable-lib.m4.
47302         (Depends-on): Remove 'relocatable'.
47303         (configure.ac): Add gl_RELOCATABLE_NOP.
47304
47305 2007-03-03  Bruno Haible  <bruno@clisp.org>
47306
47307         * modules/relocatable-prog-wrapper: New file.
47308         * modules/relocatable (Depends-on): Add it. Remove all other
47309         dependencies except progname.
47310         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
47311
47312         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
47313         (gl_FUNC_STRERROR): Nop.
47314         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
47315
47316         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
47317         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
47318
47319         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
47320         (gl_FUNC_READLINK): Update.
47321
47322         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
47323
47324 2007-03-03  Bruno Haible  <bruno@clisp.org>
47325
47326         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47327         * modules/xreadlink (Depends-on): Add unistd.
47328         * modules/xreadlink-with-size (Depends-on): Likewise.
47329
47330 2007-03-03  Bruno Haible  <bruno@clisp.org>
47331
47332         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
47333         extracted from gt_FUNC_SETENV.
47334         (gt_FUNC_SETENV): Remove macro.
47335         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
47336         remove gt_FUNC_SETENV.
47337
47338 2007-03-03  Bruno Haible  <bruno@clisp.org>
47339
47340         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
47341         ENABLE_RELOCATABLE here.
47342         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
47343
47344 2007-03-03  Bruno Haible  <bruno@clisp.org>
47345
47346         * modules/rbtreehash-list-tests (Depends-on): Add progname.
47347         * tests/test-rbtreehash_list.c: Include progname.h.
47348         (main): Call set_program_name.
47349
47350         * modules/rbtree-oset-tests (Depends-on): Add progname.
47351         * tests/test-rbtree_oset.c: Include progname.h.
47352         (main): Call set_program_name.
47353
47354         * modules/rbtree-list-tests (Depends-on): Add progname.
47355         * tests/test-rbtree_list.c: Include progname.h.
47356         (main): Call set_program_name.
47357
47358         * modules/linked-list-tests (Depends-on): Add progname.
47359         * tests/test-linked_list.c: Include progname.h.
47360         (main): Call set_program_name.
47361
47362 2007-03-03  Bruno Haible  <bruno@clisp.org>
47363
47364         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
47365         All uses of __restrict changed to _Restrict_.
47366         * lib/glob_.h (__restrict): Remove macro.
47367
47368 2007-03-02  Bruno Haible  <bruno@clisp.org>
47369
47370         * modules/gettext (configure.ac): Require gettext infrastructure
47371         from version 0.16.1.
47372
47373 2007-03-02  Bruno Haible  <bruno@clisp.org>
47374
47375         * modules/linkedhash-list-tests (Depends-on): Add progname.
47376         * tests/test-linkedhash_list.c: Include progname.h.
47377         (main): Call set_program_name.
47378
47379         * modules/carray-list-tests (Depends-on): Add progname.
47380         * tests/test-carray_list.c: Include progname.h.
47381         (main): Call set_program_name.
47382
47383         * modules/avltreehash-list-tests (Depends-on): Add progname.
47384         * tests/test-avltreehash_list.c: Include progname.h.
47385         (main): Call set_program_name.
47386
47387         * modules/avltree-oset-tests (Depends-on): Add progname.
47388         * tests/test-avltree_oset.c: Include progname.h.
47389         (main): Call set_program_name.
47390
47391         * modules/avltree-list-tests (Depends-on): Add progname.
47392         * tests/test-avltree_list.c: Include progname.h.
47393         (main): Call set_program_name.
47394
47395         * modules/array-oset-tests (Depends-on): Add progname.
47396         * tests/test-array_oset.c: Include progname.h.
47397         (main): Call set_program_name.
47398
47399         * modules/array-list-tests (Depends-on): Add progname.
47400         * tests/test-array_list.c: Include progname.h.
47401         (main): Call set_program_name.
47402
47403         * modules/argp-tests (Depends-on): Add progname.
47404         * tests/test-argp.c: Include argp.h first. Include progname.h.
47405         (main): Call set_program_name.
47406
47407 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47408
47409         * doc/gnulib-tool.texi (Initial import): Reword description of
47410         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47411         limited effect even if defined after the first system include.
47412
47413 2007-03-01  Bruno Haible  <bruno@clisp.org>
47414
47415         * build-aux/config.libpath: Update to libtool-1.5.22.
47416         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47417
47418 2007-03-01  Bruno Haible  <bruno@clisp.org>
47419
47420         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47421         foo_CFLAGS.
47422         Reported by Ralf Wildenhues.
47423
47424 2007-03-01  Bruno Haible  <bruno@clisp.org>
47425
47426         * build-aux/install-reloc: Remove object files left over by some
47427         compilers.
47428         Reported by Ralf Wildenhues.
47429
47430 2007-03-01  Bruno Haible  <bruno@clisp.org>
47431
47432         * build-aux/install-reloc: Break long lines.
47433
47434 2007-03-01  Bruno Haible  <bruno@clisp.org>
47435
47436         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47437         Reported by Ralf Wildenhues.
47438
47439 2007-03-01  Bruno Haible  <bruno@clisp.org>
47440
47441         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47442         include ordering constraints.
47443
47444 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47445
47446         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47448         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
47449         as another example.
47450         * lib/time_.h: Fix misspelling.
47451         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47452         Require gl_HEADER_TIME_H_DEFAULTS.
47453         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
47454         * m4/time_r.m4 (gl_TIME_R): Likewise.
47455         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
47456
47457 2007-03-01  Bruno Haible  <bruno@clisp.org>
47458
47459         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47460         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47461
47462 2007-03-01  Jim Meyering  <jim@meyering.net>
47463
47464         * modules/xreadlink (Maintainer): Add my name.
47465         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47466
47467 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47468             Bruno Haible  <bruno@clisp.org>
47469
47470         * build-aux/install-reloc: Compile also c-ctype.c.
47471         * build-aux/relocatable.sh.in: New file.
47472         * doc/relocatable.texi: New file.
47473         * doc/relocatable-maint.texi: New file.
47474         * doc/gnulib.texi: Include relocatable-maint.texi.
47475         * lib/progreloc.c: Include unistd.h unconditionally.
47476         * lib/relocwrapper.c: Include unistd.h unconditionally.
47477         Include c-ctype.h.
47478         (add_dotbin): Use c_tolower.
47479         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47480         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47481         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47482         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47483         to m4/relocatable-lib.m4.
47484         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47485         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47486         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47487         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47488         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47489         * modules/relocatable: New file.
47490         * modules/relocatable-lib: New file.
47491         * modules/relocatable-script: New file.
47492
47493 2007-02-28  Bruno Haible  <bruno@clisp.org>
47494
47495         Import --enable-relocatable infrastructure.
47496         * build-aux/config.libpath: New file, from GNU gettext.
47497         * build-aux/install-reloc: New file, from GNU gettext.
47498         * build-aux/reloc-ldflags: New file, from GNU gettext.
47499         * lib/relocatable.h: New file, from GNU gettext.
47500         * lib/relocatable.c: New file, from GNU gettext.
47501         * lib/relocwrapper.c: New file, from GNU gettext.
47502         * m4/relocatable.m4: New file, from GNU gettext.
47503
47504 2007-02-28  Bruno Haible  <bruno@clisp.org>
47505
47506         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47507
47508         * modules/xreadlink: New file, from GNU gettext with modifications.
47509         * lib/xreadlink.c: New file, from GNU gettext.
47510         * lib/xreadlink.h: Add comments.
47511         (xreadlink): New declaration.
47512
47513         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47514         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47515         lib/xreadlink-with-size.c.
47516         (configure.ac): Remove gl_XREADLINK invocation.
47517         (Makefile.am): Augment lib_SOURCES.
47518         * m4/xreadlink.m4: Remove file.
47519         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47520         (xreadlink_with_size): Renamed from xreadink.
47521         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47522         * modules/canonicalize (Depends-on): Replace xreadlink with
47523         xreadlink-with-size.
47524         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47525
47526 2007-02-25  Jim Meyering  <jim@meyering.net>
47527
47528         * build-aux/announce-gen: When complaining about excess arguments,
47529         list them.
47530
47531 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47532
47533         * README: Document signed integer overflow situation more
47534         accurately.
47535
47536 2007-02-25  Bruno Haible  <bruno@clisp.org>
47537
47538         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47539         'a' or 'A' conversion.
47540
47541 2007-02-25  Bruno Haible  <bruno@clisp.org>
47542
47543         * modules/filename: Renamed from modules/pathname.
47544         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47545         lib/concatpath.c with lib/concat-filename.c.
47546         (Makefile.am): Update.
47547         (Include): Replace pathname.h with filename.h.
47548         * lib/filename.h: Renamed from lib/pathname.h.
47549         (concatenated_filename): Renamed from concatenated_pathname.
47550         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47551         (concatenated_filename): Renamed from concatenated_pathname.
47552         * lib/findprog.c: Include filename.h instead of pathname.h.
47553         (find_in_path): Update.
47554         * lib/javacomp.c: Include filename.h instead of pathname.h.
47555         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47556         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47557         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47558         is_oldgcj_14_13_usable, is_javac_usable): Update.
47559         * lib/javaexec.c: Include filename.h instead of pathname.h.
47560         (execute_java_class): Update.
47561         * modules/findprog: Update.
47562         * modules/javacomp: Update.
47563         * modules/javaexec: Update.
47564         * MODULES.html.sh (File system functions): Add 'filename', remove
47565         'pathname'.
47566
47567 2007-02-25  Bruno Haible  <bruno@clisp.org>
47568
47569         * modules/printf-frexpl-tests: New file.
47570         * tests/test-printf-frexpl.c: New file.
47571
47572         * modules/printf-frexpl: New file.
47573         * lib/printf-frexpl.h: New file.
47574         * lib/printf-frexpl.c: New file.
47575         * m4/printf-frexpl.m4: New file.
47576
47577 2007-02-25  Bruno Haible  <bruno@clisp.org>
47578
47579         * modules/printf-frexp-tests: New file.
47580         * tests/test-printf-frexp.c: New file.
47581
47582         * modules/printf-frexp: New file.
47583         * lib/printf-frexp.h: New file.
47584         * lib/printf-frexp.c: New file.
47585         * m4/printf-frexp.m4: New file.
47586
47587 2007-02-25  Bruno Haible  <bruno@clisp.org>
47588
47589         Assume automake >= 1.10 for the tests.
47590         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47591         * modules/arctwo-tests: Likewise.
47592         * modules/argp-tests: Likewise.
47593         * modules/avltree-list-tests: Likewise.
47594         * modules/avltree-oset-tests: Likewise.
47595         * modules/avltreehash-list-tests: Likewise.
47596         * modules/carray-list-tests: Likewise.
47597         * modules/crc-tests: Likewise.
47598         * modules/des-tests: Likewise.
47599         * modules/gc-arcfour-tests: Likewise.
47600         * modules/gc-arctwo-tests: Likewise.
47601         * modules/gc-des-tests: Likewise.
47602         * modules/gc-hmac-md5-tests: Likewise.
47603         * modules/gc-hmac-sha1-tests: Likewise.
47604         * modules/gc-md2-tests: Likewise.
47605         * modules/gc-md4-tests: Likewise.
47606         * modules/gc-md5-tests: Likewise.
47607         * modules/gc-pbkdf2-sha1-tests: Likewise.
47608         * modules/gc-rijndael-tests: Likewise.
47609         * modules/gc-sha1-tests: Likewise.
47610         * modules/gc-tests: Likewise.
47611         * modules/getaddrinfo-tests: Likewise.
47612         * modules/hmac-md5-tests: Likewise.
47613         * modules/hmac-sha1-tests: Likewise.
47614         * modules/linked-list-tests: Likewise.
47615         * modules/linkedhash-list-tests: Likewise.
47616         * modules/lock-tests: Likewise.
47617         * modules/md2-tests: Likewise.
47618         * modules/md4-tests: Likewise.
47619         * modules/md5-tests: Likewise.
47620         * modules/rbtree-list-tests: Likewise.
47621         * modules/rbtree-oset-tests: Likewise.
47622         * modules/rbtreehash-list-tests: Likewise.
47623         * modules/read-file-tests: Likewise.
47624         * modules/rijndael-tests: Likewise.
47625         * modules/stdint-tests: Likewise.
47626         * modules/tls-tests: Likewise.
47627
47628 2007-02-24  Bruno Haible  <bruno@clisp.org>
47629
47630         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47631         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47632         function; instead check whether isnan with a double argument links.
47633         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47634         function; instead check whether isnan with a 'long double' argument
47635         links.
47636         Reported by Eric Blake <ebb9@byu.net>.
47637
47638 2007-02-24  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47641         defined.
47642         * lib/isnanl.c: Remove all code. Just include isnan.c.
47643         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47644
47645 2007-02-25  Jim Meyering  <jim@meyering.net>
47646
47647         Avoid conflicting types for 'unsetenv' on FreeBSD.
47648         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47649         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47650         in stdlib.h.
47651
47652 2007-02-24  Bruno Haible  <bruno@clisp.org>
47653
47654         * modules/isnanl-nolibm-tests: New file.
47655         * tests/test-isnanl.c: New file.
47656
47657         * modules/isnanl-nolibm: New file.
47658         * lib/isnanl.h: New file.
47659         * lib/isnanl.c: New file.
47660         * m4/isnanl.m4: New file.
47661
47662 2007-02-24  Bruno Haible  <bruno@clisp.org>
47663
47664         * modules/isnan-nolibm-tests: New file.
47665         * tests/test-isnan.c: New file.
47666
47667         * modules/isnan-nolibm: New file.
47668         * lib/isnan.h: New file.
47669         * lib/isnan.c: New file.
47670         * m4/isnan.m4: New file.
47671
47672 2007-02-24  Bruno Haible  <bruno@clisp.org>
47673
47674         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47675         assume that an exponent fits in 20 bits.
47676
47677 2007-02-24  Jim Meyering  <jim@meyering.net>
47678
47679         * m4/regex.m4: Update the description of the configure-time option,
47680         --without-included-regex, to state accurately what the defaults are,
47681         and perhaps to give people an idea why using this option is risky.
47682
47683 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47684
47685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47686         loops on small arguments.  This attempts to avoid the problem
47687         Bruno Haible reported for AIX 4.3.2 in
47688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47689
47690 2007-02-23  Bruno Haible  <bruno@clisp.org>
47691
47692         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47693         Needed for help2man.
47694
47695 2007-02-23  Karl Berry  <karl@gnu.org>
47696
47697         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47698         exists, foo.h should be cvs-ignored, not committed.
47699
47700 2007-02-23  Eric Blake  <ebb9@byu.net>
47701
47702         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47703         * lib/stat-time.h (includes): Likewise.
47704         * lib/utimecmp.c (includes): Likewise.
47705         * lib/utimens.h (includes): Likewise.
47706         * lib/getdate.y (includes): Also include "timespec.h" for use
47707         internal to the module.
47708         * modules/utimens (Depends-on): Revert yesterday's patch.
47709         * modules/nanosleep (Depends-on): Add missing dependency.
47710
47711 2007-02-22  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/glob.c: Don't include getlogin_r.h.
47714
47715 2007-02-22  Jim Meyering  <jim@meyering.net>
47716
47717         * modules/utimens (Depends-on): Add timespec, required for
47718         utimens.h's inclusion of timespec.h.
47719
47720 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47721
47722         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47723         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47724         Schwab in
47725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47726         I'll try to think of a better way to fix the Solaris problem.
47727
47728         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47729         like glibc; on Solaris 10, it fails with errno == EINVAL.
47730         POSIX says the behavior is unspecified if the first argument is NULL,
47731         so play it safe and never pass NULL to the system getcwd.
47732
47733 2007-02-21  Jim Meyering  <jim@meyering.net>
47734
47735         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47736         of gettimeofday.  It would conflict with the one now always
47737         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47738         an IRIX 6.5 build failure.
47739
47740 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47741
47742         Minor fixups to port to Solaris 10 with Sun C 5.8.
47743         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47744         * modules/getcwd (Depends-on): Add dirfd.
47745         * lib/putenv.c (putenv): #undef it.
47746         (rpl_putenv): New decl.
47747         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47748
47749 2007-02-20  Bruno Haible  <bruno@clisp.org>
47750
47751         * modules/stdio-tests: New file.
47752         * tests/test-stdio.c: New file.
47753
47754         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47755         (Depends-on): Add stdio.
47756         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47757         (Include): Use <stdio.h> instead of vsnprintf.h.
47758         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47759         HAVE_DECL_VSNPRINTF.
47760         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47761
47762         * modules/snprintf (Files): Remove lib/snprintf.h.
47763         (Depends-on): Add stdio.
47764         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47765         (Include): Use <stdio.h> instead of snprintf.h.
47766         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47767         HAVE_DECL_SNPRINTF.
47768         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47769         * lib/getaddrinfo.c: Likewise.
47770
47771         * modules/stdio: New file.
47772         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47773         * lib/snprintf.h: Remove file.
47774         * lib/vsnprintf.h: Remove file.
47775         * lib/.cppi-disable: Remove snprintf.h.
47776         * m4/stdio_h.m4: New file.
47777         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47778
47779 2007-02-20  Jim Meyering  <jim@meyering.net>
47780
47781         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47782         used by e.g., mingw.  From Bruno Haible.
47783
47784 2007-02-19  Bruno Haible  <bruno@clisp.org>
47785
47786         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47787         warnings.
47788         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47789
47790 2007-02-19  Bruno Haible  <bruno@clisp.org>
47791
47792         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47793         from mingw users.
47794
47795 2007-02-19  Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47798         warnings.
47799         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47800
47801 2007-02-19  Jim Meyering  <jim@meyering.net>
47802
47803         Don't use FD after a successful "fdopendir (fd)".
47804         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47805         Reset it by calling dirfd on the just-obtained DIR*.
47806
47807         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47808         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47809
47810 2007-02-18  Bruno Haible  <bruno@clisp.org>
47811
47812         * lib/readlink.c: Include <unistd.h>.
47813         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47814         HAVE_READLINK.
47815         * modules/readlink (Depends-on): Add unistd.
47816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47817         (Include): Add <unistd.h>.
47818
47819         * lib/getlogin_r.h: Remove file.
47820         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47821         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47822         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47823         HAVE_DECL_GETLOGIN_R.
47824         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47826         (Include): Use <unistd.h> instead of getlogin_r.h.
47827
47828         * lib/getcwd.h: Remove file.
47829         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47830         * lib/xgetcwd.c: Likewise.
47831         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47832         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47833         * modules/getcwd (Files): Remove lib/getcwd.h.
47834         (Depends-on): Add unistd.
47835         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47836         (Include): Use <unistd.h> instad of getcwd.h.
47837
47838         * lib/ftruncate.c: Include <unistd.h> first.
47839         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47840         Set HAVE_FTRUNCATE.
47841         * modules/ftruncate (Depends-on): Add unistd.
47842         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47843
47844         * lib/fchdir.c: Include <unistd.h> first.
47845         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47847         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47848         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47849         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47850
47851         * lib/dup2.c: Include <unistd.h> first.
47852         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47853         HAVE_DUP2.
47854         * modules/dup2 (Depends-on): Add unistd.
47855         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47856
47857         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47858         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47859         REPLACE_CHOWN. Don't define chown as a macro here.
47860         * modules/chown (Depends-on): Add unistd.
47861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47862
47863         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47864         Add definition for GL_LINK_WARNING.
47865         (chown, dup2): New declarations.
47866         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47867         link warning.
47868         (ftruncate): New declaration.
47869         (getcwd): New declaration, taken from old getcwd.h.
47870         (getlogin_r): New declaration, taken from old getlogin_r.h.
47871         (readlink): New declaration.
47872         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47873         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47874         (gl_PREREQ_UNISTD): Remove macro.
47875         (gl_UNISTD_MODULE_INDICATOR): New macro.
47876         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47877         many new variables. Don't set UNISTD_H.
47878         * modules/unistd (Description): Change.
47879         (Depends-on): Add link-warning.
47880         (configure.ac): Update.
47881         (Makefile.am): Create unistd.h always. Substitute many new variables
47882         into it.
47883
47884 2007-02-18  Bruno Haible  <bruno@clisp.org>
47885
47886         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47887         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47888         HAVE_GETSUBOPT.
47889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47890         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47891         * lib/getsubopt.h: Remove file.
47892         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47893         (Depends-on): Add stdlib.
47894         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47895         (Includes): Use <stdlib.h> instead of getsubopt.h.
47896         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47897         Set HAVE_GETSUBOPT.
47898         * lib/getsubopt.c: Don't include getsubopt.h.
47899
47900 2007-02-18  Bruno Haible  <bruno@clisp.org>
47901
47902         * modules/fchdir (Depends-on): Add dup2.
47903
47904 2007-02-18  Bruno Haible  <bruno@clisp.org>
47905
47906         * lib/stdlib_.h: Handle glibc's special invocation convention
47907         specially.
47908
47909 2007-02-18  Bruno Haible  <bruno@clisp.org>
47910
47911         * modules/stdlib-tests: New file.
47912         * tests/test-stdlib.c: New file.
47913
47914         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47915         (Depends-on): Add stdlib.
47916         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47917         (Includes): Use <stdlib.h> instead of mkstemp.h.
47918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47919         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47920         * lib/mkstemp.c: Don't include mkstemp.h.
47921         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47922         * lib/stdlib--.h: Don't include mkstemp.h.
47923
47924         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47925         (Depends-on): Add stdlib.
47926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47927         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47928         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47929         HAVE_MKDTEMP.
47930         * lib/mkdtemp.c: Don't include mkdtemp.h.
47931         * lib/clean-temp.c: Don't include mkdtemp.h.
47932
47933         * modules/exit (Files): Remove lib/exit.h.
47934         (Depends-on): Add stdlib.
47935         (Makefile.am): Remove lib_SOURCES.
47936         (Include): Use <stdlib.h> instead of exit.h.
47937         * lib/argmatch.c: Don't include exit.h.
47938         * lib/execute.c: Likewise.
47939         * lib/pagealign_alloc.c: Likewise.
47940         * lib/pipe.c: Likewise.
47941         * lib/wait-process.c: Likewise.
47942         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47943         * lib/exitfail.c: Likewise.
47944         * lib/savewd.c: Likewise.
47945         * lib/xsetenv.c: Likewise.
47946
47947         * modules/stdlib: New file.
47948         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47949         and extra comments about mkstemp().
47950         * lib/exit.h: Remove file.
47951         * lib/mkdtemp.h: Remove file.
47952         * lib/mkstemp.h: Remove file.
47953         * m4/stdlib_h.m4: New file.
47954         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47955
47956 2007-02-18  Bruno Haible  <bruno@clisp.org>
47957
47958         * modules/math-tests: New file.
47959         * tests/test-math.c: New file.
47960
47961         * modules/math: New file.
47962         * modules/mathl (Files): Remove lib/mathl.h.
47963         (Depends-on): Add math.
47964         (Makefile.am): Don't mention mathl.h.
47965         (Include): Use <math.h> instead of mathl.h.
47966         * lib/math_.h: New file.
47967         * lib/mathl.h: Remove file.
47968         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47969         mathl.h.
47970         * lib/asinl.c: Likewise.
47971         * lib/atanl.c: Likewise.
47972         * lib/ceill.c: Likewise.
47973         * lib/cosl.c: Likewise.
47974         * lib/expl.c: Likewise.
47975         * lib/floorl.c: Likewise.
47976         * lib/frexpl.c: Likewise.
47977         * lib/ldexpl.c: Likewise.
47978         * lib/logl.c: Likewise.
47979         * lib/sincosl.c: Likewise.
47980         * lib/sinl.c: Likewise.
47981         * lib/sqrtl.c: Likewise.
47982         * lib/tanl.c: Likewise.
47983         * lib/trigl.c: Likewise.
47984         * m4/math_h.m4: New file.
47985         * MODULES.html.sh (Mathematics): Add math.
47986
47987 2007-02-17  Bruno Haible  <bruno@clisp.org>
47988
47989         * modules/wctype-tests: New file.
47990         * tests/test-wctype.c: New file.
47991
47992         * modules/wchar-tests: New file.
47993         * tests/test-wchar.c: New file.
47994
47995         * modules/unistd-tests: New file.
47996         * tests/test-unistd.c: New file.
47997
47998         * modules/time-tests: New file.
47999         * tests/test-time.c: New file.
48000
48001         * modules/sysexits-tests: New file.
48002         * tests/test-sysexits.c: New file.
48003
48004         * modules/sys_time-tests: New file.
48005         * tests/test-sys_time.c: New file.
48006
48007         * modules/sys_stat-tests: New file.
48008         * tests/test-sys_stat.c: New file.
48009
48010         * modules/sys_socket-tests: New file.
48011         * tests/test-sys_socket.c: New file.
48012
48013         * modules/sys_select-tests: New file.
48014         * tests/test-sys_select.c: New file.
48015
48016         * modules/string-tests: New file.
48017         * tests/test-string.c: New file.
48018
48019         * modules/stdbool-tests: New file.
48020         * tests/test-stdbool.c: New file.
48021
48022         * modules/netinet_in-tests: New file.
48023         * tests/test-netinet_in.c: New file.
48024
48025         * modules/inttypes-tests: New file.
48026         * tests/test-inttypes.c: New file.
48027
48028         * modules/fcntl-tests: New file.
48029         * tests/test-fcntl.c: New file.
48030
48031         * modules/byteswap-tests: New file.
48032         * tests/test-byteswap.c: New file.
48033
48034         * modules/arpa_inet-tests: New file.
48035         * tests/test-arpa_inet.c: New file.
48036
48037 2007-02-17  Bruno Haible  <bruno@clisp.org>
48038
48039         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
48040         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
48041         if the corresponding module is not enabled. Emit link warnings if
48042         the function is used nevertheless.
48043         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
48044         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
48045         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
48046         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
48047         * modules/inttypes (Depends-on): Add link-warning.
48048         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48049         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
48050         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
48051         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
48052         * modules/imaxdiv (configure.ac): Likewise.
48053         * modules/strtoimax (configure.ac): Likewise.
48054         * modules/strtoumax (configure.ac): Likewise.
48055
48056 2007-02-17  Bruno Haible  <bruno@clisp.org>
48057
48058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
48059         gl_STRING_MODULE_INDICATOR_DEFAULTS.
48060         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
48061         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
48062
48063 2007-02-17  Bruno Haible  <bruno@clisp.org>
48064
48065         * modules/link-warning: New file.
48066         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
48067         * lib/string_.h (GL_LINK_WARNING): Remove definition.
48068         * modules/string (Depends-on): Add link-warning.
48069         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48070         string.h.
48071         * MODULES.html.sh (Support for building libraries and executables): Add
48072         link-warning.
48073
48074 2007-02-17  Bruno Haible  <bruno@clisp.org>
48075
48076         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
48077         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
48078         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
48079         long lines.
48080
48081 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
48082             Bruno Haible  <bruno@clisp.org>
48083
48084         * modules/tmpfile: New file.
48085         * lib/tmpfile.c: New file.
48086         * m4/tmpfile.m4: New file.
48087         * MODULES.html.sh (func_all_modules): New section "Input/output".
48088
48089 2007-02-15  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
48092         (supports_delete_on_close): New function.
48093         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
48094
48095 2007-02-14  Bruno Haible  <bruno@clisp.org>
48096
48097         * modules/mbspcasecmp-tests: New file.
48098         * tests/test-mbspcasecmp.sh: New file.
48099         * tests/test-mbspcasecmp.c: New file.
48100
48101         New module mbspcasecmp.
48102         * modules/mbspcasecmp: New file.
48103         * lib/mbspcasecmp.c: New file.
48104         * lib/string_.h (strncasecmp): Change warning message.
48105         (mbspcasecmp): New declaration.
48106         * m4/mbspcasecmp.m4: New file.
48107         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48108         GNULIB_MBSPCASECMP.
48109         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
48110         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
48111
48112 2007-02-14  Bruno Haible  <bruno@clisp.org>
48113
48114         * modules/mbsncasecmp-tests: New file.
48115         * tests/test-mbsncasecmp.sh: New file.
48116         * tests/test-mbsncasecmp.c: New file.
48117
48118         New module mbsncasecmp.
48119         * modules/mbsncasecmp: New file.
48120         * lib/mbsncasecmp.c: New file.
48121         * lib/string_.h (mbsncasecmp): New declaration.
48122         * m4/mbsncasecmp.m4: New file.
48123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48124         GNULIB_MBSNCASECMP.
48125         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
48126         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
48127
48128 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48129
48130         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
48131         Verify that it doesn't overlap with our flags.
48132         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
48133         do not have the desired effect in multibyte locales; instead, use
48134         mbscasecmp.
48135         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
48136         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
48137         we don't require GNU fnmatch ourselves (if our users require it, they
48138         should do so explicitly).
48139
48140         Fix regex code so it doesn't rely on strcasecmp.
48141         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
48142         Otherwise, include gnulib's langinfo.h.
48143         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
48144         undesirable behavior in non-C locales.  Instead, rely on localecharset.
48145         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
48146         * modules/regex (FILES): Remove m4/codeset.m4.
48147         (Depends-on): Add localcharset.  Remove strcase.
48148
48149 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48150
48151         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
48152         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
48153
48154 2007-02-13  Bruno Haible  <bruno@clisp.org>
48155
48156         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
48157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48158
48159 2007-02-12  Bruno Haible  <bruno@clisp.org>
48160
48161         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48162         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
48163         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
48164         time warning rather than a link error.
48165
48166 2007-02-12  Bruno Haible  <bruno@clisp.org>
48167
48168         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
48169         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48171
48172 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48173
48174         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
48175         args, not 2.
48176
48177 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48178
48179         New module 'time', so that apps can include <time.h> as per
48180         POSIX and GNU instead of separate include files like time_r.h
48181         and timegm.h.  This implementation tries out a simpler approach
48182         for replacing decls in standard include files (as compared to
48183         the string module), somewhat as an experiment.
48184
48185         * config/srclist.txt: Comment out mktime.c for now.
48186         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
48187         since it doesn't apply any more.  Use generic wording instead.
48188         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
48189         'time'.
48190         * lib/time_.h, m4/time_h.m4, modules/time: New files.
48191         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
48192         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
48193         Don't include <sys/types.h>; no longer needed since we assume C89.
48194         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
48195         * lib/strftime.c: Likewise.
48196         * lib/time_r.c: Likewise.
48197         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
48198         * lib/nanosleep.c: Include <time.h> first, to check interface.
48199         * lib/strptime.c: Likewise.
48200         * lib/time_r.c: Likewise.
48201         * lib/timegm.c: Likewise.
48202         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
48203         needed.
48204         * lib/timegm.c: Don't include timegm.h; no longer needed.
48205         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
48206         time.h now handles any problems in that area.
48207         (struct timespec, nanosleep): Remove; time.h now arranges for these.
48208         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
48209         that time.h defines struct timespec.
48210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
48211         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
48212         handles that.
48213         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
48214         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
48215         needed.  Set REPLACE_LOCALTIME.
48216         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
48217         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
48218         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
48219         nanosleep; time_h.m4 now does that.  Don't require
48220         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
48221         module handles this now.
48222         * modules/getdate (Depends-on): Remove timespec.  Add time.
48223         * modules/nanosleep (Depends-on): Likewise.
48224         * modules/stat-time (Depends-on): Likewise.
48225         * modules/nanosleep (Include): Include time.h, not timespec.h.
48226         * modules/strptime (Files): Remove lib/strptime.h.
48227         (Depends-on): Add extensions, time.
48228         (Include): Include time.h, not strptime.h.
48229         * modules/time_r (Files): Remove lib/time_r.h.
48230         (Depends-on): Add time.
48231         (Include): Include time.h, not time_r.h.
48232         * modules/timegm: Likewise.
48233         * modules/timespec (Description): Now does timespec-related decls
48234         of our own, instead of struct timespec itself.
48235         (Depends-on): Add time; remove extensions.
48236         (Maintainer): Add self.
48237         * modules/utimecmp (Depends-on): Add time; remove timespec.
48238         * modules/utimens (Depends-on): Likewise.
48239         * modules/xnanosleep (Depends-on): Likewise.
48240
48241 2007-02-11  Bruno Haible  <bruno@clisp.org>
48242
48243         * lib/c-strstr.c: Include allocsa.h.
48244         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48245         * lib/c-strcasestr.c: Include allocsa.h.
48246         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48247         * lib/strcasestr.c: Include allocsa.h.
48248         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48249         * lib/mbsstr.c: Include allocsa.h.
48250         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48251         allocsa/freesa instead of malloc/free.
48252         * lib/mbscasestr.c: Include allocsa.h.
48253         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48254         allocsa/freesa instead of malloc/free.
48255         * modules/c-strstr (Depends-on): Add allocsa.
48256         * modules/c-strcasestr (Depends-on): Likewise.
48257         * modules/strcasestr (Depends-on): Likewise.
48258         * modules/mbsstr (Depends-on): Likewise.
48259         * modules/mbscasestr (Depends-on): Likewise.
48260
48261 2007-02-11  Bruno Haible  <bruno@clisp.org>
48262
48263         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
48264
48265         * modules/mbsspn-tests: New file.
48266         * tests/test-mbsspn.sh: New file.
48267         * tests/test-mbsspn.c: New file.
48268
48269 2007-02-11  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
48272
48273         * modules/mbspbrk-tests: New file.
48274         * tests/test-mbspbrk.sh: New file.
48275         * tests/test-mbspbrk.c: New file.
48276
48277 2007-02-11  Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
48280         unneeded cast.
48281
48282         * modules/mbscspn-tests: New file.
48283         * tests/test-mbscspn.sh: New file.
48284         * tests/test-mbscspn.c: New file.
48285
48286 2007-02-11  Bruno Haible  <bruno@clisp.org>
48287
48288         * modules/mbscasecmp-tests: New file.
48289         * tests/test-mbscasecmp.sh: New file.
48290         * tests/test-mbscasecmp.c: New file.
48291
48292 2007-02-11  Bruno Haible  <bruno@clisp.org>
48293
48294         Ensure O(n) worst-case complexity of mbscasestr.
48295         * lib/mbscasestr.c: Include stdbool.h.
48296         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48297         functions.
48298         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
48299         the bookkeeping indicates that it's worth it.
48300         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
48301
48302         * modules/mbscasestr-tests: New file.
48303         * tests/test-mbscasestr1.c: New file.
48304         * tests/test-mbscasestr2.sh: New file.
48305         * tests/test-mbscasestr2.c: New file.
48306         * tests/test-mbscasestr3.sh: New file.
48307         * tests/test-mbscasestr3.c: New file.
48308         * tests/test-mbscasestr4.sh: New file.
48309         * tests/test-mbscasestr4.c: New file.
48310         * m4/locale-tr.m4: New file.
48311
48312 2007-02-11  Bruno Haible  <bruno@clisp.org>
48313
48314         Ensure O(n) worst-case complexity of mbsstr.
48315         * lib/mbsstr.c: Include stdbool.h.
48316         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48317         functions.
48318         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
48319         bookkeeping indicates that it's worth it.
48320         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
48321
48322         * modules/mbsstr-tests: New file.
48323         * tests/test-mbsstr1.c: New file.
48324         * tests/test-mbsstr2.sh: New file.
48325         * tests/test-mbsstr2.c: New file.
48326         * tests/test-mbsstr3.sh: New file.
48327         * tests/test-mbsstr3.c: New file.
48328         * m4/locale-fr.m4: New file.
48329
48330 2007-02-11  Bruno Haible  <bruno@clisp.org>
48331
48332         * lib/mbsrchr.c (mbsrchr): Fix bug.
48333
48334         * modules/mbsrchr-tests: New file.
48335         * tests/test-mbsrchr.sh: New file.
48336         * tests/test-mbsrchr.c: New file.
48337
48338 2007-02-11  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/mbschr.c (mbschr): Fix bug.
48341
48342         * modules/mbschr-tests: New file.
48343         * tests/test-mbschr.sh: New file.
48344         * tests/test-mbschr.c: New file.
48345         * m4/locale-zh.m4: New file.
48346
48347 2007-02-11  Bruno Haible  <bruno@clisp.org>
48348
48349         Support for copying multibyte string iterators.
48350         * lib/mbiter.h: Include <string.h>.
48351         (mbiter_multi_copy): New function.
48352         (mbi_copy): New macro.
48353         * lib/mbuiter.h: Include <string.h>.
48354         (mbuiter_multi_copy): New function.
48355         (mbui_copy): New macro.
48356
48357 2007-02-11  Bruno Haible  <bruno@clisp.org>
48358
48359         New module mbslen.
48360         * modules/mbslen: New file.
48361         * lib/mbslen.c: New file.
48362         * lib/string_.h (mbslen): New declaration.
48363         * m4/mbslen.m4: New file.
48364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48365         GNULIB_MBSLEN.
48366         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
48367         * MODULES.html.sh (Internationalization functions): Add mbslen.
48368
48369 2007-02-11  Bruno Haible  <bruno@clisp.org>
48370
48371         Ensure O(n) worst-case complexity of strcasestr substitute.
48372         * lib/strcasestr.c: Include stdbool.h.
48373         (knuth_morris_pratt): New function.
48374         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48375         bookkeeping indicates that it's worth it.
48376         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
48377
48378         * modules/strcasestr-tests: New file.
48379         * tests/test-strcasestr.c: New file.
48380
48381 2007-02-11  Bruno Haible  <bruno@clisp.org>
48382
48383         Ensure O(n) worst-case complexity of c_strcasestr.
48384         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48385         (knuth_morris_pratt): New function.
48386         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
48387         the bookkeeping indicates that it's worth it.
48388         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
48389
48390         * modules/c-strcasestr-tests: New file.
48391         * tests/test-c-strcasestr.c: New file.
48392
48393 2007-02-11  Bruno Haible  <bruno@clisp.org>
48394
48395         Ensure O(n) worst-case complexity of c_strstr.
48396         * lib/c-strstr.c: Include stdbool.h, string.h.
48397         (knuth_morris_pratt): New function.
48398         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48399         bookkeeping indicates that it's worth it.
48400         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
48401
48402         * lib/c-strstr.c: Complete rewrite for maintainability.
48403
48404         * modules/c-strstr-tests: New file.
48405         * tests/test-c-strstr.c: New file.
48406
48407 2007-02-11  Bruno Haible  <bruno@clisp.org>
48408
48409         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48410         5.2.1 and earlier, whereby \055 was treated just like the range
48411         delimiter '-'.
48412         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48413
48414 2007-02-08  Bruno Haible  <bruno@clisp.org>
48415
48416         * modules/regex (Depends-on): Add stdbool.
48417         Reported by Dalibor Topic <robilad@kaffe.org>.
48418
48419 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48420
48421         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48422         Prefer returning from main to exiting from it.
48423         Remove unnecessary parens after sizeof.
48424
48425 2007-02-05  Bruno Haible  <bruno@clisp.org>
48426
48427         New module mbssep.
48428         * modules/mbssep: New file.
48429         * lib/mbssep.c: New file.
48430         * lib/string_.h (strsep): Add a conditional link warning.
48431         (mbssep): New declaration.
48432         * m4/mbssep.m4: New file.
48433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48434         GNULIB_MBSSEP.
48435         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48436         * MODULES.html.sh (Internationalization functions): Add mbssep.
48437
48438 2007-02-05  Bruno Haible  <bruno@clisp.org>
48439
48440         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48441         Optimize search in case of 1 delimiter.
48442
48443 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48444
48445         * lib/acl.h: Include sys/types.h before sys/acl.h.
48446
48447 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48448
48449         Merge upstream fix for glibc bugzilla #3957:
48450
48451         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
48452
48453         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
48454         bit for RE_HAT_LISTS_NOT_NEWLINE.
48455         (build_charclass_op): Remove bogus comment.
48456
48457 2007-02-05  Simon Josefsson  <simon@josefsson.org>
48458
48459         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48460
48461 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48462
48463         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48464         * lib/memmem.c [!defined _LIBC]: Include config.h.
48465
48466 2007-02-04  Bruno Haible  <bruno@clisp.org>
48467
48468         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48469         warning message.
48470
48471 2007-02-04  Bruno Haible  <bruno@clisp.org>
48472
48473         New module mbstok_r.
48474         * modules/mbstok_r: New file.
48475         * lib/mbstok_r.c: New file.
48476         * lib/string_.h (strtok_r): Change argument names to match the
48477         comments. Add a conditional link warning.
48478         (mbstok_r): New declaration.
48479         * m4/mbstok_r.m4: New file.
48480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48481         GNULIB_MBSTOK_R.
48482         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48483         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48484
48485 2007-02-04  Bruno Haible  <bruno@clisp.org>
48486
48487         New module mbsspn.
48488         * modules/mbsspn: New file.
48489         * lib/mbsspn.c: New file.
48490         * lib/string_.h (strspn): Add a conditional link warning.
48491         (mbsspn): New declaration.
48492         * m4/mbsspn.m4: New file.
48493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48494         GNULIB_MBSSPN.
48495         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48496         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48497
48498 2007-02-04  Bruno Haible  <bruno@clisp.org>
48499
48500         New module mbspbrk.
48501         * modules/mbspbrk: New file.
48502         * lib/mbspbrk.c: New file.
48503         * lib/string_.h (strpbrk): Add a conditional link warning.
48504         (mbspbrk): New declaration.
48505         * m4/mbspbrk.m4: New file.
48506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48507         GNULIB_MBSPBRK.
48508         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48509         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48510
48511 2007-02-04  Bruno Haible  <bruno@clisp.org>
48512
48513         New module mbscspn.
48514         * modules/mbscspn: New file.
48515         * lib/mbscspn.c: New file.
48516         * lib/string_.h (strcspn): Add a conditional link warning.
48517         (mbscspn): New declaration.
48518         * m4/mbscspn.m4: New file.
48519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48520         GNULIB_MBSCSPN.
48521         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48522         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48523
48524 2007-02-04  Bruno Haible  <bruno@clisp.org>
48525
48526         New module mbscasestr, reduced goal of strcasestr.
48527         * modules/mbscasestr: New file.
48528         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48529         (mbscasestr): Renamed from strcasestr.
48530         * lib/strcasestr.c: Don't include mbuiter.h.
48531         (strcasestr): Remove support for multibyte locales.
48532         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48533         Change the conditional link warning.
48534         (mbscasestr): New declaration.
48535         * m4/mbscasestr.m4: New file.
48536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48537         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48538         REPLACE_STRCASESTR.
48539         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48541         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48542         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48543         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48544         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48545         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48546         (Depends-on): Remove mbuiter.
48547         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48548
48549 2007-02-04  Bruno Haible  <bruno@clisp.org>
48550
48551         Simplify handling of strncasecmp.
48552         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48553         the conditional link warning.
48554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48555         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48556         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48557         * modules/strcase (configure.ac): Don't invoke
48558         gl_STRING_MODULE_INDICATOR.
48559         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48560
48561 2007-02-04  Bruno Haible  <bruno@clisp.org>
48562
48563         New module mbscasecmp, reduced goal of strcasecmp.
48564         * modules/mbscasecmp: New file.
48565         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48566         (mbscasecmp): Renamed from strcasecmp.
48567         * lib/strcasecmp.c: Don't include mbuiter.h.
48568         (strcasecmp): Remove support for multibyte locales.
48569         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48570         Change the conditional link warning.
48571         (mbscasecmp): New declaration.
48572         * m4/mbscasecmp.m4: New file.
48573         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48574         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48575         REPLACE_STRCASECMP.
48576         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48578         GNULIB_MBSCASECMP.
48579         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48580         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48581         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48582         (Depends-on): Remove mbuiter.
48583         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48584
48585 2007-02-04  Bruno Haible  <bruno@clisp.org>
48586
48587         New module mbsstr. Remove module strstr.
48588         * modules/mbsstr: New file.
48589         * modules/strstr: Remove file.
48590         * lib/mbsstr.c: Renamed from lib/strstr.c.
48591         (mbsstr): Renamed from strstr.
48592         * lib/string_.h (strstr): Remove declaration. Change the conditional
48593         link warning.
48594         (mbsstr): New declaration.
48595         * m4/mbsstr.m4: New file.
48596         * m4/strstr.m4: Remove file.
48597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48598         REPLACE_STRSTR.
48599         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48600         Don't initialize GNULIB_STRSTR.
48601         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48602         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48603         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48604         (Support for systems lacking ANSI C 89): Remove strstr.
48605
48606 2007-02-04  Bruno Haible  <bruno@clisp.org>
48607
48608         New module mbsrchr.
48609         * modules/mbsrchr: New file.
48610         * lib/mbsrchr.c: New file.
48611         * lib/string_.h (strrchr): Add a conditional link warning.
48612         (mbsrchr): New declaration.
48613         * m4/mbsrchr.m4: New file.
48614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48615         GNULIB_MBSRCHR.
48616         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48617         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48618
48619 2007-02-04  Bruno Haible  <bruno@clisp.org>
48620
48621         New module mbschr.
48622         * modules/mbschr: New file.
48623         * lib/mbschr.c: New file.
48624         * lib/string_.h (strchr): Add a conditional link warning.
48625         (mbschr): New declaration.
48626         * m4/mbschr.m4: New file.
48627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48628         GNULIB_MBSCHR.
48629         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48630         * MODULES.html.sh (Internationalization functions): Add mbschr.
48631
48632 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48633
48634         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48635
48636         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48637
48638 2007-02-04  Bruno Haible  <bruno@clisp.org>
48639
48640         New module description section 'configure.ac-early'.
48641         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48642         (func_get_autoconf_early_snippet): New function.
48643         (func_import, func_create_testdir): Use it. Remove special cases for
48644         modules 'extensions' and 'lock'.
48645         * modules/extensions (configure.ac-early): Require
48646         gl_USE_SYSTEM_EXTENSIONS.
48647         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48648
48649 2007-02-04  Bruno Haible  <bruno@clisp.org>
48650
48651         Make use of gcj-4.3's -fsource and -ftarget option.
48652         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48653         and if so try the options -fsource and -ftarget.
48654         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48655         source_version, ftarget_option, target_version arguments.
48656         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48657         (is_envjavac_oldgcj_14_14_usable): Renamed from
48658         is_envjavac_gcj_14_14_usable.
48659         (is_envjavac_oldgcj_14_13_usable): Renamed from
48660         is_envjavac_gcj_14_13_usable.
48661         (is_gcj_present): Update.
48662         (is_gcj_43, is_gcj43_usable): New functions.
48663         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48664         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48665         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48666         try the options -fsource and -ftarget.
48667
48668 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48669
48670         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48671         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48672         larger value.
48673
48674 2007-02-03  Jim Meyering  <jim@meyering.net>
48675
48676         Give tools a better chance to allocate space for very large buffers.
48677         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48678
48679         Make pwd and readlink work also when run with an unreadable parent dir
48680         on systems with openat support.
48681         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48682         provided getcwd function, even when we have openat support.
48683         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48684
48685 2007-02-02  Bruno Haible  <bruno@clisp.org>
48686
48687         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48688         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48689         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48690         portability problems if one of these functions is only used on specific
48691         platforms.
48692         Reported by Paul Eggert.
48693
48694 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48695
48696         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48697         is causing more trouble than it's curing.
48698         * lib/regex_internal.h (__mempcpy): Remove.
48699         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48700         (and make the code a tad smaller to boot).
48701         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48702
48703 2007-02-02  Jim Meyering  <jim@meyering.net>
48704
48705         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48706         section, not in the Makefile.am: one.
48707
48708 2007-02-02  Eric Blake  <ebb9@byu.net>
48709
48710         * lib/strchrnul.c: Always include config.h first.
48711
48712         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48713         gnulib strstr is not necessary here.
48714
48715 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48716
48717         * m4/socklen.m4: Fix typo.
48718
48719 2007-02-02  Eric Blake  <ebb9@byu.net>
48720
48721         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48722         * modules/netinet_in (Makefile.am): Likewise.
48723
48724 2007-02-01  Bruno Haible  <bruno@clisp.org>
48725
48726         * lib/string_.h (GL_LINK_WARNING): New macro.
48727         (strcasecmp, strstr, strcasestr): If provided by the system,
48728         conditionally define as a macro that leads to a warning instead of to
48729         an error.
48730         (strncasecmp): Conditionally define as a macro that leads to a warning.
48731
48732 2007-02-01  Karl Berry  <karl@gnu.org>
48733
48734         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48735
48736 2007-02-01  Bruno Haible  <bruno@clisp.org>
48737
48738         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48739         renamings.
48740
48741 2007-02-01  Eric Blake  <ebb9@byu.net>
48742
48743         * modules/regex (Depends-on): Revert dependence on mempcpy.
48744         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48745         module's definition of mempcpy.
48746         Reported by Paul Eggert.
48747
48748 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48749
48750         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48751         the symbol XYZ before redefining it.  This fixes a problem with
48752         programs that don't use XYZ, when compiled on systems that define
48753         XYZ to something else.
48754
48755 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48756
48757         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48758         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48759         writeable to group or other and (2) is intended to have a special
48760         mode bit that is set or cleared.  In such a case, the directory
48761         should be neither group- nor other-writeable until the special
48762         mode bits are right.
48763
48764 2007-01-31  Eric Blake  <ebb9@byu.net>
48765
48766         * modules/mountlist (Depends-on): Add strstr.
48767
48768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48769         bug.
48770         * modules/string (Makefile.am): Remove redundant replacement.
48771         * modules/regex (Depends-on): Add mempcpy.
48772
48773 2007-01-31  Bruno Haible  <bruno@clisp.org>
48774
48775         New module description field 'Link'.
48776         * gnulib-tool (func_usage): Document --extract-link-directive.
48777         (sed_extract_prog): Recognize 'Link' directive.
48778         (func_get_link_directive): New function.
48779         (func_import): Show summary of link directives.
48780         Handle --extract-link-directive option.
48781         * modules/acl (Link): New section.
48782         * modules/clock-time (Link): New section.
48783         * modules/euidaccess (Link): New section.
48784         * modules/gettext (Link): New section.
48785         * modules/iconv (Link): New section.
48786         * modules/lock (Link): New section.
48787         * modules/nanosleep (Link): New section.
48788         * modules/readline (Link): New section.
48789
48790 2007-01-27  Bruno Haible  <bruno@clisp.org>
48791
48792         Enforce the use of gnulib modules for unportable <string.h> functions.
48793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48794         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48795         (gl_HEADER_STRING_H_BODY): Require it.
48796         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48797         the symbol XYZ to one that gives a link error.
48798         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48799         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48800         * modules/mempcpy (configure.ac): Likewise.
48801         * modules/memrchr (configure.ac): Likewise.
48802         * modules/stpcpy (configure.ac): Likewise.
48803         * modules/stpncpy (configure.ac): Likewise.
48804         * modules/strcase (configure.ac): Likewise.
48805         * modules/strcasestr (configure.ac): Likewise.
48806         * modules/strchrnul (configure.ac): Likewise.
48807         * modules/strdup (configure.ac): Likewise.
48808         * modules/strndup (configure.ac): Likewise.
48809         * modules/strnlen (configure.ac): Likewise.
48810         * modules/strpbrk (configure.ac): Likewise.
48811         * modules/strsep (configure.ac): Likewise.
48812         * modules/strstr (configure.ac): Likewise.
48813         * modules/strtok_r (configure.ac): Likewise.
48814
48815 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48816
48817         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48818
48819 2007-01-30  Jim Meyering  <jim@meyering.net>
48820
48821         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48822
48823 2007-01-29  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48826         * lib/execute.c: Likewise.
48827         * lib/pipe.c: Likewise.
48828         * lib/printf-args.h: Likewise.
48829         * lib/printf-args.c: Likewise.
48830         * lib/printf-parse.c: Likewise.
48831         * lib/vasnprintf.c: Likewise.
48832
48833 2007-01-29  Eric Blake  <ebb9@byu.net>
48834
48835         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48836         declaration.
48837
48838 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48839
48840         * lib/strptime.h (strptime): Use 'restrict' for args where
48841         POSIX requires this.
48842         * lib/strptime.c (strptime): Likewise.
48843         Change license notice from LGPL to GPL, since gnulib-tool will
48844         change this as needed.
48845         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48846         defined.
48847         Include "strptime.h" first, to check interface.
48848         Do not #undef _LIBC and _NL_CURRENT.
48849         Do not include <stdlib.h>; no longer needed.
48850         Include "time_r.h" and declare ptime_locale_status
48851         only if _LIBC is not defined.
48852         (__P): Remove unused macro.
48853         (match_string): Bring back glibc version, but use it only if _LIBC
48854         is defined.
48855         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48856         Remove unnecessary assertion and abort() call.
48857         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48858         * m4/strptime.m4: Fix serial number comment.
48859         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48860         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48861         (Depends-on): Add time_r.
48862
48863 2007-01-29  Bruno Haible  <bruno@clisp.org>
48864
48865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48866         strptime.
48867         * modules/strptime (Depends-on): Add stdbool.
48868         * lib/strptime.h: Include <time.h> always. Add comments.
48869
48870 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48871
48872         * modules/strptime: New file.
48873         * lib/strptime.h: New file.
48874         * lib/strptime.c: New file.
48875         * m4/strptime.m4: New file.
48876
48877 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48878
48879         * MODULES.html.sh: New module mpsort.
48880         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48881
48882         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48883         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48885         All uses changed.
48886         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48887         All uses changed.
48888         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48889         to _Restrict_.
48890         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48891         the parameter matches the prototype.
48892
48893 2007-01-28  Jim Meyering  <jim@meyering.net>
48894
48895         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48896         sys/time.h here, reverting that part of the previous patch:
48897         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48898
48899 2007-01-28  Bruno Haible  <bruno@clisp.org>
48900
48901         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48902         value of $(SYS_TIME_H).
48903         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48904         remove it conditionally, too. [added by Jim Meyering]
48905         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48906         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48907         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48908         GETTIMEOFDAY_REPLACEMENT to 1.
48909
48910 2007-01-28  Bruno Haible  <bruno@clisp.org>
48911
48912         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48913         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48915         Set UNISTD_H instead of UNISTD_H2.
48916         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48917
48918 2007-01-28  Bruno Haible  <bruno@clisp.org>
48919
48920         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48921         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48922
48923 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48924
48925         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48926         (func_create_testdir): Ensure C locale for `grep' and `tr'
48927         character ranges.
48928         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48929         ACLOCAL_AMFLAGS parsing state machine.
48930
48931 2007-01-27  Bruno Haible  <bruno@clisp.org>
48932
48933         * modules/unistr/base: Update.
48934
48935 2007-01-27  Bruno Haible  <bruno@clisp.org>
48936
48937         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48938         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48939         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48940         modules/unistr/u32-mbtouc.
48941         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48942         * lib/unistr.h: Update.
48943         * lib/linebreak.c: Update.
48944         * modules/unistr/u32-mbtouc: Renamed from
48945         modules/unistr/u32-mbtouc-safe.
48946         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48947         * lib/unistr.h: Update.
48948         * lib/unistr/u32-to-u8.c: Update.
48949         * lib/unistr/u32-to-u16.c: Update.
48950
48951 2007-01-27  Bruno Haible  <bruno@clisp.org>
48952
48953         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48954         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48955         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48956         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48957         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48958         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48959         modules/unistr/u16-mbtouc.
48960         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48961         * lib/unistr.h: Update.
48962         * lib/linebreak.c: Update.
48963         * modules/linebreak: Update.
48964         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48965         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48966         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48967         * modules/unistr/u16-mbtouc: Renamed from
48968         modules/unistr/u16-mbtouc-safe.
48969         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48970         * lib/unistr.h: Update.
48971         * lib/unistr/u16-to-u8.c: Update.
48972         * modules/unistr/u16-to-u8: Update.
48973         * lib/unistr/u16-to-u32.c: Update.
48974         * modules/unistr/u16-to-u32: Update.
48975
48976 2007-01-27  Bruno Haible  <bruno@clisp.org>
48977
48978         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48979         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48980         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48981         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48982         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48983         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48984         modules/unistr/u8-mbtouc.
48985         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48986         * lib/unistr.h: Update.
48987         * lib/striconveh.c: Update.
48988         * modules/striconveh: Update.
48989         * lib/linebreak.c: Update.
48990         * modules/linebreak: Update.
48991         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48992         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48993         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48994         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48995         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48996         * lib/unistr.h: Update.
48997         * lib/striconveh.c: Update.
48998         * modules/striconveh: Update.
48999         * lib/unistr/u8-to-u16.c: Update.
49000         * modules/unistr/u8-to-u16: Update.
49001         * lib/unistr/u8-to-u32.c: Update.
49002         * modules/unistr/u8-to-u32: Update.
49003
49004 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49005
49006         Sync from Libtool.
49007         * lib/argz.c: Do not include strings.h nor memory.h, include
49008         string.h unconditionally.  Patch by Simon Josefsson.
49009
49010 2007-01-27  Bruno Haible  <bruno@clisp.org>
49011
49012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
49013         from gl_HEADER_STRING_H_BODY.
49014         (gl_HEADER_STRING_H_BODY): Require it.
49015         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
49016         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49017         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49018         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49020         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
49021         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49022         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49023         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
49024         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49025         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49026         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
49027         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49028         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49029         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49030
49031 2007-01-27  Bruno Haible  <bruno@clisp.org>
49032
49033         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
49034         check_PROGRAMS into noinst_PROGRAMS.
49035         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
49036         check_PROGRAMS in this case.
49037         (func_import): Set for_test to false.
49038         (func_create_testdir): Set for_test to true.
49039
49040 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49041             Bruno Haible  <bruno@clisp.org>
49042
49043         * modules/strcasestr (Files): Remove lib/strcasestr.h.
49044         (Depends-on): Add string.
49045         (Includes): Use <string.h> instead of strcasestr.h.
49046         * modules/string (Makefile.am): Also substitute the value of
49047         REPLACE_STRCASESTR.
49048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
49049         assume strcasestr is declared in <string.h> not <strings.h>. Also
49050         set REPLACE_STRCASESTR.
49051         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
49052         REPLACE_STRCASESTR.
49053         * lib/strcasestr.h: Remove file.
49054         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
49055         * lib/string_.h (strcasestr): New declaration.
49056
49057 2007-01-27  Bruno Haible  <bruno@clisp.org>
49058
49059         * lib/string_.h: Use 'extern'.
49060
49061 2007-01-27  Jim Meyering  <jim@meyering.net>
49062
49063         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
49064         of set-but-not-used local, "q".
49065
49066         * lib/mempcpy.c: Include <config.h> before <string.h>.
49067         This fixes a compilation error on HP-UX, due to the system's
49068         "restrict"-using mempcpy prototype.
49069
49070 2007-01-26  Bruno Haible  <bruno@clisp.org>
49071
49072         Small optimization.
49073         * lib/javacomp.c: Include c-strstr.h.
49074          (is_envjavac_gcj): Use c_strstr instead of strstr.
49075         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
49076
49077 2007-01-26  Bruno Haible  <bruno@clisp.org>
49078
49079         * MODULES.html.sh (Unicode string functions): Add the new modules.
49080
49081         * modules/uniconv/u32-strconv-to-locale: New file.
49082         * lib/uniconv/u32-strconv-to-locale.c: New file.
49083
49084         * modules/uniconv/u16-strconv-to-locale: New file.
49085         * lib/uniconv/u16-strconv-to-locale.c: New file.
49086
49087         * modules/uniconv/u8-strconv-to-locale: New file.
49088         * lib/uniconv/u8-strconv-to-locale.c: New file.
49089
49090         * modules/uniconv/u32-strconv-from-locale: New file.
49091         * lib/uniconv/u32-strconv-from-locale.c: New file.
49092
49093         * modules/uniconv/u16-strconv-from-locale: New file.
49094         * lib/uniconv/u16-strconv-from-locale.c: New file.
49095
49096         * modules/uniconv/u8-strconv-from-locale: New file.
49097         * lib/uniconv/u8-strconv-from-locale.c: New file.
49098
49099         * modules/uniconv/u32-strconv-to-enc: New file.
49100         * lib/uniconv/u32-strconv-to-enc.c: New file.
49101         * modules/uniconv/u32-strconv-to-enc-tests: New file.
49102         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
49103
49104         * modules/uniconv/u16-strconv-to-enc: New file.
49105         * lib/uniconv/u16-strconv-to-enc.c: New file.
49106         * lib/uniconv/u-strconv-to-enc.h: New file.
49107         * modules/uniconv/u16-strconv-to-enc-tests: New file.
49108         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
49109
49110         * modules/uniconv/u8-strconv-to-enc: New file.
49111         * lib/uniconv/u8-strconv-to-enc.c: New file.
49112         * modules/uniconv/u8-strconv-to-enc-tests: New file.
49113         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
49114
49115         * modules/uniconv/u32-strconv-from-enc: New file.
49116         * lib/uniconv/u32-strconv-from-enc.c: New file.
49117         * modules/uniconv/u32-strconv-from-enc-tests: New file.
49118         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
49119
49120         * modules/uniconv/u16-strconv-from-enc: New file.
49121         * lib/uniconv/u16-strconv-from-enc.c: New file.
49122         * modules/uniconv/u16-strconv-from-enc-tests: New file.
49123         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
49124
49125         * modules/uniconv/u8-strconv-from-enc: New file.
49126         * lib/uniconv/u8-strconv-from-enc.c: New file.
49127         * lib/uniconv/u-strconv-from-enc.h: New file.
49128         * modules/uniconv/u8-strconv-from-enc-tests: New file.
49129         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
49130
49131         * modules/uniconv/u32-conv-from-enc: New file.
49132         * lib/uniconv/u32-conv-from-enc.c: New file.
49133         * modules/uniconv/u32-conv-from-enc-tests: New file.
49134         * tests/uniconv/test-u32-conv-from-enc.c: New file.
49135
49136         * modules/uniconv/u16-conv-from-enc: New file.
49137         * lib/uniconv/u16-conv-from-enc.c: New file.
49138         * lib/uniconv/u-conv-from-enc.h: New file.
49139         * modules/uniconv/u16-conv-from-enc-tests: New file.
49140         * tests/uniconv/test-u16-conv-from-enc.c: New file.
49141
49142         * modules/uniconv/u8-conv-from-enc: New file.
49143         * lib/uniconv/u8-conv-from-enc.c: New file.
49144         * modules/uniconv/u8-conv-from-enc-tests: New file.
49145         * tests/uniconv/test-u8-conv-from-enc.c: New file.
49146
49147         * modules/uniconv/base: New file.
49148         * lib/uniconv.h: New file.
49149
49150 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
49151
49152         * doc/gnulib-tool.texi (Initial import): Update to match current
49153         behavior with strdup module.
49154         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
49155         * lib/memmem.h: Remove; all uses removed.  This is now done
49156         by <string.h>.
49157         * lib/mempcpy.h: Likewise.
49158         * lib/memrchr.h: Likewise.
49159         * lib/stpcpy.h: Likewise.
49160         * lib/stpncpy.h: Likewise.
49161         * lib/strcase.h: Likewise.
49162         * lib/strchrnul.h: Likewise.
49163         * lib/strdup.h: Likewise.
49164         * lib/strndup.h: Likewise.
49165         * lib/strnlen.h: Likewise.
49166         * lib/strpbrk.h: Likewise.
49167         * lib/strsep.h: Likewise.
49168         * lib/strstr.h: Likewise.
49169         * lib/strtok_r.h: Likewise.
49170         * lib/string_.h: New file.
49171         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
49172         Rely on <string.h> instead.
49173         * lib/canon-host.c: Likewise.
49174         * lib/chdir-long.c: Likewise.
49175         * lib/concatpath.c: Likewise.
49176         * lib/exclude.c: Likewise.
49177         * lib/fchdir.c: Likewise.
49178         * lib/getaddrinfo.c: Likewise.
49179         * lib/getcwd.c: Likewise.
49180         * lib/getsubopt.c: Likewise.
49181         * lib/glob.c: Likewise.
49182         * lib/hard-locale.c: Likewise.
49183         * lib/iconvme.c: Likewise.
49184         * lib/javacomp.c: Likewise.
49185         * lib/mempcpy.c: Likewise.
49186         * lib/memrchr.c: Likewise.
49187         * lib/regex_internal.h: Likewise.
49188         * lib/stpncpy.c: Likewise.
49189         * lib/strcasecmp.c: Likewise.
49190         * lib/strchrnul.c: Likewise.
49191         * lib/strdup.c: Likewise.
49192         * lib/striconv.c: Likewise.
49193         * lib/striconveh.c: Likewise.
49194         * lib/striconveha.c: Likewise.
49195         * lib/strncasecmp.c: Likewise.
49196         * lib/strndup.c: Likewise.
49197         * lib/strnlen.c: Likewise.
49198         * lib/strsep.c: Likewise.
49199         * lib/strstr.c: Likewise.
49200         * lib/strtok_r.c: Likewise.
49201         * lib/userspec.c: Likewise.
49202         * lib/w32spawn.h: Likewise.
49203         * lib/xstrndup.c: Likewise.
49204         * lib/mountlist.c (strstr): Remove decl.
49205         * m4/string_h.m4: New file.
49206         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
49207         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
49208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
49209         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
49210         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
49211         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
49212         Set REPLACE_STRCASECMP if necessary.
49213         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
49214         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
49215         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
49216         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
49217         HAVE_DECL_STRDUP if necessary.
49218         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
49219         since gl_FUNC_STRNDUP does that now.
49220         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
49221         Check for decl here...
49222         (gl_PREREQ_STRNLEN): ... not here.
49223         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
49224         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
49225         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
49226         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
49227         necessary.
49228         * modules/string: New file.
49229         * modules/memmem (Files): Remove special-purpose include file.
49230         (Depends-on): Add string.
49231         (Include): Include <string.h>, not the removed file.
49232         * modules/mempcpy: Likewise.
49233         * modules/memrchr: Likewise.
49234         * modules/stpcpy: Likewise.
49235         * modules/stpncpy: Likewise.
49236         * modules/strcase: Likewise.
49237         * modules/strchrnul: Likewise.
49238         * modules/strdup: Likewise.
49239         * modules/strndup: Likewise.
49240         * modules/strnlen: Likewise.
49241         * modules/strpbrk: Likewise.
49242         * modules/strsep: Likewise.
49243         * modules/strstr: Likewise.
49244         * modules/strtok_r: Likewise.
49245         * tests/test-dirname.c: Don't include "strdup.h", since
49246         <string.h> now suffices.
49247         * tests/test-memmem.c: Don't include "memmem.h", since
49248         <string.h> now suffices.
49249
49250 2007-01-25  Bruno Haible  <bruno@clisp.org>
49251
49252         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
49253         *resultp is 0.
49254
49255         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
49256         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
49257         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
49258         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
49259
49260         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
49261         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
49262         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
49263         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
49264         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
49265         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
49266
49267 2007-01-24  Bruno Haible  <bruno@clisp.org>
49268
49269         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
49270         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
49271         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
49272         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
49273         gl_FUNC_FTS_CORE.
49274         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
49275         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
49276         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49277         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
49278         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
49279         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
49280         gl_FUNC_FCHOWNAT.
49281         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
49282         gl_FUNC_STRFTIME.
49283         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
49284         Reported by Ralf Wildenhues.
49285
49286 2007-01-24  Bruno Haible  <bruno@clisp.org>
49287
49288         Drop AC_REQUIRE calls that are redundant with the module dependencies.
49289         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
49290         gl_GETADDRINFO.
49291         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
49292         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
49293         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
49294
49295 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
49296
49297         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
49298         Don't use 'exit'; just return from 'main'.
49299         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
49300
49301         * lib/fnmatch_.h: Readjust white space and comments to match
49302         glibc, to avoid spurious diffs.
49303
49304 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49305
49306         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
49307         2004-12-01 change by Jakub Jelinek, since this code won't compile
49308         if !LIBC.  Problem reported by Bob Proulx.
49309
49310 2007-01-23  Bruno Haible  <bruno@clisp.org>
49311
49312         * lib/striconveh.c: Include c-strcaseeq.h.
49313         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
49314         * modules/striconveh (Depends-on): Add c-strcaseeq.
49315
49316 2007-01-23  Bruno Haible  <bruno@clisp.org>
49317
49318         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
49319
49320         * modules/c-strcaseeq: New file.
49321         * lib/c-strcaseeq.h: New file.
49322
49323         * modules/streq: New file.
49324         * lib/streq.h: New file.
49325
49326 2007-01-23  Bruno Haible  <bruno@clisp.org>
49327
49328         * modules/striconveha-tests: New file.
49329         * tests/test-striconveha.c: New file.
49330
49331         * lib/striconveha.h: Include <stdbool.h>.
49332         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
49333         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
49334         (mem_iconveha_notranslit): Renamed from mem_iconveha.
49335         (mem_iconveha): New function.
49336         (str_iconveha_notranslit): Renamed from str_iconveha.
49337         (str_iconveha): New function.
49338         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
49339         c-strcase.
49340
49341 2007-01-23  Bruno Haible  <bruno@clisp.org>
49342
49343         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
49344         encodings without forgiving before trying any encoding with handler.
49345         (str_iconveha): Try all encodings without forgiving before trying any
49346         encoding with handler.
49347
49348 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49349
49350         Import the following changes from libc.
49351
49352         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49353
49354         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
49355
49356         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49357
49358         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
49359         normal_bracket label.
49360
49361         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
49362
49363         [BZ #361]
49364         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
49365         to normal_bracket after fetching the next character.
49366
49367 2007-01-22  Bruno Haible  <bruno@clisp.org>
49368
49369         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
49370         argument.
49371         * lib/striconveh.c (iconv_carefully_1): New function.
49372         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
49373         argument.
49374         (str_cd_iconveh): Update.
49375         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
49376         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
49377         * tests/test-striconveh.c (MAGIC): New macro.
49378         (new_offsets): New function.
49379         (main): Test call with and without offsets.
49380
49381 2007-01-22  Bruno Haible  <bruno@clisp.org>
49382
49383         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
49384         * modules/sys_select (Makefile.am): Likewise.
49385         * modules/sys_socket (Makefile.am): Likewise.
49386         * modules/sys_time (Makefile.am): Likewise.
49387
49388 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49389
49390         * modules/gettimeofday (License): Change from GPL to LGPL, since
49391         gettimeofday is a library function.
49392
49393 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49394
49395         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
49396
49397 2007-01-21  Bruno Haible  <bruno@clisp.org>
49398
49399         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
49400
49401 2007-01-21  Bruno Haible  <bruno@clisp.org>
49402
49403         * modules/striconveha: New file.
49404         * lib/striconveha.h: New file.
49405         * lib/striconveha.c: New file.
49406         * MODULES.html.sh (Internationalization functions): Add striconveha.
49407         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49408         string.
49409         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49410
49411 2007-01-21  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49414         * lib/striconveh.c (str_iconveh): Likewise.
49415
49416 2007-01-21  Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/striconveh.h (mem_iconveh): New declaration.
49419         * lib/striconveh.c (mem_iconveh): New function.
49420         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49421
49422 2007-01-21  Bruno Haible  <bruno@clisp.org>
49423
49424         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49425
49426         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49427         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49428         original result buffer.
49429         (str_cd_iconveh): Update.
49430         * tests/test-striconveh.c (main): Update.
49431
49432         * lib/striconv.h (mem_cd_iconv): Change specification.
49433         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49434         result buffer.
49435         (str_cd_iconv): Update.
49436         * tests/test-striconv.c (main): Update.
49437
49438 2007-01-21  Bruno Haible  <bruno@clisp.org>
49439
49440         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49441
49442 2007-01-20  Jim Meyering  <jim@meyering.net>
49443
49444         * lib/userspec.c (parse_with_separator): If a user or group string
49445         starts with "+", skip the corresponding name-to-ID look-up, since
49446         such a look-up must fail: user and group names may not include "+".
49447
49448 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49449
49450         * lib/poll.c: Include sys/time.h and time.h unconditionally,
49451         since we now assume the sys_time module.
49452         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
49453         check for sys/time.h; no longer needed.
49454         * modules/poll (Depends-on): Depend on sys_time.
49455
49456 2007-01-18  Bruno Haible  <bruno@clisp.org>
49457
49458         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
49459         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49460
49461         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49462         gettimeofday.
49463
49464         * tests/test-gettimeofday.c: Include <time.h>.
49465         (dummy): Remove variable.
49466
49467         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49468         gl_HEADER_SYS_TIME_H.
49469         (gl_HEADER_SYS_TIME_H): New macro.
49470
49471         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49472         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49473         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49474         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49475         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49476         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49477         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49478         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49479         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49480         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49481         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49482
49483         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49484         last change; it caused a compilation error when cross-compiling to
49485         Cygwin.
49486
49487 2007-01-18  Jim Meyering  <jim@meyering.net>
49488
49489         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49490         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49491         than the race-prone "test -d sys || mkdir sys".
49492         (configure.ac): Use AC_PROG_MKDIR_P.
49493         * modules/sys_select: Likewise.
49494         * modules/sys_socket: Likewise.
49495         * modules/sys_time: Likewise.
49496
49497 2007-01-18  Eric Blake  <ebb9@byu.net>
49498
49499         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49500         replace gettimeofday.
49501         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49502         name, to avoid infinite recursion.
49503
49504 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49505
49506         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49507         module sys_time.
49508         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49509         assume timespec.h defines struct timeval.
49510         * lib/settime.c: Likewise.
49511         * lib/utimens.c: Likewise.
49512         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49513         since we now assume the gettimeofday module.
49514         * lib/tempname.c (__gen_tempname): Likewise.
49515         * lib/gettimeofday.h: Remove.
49516         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49517         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49518         Include <time.h>, for 'time()'.
49519         (localtime_buffer_addr): Also use this workaround if
49520         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49521         to simplify the uses.  All uses changed.
49522         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49523         that #undef is inside {}, and 'const' follows type name consistently.
49524         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49525         (gettimeofday): Do not use the maximum possible value for
49526         tv->tv_usec, since that might break usages other than ls.c.
49527         Instead, we'll leave ls.c alone.  This undoes today's patch
49528         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49529         we've never observed the problem but might as well keep the
49530         canary.
49531         * lib/nanosleep.c: Include timespec.h first, for interface check.
49532         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49533         now assume the sys_time module.
49534         * lib/tempname.c: Likewise.
49535         * lib/timespec.h: Likewise.
49536         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49537         needed.
49538         * lib/strftime.c: Likewise.
49539         * lib/timespec.h: Likewise.
49540         * lib/posixtm.c: Include posixtm.h first, for interface check.
49541         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49542         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49543         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49544         * lib/sys_time_.h: New file.
49545         * lib/timespec.h (struct timespec): Use long int, not long.
49546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49547         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49548         Remove obsolescent call to AC_HEADER_TIME.
49549         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49551         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49552         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49553         Likewise.
49554         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49555         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49557         into the sys_time module.  Check for gettimeofday just once.
49558         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49559         for gettimeofday signature to just check the signature.  Merely
49560         compile it, since linking doesn't test signature.  Improve test for
49561         whether gettimeofday.o is actually needed.
49562         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49563         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49564         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49565         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49566         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49567         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49568         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49569         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49570         than worrying about sys/time.h.
49571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49572         Don't bother worrying about TIME_WITH_SYS_TIME.
49573         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49574         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49575         * m4/sys_time_h.m4: New file.
49576         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49577         Don't include sys/time.h.  Return from main rather than exiting.
49578         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49579         all uses changed.
49580         * modules/gethrxtime (Depends-on): Add sys_time.
49581         * modules/gettime (Depends-on): Likewise.
49582         * modules/gettimeofday (Depends-on): Likewise.
49583         * modules/nanosleep (Depends-on): Likewise.
49584         * modules/settime (Depends-on): Likewise.
49585         * modules/tempname (Depends-on): Likewise.
49586         * modules/utimens (Depends-on): Likewise.
49587         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49588         (Include:) Change back to <sys/time.h>.
49589         (Maintainer:) Add self.
49590         * modules/sys_time: New file.
49591         * modules/tempname (Depends-on): Add gettimeofday.
49592         * tests/test-gettimeofday.c: Include <sys/time.h>
49593         rather than gettimeofday.h.
49594
49595 2007-01-17  Bruno Haible  <bruno@clisp.org>
49596
49597         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49598         the license default to GPL.
49599         (func_create_testdir): Don't complain if a module is LGPL and its
49600         tests module depends on GPLed modules.
49601
49602 2007-01-17  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/gettimeofday.c (gettimeofday): Add code for the case
49605         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49606         maximum possible value for tv->tv_usec, rather than the minimum one.
49607
49608 2005-10-08  Martin Lambers  <marlam@marlam.de>
49609 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49610 2007-01-16  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49613         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49614         gl_FUNC_GETTIMEOFDAY.
49615         (Include): Add gettimeofday.h.
49616         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49617         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49618         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49619         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49620         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49621         * lib/gettimeofday.h: New file.
49622         * lib/gettimeofday.c: Include <sys/timeb.h>.
49623         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49624         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49625         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49626         fall back on time().
49627
49628         * tests/test-gettimeofday.c: New file.
49629         * modules/gettimeofday-tests: New file.
49630
49631 2007-01-16  Eric Blake  <ebb9@byu.net>
49632
49633         * modules/fnmatch (Depends-on): Depend on wchar.
49634         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49635         * m4/fnmatch.m4: Likewise.
49636         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49637         * m4/mbchar.m4: Likewise.
49638         * modules/mbswidth (Depends-on): Depend on wchar.
49639         * lib/mbswidth.c: Assume <wchar.h>.
49640         * m4/mbswidth.m4: Likewise.
49641         * modules/quotearg (Depends-on): Depend on wchar.
49642         * lib/quotearg.c: Assume <wchar.h>.
49643         * m4/quotearg.m4: Likewise.
49644         * modules/regex (Depends-on): Depend on wchar.
49645         * lib/regex_internal.h: Assume <wchar.h>.
49646         * m4/regex.m4: Likewise.
49647         * modules/stdint (Depends-on): Depend on wchar.
49648         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49649         * m4/stdint.m4: Likewise.
49650         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49651         * modules/strftime (Depends-on): Depend on wchar.
49652         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49653         * modules/strtol (Depends-on): Depend on wchar.
49654         * lib/strtol.c: Assume <wchar.h>.
49655         * modules/wcwidth (Depends-on): Depend on wchar.
49656         * lib/wcwidth.h: Assume <wchar.h>.
49657         * m4/wcwidth.m4: Likewise.
49658
49659 2007-01-16  Bruno Haible  <bruno@clisp.org>
49660
49661         * modules/csharpexec-script: New, created from...
49662         * modules/csharpexec: ... this.
49663
49664 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49665
49666         * modules/javaexec-script: New, created from...
49667         * modules/javaexec: ... this.
49668
49669 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49670
49671         * modules/poll (Dependencies): Add sys_select.
49672
49673 2007-01-15  Jim Meyering  <jim@meyering.net>
49674
49675         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49676         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49677         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49678         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49679
49680 2007-01-15  Bruno Haible  <bruno@clisp.org>
49681
49682         * modules/striconveh: New file.
49683         * lib/striconveh.h: New file.
49684         * lib/striconveh.c: New file.
49685         * MODULES.html.sh (Internationalization functions): Add striconveh.
49686
49687         * modules/striconveh-tests: New file.
49688         * tests/test-striconveh.c: New file.
49689
49690 2007-01-15  Bruno Haible  <bruno@clisp.org>
49691
49692         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49693         not from GNU libiconv or GNU libc.
49694
49695 2007-01-15  Bruno Haible  <bruno@clisp.org>
49696
49697         * doc/gnulib-intro.texi (Copyright): Explain the different license
49698         terms for module descriptions, autoconf macros, tests, documentation.
49699
49700 2007-01-14  Bruno Haible  <bruno@clisp.org>
49701
49702         * modules/striconv-tests: New file.
49703         * tests/test-striconv.c: New file.
49704
49705 2007-01-14  Bruno Haible  <bruno@clisp.org>
49706
49707         * modules/iconv-tests: New file.
49708         * tests/test-iconv.c: New file.
49709
49710 2007-01-14  Bruno Haible  <bruno@clisp.org>
49711
49712         * gnulib-tool (func_get_license): For test modules, use the license of
49713         the main module.
49714
49715 2007-01-14  Bruno Haible  <bruno@clisp.org>
49716
49717         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49718         if iconv is found to exist.
49719
49720 2007-01-14  Bruno Haible  <bruno@clisp.org>
49721
49722         * modules/c-ctype-tests: New file.
49723         * tests/test-c-ctype.c: New file.
49724
49725 2007-01-14  Bruno Haible  <bruno@clisp.org>
49726
49727         * modules/binary-io-tests: New file.
49728         * tests/test-binary-io.sh: New file.
49729         * tests/test-binary-io.c: New file.
49730
49731 2007-01-14  Bruno Haible  <bruno@clisp.org>
49732
49733         * modules/array-oset-tests: New file.
49734         * tests/test-array_oset.c: New file.
49735
49736 2007-01-14  Bruno Haible  <bruno@clisp.org>
49737
49738         * modules/array-list-tests: New file.
49739         * tests/test-array_list.c: New file.
49740
49741 2007-01-14  Bruno Haible  <bruno@clisp.org>
49742
49743         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49744         and make.
49745         Reported by Simon Josefsson in
49746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49747
49748 2007-01-14  Bruno Haible  <bruno@clisp.org>
49749
49750         * modules/allocsa-tests: New file.
49751         * tests/test-allocsa.c: New file.
49752
49753 2007-01-14  Bruno Haible  <bruno@clisp.org>
49754
49755         * modules/fchdir (Depends-on): Add absolute-header.
49756         * modules/unistd (Depends-on): Likewise.
49757
49758 2006-12-30  Bruno Haible  <bruno@clisp.org>
49759
49760         * modules/fchdir: New file.
49761         * modules/unistd (Files): Add lib/unistd_.h.
49762         (Makefile.am): Generate unistd.h from unistd_.h.
49763         * lib/fchdir.c: New file.
49764         * lib/dirent_.h: New file.
49765         * lib/unistd_.h: New file.
49766         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49767         * m4/fchdir.m4: New file.
49768         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49769         (gl_HEADER_UNISTD): Invoke it.
49770         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49771         function.
49772         * lib/backupfile.c (opendir, closedir): Undefine.
49773         * lib/chown.c (open, close): Undefine.
49774         * lib/clean-temp.c (open, close): Undefine.
49775         * lib/copy-file.c (open, close): Undefine.
49776         * lib/execute.c (open, close): Undefine.
49777         * lib/fsusage.c (open, close): Undefine.
49778         * lib/gc-gnulib.c (open, close): Undefine.
49779         * lib/getcwd.c (opendir, closedir): Undefine.
49780         * lib/glob.c (opendir, closedir): Undefine.
49781         * lib/javacomp.c (open, close): Undefine.
49782         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49783         * lib/openat-proc.c (open, close): Undefine.
49784         * lib/pagealign_alloc.c (open, close): Undefine.
49785         * lib/pipe.c (open, close): Undefine.
49786         * lib/progreloc.c (open, close): Undefine.
49787         * lib/savedir.c (opendir, closedir): Undefine.
49788         * lib/utime.c (open, close): Undefine.
49789         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49790
49791 2007-01-10  Bruno Haible  <bruno@clisp.org>
49792
49793         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49794
49795 2007-01-12  Eric Blake  <ebb9@byu.net>
49796
49797         Provide a robust <wchar.h>.  Further simplifications are now
49798         possible in other modules, but not included here.
49799         * modules/wchar: New module.
49800         * m4/wchar.m4: New file.
49801         * lib/wchar_.h: Likewise.
49802         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49803         of the new module.
49804         * MODULES.html.sh (Extended multibyte and wide character utilities):
49805         New section.
49806
49807 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49808
49809         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49810         to a reasonable default for memory allocation.
49811         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49812         file system that reports garbage st_size values for symlinks.
49813         Problem reported by Liyang Hu.
49814
49815 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49816
49817         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49818         Emacs .#* auto-save files).
49819
49820 2007-01-11  Bruno Haible  <bruno@clisp.org>
49821
49822         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49823         directory.
49824
49825 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49826
49827         Use @...@ consistently in lib/wctype_.h.
49828         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49829         on it being set to 1 or 0.
49830         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49831         go back to AC_SUBSTing it.
49832         * modules/wctype (Makefile.am): Undo previous change.
49833
49834 2007-01-10  Eric Blake  <ebb9@byu.net>
49835
49836         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49837         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49838         * modules/wctype (Makefile.am): Likewise.
49839         Reported by Chris McGuire.
49840
49841 2007-01-10  Jim Meyering  <jim@meyering.net>
49842
49843         fts.c: a small readability/maintainability improvement
49844         * lib/fts.c (fts_read): Make this code slightly more readable and
49845         maintainable by hoisting the "sp->fts_cur = p" assignments to
49846         immediately follow the statements that set P.  Derived from
49847         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49848
49849 2007-01-10  Eric Blake  <ebb9@byu.net>
49850
49851         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49852         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49854         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49855         Reported by Chris McGuire.
49856
49857 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49858
49859         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49860         in sed script.
49861
49862 2007-01-09  Bruno Haible  <bruno@clisp.org>
49863
49864         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49865         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49866         variables.
49867         (func_module): Use them.
49868
49869 2007-01-09  Bruno Haible  <bruno@clisp.org>
49870
49871         * modules/unistr/base: New file.
49872         * lib/unistr.h: New file.
49873
49874         * modules/unistr/u8-to-u16: New file.
49875         * lib/unistr/u8-to-u16.c: New file.
49876
49877         * modules/unistr/u8-to-u32: New file.
49878         * lib/unistr/u8-to-u32.c: New file.
49879
49880         * modules/unistr/u16-to-u8: New file.
49881         * lib/unistr/u16-to-u8.c: New file.
49882
49883         * modules/unistr/u16-to-u32: New file.
49884         * lib/unistr/u16-to-u32.c: New file.
49885
49886         * modules/unistr/u32-to-u8: New file.
49887         * lib/unistr/u32-to-u8.c: New file.
49888
49889         * modules/unistr/u32-to-u16: New file.
49890         * lib/unistr/u32-to-u16.c: New file.
49891
49892         * modules/unistr/u8-check: New file.
49893         * modules/unistr/u16-check: New file.
49894         * modules/unistr/u32-check: New file.
49895         * lib/unistr/u8-check.c: New file.
49896         * lib/unistr/u16-check.c: New file.
49897         * lib/unistr/u32-check.c: New file.
49898
49899         * modules/unistr/u8-chr: New file.
49900         * modules/unistr/u16-chr: New file.
49901         * modules/unistr/u32-chr: New file.
49902         * lib/unistr/u8-chr.c: New file.
49903         * lib/unistr/u16-chr.c: New file.
49904         * lib/unistr/u32-chr.c: New file.
49905
49906         * modules/unistr/u8-cmp: New file.
49907         * modules/unistr/u16-cmp: New file.
49908         * modules/unistr/u32-cmp: New file.
49909         * lib/unistr/u8-cmp.c: New file.
49910         * lib/unistr/u16-cmp.c: New file.
49911         * lib/unistr/u32-cmp.c: New file.
49912
49913         * modules/unistr/u8-cpy: New file.
49914         * modules/unistr/u16-cpy: New file.
49915         * modules/unistr/u32-cpy: New file.
49916         * lib/unistr/u8-cpy.c: New file.
49917         * lib/unistr/u16-cpy.c: New file.
49918         * lib/unistr/u32-cpy.c: New file.
49919         * lib/unistr/u-cpy.h: New file.
49920
49921         * modules/unistr/u8-cpy-alloc: New file.
49922         * modules/unistr/u16-cpy-alloc: New file.
49923         * modules/unistr/u32-cpy-alloc: New file.
49924         * lib/unistr/u8-cpy-alloc.c: New file.
49925         * lib/unistr/u16-cpy-alloc.c: New file.
49926         * lib/unistr/u32-cpy-alloc.c: New file.
49927         * lib/unistr/u-cpy-alloc.h: New file.
49928
49929         * modules/unistr/u8-endswith: New file.
49930         * modules/unistr/u16-endswith: New file.
49931         * modules/unistr/u32-endswith: New file.
49932         * lib/unistr/u8-endswith.c: New file.
49933         * lib/unistr/u16-endswith.c: New file.
49934         * lib/unistr/u32-endswith.c: New file.
49935         * lib/unistr/u-endswith.h: New file.
49936
49937         * modules/unistr/u8-mblen: New file.
49938         * modules/unistr/u16-mblen: New file.
49939         * modules/unistr/u32-mblen: New file.
49940         * lib/unistr/u8-mblen.c: New file.
49941         * lib/unistr/u16-mblen.c: New file.
49942         * lib/unistr/u32-mblen.c: New file.
49943
49944         * modules/unistr/u8-mbtouc: New file.
49945         * modules/unistr/u16-mbtouc: New file.
49946         * modules/unistr/u32-mbtouc: New file.
49947         * lib/unistr/u8-mbtouc.c: New file.
49948         * lib/unistr/u16-mbtouc.c: New file.
49949         * lib/unistr/u32-mbtouc.c: New file.
49950
49951         * modules/unistr/u8-mbtouc-safe: New file.
49952         * modules/unistr/u16-mbtouc-safe: New file.
49953         * modules/unistr/u32-mbtouc-safe: New file.
49954         * lib/unistr/u8-mbtouc-safe.c: New file.
49955         * lib/unistr/u16-mbtouc-safe.c: New file.
49956         * lib/unistr/u32-mbtouc-safe.c: New file.
49957
49958         * modules/unistr/u8-move: New file.
49959         * modules/unistr/u16-move: New file.
49960         * modules/unistr/u32-move: New file.
49961         * lib/unistr/u8-move.c: New file.
49962         * lib/unistr/u16-move.c: New file.
49963         * lib/unistr/u32-move.c: New file.
49964         * lib/unistr/u-move.h: New file.
49965
49966         * modules/unistr/u8-next: New file.
49967         * modules/unistr/u16-next: New file.
49968         * modules/unistr/u32-next: New file.
49969         * lib/unistr/u8-next.c: New file.
49970         * lib/unistr/u16-next.c: New file.
49971         * lib/unistr/u32-next.c: New file.
49972
49973         * modules/unistr/u8-prev: New file.
49974         * modules/unistr/u16-prev: New file.
49975         * modules/unistr/u32-prev: New file.
49976         * lib/unistr/u8-prev.c: New file.
49977         * lib/unistr/u16-prev.c: New file.
49978         * lib/unistr/u32-prev.c: New file.
49979
49980         * modules/unistr/u8-set: New file.
49981         * modules/unistr/u16-set: New file.
49982         * modules/unistr/u32-set: New file.
49983         * lib/unistr/u8-set.c: New file.
49984         * lib/unistr/u16-set.c: New file.
49985         * lib/unistr/u32-set.c: New file.
49986         * lib/unistr/u-set.h: New file.
49987
49988         * modules/unistr/u8-startswith: New file.
49989         * modules/unistr/u16-startswith: New file.
49990         * modules/unistr/u32-startswith: New file.
49991         * lib/unistr/u8-startswith.c: New file.
49992         * lib/unistr/u16-startswith.c: New file.
49993         * lib/unistr/u32-startswith.c: New file.
49994         * lib/unistr/u-startswith.h: New file.
49995
49996         * modules/unistr/u8-stpcpy: New file.
49997         * modules/unistr/u16-stpcpy: New file.
49998         * modules/unistr/u32-stpcpy: New file.
49999         * lib/unistr/u8-stpcpy.c: New file.
50000         * lib/unistr/u16-stpcpy.c: New file.
50001         * lib/unistr/u32-stpcpy.c: New file.
50002         * lib/unistr/u-stpcpy.h: New file.
50003
50004         * modules/unistr/u8-stpncpy: New file.
50005         * modules/unistr/u16-stpncpy: New file.
50006         * modules/unistr/u32-stpncpy: New file.
50007         * lib/unistr/u8-stpncpy.c: New file.
50008         * lib/unistr/u16-stpncpy.c: New file.
50009         * lib/unistr/u32-stpncpy.c: New file.
50010         * lib/unistr/u-stpncpy.h: New file.
50011
50012         * modules/unistr/u8-strcat: New file.
50013         * modules/unistr/u16-strcat: New file.
50014         * modules/unistr/u32-strcat: New file.
50015         * lib/unistr/u8-strcat.c: New file.
50016         * lib/unistr/u16-strcat.c: New file.
50017         * lib/unistr/u32-strcat.c: New file.
50018         * lib/unistr/u-strcat.h: New file.
50019
50020         * modules/unistr/u8-strchr: New file.
50021         * modules/unistr/u16-strchr: New file.
50022         * modules/unistr/u32-strchr: New file.
50023         * lib/unistr/u8-strchr.c: New file.
50024         * lib/unistr/u16-strchr.c: New file.
50025         * lib/unistr/u32-strchr.c: New file.
50026
50027         * modules/unistr/u8-strcmp: New file.
50028         * modules/unistr/u16-strcmp: New file.
50029         * modules/unistr/u32-strcmp: New file.
50030         * lib/unistr/u8-strcmp.c: New file.
50031         * lib/unistr/u16-strcmp.c: New file.
50032         * lib/unistr/u32-strcmp.c: New file.
50033
50034         * modules/unistr/u8-strcpy: New file.
50035         * modules/unistr/u16-strcpy: New file.
50036         * modules/unistr/u32-strcpy: New file.
50037         * lib/unistr/u8-strcpy.c: New file.
50038         * lib/unistr/u16-strcpy.c: New file.
50039         * lib/unistr/u32-strcpy.c: New file.
50040         * lib/unistr/u-strcpy.h: New file.
50041
50042         * modules/unistr/u8-strcspn: New file.
50043         * modules/unistr/u16-strcspn: New file.
50044         * modules/unistr/u32-strcspn: New file.
50045         * lib/unistr/u8-strcspn.c: New file.
50046         * lib/unistr/u16-strcspn.c: New file.
50047         * lib/unistr/u32-strcspn.c: New file.
50048         * lib/unistr/u-strcspn.h: New file.
50049
50050         * modules/unistr/u8-strdup: New file.
50051         * modules/unistr/u16-strdup: New file.
50052         * modules/unistr/u32-strdup: New file.
50053         * lib/unistr/u8-strdup.c: New file.
50054         * lib/unistr/u16-strdup.c: New file.
50055         * lib/unistr/u32-strdup.c: New file.
50056         * lib/unistr/u-strdup.h: New file.
50057
50058         * modules/unistr/u8-strlen: New file.
50059         * modules/unistr/u16-strlen: New file.
50060         * modules/unistr/u32-strlen: New file.
50061         * lib/unistr/u8-strlen.c: New file.
50062         * lib/unistr/u16-strlen.c: New file.
50063         * lib/unistr/u32-strlen.c: New file.
50064         * lib/unistr/u-strlen.h: New file.
50065
50066         * modules/unistr/u8-strmblen: New file.
50067         * modules/unistr/u16-strmblen: New file.
50068         * modules/unistr/u32-strmblen: New file.
50069         * lib/unistr/u8-strmblen.c: New file.
50070         * lib/unistr/u16-strmblen.c: New file.
50071         * lib/unistr/u32-strmblen.c: New file.
50072
50073         * modules/unistr/u8-strmbtouc: New file.
50074         * modules/unistr/u16-strmbtouc: New file.
50075         * modules/unistr/u32-strmbtouc: New file.
50076         * lib/unistr/u8-strmbtouc.c: New file.
50077         * lib/unistr/u16-strmbtouc.c: New file.
50078         * lib/unistr/u32-strmbtouc.c: New file.
50079
50080         * modules/unistr/u8-strncat: New file.
50081         * modules/unistr/u16-strncat: New file.
50082         * modules/unistr/u32-strncat: New file.
50083         * lib/unistr/u8-strncat.c: New file.
50084         * lib/unistr/u16-strncat.c: New file.
50085         * lib/unistr/u32-strncat.c: New file.
50086         * lib/unistr/u-strncat.h: New file.
50087
50088         * modules/unistr/u8-strncmp: New file.
50089         * modules/unistr/u16-strncmp: New file.
50090         * modules/unistr/u32-strncmp: New file.
50091         * lib/unistr/u8-strncmp.c: New file.
50092         * lib/unistr/u16-strncmp.c: New file.
50093         * lib/unistr/u32-strncmp.c: New file.
50094
50095         * modules/unistr/u8-strncpy: New file.
50096         * modules/unistr/u16-strncpy: New file.
50097         * modules/unistr/u32-strncpy: New file.
50098         * lib/unistr/u8-strncpy.c: New file.
50099         * lib/unistr/u16-strncpy.c: New file.
50100         * lib/unistr/u32-strncpy.c: New file.
50101         * lib/unistr/u-strncpy.h: New file.
50102
50103         * modules/unistr/u8-strnlen: New file.
50104         * modules/unistr/u16-strnlen: New file.
50105         * modules/unistr/u32-strnlen: New file.
50106         * lib/unistr/u8-strnlen.c: New file.
50107         * lib/unistr/u16-strnlen.c: New file.
50108         * lib/unistr/u32-strnlen.c: New file.
50109         * lib/unistr/u-strnlen.h: New file.
50110
50111         * modules/unistr/u8-strpbrk: New file.
50112         * modules/unistr/u16-strpbrk: New file.
50113         * modules/unistr/u32-strpbrk: New file.
50114         * lib/unistr/u8-strpbrk.c: New file.
50115         * lib/unistr/u16-strpbrk.c: New file.
50116         * lib/unistr/u32-strpbrk.c: New file.
50117         * lib/unistr/u-strpbrk.h: New file.
50118
50119         * modules/unistr/u8-strrchr: New file.
50120         * modules/unistr/u16-strrchr: New file.
50121         * modules/unistr/u32-strrchr: New file.
50122         * lib/unistr/u8-strrchr.c: New file.
50123         * lib/unistr/u16-strrchr.c: New file.
50124         * lib/unistr/u32-strrchr.c: New file.
50125
50126         * modules/unistr/u8-strspn: New file.
50127         * modules/unistr/u16-strspn: New file.
50128         * modules/unistr/u32-strspn: New file.
50129         * lib/unistr/u8-strspn.c: New file.
50130         * lib/unistr/u16-strspn.c: New file.
50131         * lib/unistr/u32-strspn.c: New file.
50132         * lib/unistr/u-strspn.h: New file.
50133
50134         * modules/unistr/u8-strstr: New file.
50135         * modules/unistr/u16-strstr: New file.
50136         * modules/unistr/u32-strstr: New file.
50137         * lib/unistr/u8-strstr.c: New file.
50138         * lib/unistr/u16-strstr.c: New file.
50139         * lib/unistr/u32-strstr.c: New file.
50140         * lib/unistr/u-strstr.h: New file.
50141
50142         * modules/unistr/u8-strtok: New file.
50143         * modules/unistr/u16-strtok: New file.
50144         * modules/unistr/u32-strtok: New file.
50145         * lib/unistr/u8-strtok.c: New file.
50146         * lib/unistr/u16-strtok.c: New file.
50147         * lib/unistr/u32-strtok.c: New file.
50148         * lib/unistr/u-strtok.h: New file.
50149
50150         * modules/unistr/u8-uctomb: New file.
50151         * modules/unistr/u16-uctomb: New file.
50152         * modules/unistr/u32-uctomb: New file.
50153         * lib/unistr/u8-uctomb.c: New file.
50154         * lib/unistr/u16-uctomb.c: New file.
50155         * lib/unistr/u32-uctomb.c: New file.
50156
50157         * MODULES.html.sh (Unicode string functions): Add the new modules.
50158
50159 2007-01-08  Bruno Haible  <bruno@clisp.org>
50160
50161         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
50162         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
50163         subdirectories.
50164
50165 2007-01-08  Karl Berry  <karl@gnu.org>
50166
50167         * doc/error.texi: mention that main() fns must set program_name
50168         when progname is used.
50169
50170 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
50171
50172         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
50173         WCTYPE_H is empty, for the benefit of builds from non-distclean
50174         directories.  Problem reported by Eric Blake in
50175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
50176
50177 2007-01-08  Bruno Haible  <bruno@clisp.org>
50178
50179         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
50180         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
50181         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
50182         PROVIDE_CANONICALIZE_FILENAME_MODE.
50183         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
50184
50185 2007-01-08  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
50188         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
50189         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
50190         * lib/fts.c: Likewise.
50191         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
50192
50193 2006-12-25  Bruno Haible  <bruno@clisp.org>
50194
50195         * modules/utf8-ucs4-safe: New file.
50196         * lib/utf8-ucs4-safe.h: New file.
50197         * lib/unistr/utf8-ucs4-safe.c: New file.
50198
50199         * modules/utf16-ucs4-safe: New file.
50200         * lib/utf16-ucs4-safe.h: New file.
50201         * lib/unistr/utf16-ucs4-safe.c: New file.
50202
50203         * MODULES.html.sh (Unicode string functions): Add the new modules.
50204
50205 2007-01-08  Bruno Haible  <bruno@clisp.org>
50206
50207         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
50208         (Depends-on): Add unitypes.
50209         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50210         (u8_mbtouc_aux): Move out to separate file.
50211         (u8_mbtouc): Use ucs4_t, uint8_t types.
50212         * lib/unistr/utf8-ucs4.c: New file.
50213
50214         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
50215         (Depends-on): Add unitypes.
50216         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50217         (u16_mbtouc_aux): Move out to separate file.
50218         (u16_mbtouc): Use ucs4_t, uint16_t types.
50219         * lib/unistr/utf16-ucs4.c: New file.
50220
50221         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
50222         (Depends-on): Add unitypes.
50223         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
50224         (u8_uctomb_aux): Move out to separate file.
50225         (u8_uctomb): Use ucs4_t, uint8_t types.
50226         * lib/unistr/ucs4-utf8.c: New file.
50227
50228         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
50229         (Depends-on): Add unitypes.
50230         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
50231         (u16_uctomb_aux): Move out to separate file.
50232         (u16_uctomb): Use ucs4_t, uint16_t types.
50233         * lib/unistr/ucs4-utf16.c: New file.
50234
50235 2006-12-25  Bruno Haible  <bruno@clisp.org>
50236
50237         * modules/unitypes: New file.
50238         * lib/unitypes.h: New file.
50239         * MODULES.html.sh (func_all_modules): New section "Unicode string
50240         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
50241         this section. Add unitypes.
50242
50243 2007-01-08  Bruno Haible  <bruno@clisp.org>
50244
50245         Avoid variable names that conflict with those from libtool.
50246         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
50247         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
50248         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
50249         library_names_spec to acl_library_names_spec, hardcode_* to
50250         acl_hardcode_*.
50251         Reported by Ralf Wildenhues.
50252
50253 2007-01-08  Bruno Haible  <bruno@clisp.org>
50254
50255         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
50256         definition.
50257         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
50258         definition.
50259         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
50260         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
50261         definition.
50262         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
50263         definition.
50264         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
50265         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
50266         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
50267         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
50268         definition.
50269         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
50270         definition.
50271         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
50272         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
50273         GC_USE_<algorithm>.
50274         * lib/gc-libgcrypt.c: Likewise.
50275         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
50276         * modules/gc-arctwo (configure.ac): Likewise.
50277         * modules/gc-des (configure.ac): Likewise.
50278         * modules/gc-hmac-md5 (configure.ac): Likewise.
50279         * modules/gc-hmac-sha1 (configure.ac): Likewise.
50280         * modules/gc-md2 (configure.ac): Likewise.
50281         * modules/gc-md4 (configure.ac): Likewise.
50282         * modules/gc-md5 (configure.ac): Likewise.
50283         * modules/gc-random (configure.ac): Likewise.
50284         * modules/gc-rijndael (configure.ac): Likewise.
50285         * modules/gc-sha1 (configure.ac): Likewise.
50286
50287 2007-01-08  Bruno Haible  <bruno@clisp.org>
50288
50289         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
50290         macro definition.
50291         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
50292         definition.
50293         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
50294         definition.
50295         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
50296         * modules/fcntl-safer (configure.ac): Likewise.
50297         * modules/fopen-safer (configure.ac): Likewise.
50298         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
50299         GNULIB_FWRITEERROR macro definition.
50300
50301 2007-01-08  Bruno Haible  <bruno@clisp.org>
50302
50303         * m4/gnulib-common.m4: New file.
50304         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
50305         (func_get_filelist): Add m4/gnulib-common.m4.
50306
50307 2007-01-08  Bruno Haible  <bruno@clisp.org>
50308
50309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
50310         command.
50311
50312 2007-01-08  Jim Meyering  <jim@meyering.net>
50313
50314         Use a more robust test for a "can't happen" condition.
50315         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
50316         narrowed the st_size value.  Presuming the "can't happen" condition
50317         is true, that narrowing could conceivably convert an invalid st_size
50318         value into a valid one.  Instead, use a change based on Matthew
50319         Woehlke's original patch.
50320
50321         Slight readability improvement: use an assert-like macro
50322         in place of literal "abort ()" uses.
50323         * lib/fts.c (fts_assert): Define.
50324         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
50325         Use this macro instead of a bare 'abort'.
50326
50327 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
50328
50329         Don't worry about using IRIX 5.3's wctype.h broken definitions;
50330         simply work around them.
50331         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
50332         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
50333         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
50334         declaring.
50335         Don't bother to define as macros, since the standard doesn't require it.
50336         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
50337         longer worry about IRIX 5.3.
50338         (HAVE_WCTYPE_CTMP_BUG): Remove.
50339
50340 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50341
50342         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
50343         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
50344         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50345         Problems reported by Georg Schwarz for IRIX 5.3.
50346
50347         * gnulib-tool (autoconf_minversion): Take the maximum version number
50348         found, not the minimum.  Problem reported by James Youngman.
50349
50350 2007-01-03  Karl Berry  <karl@gnu.org>
50351
50352         * doc/error.texi: new file, explaining interaction with progname.
50353         * doc/gnulib.texi: include it.  Update copyright.
50354
50355 2007-01-03  Simon Josefsson  <simon@josefsson.org>
50356
50357         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
50358         AC_CANONICAL_HOST, to improve autobuild outputs.
50359
50360 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
50361             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50362
50363         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
50364         sockets, server sockets, and other file descriptors.  Count errors
50365         to compute the return value.  Reorder the code a bit to be easier
50366         to follow.  Don't set event bits that were not requested (except
50367         POLLERR and POLLHUP).
50368
50369 2007-01-01  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
50372
50373 2007-01-03  Jim Meyering  <jim@meyering.net>
50374
50375         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
50376
50377 2007-01-02  Bruno Haible  <bruno@clisp.org>
50378
50379         * modules/settime (Include): Require timespec.h.
50380         * modules/nanosleep (Include): Likewise.
50381
50382 2007-01-01  Bruno Haible  <bruno@clisp.org>
50383
50384         * gnulib-tool (func_emit_copyright_notice): Bump year.
50385         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
50386
50387 2007-01-01  Bruno Haible  <bruno@clisp.org>
50388
50389         Improve support for OpenBSD.
50390         * build-aux/config.rpath (libname_spec): Export.
50391         (library_names_spec): New variable. Export.
50392         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
50393         library_names_spec from the config.rpath output. Locate shared library
50394         through the name pattern in library_names_spec.
50395
50396 2007-01-01  Eric Blake  <ebb9@byu.net>
50397
50398         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
50399
50400 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
50401
50402         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
50403         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
50404         assume the C locale, and avoid an "eval" that could cause trouble.
50405         Problem with SORT reported by Bob Proulx.
50406
50407         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50408         Define.  Trivial patch from Henning Nielsen Lund, originally
50409         sent to bug-grep@gnu.org today.
50410
50411 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50412
50413         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50414         struct stat.  Problem reported by Henning Nielsen Lund.
50415         * lib/acl.c: Include acl.h first, to check interface.  Don't
50416         bother to include sys/types.h and sys/stat.h again.
50417
50418 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50419
50420         Import the following change from libc; problem reported by
50421         Sven Verdoolaege.
50422
50423         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50424
50425         [BZ #1373]
50426         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50427
50428 2006-12-28  Jim Meyering  <jim@meyering.net>
50429
50430         * build-aux/announce-gen: Do not assume that the package
50431         builds any of tar.gz, tar.bz2, and .xdelta files.
50432         Suggestion from Simon Josefsson.
50433
50434 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50435
50436         * modules/announce-gen: New file.
50437
50438 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50439
50440         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50441         handles its gotchas now.
50442         * lib/mbswidth.c: Likewise.
50443         * lib/wcwidth.h: Likewise.
50444         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50445         and iswcntrl; the wctype module does this stuff now.
50446         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50448         * modules/mbchar (Depends-on): Add wctype.
50449         * modules/mbswidth (Depends-on): Likewise.
50450         * modules/wcwidth (Depends-on): Likewise.
50451
50452 2006-12-27  Eric Blake  <ebb9@byu.net>
50453
50454         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
50455         module uses more than what <wctype.h> is required to provide.
50456
50457 2006-12-26  Eric Blake  <ebb9@byu.net>
50458
50459         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50460
50461 2006-12-26  Eric Blake  <ebb9@byu.net>
50462
50463         * modules/absolute-header: New module.
50464         * modules/fcntl (Depends-on): Depend on it.
50465         * modules/inttypes (Depends-on): Likewise.
50466         * modules/stdint (Depends-on): Likewise.
50467         * modules/sys_stat (Depends-on): Likewise.
50468         * modules/wctype (Depends-on): Likewise.
50469         * MODULES.html.sh (Support for building libraries and
50470         executables): Document it.
50471
50472 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50473
50474         * gnulib-tool (SED): Remove, undoing previous change.
50475         The problem was that it broke coreutils on Solaris, because
50476         "sed --posix" leaked into a makefile.
50477         (sed): New alias, if 'alias' and GNU sed.
50478
50479 2006-12-24  Jim Meyering  <jim@meyering.net>
50480
50481         Work around an fchownat bug in glibc-2.4:
50482         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50483         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50484         in spite of the -P option.
50485         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50486         New macros.
50487         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50488         * modules/openat (Files): Add lib/fchownat.c.
50489         * lib/openat.c (fchownat): Don't define here.  Move to...
50490         * lib/fchownat.c: ...this new file.
50491
50492 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50493
50494         Fix bug reported by Bruno Haible in
50495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50496         where quotearg.c didn't compile on Mac OS X 10.2 because it
50497         lacks <wchar.h> and wint_t.
50498         * lib/wctype_.h (__wctype_wint_t): New type.
50499         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50500         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50501         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50502         Arg is now of type __wctype_wint_t, not wint_t.
50503         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50504         substitute HAVE_WINT_T.
50505         * modules/wctype (Files): Add m4/wint_t.m4.
50506         (wctype.h): Substitute HAVE_WINT_T.
50507
50508 2006-12-23  Bruno Haible  <bruno@clisp.org>
50509
50510         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50511
50512 2006-12-23  Bruno Haible  <bruno@clisp.org>
50513
50514         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50515         S_ISLNK.
50516         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50517         mingw.
50518
50519 2006-12-22  Bruno Haible  <bruno@clisp.org>
50520
50521         * lib/copy-file.c: Include acl.h.
50522         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50523         Close the file descriptors only after being done with copy_acl.
50524         * modules/copy-file (Depends-on): Add acl.
50525
50526 2006-12-22  Bruno Haible  <bruno@clisp.org>
50527
50528         * gnulib-tool (SED): New variable.
50529         Use $SED instead of sed everywhere.
50530
50531 2006-12-22  Bruno Haible  <bruno@clisp.org>
50532
50533         * modules/no-c++: New file.
50534         * m4/no-c++.m4: New file.
50535         * MODULES.html.sh (Support for building libraries and executables):
50536         Add no-c++.
50537
50538 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50539
50540         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50541         Include <limits.h>, and use its INT_MAX to rewrite the
50542         j loop so that it does not overflow 'int'.  Problem reported by
50543         Ralf Wildenhues in
50544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50545         Play it safe by shifting left by 1 rather than multiplying by 2,
50546         as GCC is less likely to optimize this away when the value
50547         is signed (when it assumes overflow leads to undefined behavior).
50548         Also, don't assume time_t uses two's complement.
50549
50550 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50551
50552         * MODULES.html.sh: New module wctype.
50553         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50554         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50555         <wctype.h>, since the new wctype module should fix this.
50556         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50557         the wctype module should arrange for it.
50558         * lib/regex_internal.h: Likewise.
50559         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50560         since the wctype module should handle this now.
50561         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50562         * modules/fnmatch (Depends-on): Add wctype.
50563         * modules/quotearg (Depends-on): Likewise.
50564         * modules/regex (Depends-on): Likewise.
50565
50566 2006-12-19  Bruno Haible  <bruno@clisp.org>
50567
50568         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50569         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50570
50571 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50572
50573         * modules/savewd (Depends-on): Fix dependency on fcntl.
50574
50575 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50576
50577         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50578         conforms to C99, rather than relying on the user's environment
50579         setting of STDINT_H.
50580
50581 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50582         and Eric Blake  <ebb9@byu.net>
50583
50584         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50585         This is more consistent with the other defines here.
50586         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50587         Port to z/OS.  Problem reported by Paul Gilmartin.
50588         Change local vars to use gl_ prefix rather than ac_.
50589         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50590         with other defines.
50591         * modules/double-slash-root: New module.
50592         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50593         (Depends-on): Add double-slash-root.
50594         * MODULES.html.sh (File system functions): Mention new module.
50595
50596 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50597
50598         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50599         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50600         This is for the benefit of gzip, which doesn't do i18n.
50601
50602 2006-12-12  Jim Meyering  <jim@meyering.net>
50603
50604         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50605         Reported by Andreas Schwab <schwab@suse.de>.
50606
50607 2006-12-12  Bruno Haible  <bruno@clisp.org>
50608
50609         Merge these changes.
50610         2006-09-05  Bruno Haible  <bruno@clisp.org>
50611         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50612         iconv_alloc succeeded.
50613         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50614         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50615         test for " && dest " at the end - dest is always != NULL there. Call
50616         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50617         with 2xNULL arguments, also to flush the state storage. Handle the
50618         IRIX iconv behaviour. Realloc the final result, to throw away unused
50619         memory.
50620
50621 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50622
50623         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50624         and fchmodat unconditionally, since glibc 2.4 has them.
50625         Problem reported by Arkadiusz Miskiewicz.
50626
50627 2006-12-10  Bruno Haible  <bruno@clisp.org>
50628
50629         * gnulib-tool (func_import): Show the include files only for those
50630         modules that are copied and specified.
50631         Reported by Karl Berry.
50632
50633 2006-12-08  Jim Meyering  <jim@meyering.net>
50634
50635         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50636         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50637
50638         * build-aux/announce-gen: Add two new options, both optional:
50639         --bootstrap-tools=TOOL_LIST
50640               a comma-separated list of tools, e.g.,
50641               autoconf,automake,bison,gnulib
50642         --gnulib-snapshot-date=DATE
50643               if gnulib is in the bootstrap tool list,
50644               then report this as the snapshot date.
50645               If not specified, use the current date/time.
50646               If you specify a date here, be sure it's UTC.
50647
50648 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50649
50650         * tests/test-argp-2.sh: Fix test to match actual output.
50651         (func_compare): Fix sed script to be portable.
50652
50653 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50654
50655         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50656         workaround for this case.  It is not autoconfigured now; offhand
50657         it's hard to see how to autoconfigure it.
50658
50659 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50660
50661         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50662         a directory that is about to be chowned.  Such a directory's
50663         initial file permissions should permit the owner only and this
50664         should not be changed until after the chown, since the group and
50665         other bits would be incorrect if they granted permission before
50666         the chown.
50667
50668         Fix porting problem for iswctype reported by Georg Schwarz in:
50669         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50670         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50671         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50673         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50674
50675 2006-12-03  Jim Meyering  <jim@meyering.net>
50676
50677         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50678         p->fts_statp may not yet be defined.
50679         (fts_read): Instead, set it in the caller, once p->fts_statp is
50680         sure to be defined, and corresponds to a top-level directory.
50681         This bug made du -x fail.  Here's the coreutils test case:
50682         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50683         Reported by Mike Frysinger.
50684
50685 2006-12-01  Jim Meyering  <jim@meyering.net>
50686
50687         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50688         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50689         Reported by Simon Josefsson.
50690
50691 2006-11-30  Jim Meyering  <jim@meyering.net>
50692
50693         * m4/warning.m4: Use the all-permissive copyright notice
50694         recommended by RMS (rather than LGPL).
50695         * m4/vararrays.m4: Likewise.
50696         * m4/flexmember.m4: Likewise.
50697
50698 2006-11-29  Bruno Haible  <bruno@clisp.org>
50699
50700         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50701         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50702         using +=.
50703         Reported by Simon Josefsson <simon@josefsson.org>.
50704
50705 2006-11-28  James Youngman <jay@gnu.org>
50706
50707         * README: Advise users that they might find the bug-gnulib@gnu.org
50708         and autotools-announce@gnu.org mailing lists useful.
50709
50710 2006-11-28  Bruno Haible  <bruno@clisp.org>
50711
50712         * m4/ptrdiff_max.m4: Remove file.
50713
50714 2006-11-21  Bruno Haible  <bruno@clisp.org>
50715
50716         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50717         _AC_COMPUTE_INT.
50718         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50719         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50720         _AC_COMPUTE_INT.
50721         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50722         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50723         _AC_COMPUTE_INT.
50724         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50725
50726 2006-11-28  Jim Meyering  <jim@meyering.net>
50727
50728         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50729         warning from "gcc -Wshadow" about shadowing the builtin.
50730
50731 2006-11-27  Bruno Haible  <bruno@clisp.org>
50732
50733         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50734         _AC_COMPUTE_INT.
50735         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50736
50737 2006-11-27  Bruno Haible  <bruno@clisp.org>
50738             Paul Eggert  <eggert@cs.ucla.edu>
50739
50740         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50741
50742 2006-11-26  Bruno Haible  <bruno@clisp.org>
50743
50744         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50745         noinst_LTLIBRARIES.
50746
50747 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50748             Bruno Haible  <bruno@clisp.org>
50749
50750         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50751         if compiling with "gcc -ansi".
50752
50753 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50754
50755         Fix some incompatibilities with gcc -ansi -pedantic.
50756         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50757         if compiling pedantically with GCC, unless it's C99 or later.
50758         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50759         it mishandles gcc -ansi -pedantic as well.
50760         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50761         if gcc -pedantic.
50762         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50763         initializers for struct if -pedantic, unless it's C99 or later.
50764
50765 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50766
50767         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50768         Don't close an fd more than once. Identical atimes indicate
50769         success, not failure.
50770
50771 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50772
50773         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50774
50775 2006-11-23  Jim Meyering  <jim@meyering.net>
50776
50777         * build-aux/announce-gen: New file.  From coreutils.
50778
50779 2006-11-22  Jim Meyering  <jim@meyering.net>
50780
50781         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50782         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50783         (fts_read): Use a temporary to narrow the overused st_size member
50784         before using it in a switch statement.  Reported by Matthew Woehlke.
50785
50786         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50787         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50788
50789 2006-11-20  Bruno Haible  <bruno@clisp.org>
50790
50791         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50792         changequote instead of pairs of brackets.
50793         Reported by Andreas Schwab <schwab@suse.de>.
50794
50795 2006-11-21  Jim Meyering  <jim@meyering.net>
50796
50797         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50798         so as to remain compatible with older compilers.
50799         Patch from Michael Deutschmann.
50800
50801 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50802
50803         * MODULES.html.sh (File system functions): Add openat.
50804
50805         * lib/openat.h (rpl_fstatat): New macro, if
50806         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50807         (fstatat): Define to rpl_fstatat under the same conditions,
50808         unless COMPILING_FSTATAT.
50809         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50810         seems to have the bug.
50811         * lib/fstatat.c: New file.
50812         * modules/openat (Files): Add it.
50813
50814 2006-11-20  Bruno Haible  <bruno@clisp.org>
50815
50816         * Makefile: New file.
50817
50818 2006-11-20  Jim Meyering  <jim@meyering.net>
50819
50820         The beginnings of syntax-related checks for gnulib.
50821         * lib/Makefile: New file.
50822         * lib/t-idcache: New script.  Ensure that the two halves of
50823         idcache.c stay in sync.
50824
50825         * lib/idcache.c: Adjust comments in user- and group- portions to
50826         be more accurate, and to be consistent with one another.
50827
50828 2006-11-20  Jim Meyering  <jim@meyering.net>
50829
50830         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50831         continue using the flexible array member (thus, this module performs
50832         half as many malloc calls), with the addition that...
50833         (getgroup, getuser): Consistently record a non-match via an empty
50834         "name" string, and map an empty string match to a NULL return value.
50835         * modules/idcache (Depends-on): Re-add flexmember.
50836
50837         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50838         (getuidbyname, getgroup, getgidbyname): Likewise.
50839
50840         Use cleaner syntax: NULL rather than 0.
50841         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50842
50843 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50844
50845         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50846         It mishandled the case where the group was missing.
50847         Problem reported by Greg Schafer.
50848         * modules/idcache: Likewise.
50849
50850 2006-11-18  Jim Meyering  <jim@meyering.net>
50851
50852         * check-module (%exempt_header): Add exception for some
50853         conditionally-included headers.
50854
50855         * modules/i-ring (Depends-on): Add verify.
50856         (License): Change to LGPL.
50857
50858 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50859
50860         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50861         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50862         and inttostr.h.  Use snprintf rather than uinttostr, so that
50863         LGPLed code doesn't depend on GPLed.
50864
50865 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50866
50867         * modules/inline (License): Change from GPL to LGPL.
50868
50869 2006-11-17  Jim Meyering  <jim@meyering.net>
50870
50871         * modules/d-type (License): Switch to LGPL.
50872
50873 2006-11-15  Bruno Haible  <bruno@clisp.org>
50874
50875         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50876
50877 2006-11-15  Eric Blake  <ebb9@byu.net>
50878
50879         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50880         the module dependency.
50881
50882 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50883             Bruno Haible  <bruno@clisp.org>
50884
50885         * gnulib-tool (func_create_testdir): Add license consistency check.
50886
50887 2006-11-15  Eric Blake  <ebb9@byu.net>
50888
50889         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50890         random "(cached)" in configure output.
50891
50892 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50893
50894         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50895         test for conforming inttypes.h is both announced and cached.
50896
50897         * MODULES.html.sh (seen_modules, seen_files): New variables.
50898         (func_module): Rewrite to use a few less gnulib-tool and sed
50899         invocations.  Avoid a couple of quadratic algorithms for ...
50900         (missed_modules, missed_files): ... these, with ...
50901         (func_append, func_tmpdir): ... these new functions, from
50902         gnulib-tool.  Analogously, install traps for cleanup.
50903
50904         * tests/test-gc.c (main): Remove unused variables.
50905         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50906
50907 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50908
50909         * modules/inttostr (License): Change to LGPL.
50910
50911 2006-11-14  Eric Blake  <ebb9@byu.net>
50912
50913         * modules/tempname (License): Change to LGPL.
50914
50915 2006-11-14  Eric Blake  <ebb9@byu.net>
50916
50917         * doc/functions.texi (Function Portability): *printf functions on
50918         Cygwin now understand all POSIX size specifiers.
50919
50920 2006-11-14  Bruno Haible  <bruno@clisp.org>
50921
50922         * modules/c-ctype (License): Change to LGPL.
50923
50924 2006-11-12  Bruno Haible  <bruno@clisp.org>
50925
50926         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50927         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50928         for GNOME libraries, for which the include files are installed in
50929         subdirectories of $prefix/include.
50930
50931 2006-11-12  Bruno Haible  <bruno@clisp.org>
50932
50933         * m4/lib-link.m4: Require at least autoconf-2.54.
50934         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50935         name to underscores for the --with option.
50936
50937 2006-11-13  Bruno Haible  <bruno@clisp.org>
50938
50939         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50940         the tests directory.
50941         Reported by Ralf Wildenhues.
50942
50943 2006-11-13  Bruno Haible  <bruno@clisp.org>
50944
50945         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50946         (func_emit_initmacro_end): Undo the override here.
50947         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50948         Works around the famous automake error in coreutils.
50949
50950 2006-11-13  Eric Blake  <ebb9@byu.net>
50951
50952         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50953         element, not its node.
50954
50955 2006-11-12  Bruno Haible  <bruno@clisp.org>
50956
50957         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50958         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50959
50960 2006-11-12  Bruno Haible  <bruno@clisp.org>
50961
50962         * gnulib-tool: New option --local-symlink.
50963         (func_usage): Document it.
50964         (lsymbolic): New variable.
50965         (func_import, func_create_testdir): If --symlink was not specified,
50966         test whether --local-symlink was specified and the file comes from
50967         the local_gnulib_dir.
50968
50969 2006-11-12  Bruno Haible  <bruno@clisp.org>
50970
50971         * gnulib-tool (func_ln): New function.
50972         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50973
50974 2006-11-12  Bruno Haible  <bruno@clisp.org>
50975
50976         Finish support for source files in subdirectories.
50977         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50978         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50979         AUTOMAKE_OPTIONS.
50980         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50981
50982 2006-11-12  Bruno Haible  <bruno@clisp.org>
50983
50984         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50985         EXTRA_lib_SOURCES augmentation.
50986         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50987
50988 2006-11-12  Jim Meyering  <jim@meyering.net>
50989
50990         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50991         file descriptors.  This also averts a failure on systems with
50992         native openat support when a traversed directory lacks "x" access.
50993         * lib/fts_.h: Include "i-ring.h"
50994         (struct FTS) [fts_fd_ring]: New member.
50995         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50996         (FCHDIR): Add parentheses.
50997         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50998         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50999         When descending, rather than simply closing the previous
51000         fts_cwd_fd value, push that file descriptor onto the ring.
51001         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
51002         (fts_open): Initialize the new fd_ring member.
51003         (fts_close): Clear the ring.
51004         (fts_safe_changedir): When possible, use our new fd_ring to skip
51005         the diropen and fstat and dev/ino comparison that would normally
51006         accompany a virtual `chdir ("..")'.
51007
51008         * modules/fts (Depends-on): Add i-ring.
51009         * modules/i-ring: New module.
51010         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
51011         * m4/i-ring.m4: New file.
51012
51013 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51014
51015         * gnulib-tool (func_create_testdir): Fix replacement of
51016         `build-aux' in configure.ac.  Run autotools in gltests
51017         subdirectory.
51018         (func_create_testdir, func_create_megatestdir, test): There is
51019         no need for '--force' in most autotool invocations in a new
51020         tree.  Actually fail the whole test if any of the tools, or the
51021         configure or make stages fail.
51022
51023         Sync from Automake.
51024         * build-aux/gnupload: Revert last change.  Add pointer to upload
51025         instructions of the GNU Maintenance Instructions.
51026         Suggestion by Karl Berry.
51027
51028 2006-11-10  Jim Meyering  <jim@meyering.net>
51029
51030         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
51031
51032 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51033
51034         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
51035         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
51036         (bind_textdomain_codeset) [! ENABLE_NLS]:
51037         Evaluate all the arguments.  That way, callers get compatible behavior
51038         if the arguments have side effects.  Also, it avoids some GCC
51039         diagnostics in some cases; Joel E. Denny reported problems when Bison
51040         was configured with --enable-gcc-warnigs.
51041
51042 2006-11-10  Jim Meyering  <jim@meyering.net>
51043
51044         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
51045         relevant options in CFLAGS (like -O, -fno-inline) are taken into
51046         account.
51047
51048 2006-11-10  Jim Meyering  <jim@meyering.net>
51049
51050         * modules/inline: New file/module.
51051         * modules/xalloc (Files): Remove m4/inline.m4.
51052         (Depends-on): Add inline, instead.
51053         * modules/oset: Likewise.
51054         * modules/list: Likewise.
51055
51056 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51057
51058         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
51059         Problem reported by Matthew Woehlke.
51060
51061 2006-11-09  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/tempname.c (gen_tempname): Remove variant that invokes
51064         __gen_tempname.
51065         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
51066         __gen_tempname.
51067
51068 2006-11-08  Bruno Haible  <bruno@clisp.org>
51069
51070         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
51071         to 'yes' instead of 'cross-compiling'.
51072
51073 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
51074
51075         * lib/quotearg.h (quotearg_free): New decl.
51076         * lib/quotearg.c (quotearg_free): New function.
51077         (slot0, nslots, slotvec0, slotvec):
51078         Now file-scope so that quotearg_free can get at them.
51079
51080 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51081
51082         Sync from Automake.
51083         * build-aux/gnupload: Add missing 'gnu' to example URL.
51084         Report by Karl Berry.
51085
51086 2006-11-08  Bruno Haible  <bruno@clisp.org>
51087
51088         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
51089         Suggested by Paul Eggert.
51090
51091 2006-11-08  Jim Meyering  <jim@meyering.net>
51092
51093         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
51094         It's already included if !_LIBC.
51095         (fts_safe_changedir): Add a comment.
51096
51097 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51098
51099         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
51100         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
51101         Matthew Woehlke.
51102
51103         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
51104         definitions up, to avoid colliding with change below.
51105         (static_inline) [HAVE_INLINE]: New macro.
51106         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
51107         Provide extern decls when !HAVE_INLINE.  Do not define unless
51108         static_inline is defined, either by us or by xmalloc.c.  Use
51109         static_inline rather than static inline.
51110         (XCALLOC): Optimize sizeof(T) = 1 case.
51111         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
51112
51113 2006-11-07  Bruno Haible  <bruno@clisp.org>
51114
51115         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
51116         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
51117         AC_C_INLINE.
51118         * modules/xalloc (Files): Add m4/inline.m4.
51119
51120 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51121
51122         * README: Fix typo.
51123         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
51124         (Miscellanous Notes): ...from this.
51125
51126 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51127
51128         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
51129         Mention that offsetof should be used instead of sizeof.
51130         From Bruno Haible.
51131
51132 2006-11-07  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
51135
51136 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51137
51138         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51139         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
51140         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51141         (gl_tree_add_before, gl_tree_add_after):
51142         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
51143         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
51144         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51145         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
51146         (gl_linked_add_after, gl_linked_add_at): Likewise.
51147         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
51148         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51149         (gl_tree_add_before, gl_tree_add_after): Likewise.
51150         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
51151         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
51152         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51153
51154 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51155
51156         * lib/gl_oset.h: Use C comment style, not C++ comment style.
51157
51158 2006-11-06  Bruno Haible  <bruno@clisp.org>
51159
51160         * m4/inline.m4: New file.
51161         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
51162         * modules/list (Files): Add m4/inline.m4.
51163         * modules/oset (Files): Likewise.
51164
51165 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51166
51167         * lib/idcache.c: Include <stddef.h>, for offsetof.
51168         (struct userid.name): Change from char * to a flexible array member.
51169         All uses changed.
51170         * modules/idcache (Depends-on): Add flexmember.
51171
51172         * MODULES.html.sh (Core language properties): New module flexmember.
51173         * modules/flexmember, m4/flexmember.m4: New files.
51174
51175         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
51176         inline functions that are identical with the old xnmalloc_inline,
51177         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
51178         that we can avoid some unnecessary integer multiplications and
51179         divisions in the common case where the element size is known at
51180         compile time.
51181         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
51182         needed.
51183         (xnboundedmalloc): Remove.
51184         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
51185         arguments, for consistency with rest of this header.
51186         (xcharalloc): Rewrite using XNMALLOC.
51187         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
51188         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
51189         versions have been moved to lib/xalloc.h and renamed to be the
51190         non-*_inline versions.
51191         (xmalloc, xrealloc): Implement without reference to the xnmalloc
51192         and xnrealloc functions, since those functions are now inline and
51193         now call us.
51194         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
51195         renaming described above.
51196         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
51197         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
51198         captures the dependency in AC_C_INLINE.
51199
51200         New module canonicalize-lgpl, proposed by Charles Wilson in
51201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
51202         with a few small changes afterwards.
51203         * MODULES.html.sh (File system functions): New module
51204         canonicalize-lgpl.
51205         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
51206         and canonicalize_file_name.
51207         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
51208         * modules/canonicalize-lgpl: New files.
51209
51210 2006-11-05  Bruno Haible  <bruno@clisp.org>
51211
51212         * gnulib-tool (func_import, func_create_testdir): Create directories
51213         also for files in subdirectories of lib/.
51214
51215 2006-11-05  Bruno Haible  <bruno@clisp.org>
51216
51217         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
51218         ANSI C compliant.
51219
51220 2006-11-03  Bruno Haible  <bruno@clisp.org>
51221
51222         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51223         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
51224         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
51225         (xnboundedmalloc): New inline function.
51226         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
51227         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
51228         xmalloc.
51229         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
51230         xmalloc.
51231         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
51232         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
51233         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
51234         xmalloc.
51235         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51236         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
51237         xmalloc.
51238         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
51239         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51240         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
51241         xmalloc.
51242         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51243         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
51244         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51245         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
51246         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
51247         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
51248         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
51249
51250 2006-11-03  Bruno Haible  <bruno@clisp.org>
51251
51252         * lib/c-ctype.h [C++]: Define functions without name mangling.
51253         * lib/fwriteerror.h [C++]: Likewise.
51254         * lib/gcd.h [C++]: Likewise.
51255         * lib/linebreak.h [C++]: Likewise.
51256
51257 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
51260         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
51261         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
51262         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51263         Check for functions and headers just once.
51264         Check for declaration of canonicalize_file_name.
51265         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
51266
51267 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51268
51269         * gnulib-tool (func_import): Fix typo in actioncmd.
51270
51271 2006-11-02  Bruno Haible  <bruno@clisp.org>
51272
51273         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
51274         newline sequence in the Makefile.am snippet as a space, like "make"
51275         does.
51276         Reported by Roger Persson <perrog@gmail.com>.
51277
51278 2006-11-01  Bruno Haible  <bruno@clisp.org>
51279
51280         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
51281         already declared in <string.h>.
51282         * lib/strcase.h (strncasecmp): Don't declare it if yes.
51283
51284 2006-11-01  Bruno Haible  <bruno@clisp.org>
51285
51286         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
51287         * lib/strcase.h: Include <string.h>.
51288         (strcasecmp): Define to rpl_strcasecmp here.
51289
51290 2006-11-01  Bruno Haible  <bruno@clisp.org>
51291
51292         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
51293
51294 2006-11-01  Eric Blake  <ebb9@byu.net>
51295
51296         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
51297
51298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
51299
51300 2006-10-29  Bruno Haible  <bruno@clisp.org>
51301
51302         Make it compile in C++ mode.
51303         * lib/full-write.c (full_rw): Add a cast.
51304
51305 2006-11-01  Bruno Haible  <bruno@clisp.org>
51306
51307         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
51308         be POSIX compliant.
51309         Reported by Roger Persson <perrog@gmail.com>.
51310
51311 2006-11-01  Eric Blake  <ebb9@byu.net>
51312
51313         * lib/getopt_.h: Fix comments.
51314
51315 2006-10-31  Eric Blake  <ebb9@byu.net>
51316
51317         * modules/tmpdir (Depends-on): Add sys_stat.
51318         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
51319         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
51320         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
51321         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
51322         tempname.
51323
51324 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         Avoid some C++ diagnostics reported by Bruno Haible.
51327         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
51328         xmalloc.
51329         (quotearg_alloc): Use xcharalloc rather than xmalloc.
51330         (struct slotvec): Move to top level.
51331         (quotearg_n_options): Rewrite to avoid xmalloc.
51332         * lib/xalloc.h (xcharalloc): New function.
51333         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
51334         [defined __cplusplus]: Add function template that provides result
51335         type propagation.  This part of the change is from Bruno Haible.
51336
51337 2006-10-29  Bruno Haible  <bruno@clisp.org>
51338
51339         Make it compile in C++ mode.
51340         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
51341         * lib/strnlen1.c (strnlen1): Cast memchr result.
51342         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
51343         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51344         (create_temp_dir): Rename local variable 'template'.
51345         (compile_csharp_using_sscli): Add cast.
51346         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
51347         * lib/findprog.c (find_in_path): Likewise.
51348         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
51349         * lib/wait-process.c (register_slave_subprocess): Likewise.
51350
51351 2006-10-22  Bruno Haible  <bruno@clisp.org>
51352
51353         * modules/tsearch: New file.
51354         * lib/tsearch.h: New file.
51355         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
51356         * m4/tsearch.m4: New file.
51357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
51358
51359 2006-10-29  Eric Blake  <ebb9@byu.net>
51360
51361         * lib/arcfour.c: Assume config.h.
51362         * lib/arctwo.c: Likewise.
51363         * lib/base64.c: Likewise.
51364         * lib/check-version.c: Likewise.
51365         * lib/crc.c: Likewise.
51366         * lib/des.c: Likewise.
51367         * lib/gc-gnulib.c: Likewise.
51368         * lib/gc-libgcrypt.c: Likewise.
51369         * lib/gc-pbkdf2-sha1.c: Likewise.
51370         * lib/getaddrinfo.c: Likewise.
51371         * lib/getdelim.c: Likewise.
51372         * lib/getline.c: Likewise.
51373         * lib/hmac-md5.c: Likewise.
51374         * lib/hmac-sha1.c: Likewise.
51375         * lib/iconvme.c: Likewise.
51376         * lib/md2.c: Likewise.
51377         * lib/md4.c: Likewise.
51378         * lib/memxor.c: Likewise.
51379         * lib/read-file.c: Likewise.
51380         * lib/readline.c: Likewise.
51381         * lib/rijndael-alg-fst.c: Likewise.
51382         * lib/rijndael-api-fst.c: Likewise.
51383         * lib/xgetdomainname.c: Likewise.
51384
51385 2006-10-28  Eric Blake  <ebb9@byu.net>
51386
51387         * lib/xstrndup.c: Assume config.h.
51388
51389 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51390
51391         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
51392         stat-macros.h is now for our own macros, whereas stat_h is for
51393         macros in the <sys/stat.h> name space.
51394         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
51395         (STAT_MACROS_H): Remove.
51396         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
51397         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
51398         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
51399         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
51400         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
51401         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
51402         Move these macros to ...
51403         * lib/stat_.h: here.  Don't include stat-macros.h.
51404         * lib/canonicalize.c: Don't include stat-macros.h.
51405         * lib/chown.c: Likewise.
51406         * lib/euidaccess.c: Likewise.
51407         * lib/file-type.c: Likewise.
51408         * lib/filemode.c: Likewise.
51409         * lib/glob.c: Likewise.
51410         * lib/isapipe.c: Likewise.
51411         * lib/lchown.c: Likewise.
51412         * lib/lstat.c: Likewise.
51413         * lib/mkdir-p.c: Likewise.
51414         * lib/rmdir.c: Likewise.
51415         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51417         unless mkdir isn't declared, to speed up 'configure'.
51418         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51419         would define all the S_* symbols.
51420         * modules/canonicalize (Depends-on):
51421         Depend on sys_stat, not stat-macros.
51422         * modules/chown: Likewise.
51423         * modules/euidaccess: Likewise.
51424         * modules/filemode: Likewise.
51425         * modules/file-type: Likewise.
51426         * modules/glob: Likewise.
51427         * modules/isapipe: Likewise.
51428         * modules/lchown: Likewise.
51429         * modules/lstat: Likewise.
51430         * modules/mkancesdirs: Likewise.
51431         * modules/rmdir: Likewise.
51432         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51433         * modules/modechange: Likewise.
51434         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51435         (configure.ac): Remove gl_STAT_MACROS.
51436         * modules/sys_stat (Depends-on): Remove stat-macros.
51437
51438 2006-10-27  Bruno Haible  <bruno@clisp.org>
51439
51440         * m4/signed.m4: Remove file.
51441         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51442         invocation.
51443         * modules/vasnprintf (Files): Remove m4/signed.m4.
51444
51445 2006-10-27  Bruno Haible  <bruno@clisp.org>
51446
51447         Update to GNU gettext 0.16.
51448         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
51449         m4/inttypes-h.m4, m4/signed.m4.
51450         * m4/gettext.m4: Update to GNU gettext 0.16.
51451         * m4/intl.m4: New file, from GNU gettext.
51452         * m4/intldir.m4: New file, from GNU gettext.
51453         * config/srclist.txt: Update
51454
51455 2006-10-27  Eric Blake  <ebb9@byu.net>
51456
51457         * MODULES.html.sh: Document tempname.
51458         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
51459         dependencies.
51460         (Files): Move lib/tempname.c...
51461         * modules/tempname: ...to this new module.
51462         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51463         (gl_PREREQ_TEMPNAME): Move...
51464         * m4/tempname.m4: ...to this new file.
51465         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51466         * modules/sys_stat (Depends-on): Add stat-macros.
51467         * lib/stat_.h (includes): Pick up stat macros.
51468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51469         if stat macros are broken.
51470         * lib/tempname.c (includes): No need to include "stat-macros.h".
51471         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51472         (direxists, __path_search) [!_LIBC]: Don't compile these in
51473         gnulib; the tmpdir module covers that.
51474         * lib/tempname.h: New file.
51475
51476 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51477
51478         * COPYING: Explain how gnulib-tool converts licence headers.
51479         Almost all wording by Eric Blake.
51480
51481 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51482
51483         * lib/mbchar.h (is_basic_table): Make read-only.
51484         * lib/mbchar.c (is_basic_table): Likewise.
51485         Reported by John Darrington.
51486
51487 2006-10-25  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/progname.h (set_program_name): Undefine before defining.
51490
51491 2006-10-25  Bruno Haible  <bruno@clisp.org>
51492
51493         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51494         false for non-gcc C++ compilers.
51495         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51496
51497 2006-10-24  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51500         iconv implementations like Irix iconv.
51501
51502 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51503
51504         * modules/vararrays: New file.
51505         * m4/vararrays.m4: New file, taken from diffutils.
51506         * MODULES.html.sh: New module vararrays.
51507
51508 2006-10-24  Karl Berry  <karl@gnu.org>
51509
51510         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51511         Don't call GNU Unix.
51512
51513 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51514
51515         * users.txt: Add Libtool.
51516
51517         Sync from Libtool:
51518
51519         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51520
51521         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51522         to gnulib's policy of including config.h unconditionally.
51523
51524 2006-10-24  Bruno Haible  <bruno@clisp.org>
51525
51526         * modules/wcwidth (Files): Add m4/wint_t.m4.
51527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51528         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51529
51530 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51531
51532         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51533         to pacify GCC with some -W flags enabled.  Problem reported by
51534         Bruno Haible.
51535
51536 2006-10-24  Jim Meyering  <jim@meyering.net>
51537
51538         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51539         Reported by Karl Berry.
51540
51541 2006-10-23  Bruno Haible  <bruno@clisp.org>
51542
51543         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51544
51545 2006-10-24  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/gl_list.h: Use C comment style, not C++ comment style.
51548
51549 2006-10-23  Eric Blake  <ebb9@byu.net>
51550
51551         * lib/getaddrinfo.c (includes): Add missing include.
51552
51553 2006-10-23  Bruno Haible  <bruno@clisp.org>
51554             Paul Eggert  <eggert@cs.ucla.edu>
51555
51556         Ability to rename obstack_free.
51557         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51558         obstack_free.
51559         (obstack_free): Invoke the __obstack_free macro.
51560         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51561
51562 2006-10-23  Bruno Haible  <bruno@clisp.org>
51563             Paul Eggert  <eggert@cs.ucla.edu>
51564
51565         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51566         __argc, __argv from the declaration. (They are defined as macros on
51567         mingw.)
51568
51569 2006-10-22  Bruno Haible  <bruno@clisp.org>
51570
51571         * doc/gnulib-intro.texi: New file.
51572         * doc/gnulib.texi: Include it.
51573
51574 2006-10-21  Bruno Haible  <bruno@clisp.org>
51575
51576         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51577         "Introduction", "Miscellanous Notes", "Particular Modules".
51578
51579 2006-10-21  Bruno Haible  <bruno@clisp.org>
51580
51581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51582         Change mostlyclean-local rule to avoid sh syntax error from bash
51583         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51584
51585 2006-10-23  Jim Meyering  <jim@meyering.net>
51586
51587         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51588         in place of snprintf.
51589
51590         * modules/inttostr (Files): Add lib/uinttostr.c.
51591         * lib/uinttostr.c (inttostr): New file/function.
51592         * lib/inttostr.h (uinttostr): Declare.
51593         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51594         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51595         Add uinttostr.
51596         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51597
51598 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * lib/canonicalize.c (ELOOP): Define if not already defined.
51601         Problem reported by Bruno Haible in
51602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51603
51604 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51605
51606         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51607         Problem reported by Perry Smith and Ville Laurikari.
51608
51609         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51610         uses.
51611
51612 2006-10-19  Bruno Haible  <bruno@clisp.org>
51613
51614         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51615         for mingw.
51616
51617 2006-10-19  Bruno Haible  <bruno@clisp.org>
51618
51619         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51620         Needed for mingw.
51621
51622 2006-10-19  Bruno Haible  <bruno@clisp.org>
51623
51624         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51625
51626 2006-10-19  Bruno Haible  <bruno@clisp.org>
51627
51628         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51629         it.
51630
51631 2006-10-19  Bruno Haible  <bruno@clisp.org>
51632
51633         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51634         invocation.
51635
51636 2006-10-19  Bruno Haible  <bruno@clisp.org>
51637
51638         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51639         mountlist by default.
51640
51641 2006-10-16  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/c-strstr.c: Include c-strstr.h.
51644
51645 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51646
51647         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51648         in a slash.
51649
51650 2006-10-18  Bruno Haible  <bruno@clisp.org>
51651
51652         * lib/lock.h [C++]: Wrap definitions in extern "C".
51653
51654 2006-10-18  Bruno Haible  <bruno@clisp.org>
51655
51656         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51657         gl_LIBOBJS list.
51658
51659 2006-10-18  Bruno Haible  <bruno@clisp.org>
51660
51661         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51662
51663 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51664
51665         * lib/xstrtol.h: Include gettext.h.
51666         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51667         Problem reported by Eric Blake.
51668         * modules/xstrtol (Depends-on): Add gettext-h.
51669
51670 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51671
51672         * lib/strftime.c (advance): New macro.
51673         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51674         incomplete type, so you can't add 0 to it.  Problem and patch
51675         reported by Eelco Dolstra for dietlibc.
51676
51677 2006-10-18  Jim Meyering  <jim@meyering.net>
51678
51679         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51680         type for a local, and rename it: s/up/user_proc/.
51681
51682 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51683
51684         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51685         READ_UTMP_USER_PROCESS.
51686         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51687
51688 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51689
51690         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51691         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51692
51693 2006-10-17  Eric Blake  <ebb9@byu.net>
51694
51695         * lib/sigprocmask.c (sigprocmask): Fix typo.
51696
51697         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51698
51699         * modules/clean-temp (Makefile.am): Don't add to make output...
51700         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51701         config.h.
51702
51703 2006-10-17  Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51706         differently if DEFAULT_TEXT_DOMAIN is set.
51707
51708 2006-10-16  Bruno Haible  <bruno@clisp.org>
51709
51710         * lib/clean-temp.c: Include fwriteerror.h.
51711
51712 2006-10-16  Bruno Haible  <bruno@clisp.org>
51713
51714         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51715
51716 2006-10-16  Bruno Haible  <bruno@clisp.org>
51717
51718         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51719         * lib/sigprocmask.h: Include <sys/types.h>.
51720         (sigset_t): Use the system's definition if present.
51721
51722 2006-10-17  Eric Blake  <ebb9@byu.net>
51723
51724         * lib/xvasprintf.c (includes): Assume config.h.
51725         * lib/xasprintf.c (includes): Likewise.
51726
51727 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51728
51729         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51730         at least as wide as intmax_t.
51731
51732 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51733
51734         (Imported from Automake.)
51735         * build-aux/gnupload: Update to version 1.1 of directive file.
51736
51737 2006-10-16  Eric Blake  <ebb9@byu.net>
51738
51739         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51740         match Automake 1.10a.
51741
51742 2006-10-14  Bruno Haible  <bruno@clisp.org>
51743
51744         * modules/sigprocmask: New file.
51745         * lib/sigprocmask.h: New file.
51746         * lib/sigprocmask.c: New file.
51747         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51748         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51749         request sigprocmask.o.
51750         (gl_PREREQ_SIGPROCMASK): New macro.
51751         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51752         (Depends-on): Add sigprocmask.
51753         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51754         gt_SIGNALBLOCKING. Test for 'raise' only once.
51755         * lib/fatal-signal.c: Include sigprocmask.h.
51756         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51757         unblock_fatal_signals): Define always.
51758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51759         sigprocmask.
51760
51761 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51762
51763         Sync from Automake.
51764         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51765         which incorrectly sets the mode of an existing destination
51766         directory.  In some cases the unpatched install-sh could do the
51767         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51768         system.  We hope this is rare in practice, but it's clearly worth
51769         fixing.  Problem reported by Alex Unleashed in
51770         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51771         Also, don't bother to check for -m bugs unless we're using -m;
51772         suggested by Stepan Kasal.
51773
51774 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51775
51776         Sync from Automake.
51777         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51778         `-c' flag, so they appear at the same position as in %FASTDEP%
51779         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51780         which ignores unknown options only after the first non-option.
51781         Bug report against M4 by Nelson H. F. Beebe.
51782
51783 2006-10-13  Jim Meyering  <jim@meyering.net>
51784
51785         Fix a bug in yesterday's change.
51786         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51787         p->fts_statp->st_dev would be used uninitialized.
51788         Ensures that we always call fts_stat on the very first entry.
51789         Miklos Szeredi reported that find -xdev stopped working.
51790
51791 2006-10-12  Bruno Haible  <bruno@clisp.org>
51792
51793         * gnulib-tool (func_get_automake_snippet): Append an automatically
51794         computed EXTRA_DIST augmentation.
51795         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51796         * modules/alloca-opt (Makefile.am): Likewise.
51797         * modules/allocsa (Makefile.am): Likewise.
51798         * modules/arcfour (Makefile.am): Likewise.
51799         * modules/arctwo (Makefile.am): Likewise.
51800         * modules/argmatch (Makefile.am): Likewise.
51801         * modules/argz (Makefile.am): Likewise.
51802         * modules/atexit (Makefile.am): Likewise.
51803         * modules/backupfile (Makefile.am): Likewise.
51804         * modules/byteswap (Makefile.am): Likewise.
51805         * modules/c-strtod (Makefile.am): Likewise.
51806         * modules/c-strtold (Makefile.am): Likewise.
51807         * modules/calloc (Makefile.am): Likewise.
51808         * modules/canon-host (Makefile.am): Likewise.
51809         * modules/canonicalize (Makefile.am): Likewise.
51810         * modules/chdir-long (Makefile.am): Likewise.
51811         * modules/chdir-safer (Makefile.am): Likewise.
51812         * modules/check-version (Makefile.am): Likewise.
51813         * modules/chown (Makefile.am): Likewise.
51814         * modules/cloexec (Makefile.am): Likewise.
51815         * modules/close-stream (Makefile.am): Likewise.
51816         * modules/closeout (Makefile.am): Likewise.
51817         * modules/crc (Makefile.am): Likewise.
51818         * modules/csharpexec (Makefile.am): Likewise.
51819         * modules/cycle-check (Makefile.am): Likewise.
51820         * modules/des (Makefile.am): Likewise.
51821         * modules/dev-ino (Makefile.am): Likewise.
51822         * modules/dirfd (Makefile.am): Likewise.
51823         * modules/dirname (Makefile.am): Likewise.
51824         * modules/dup2 (Makefile.am): Likewise.
51825         * modules/eealloc (Makefile.am): Likewise.
51826         * modules/error (Makefile.am): Likewise.
51827         * modules/euidaccess (Makefile.am): Likewise.
51828         * modules/exclude (Makefile.am): Likewise.
51829         * modules/exitfail (Makefile.am): Likewise.
51830         * modules/fcntl-safer (Makefile.am): Likewise.
51831         * modules/fcntl (Makefile.am): Likewise.
51832         * modules/file-type (Makefile.am): Likewise.
51833         * modules/fileblocks (Makefile.am): Likewise.
51834         * modules/filemode (Makefile.am): Likewise.
51835         * modules/filenamecat (Makefile.am): Likewise.
51836         * modules/fnmatch (Makefile.am): Likewise.
51837         * modules/fopen-safer (Makefile.am): Likewise.
51838         * modules/fpending (Makefile.am): Likewise.
51839         * modules/fprintftime (Makefile.am): Likewise.
51840         * modules/free (Makefile.am): Likewise.
51841         * modules/fsusage (Makefile.am): Likewise.
51842         * modules/ftruncate (Makefile.am): Likewise.
51843         * modules/fts (Makefile.am): Likewise.
51844         * modules/gc-arcfour (Makefile.am): Likewise.
51845         * modules/gc-des (Makefile.am): Likewise.
51846         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51847         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51848         * modules/gc-md4 (Makefile.am): Likewise.
51849         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51850         * modules/gc-sha1 (Makefile.am): Likewise.
51851         * modules/gc (Makefile.am): Likewise.
51852         * modules/getaddrinfo (Makefile.am): Likewise.
51853         * modules/getcwd (Makefile.am): Likewise.
51854         * modules/getdelim (Makefile.am): Likewise.
51855         * modules/getdomainname (Makefile.am): Likewise.
51856         * modules/getgroups (Makefile.am): Likewise.
51857         * modules/gethostname (Makefile.am): Likewise.
51858         * modules/gethrxtime (Makefile.am): Likewise.
51859         * modules/getline (Makefile.am): Likewise.
51860         * modules/getloadavg (Makefile.am): Likewise.
51861         * modules/getlogin_r (Makefile.am): Likewise.
51862         * modules/getndelim2 (Makefile.am): Likewise.
51863         * modules/getopt (Makefile.am): Likewise.
51864         * modules/getpagesize (Makefile.am): Likewise.
51865         * modules/getpass-gnu (Makefile.am): Likewise.
51866         * modules/getpass (Makefile.am): Likewise.
51867         * modules/getsubopt (Makefile.am): Likewise.
51868         * modules/gettime (Makefile.am): Likewise.
51869         * modules/gettimeofday (Makefile.am): Likewise.
51870         * modules/getugroups (Makefile.am): Likewise.
51871         * modules/getusershell (Makefile.am): Likewise.
51872         * modules/glob (Makefile.am): Likewise.
51873         * modules/group-member (Makefile.am): Likewise.
51874         * modules/hard-locale (Makefile.am): Likewise.
51875         * modules/hash (Makefile.am): Likewise.
51876         * modules/hmac-md5 (Makefile.am): Likewise.
51877         * modules/hmac-sha1 (Makefile.am): Likewise.
51878         * modules/human (Makefile.am): Likewise.
51879         * modules/idcache (Makefile.am): Likewise.
51880         * modules/imaxabs (Makefile.am): Likewise.
51881         * modules/imaxdiv (Makefile.am): Likewise.
51882         * modules/inet_ntop (Makefile.am): Likewise.
51883         * modules/inet_pton (Makefile.am): Likewise.
51884         * modules/intprops (Makefile.am): Likewise.
51885         * modules/inttostr (Makefile.am): Likewise.
51886         * modules/inttypes (Makefile.am): Likewise.
51887         * modules/isapipe (Makefile.am): Likewise.
51888         * modules/javaversion (Makefile.am): Likewise.
51889         * modules/lchmod (Makefile.am): Likewise.
51890         * modules/lchown (Makefile.am): Likewise.
51891         * modules/localcharset (Makefile.am): Likewise.
51892         * modules/long-options (Makefile.am): Likewise.
51893         * modules/lstat (Makefile.am): Likewise.
51894         * modules/malloc (Makefile.am): Likewise.
51895         * modules/mathl (Makefile.am): Likewise.
51896         * modules/mbchar (Makefile.am): Likewise.
51897         * modules/md2 (Makefile.am): Likewise.
51898         * modules/md4 (Makefile.am): Likewise.
51899         * modules/md5 (Makefile.am): Likewise.
51900         * modules/memcasecmp (Makefile.am): Likewise.
51901         * modules/memchr (Makefile.am): Likewise.
51902         * modules/memcmp (Makefile.am): Likewise.
51903         * modules/memcoll (Makefile.am): Likewise.
51904         * modules/memcpy (Makefile.am): Likewise.
51905         * modules/memmem (Makefile.am): Likewise.
51906         * modules/memmove (Makefile.am): Likewise.
51907         * modules/mempcpy (Makefile.am): Likewise.
51908         * modules/memrchr (Makefile.am): Likewise.
51909         * modules/memset (Makefile.am): Likewise.
51910         * modules/memxor (Makefile.am): Likewise.
51911         * modules/mkancesdirs (Makefile.am): Likewise.
51912         * modules/mkdir-p (Makefile.am): Likewise.
51913         * modules/mkdir (Makefile.am): Likewise.
51914         * modules/mkdtemp (Makefile.am): Likewise.
51915         * modules/mkstemp (Makefile.am): Likewise.
51916         * modules/mktime (Makefile.am): Likewise.
51917         * modules/modechange (Makefile.am): Likewise.
51918         * modules/mountlist (Makefile.am): Likewise.
51919         * modules/nanosleep (Makefile.am): Likewise.
51920         * modules/obstack (Makefile.am): Likewise.
51921         * modules/openat (Makefile.am): Likewise.
51922         * modules/pagealign_alloc (Makefile.am): Likewise.
51923         * modules/pathmax (Makefile.am): Likewise.
51924         * modules/physmem (Makefile.am): Likewise.
51925         * modules/poll (Makefile.am): Likewise.
51926         * modules/posixtm (Makefile.am): Likewise.
51927         * modules/posixver (Makefile.am): Likewise.
51928         * modules/putenv (Makefile.am): Likewise.
51929         * modules/quote (Makefile.am): Likewise.
51930         * modules/quotearg (Makefile.am): Likewise.
51931         * modules/raise (Makefile.am): Likewise.
51932         * modules/read-file (Makefile.am): Likewise.
51933         * modules/readline (Makefile.am): Likewise.
51934         * modules/readlink (Makefile.am): Likewise.
51935         * modules/readtokens (Makefile.am): Likewise.
51936         * modules/readutmp (Makefile.am): Likewise.
51937         * modules/realloc (Makefile.am): Likewise.
51938         * modules/regex (Makefile.am): Likewise.
51939         * modules/rename-dest-slash (Makefile.am): Likewise.
51940         * modules/rename (Makefile.am): Likewise.
51941         * modules/rijndael (Makefile.am): Likewise.
51942         * modules/rmdir (Makefile.am): Likewise.
51943         * modules/rpmatch (Makefile.am): Likewise.
51944         * modules/safe-read (Makefile.am): Likewise.
51945         * modules/safe-write (Makefile.am): Likewise.
51946         * modules/same-inode (Makefile.am): Likewise.
51947         * modules/same (Makefile.am): Likewise.
51948         * modules/save-cwd (Makefile.am): Likewise.
51949         * modules/savedir (Makefile.am): Likewise.
51950         * modules/setenv (Makefile.am): Likewise.
51951         * modules/settime (Makefile.am): Likewise.
51952         * modules/sha1 (Makefile.am): Likewise.
51953         * modules/sig2str (Makefile.am): Likewise.
51954         * modules/snprintf (Makefile.am): Likewise.
51955         * modules/stat-macros (Makefile.am): Likewise.
51956         * modules/stat-time (Makefile.am): Likewise.
51957         * modules/stdbool (Makefile.am): Likewise.
51958         * modules/stdint (Makefile.am): Likewise.
51959         * modules/stdlib-safer (Makefile.am): Likewise.
51960         * modules/stpcpy (Makefile.am): Likewise.
51961         * modules/stpncpy (Makefile.am): Likewise.
51962         * modules/strcase (Makefile.am): Likewise.
51963         * modules/strcasestr (Makefile.am): Likewise.
51964         * modules/strchrnul (Makefile.am): Likewise.
51965         * modules/strcspn (Makefile.am): Likewise.
51966         * modules/strdup (Makefile.am): Likewise.
51967         * modules/strerror (Makefile.am): Likewise.
51968         * modules/strftime (Makefile.am): Likewise.
51969         * modules/strndup (Makefile.am): Likewise.
51970         * modules/strnlen (Makefile.am): Likewise.
51971         * modules/strpbrk (Makefile.am): Likewise.
51972         * modules/strsep (Makefile.am): Likewise.
51973         * modules/strstr (Makefile.am): Likewise.
51974         * modules/strtod (Makefile.am): Likewise.
51975         * modules/strtoimax (Makefile.am): Likewise.
51976         * modules/strtok_r (Makefile.am): Likewise.
51977         * modules/strtol (Makefile.am): Likewise.
51978         * modules/strtoll (Makefile.am): Likewise.
51979         * modules/strtoul (Makefile.am): Likewise.
51980         * modules/strtoull (Makefile.am): Likewise.
51981         * modules/strtoumax (Makefile.am): Likewise.
51982         * modules/strverscmp (Makefile.am): Likewise.
51983         * modules/sys_socket (Makefile.am): Likewise.
51984         * modules/sys_stat (Makefile.am): Likewise.
51985         * modules/sysexits (Makefile.am): Likewise.
51986         * modules/time_r (Makefile.am): Likewise.
51987         * modules/timegm (Makefile.am): Likewise.
51988         * modules/timespec (Makefile.am): Likewise.
51989         * modules/tmpfile-safer (Makefile.am): Likewise.
51990         * modules/trim (Makefile.am): Likewise.
51991         * modules/unistd-safer (Makefile.am): Likewise.
51992         * modules/unlinkdir (Makefile.am): Likewise.
51993         * modules/unlocked-io (Makefile.am): Likewise.
51994         * modules/userspec (Makefile.am): Likewise.
51995         * modules/utime (Makefile.am): Likewise.
51996         * modules/utimecmp (Makefile.am): Likewise.
51997         * modules/utimens (Makefile.am): Likewise.
51998         * modules/vasnprintf (Makefile.am): Likewise.
51999         * modules/vasprintf (Makefile.am): Likewise.
52000         * modules/vsnprintf (Makefile.am): Likewise.
52001         * modules/xalloc (Makefile.am): Likewise.
52002         * modules/xgetcwd (Makefile.am): Likewise.
52003         * modules/xnanosleep (Makefile.am): Likewise.
52004         * modules/xreadlink (Makefile.am): Likewise.
52005         * modules/xstrtod (Makefile.am): Likewise.
52006         * modules/xstrtol (Makefile.am): Likewise.
52007         * modules/xstrtold (Makefile.am): Likewise.
52008         * modules/yesno (Makefile.am): Likewise.
52009         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
52010
52011 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * modules/error (Makefile.am): Distribute files through
52014         EXTRA_DIST, not lib_SOURCES.
52015
52016 2006-10-12  Eric Blake  <ebb9@byu.net>
52017
52018         * modules/error (Makefile.am): Distribute files in /lib.
52019         * modules/obstack (Makefile.am): Likewise.
52020
52021 2006-10-12  Bruno Haible  <bruno@clisp.org>
52022
52023         * modules/acl (Makefile.am): Distribute all files in lib/ through
52024         EXTRA_DIST.
52025         * modules/arcfour (Makefile.am): Likewise.
52026         * modules/arctwo (Makefile.am): Likewise.
52027         * modules/argmatch (Makefile.am): Likewise.
52028         * modules/argz (Makefile.am): Likewise.
52029         * modules/atexit (Makefile.am): Likewise.
52030         * modules/backupfile (Makefile.am): Likewise.
52031         * modules/c-strtod (Makefile.am): Likewise.
52032         * modules/c-strtold (Makefile.am): Likewise.
52033         * modules/calloc (Makefile.am): Likewise.
52034         * modules/canon-host (Makefile.am): Likewise.
52035         * modules/canonicalize (Makefile.am): Likewise.
52036         * modules/chdir-long (Makefile.am): Likewise.
52037         * modules/chdir-safer (Makefile.am): Likewise.
52038         * modules/check-version (Makefile.am): Likewise.
52039         * modules/chown (Makefile.am): Likewise.
52040         * modules/cloexec (Makefile.am): Likewise.
52041         * modules/close-stream (Makefile.am): Likewise.
52042         * modules/closeout (Makefile.am): Likewise.
52043         * modules/crc (Makefile.am): Likewise.
52044         * modules/cycle-check (Makefile.am): Likewise.
52045         * modules/des (Makefile.am): Likewise.
52046         * modules/dirfd (Makefile.am): Likewise.
52047         * modules/dirname (Makefile.am): Likewise.
52048         * modules/dup2 (Makefile.am): Likewise.
52049         * modules/euidaccess (Makefile.am): Likewise.
52050         * modules/exclude (Makefile.am): Likewise.
52051         * modules/exitfail (Makefile.am): Likewise.
52052         * modules/fcntl-safer (Makefile.am): Likewise.
52053         * modules/file-type (Makefile.am): Likewise.
52054         * modules/fileblocks (Makefile.am): Likewise.
52055         * modules/filemode (Makefile.am): Likewise.
52056         * modules/filenamecat (Makefile.am): Likewise.
52057         * modules/fnmatch (Makefile.am): Likewise.
52058         * modules/fopen-safer (Makefile.am): Likewise.
52059         * modules/fpending (Makefile.am): Likewise.
52060         * modules/fprintftime (Makefile.am): Likewise.
52061         * modules/free (Makefile.am): Likewise.
52062         * modules/fsusage (Makefile.am): Likewise.
52063         * modules/ftruncate (Makefile.am): Likewise.
52064         * modules/fts (Makefile.am): Likewise.
52065         * modules/gc (Makefile.am): Likewise.
52066         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52067         * modules/getaddrinfo (Makefile.am): Likewise.
52068         * modules/getcwd (Makefile.am): Likewise.
52069         * modules/getdelim (Makefile.am): Likewise.
52070         * modules/getdomainname (Makefile.am): Likewise.
52071         * modules/getgroups (Makefile.am): Likewise.
52072         * modules/gethostname (Makefile.am): Likewise.
52073         * modules/gethrxtime (Makefile.am): Likewise.
52074         * modules/getline (Makefile.am): Likewise.
52075         * modules/getloadavg (Makefile.am): Likewise.
52076         * modules/getlogin_r (Makefile.am): Likewise.
52077         * modules/getopt (Makefile.am): Likewise.
52078         * modules/getpass (Makefile.am): Likewise.
52079         * modules/getpass-gnu (Makefile.am): Likewise.
52080         * modules/getsubopt (Makefile.am): Likewise.
52081         * modules/gettime (Makefile.am): Likewise.
52082         * modules/gettimeofday (Makefile.am): Likewise.
52083         * modules/getugroups (Makefile.am): Likewise.
52084         * modules/getusershell (Makefile.am): Likewise.
52085         * modules/glob (Makefile.am): Likewise.
52086         * modules/group-member (Makefile.am): Likewise.
52087         * modules/hard-locale (Makefile.am): Likewise.
52088         * modules/hash (Makefile.am): Likewise.
52089         * modules/hmac-md5 (Makefile.am): Likewise.
52090         * modules/hmac-sha1 (Makefile.am): Likewise.
52091         * modules/human (Makefile.am): Likewise.
52092         * modules/idcache (Makefile.am): Likewise.
52093         * modules/imaxabs (Makefile.am): Likewise.
52094         * modules/imaxdiv (Makefile.am): Likewise.
52095         * modules/inet_ntop (Makefile.am): Likewise.
52096         * modules/inet_pton (Makefile.am): Likewise.
52097         * modules/inttostr (Makefile.am): Likewise.
52098         * modules/isapipe (Makefile.am): Likewise.
52099         * modules/lchown (Makefile.am): Likewise.
52100         * modules/long-options (Makefile.am): Likewise.
52101         * modules/lstat (Makefile.am): Likewise.
52102         * modules/malloc (Makefile.am): Likewise.
52103         * modules/mathl (Makefile.am): Likewise.
52104         * modules/mbchar (Makefile.am): Likewise.
52105         * modules/md2 (Makefile.am): Likewise.
52106         * modules/md4 (Makefile.am): Likewise.
52107         * modules/md5 (Makefile.am): Likewise.
52108         * modules/memcasecmp (Makefile.am): Likewise.
52109         * modules/memchr (Makefile.am): Likewise.
52110         * modules/memcmp (Makefile.am): Likewise.
52111         * modules/memcoll (Makefile.am): Likewise.
52112         * modules/memcpy (Makefile.am): Likewise.
52113         * modules/memmem (Makefile.am): Likewise.
52114         * modules/memmove (Makefile.am): Likewise.
52115         * modules/mempcpy (Makefile.am): Likewise.
52116         * modules/memrchr (Makefile.am): Likewise.
52117         * modules/memset (Makefile.am): Likewise.
52118         * modules/memxor (Makefile.am): Likewise.
52119         * modules/mkancesdirs (Makefile.am): Likewise.
52120         * modules/mkdir (Makefile.am): Likewise.
52121         * modules/mkdir-p (Makefile.am): Likewise.
52122         * modules/mkdtemp (Makefile.am): Likewise.
52123         * modules/mkstemp (Makefile.am): Likewise.
52124         * modules/mktime (Makefile.am): Likewise.
52125         * modules/modechange (Makefile.am): Likewise.
52126         * modules/mountlist (Makefile.am): Likewise.
52127         * modules/nanosleep (Makefile.am): Likewise.
52128         * modules/openat (Makefile.am): Likewise.
52129         * modules/pagealign_alloc (Makefile.am): Likewise.
52130         * modules/physmem (Makefile.am): Likewise.
52131         * modules/poll (Makefile.am): Likewise.
52132         * modules/posixtm (Makefile.am): Likewise.
52133         * modules/posixver (Makefile.am): Likewise.
52134         * modules/putenv (Makefile.am): Likewise.
52135         * modules/quote (Makefile.am): Likewise.
52136         * modules/quotearg (Makefile.am): Likewise.
52137         * modules/raise (Makefile.am): Likewise.
52138         * modules/read-file (Makefile.am): Likewise.
52139         * modules/readline (Makefile.am): Likewise.
52140         * modules/readlink (Makefile.am): Likewise.
52141         * modules/readtokens (Makefile.am): Likewise.
52142         * modules/readutmp (Makefile.am): Likewise.
52143         * modules/realloc (Makefile.am): Likewise.
52144         * modules/regex (Makefile.am): Likewise.
52145         * modules/rename (Makefile.am): Likewise.
52146         * modules/rename-dest-slash (Makefile.am): Likewise.
52147         * modules/rijndael (Makefile.am): Likewise.
52148         * modules/rmdir (Makefile.am): Likewise.
52149         * modules/rpmatch (Makefile.am): Likewise.
52150         * modules/safe-read (Makefile.am): Likewise.
52151         * modules/safe-write (Makefile.am): Likewise.
52152         * modules/same (Makefile.am): Likewise.
52153         * modules/save-cwd (Makefile.am): Likewise.
52154         * modules/savedir (Makefile.am): Likewise.
52155         * modules/setenv (Makefile.am): Likewise.
52156         * modules/settime (Makefile.am): Likewise.
52157         * modules/sha1 (Makefile.am): Likewise.
52158         * modules/sig2str (Makefile.am): Likewise.
52159         * modules/snprintf (Makefile.am): Likewise.
52160         * modules/stdlib-safer (Makefile.am): Likewise.
52161         * modules/stpcpy (Makefile.am): Likewise.
52162         * modules/stpncpy (Makefile.am): Likewise.
52163         * modules/strcase (Makefile.am): Likewise.
52164         * modules/strcasestr (Makefile.am): Likewise.
52165         * modules/strchrnul (Makefile.am): Likewise.
52166         * modules/strcspn (Makefile.am): Likewise.
52167         * modules/strdup (Makefile.am): Likewise.
52168         * modules/strerror (Makefile.am): Likewise.
52169         * modules/strftime (Makefile.am): Likewise.
52170         * modules/strndup (Makefile.am): Likewise.
52171         * modules/strnlen (Makefile.am): Likewise.
52172         * modules/strpbrk (Makefile.am): Likewise.
52173         * modules/strsep (Makefile.am): Likewise.
52174         * modules/strstr (Makefile.am): Likewise.
52175         * modules/strtod (Makefile.am): Likewise.
52176         * modules/strtoimax (Makefile.am): Likewise.
52177         * modules/strtok_r (Makefile.am): Likewise.
52178         * modules/strtol (Makefile.am): Likewise.
52179         * modules/strtoll (Makefile.am): Likewise.
52180         * modules/strtoul (Makefile.am): Likewise.
52181         * modules/strtoull (Makefile.am): Likewise.
52182         * modules/strtoumax (Makefile.am): Likewise.
52183         * modules/strverscmp (Makefile.am): Likewise.
52184         * modules/time_r (Makefile.am): Likewise.
52185         * modules/timegm (Makefile.am): Likewise.
52186         * modules/tmpfile-safer (Makefile.am): Likewise.
52187         * modules/unistd-safer (Makefile.am): Likewise.
52188         * modules/unlinkdir (Makefile.am): Likewise.
52189         * modules/userspec (Makefile.am): Likewise.
52190         * modules/utime (Makefile.am): Likewise.
52191         * modules/utimecmp (Makefile.am): Likewise.
52192         * modules/utimens (Makefile.am): Likewise.
52193         * modules/vasnprintf (Makefile.am): Likewise.
52194         * modules/vasprintf (Makefile.am): Likewise.
52195         * modules/vsnprintf (Makefile.am): Likewise.
52196         * modules/xalloc (Makefile.am): Likewise.
52197         * modules/xgetcwd (Makefile.am): Likewise.
52198         * modules/xnanosleep (Makefile.am): Likewise.
52199         * modules/xreadlink (Makefile.am): Likewise.
52200         * modules/xstrtod (Makefile.am): Likewise.
52201         * modules/xstrtol (Makefile.am): Likewise.
52202         * modules/xstrtold (Makefile.am): Likewise.
52203         * modules/yesno (Makefile.am): Likewise.
52204
52205 2006-10-12  Jim Meyering  <jim@meyering.net>
52206
52207         * m4/getloadavg.m4: Revert the change below.
52208
52209         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
52210         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
52211         fail with a symlink, which is what coreutils' ./bootstrap now
52212         creates by default.
52213
52214 2006-10-12  Bruno Haible  <bruno@clisp.org>
52215
52216         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
52217         mingw.
52218         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
52219         MSVC and mingw explicitly.
52220
52221 2006-10-11  Simon Josefsson  <jas@extundo.com>
52222             Bruno Haible  <bruno@clisp.org>
52223
52224         Add support for multiple gnulib-tool invocations in the scope of a
52225         single configure.ac file.
52226         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
52227         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
52228         with the same contents as the _LIBADD variable.
52229         (func_emit_initmacro_start, func_emit_initmacro_end,
52230         func_emit_initmacro_done): New functions.
52231         (func_import, func_create_testdir): Invoke them. Allow the identifiers
52232         gl_LIBOBJS and gl_LTLIBOBJS.
52233
52234 2006-10-11  Bruno Haible  <bruno@clisp.org>
52235
52236         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
52237         (func_create_testdir): Don't create po/Makefile.am, don't invoke
52238         autoreconf. Instead, invoke autopoint explicitly but move back the
52239         *.m4 files from gnulib.
52240
52241 2006-10-11  Bruno Haible  <bruno@clisp.org>
52242
52243         * gnulib-tool (func_usage): Make module names after --create-testdir
52244         optional.
52245         (func_create_testdir): If no module was specified, use nearly all
52246         modules.
52247
52248 2006-10-12  Jim Meyering  <jim@meyering.net>
52249
52250         Big performance improvement for fts-based tools that use FTS_NOSTAT.
52251         Avoid spurious inode-mismatch problems on non-POSIX file systems.
52252         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
52253         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
52254         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
52255         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
52256         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
52257         (fts_set_stat_required): New function.
52258         (fts_open): Defer the calls to fts_stat, if possible or requested.
52259         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
52260         into fts_stat itself.
52261         (fts_read): Perform any required (deferred) fts_stat call.
52262         (fts_build): Likewise, for the directory we're about to open and read.
52263         In the readdir loop, carefully decide whether each entry will require
52264         an eventual call to fts_stat, using dirent.d_type info if available.
52265         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
52266         a command line argument into this function.  Update all callers.
52267         Map a return value of FTS_DOT to FTS_D for a command line argument.
52268         * modules/fts (Depends-on): Add d-type.  Alphabetize.
52269         Thanks to Miklos Szeredi for his tenacity and for the initial
52270         bug report about "find" failing on a FUSE-based file system.
52271
52272         * lib/fts.c (fts_open): Use consistent indentation.
52273
52274 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52275
52276         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
52277         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
52278         reported by Jim Meyering.  All uses of cache variables renamed
52279         to match Autoconf's.
52280         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
52281         the other one.
52282
52283         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
52284         Fix misspelling in diagnostic.
52285
52286 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
52289         defined.  Problem reported by Matthew Woehlke.
52290
52291         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
52292         Add support for Tandem NonStop R series.
52293         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
52294         Use new macro.
52295
52296         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
52297         (has_trailing_slash): Omit size arg; all callers changed.
52298         Omit 'inline', since it doesn't help performance and we'd
52299         need to configure it.
52300         Don't count //, ///, etc. as having a trailing slash.
52301         As a side effect, this removes a C99ism reported by Matthew Woehlke.
52302         (rpl_rename_dest_slash): On failure, use rename's errno rather
52303         than (in some cases) an incorrect or junk errno.
52304         Simplify code by removing need to compute length; this does
52305         cause it to make two passes instead of one over the file name,
52306         but it's worth it.
52307
52308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
52309         change, since Autoconf's version may no longer be appropriate now
52310         that we are using CVS Autoconf's version.  Add support for Tandem.
52311
52312 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52313             Bruno Haible  <bruno@clisp.org>
52314
52315         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
52316         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
52317         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
52318         gl_AC_TYPE_LONG_LONG.
52319
52320         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
52321         instead of HAVE_LONG_LONG.
52322         * lib/printf-args.c (printf_fetchargs): Likewise.
52323         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52324         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52325         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52326         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52327         gl_AC_TYPE_LONG_LONG.
52328
52329 2006-10-11  Bruno Haible  <bruno@clisp.org>
52330
52331         * m4/longlong.m4: Add comments.
52332         * m4/ulonglong.m4: Likewise.
52333
52334 2006-10-10  Bruno Haible  <bruno@clisp.org>
52335
52336         Make it possible to #define stpcpy, strdup to aliases.
52337         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
52338         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
52339
52340 2006-10-10  Bruno Haible  <bruno@clisp.org>
52341
52342         Make it possible to #define gcd to an alias.
52343         * lib/gcd.c: Include config.h.
52344
52345 2006-10-10  Bruno Haible  <bruno@clisp.org>
52346
52347         Make it possible to #define c_isascii to an alias.
52348         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
52349         defined. Undefine the macros before defining them, to avoid gcc
52350         warnings.
52351         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
52352         define NO_C_CTYPE_MACROS early.
52353
52354 2006-10-10  Bruno Haible  <bruno@clisp.org>
52355
52356         Make it possible to #define set_program_name to an alias.
52357         * lib/progname.c: Don't undefine set_program_name; instead, undefine
52358         ENABLE_RELOCATABLE early.
52359
52360 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52361
52362         Port to Tandem NSK OSS, which has 64-bit signed int but at most
52363         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
52364         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
52365         More generally, don't assume that 64-bit signed int is available
52366         if unsigned int is, and vice versa.
52367         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
52368         unsigned symbols, not on their signed counterparts.
52369         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
52370         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
52371         (UINT64_C, UINTMAX_C):
52372         Likewise.
52373         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
52374         unsigned counterparts.
52375         (Have_long_long, Unsigned): New macros.
52376         (Int): Renamed from INT.
52377         (strtoimax): Use the new macros.
52378         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
52379         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
52380         * modules/inttypes (inttypes.h): Substitute
52381         HAVE_UNSIGNED_LONG_LONG_INT.
52382         * modules/stdint (stdint.h): Likewise.
52383         (Files): Add m4/ulonglong.m4.
52384
52385 2006-10-10  Bruno Haible  <bruno@clisp.org>
52386
52387         Fix a gcc -Wshadow warning.
52388         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
52389         to 'bucket'.
52390         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
52391         gl_linked_indexof_from_to): Likewise.
52392         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
52393         Likewise.
52394         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52395         Likewise.
52396         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
52397         Reported by Eric Blake.
52398
52399 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
52402         for NetBSD.  Problem reported by Bruno Haible.
52403
52404 2006-10-09  Jim Meyering  <jim@meyering.net>
52405
52406         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
52407         Patch from Bruno Haible.
52408
52409 2006-10-09  Jim Meyering  <jim@meyering.net>
52410
52411         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52412         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52413         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52414
52415 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         Don't include <config.h> twice; this doesn't work in some cases,
52418         e.g., when config.h has "#define intmax_t long long int" and
52419         we include <config.h>, <inttypes.h>, <config.h> in that order.
52420         Problem reported by Matthew Woehlke in:
52421         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52422         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52423         * lib/fts-cycle.c: Don't include config.h.
52424         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52425         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52426         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52427         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52428         inttypes.h.
52429         * lib/xstrtoumax.c: Likewise.
52430         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52431         __strtol and the like, so that this module is more like its siblings.
52432         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52433         Remove; no longer needed now that we assume gnulib inttypes.h.
52434
52435 2006-10-08  Bruno Haible  <bruno@clisp.org>
52436
52437         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52438         option.
52439
52440 2006-10-07  Jim Meyering  <jim@meyering.net>
52441
52442         * modules/inttypes (inttypes.h): Revert what seems to have been
52443         an inadvertent part of today's change: use "|", not "/" in the
52444         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52445
52446 2006-10-07  Bruno Haible  <bruno@clisp.org>
52447
52448         * modules/sublist: New file.
52449
52450 2006-10-07  Bruno Haible  <bruno@clisp.org>
52451
52452         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
52453         * modules/argz (argz.h): Likewise.
52454         * modules/arpa_inet (arpa/inet.h): Likewise.
52455         * modules/byteswap (byteswap.h): Likewise.
52456         * modules/configmake (configmake.h): Likewise.
52457         * modules/fcntl (fcntl.h): Likewise.
52458         * modules/fnmatch (fnmatch.h): Likewise.
52459         * modules/getopt (getopt.h): Likewise.
52460         * modules/glob (glob.h): Likewise.
52461         * modules/inttypes (inttypes.h): Likewise.
52462         * modules/netinet_in (netinet/in.h): Likewise.
52463         * modules/poll (poll.h): Likewise.
52464         * modules/stdbool (stdbool.h): Likewise.
52465         * modules/stdint (stdint.h): Likewise.
52466         * modules/sys_select (sys/select.h): Likewise.
52467         * modules/sys_socket (sys/socket.h): Likewise.
52468         * modules/sys_stat (sys/stat.h): Likewise.
52469         * modules/sysexits (sysexits.h): Likewise.
52470         * modules/unistd (unistd.h): Likewise.
52471         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52472         Add a "DO NOT EDIT" comment to the generated file.
52473         (func_import): Likewise for gnulib-comp.m4.
52474
52475 2006-10-07  Bruno Haible  <bruno@clisp.org>
52476
52477         * lib/gl_sublist.h: New file.
52478         * lib/gl_sublist.c: New file.
52479
52480 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52481
52482         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52483         name (relative to the original working directory) and the file
52484         name component (relative to the temporary working directory).  All
52485         callers changed.
52486         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52487         * lib/mkdir-p.c (make_dir_parents): Likewise.
52488         * lib/mkdir-p.h (make_dir_parents): Likewise.
52489
52490 2006-10-06  Eric Blake  <ebb9@byu.net>
52491
52492         Define several macros for use by the clean-temp module.
52493         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52494         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52495         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52496
52497         * lib/clean-temp.h (close_stream_temp): New declaration.
52498         * lib/clean-temp.c (includes): Pull in headers according to what
52499         other modules are in use.
52500         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52501
52502 2006-10-06  Bruno Haible  <bruno@clisp.org>
52503
52504         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52505         instead of fopen, fwriteerror.
52506
52507 2006-10-06  Bruno Haible  <bruno@clisp.org>
52508
52509         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52510         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52511         int.
52512         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52513         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52514         Return an error indicator.
52515         Suggested by Eric Blake.
52516
52517 2006-10-06  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52520         Reported by Eric Blake.
52521
52522 2006-10-06  Bruno Haible  <bruno@clisp.org>
52523
52524         * modules/closeout (Description): Mention stderr too.
52525
52526 2006-10-06  Bruno Haible  <bruno@clisp.org>
52527         and Paul Eggert  <eggert@cs.ucla.edu>
52528
52529         * lib/closeout.c (close_stdout): Also close stderr.
52530         * lib/closeout.h: Update comment.
52531
52532 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52533
52534         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52535         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52536         * lib/dirchownmod.c: Include lchown.h.
52537         * lib/lchown.c: Don't include files that lchown.h now includes.
52538         Don't declare chown, since lchown.h now does that.
52539         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52540         (lchown): Define to rpl_chown if lchown is declared but
52541         does not exist.  Declare using a prototype if lchown is not
52542         declared.  Add a copyright notice.
52543         * lib/mkstemp.h: Include <unistd.h>.
52544         * lib/openat.c: Include lchown.h.
52545
52546         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52547         we now test for that separately.
52548         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52549         rather than O_NOFOLLOW, when testing whether it's possible to
52550         avoid a race condition reliably.
52551         * lib/savewd.c (savewd_chdir): Likewise.
52552
52553         Remove macros that are no longer needed now that stdint.h is
52554         reliable.
52555         * lib/fsusage.c (UINTMAX_MAX): Remove.
52556         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52557         * lib/utimecmp.c (SIZE_MAX): Remove.
52558
52559         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52560
52561         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52562         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52563         O_NOATIME works.
52564
52565 2006-10-05  Bruno Haible  <bruno@clisp.org>
52566
52567         * lib/gl_list.h (gl_sortedlist_search_from_to,
52568         gl_sortedlist_indexof_from_to): New declarations.
52569         (gl_list_implementation): New fields sortedlist_search_from_to,
52570         sortedlist_indexof_from_to.
52571         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52572         inline functions.
52573         * lib/gl_list.c (gl_sortedlist_search_from_to,
52574         gl_sortedlist_indexof_from_to): New functions.
52575         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52576         function.
52577         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52578         (gl_array_sortedlist_search_from_to): New function.
52579         (gl_array_list_implementation): Update.
52580         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52581         function.
52582         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52583         (gl_carray_sortedlist_search_from_to): New function.
52584         (gl_carray_list_implementation): Update.
52585         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52586         gl_linked_sortedlist_indexof_from_to): New functions.
52587         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52588         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52589         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52590         gl_tree_sortedlist_indexof_from_to): New functions.
52591         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52592         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52593         Update.
52594         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52595         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52596         Update.
52597
52598 2006-10-05  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52601         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52602         (struct gl_list_implementation): Add fields search_from_to,
52603         indexof_from_to. Remove fields search, indexof.
52604         (gl_list_search): Use the search_from_to method.
52605         (gl_list_search_from, gl_list_search_from_to): New functions.
52606         (gl_list_indexof): Use the indexof_from_to method.
52607         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52608         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52609         (gl_list_search_from, gl_list_search_from_to): New functions.
52610         (gl_list_indexof): Use the indexof_from_to method.
52611         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52612         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52613         gl_array_indexof. Add start_index, end_index arguments.
52614         (gl_array_search_from_to): Renamed from gl_array_search. Add
52615         start_index, end_index arguments.
52616         (gl_array_remove, gl_array_list_implementation): Update.
52617         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52618         gl_carray_indexof. Add start_index, end_index arguments.
52619         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52620         start_index, end_index arguments.
52621         (gl_carray_remove, gl_carray_list_implementation): Update.
52622         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52623         gl_linked_search. Add start_index, end_index arguments.
52624         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52625         start_index, end_index arguments.
52626         (gl_linked_remove): Update.
52627         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52628         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52629         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52630         field to 'size_t'.
52631         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52632         gl_tree_search. Add start_index, end_index arguments.
52633         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52634         start_index, end_index arguments.
52635         (gl_tree_remove): Update.
52636         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52637         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52638         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52639         function.
52640         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52641         gl_tree_search. Add start_index, end_index arguments.
52642         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52643         start_index, end_index arguments.
52644         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52645         Update.
52646         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52647
52648 2006-10-05  Bruno Haible  <bruno@clisp.org>
52649
52650         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52651
52652         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52653         fwriteerror_temp): New declarations.
52654         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52655         (descriptors): New variable.
52656         (cleanup): First, close the descriptors.
52657         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52658         fclose_temp, fwriteerror_temp): New functions.
52659
52660 2006-10-04  Jim Meyering  <jim@meyering.net>
52661
52662         * lib/fts.c (fts_open): Tiny comment change.
52663
52664 2006-10-04  Bruno Haible  <bruno@clisp.org>
52665
52666         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52667         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52668         gl_LOCK_BODY.
52669         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52670         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52671         gl_LOCK_EARLY_BODY.
52672         (gl_LOCK): Require gl_LOCK_BODY.
52673
52674 2006-10-04  Bruno Haible  <bruno@clisp.org>
52675
52676         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52677         (gl_oset_search_atleast): New declaration.
52678         (struct gl_oset_implementation): Add field 'search_atleast'.
52679         (gl_oset_search_atleast): New inline function.
52680         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52681         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52682         (gl_array_oset_implementation): Update.
52683         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52684         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52685         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52686
52687 2006-10-04  Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52690
52691 2006-10-03  Bruno Haible  <bruno@clisp.org>
52692
52693         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52694         from gl_avltreehash_list_implementation.
52695
52696 2006-10-03  Bruno Haible  <bruno@clisp.org>
52697
52698         * lib/gl_oset.c (gl_oset_add): Fix return type.
52699
52700 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52701
52702         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52703
52704 2006-10-02  Eric Blake  <ebb9@byu.net>
52705
52706         * modules/strnlen (Depends-on): Add extensions.
52707
52708 2006-10-02  Eric Blake  <ebb9@byu.net>
52709
52710         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52711         definition in 2.60+.
52712
52713 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52714
52715         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52716         checks.
52717
52718 2006-10-02  Bruno Haible  <bruno@clisp.org>
52719
52720         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52721         to the AUTOMAKE_OPTIONS.
52722         Reported by Jim Meyering.
52723
52724 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52725
52726         Work around bug in Solaris 10 /proc file system:
52727         /proc/self/fd/NNN/.. isn't the parent directory of
52728         the directory whose file descriptor is NNN.  This needs to
52729         be worked around at run time, not compile time, since a
52730         program might be built on Solaris 8, where things work, and
52731         run on Solaris 10.
52732         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52733         to use the following interface instead:
52734         (OPENAT_BUFFER_SIZE): New macro.
52735         (openat_proc_name): New function.
52736         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52737         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52738         Likewise.
52739         * lib/openat-proc.c: New file.
52740         * modules/openat (Files): Add lib/openat-proc.c.
52741         (Depends-on): Add same-inode, stdbool.
52742         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52743
52744 2006-09-29  Bruno Haible  <bruno@clisp.org>
52745
52746         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52747         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52748         argument. Set stdout_closed before testing for ferror, not after.
52749         (fwriteerror, fwriteerror_no_ebadf): New functions.
52750
52751 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52752
52753         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52754
52755 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52756
52757         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52758         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52759
52760 2006-09-28  Jim Meyering  <jim@meyering.net>
52761
52762         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52763         Include <unistd.h>.
52764
52765 2006-09-28  Bruno Haible  <bruno@clisp.org>
52766
52767         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52768         * modules/linkedhash-list (Depends-on): Likewise.
52769         * modules/rbtreehash-list (Depends-on): Likewise.
52770
52771 2006-09-28  Bruno Haible  <bruno@clisp.org>
52772
52773         * lib/strndup.h: Simplify the redefinition of strndup.
52774         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52775         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52776
52777 2006-09-28  Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52780         * lib/gl_linkedhash_list.c: Likewise.
52781         * lib/gl_rbtreehash_list.c: Likewise.
52782
52783 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52784
52785         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52786         getaddrinfo.
52787
52788         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52789         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52790         it causes <stdio_ext.h> to cause a compile-time error.
52791         Problem reported by Nelson H. F. Beebe.
52792         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52793         of HAVE_DECL___PENDING.
52794
52795         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52796         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52797         declaration.
52798
52799 2006-09-27  Jim Meyering  <jim@meyering.net>
52800
52801         This file could end up with a definition for a function
52802         named __strndup, rather than rpl_strndup on a system with
52803         incomplete weak_alias support.
52804         * lib/strndup.c (strndup): Rename from __strndup.
52805         Remove #defines that used to map __strndup to strndup.
52806         Don't use K&R prototypes.
52807         Remove LIBC-related code, since this file is not sync'd with glibc.
52808         * lib/strndup.h: Revamp, accordingly.
52809         * m4/strndup.m4: Modernize.
52810
52811 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52812
52813         * modules/savewd (Depends-on): Add 'raise'.
52814         * lib/savewd.c: Include <signal.h>, for 'raise'.
52815
52816 2006-09-26  Jim Meyering  <jim@meyering.net>
52817
52818         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52819         when we detect Darwin 8.7.0's acl_get_file bug.
52820         Rearrange to perform the new (below) run-test while $LIBS
52821         contains any acl-related library.  Set USE_ACL at the end.
52822         (gl_ACL_GET_FILE): New function.
52823
52824 2006-09-26  Eric Blake  <ebb9@byu.net>
52825
52826         * lib/verror.c: Include <config.h> unconditionally.
52827
52828 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52829
52830         * modules/clock-time (Maintainer): Add self.
52831         * modules/getlogin_r (Depends-on): Add extensions.
52832
52833 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52834
52835         * modules/clock-time: New module.
52836         * modules/nanosleep (Depends-on): Add clock-time.
52837         * modules/gethrxtime (Depends-on): Likewise.
52838         * modules/gettime (Depends-on): Likewise.
52839         * modules/settime (Depends-on): Likewise.
52840
52841         * modules/fts-lgpl: Depend on openat.
52842         * modules/mkancesdirs: Depend on savewd.
52843         * modules/mkdir-p: Likewise.
52844
52845 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52846
52847         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52848
52849         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52850         `gl_have_arbitrary_file_name_length_limit' to
52851         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52852         actually works between configure runs.
52853
52854 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52855             Bruno Haible  <bruno@clisp.org>
52856
52857         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52858
52859 2006-09-25  Jim Meyering  <jim@meyering.net>
52860
52861         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52862         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52863
52864 2006-09-25  Eric Blake  <ebb9@byu.net>
52865
52866         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52867         exec's in 2006-09-18 patch when shuffling fds.
52868
52869 2006-09-25  Bruno Haible  <bruno@clisp.org>
52870
52871         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52872         Reported by Jim Meyering.
52873
52874 2006-09-24  Jim Meyering  <jim@meyering.net>
52875
52876         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52877         compare a pointer against a literal "0".  That caused failures with
52878         at least HP-UX's hpcc.
52879
52880 2006-09-22  Simon Josefsson  <jas@extundo.com>
52881
52882         * modules/gc-sha1:
52883         * modules/gc-md4:
52884         * modules/gc-hmac-sha1:
52885         * modules/gc-hmac-md5:
52886         * modules/gc-des:
52887         * modules/gc-arcfour: Distribute more files.
52888
52889 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52890
52891         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52892         (gl_linked_iterator_from_to): Initialize struct completely.
52893         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52894         (gl_tree_iterator_from_to): Likewise
52895         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52896         * lib/gl_array_list.c [lint] (gl_array_iterator)
52897         (gl_array_iterator_from_to): Likewise.
52898         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52899         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52900         (gl_carray_iterator_from_to): Likewise.
52901
52902         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52903         * lib/md4.c (md4_process_block): Remove unused variable.
52904         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52905         parentheses for clarity.
52906
52907 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52908
52909         * modules/bison-i18n (Depends-on): Add gettext.
52910
52911 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52912
52913         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52914         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52915         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52916         also add missing comma that caused broken test.
52917         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52918         stdlib.h, for `abort'.
52919         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52920         variables.
52921         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52922         include unistd.h if present, for `rmdir'.
52923         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52924         variables.
52925         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52926         in the process include standard headers for prototypes.
52927         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52928         gets declared on GNU/Linux.
52929         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52930         unistd.h, for `rmdir'.
52931         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52932
52933         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52934         always true.
52935         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52936
52937         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52938
52939 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52940
52941         * gnulib-tool (func_version): Create output all at once.  This
52942         may help avoid triggering unnecessary SIGPIPEs, and at any
52943         rate it doesn't hurt.
52944
52945 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52946             Bruno Haible  <bruno@clisp.org>
52947
52948         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52949         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52950         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52951
52952         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52953         (gl_FUNC_VASPRINTF): Invoke it.
52954
52955 2006-09-22  Bruno Haible  <bruno@clisp.org>
52956
52957         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52958         getloadavg.c as first argument.
52959
52960 2006-09-22  Bruno Haible  <bruno@clisp.org>
52961
52962         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52963         at the beginning of the gl_INIT macro.
52964         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52965         gl_GETLOADAVG.
52966
52967 2006-09-22  Bruno Haible  <bruno@clisp.org>
52968
52969         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52970         module.
52971         Suggested by Ralf Wildenhues.
52972
52973 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         Import this patch from libc:
52976
52977         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52978
52979         * lib/regex_internal.c (re_string_reconstruct): Handle
52980         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52981         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52982         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52983         re_string_context_at.
52984
52985         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52986         now requires it.
52987         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52988         gl_REGEX now does it for us.
52989         (gl_REGEX): Add test taken from
52990         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52991
52992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52993         Check that large offsets work.  Modernize Autoconf usages.
52994         Prefer "yes" to mean a good thing rather than a bad.
52995         Don't put "#define mkstemp" in config.h, as this might interfere
52996         with standard system headers that "#define mkstemp mkstemp64".
52997
52998         * modules/mkstemp (Depends-on): Add extensions, so that
52999         mkstemp is visible on some platforms.
53000         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
53001         (Include): Change to "mkstemp.h" from <stdlib.h>.
53002         (Files): Add mkstemp.h.
53003
53004         * lib/mkstemp.h: New file, since some standard headers
53005         #define mkstemp.
53006         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
53007         Include "mkstemp.h".
53008         Make the _LIBC code resemble glibc original more,
53009         e.g., use K&R style.
53010         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
53011         (mkstemp): Remove, since mkstemp.h does this for us.
53012         * lib/stdlib--.h: Include mkstemp.h.
53013
53014         Import this patch from libc:
53015
53016         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53017
53018         * lib/tempname.c (__gen_tempname): Change attempts_min
53019         into a macro.  Use preprocessor to decide how to initialize
53020         attempts [Coverity CID 67].
53021
53022 2006-09-20  Bruno Haible  <bruno@clisp.org>
53023
53024         * lib/mkdtemp.c: Import from libc.
53025         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53026                 * sysdeps/posix/tempname.c (__gen_tempname): Change
53027                 attempts_min into a macro.  Use preprocessor to decide how to
53028                 initialize attempts [Coverity CID 67].
53029         2001-11-27  Paul Eggert  <eggert@twinsun.com>
53030                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
53031                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
53032
53033 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53034
53035         * gnulib-tool (func_exit): New function, to allow to pass the
53036         exit status portably through the trap.  Use everywhere.
53037         (--help, --version): Signal a write error.
53038         (trap): catch SIGPIPE, for write errors.
53039         Exit at the end of the trap, with the correct exit status.
53040
53041 2006-09-19  Karl Berry  <karl@gnu.org>
53042
53043         * doc/gnulib.texi: note about the license texinfo files.
53044
53045 2006-09-19  Eric Blake  <ebb9@byu.net>
53046
53047         * gnulib-tool: Avoid space-tab.
53048
53049 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53050
53051         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
53052         that prevented coreutils 6.1 from building.  Problem reported
53053         by Petter Reinholdtsen.
53054
53055 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53056
53057         * gnulib-tool (avoidlist): Fix typo that broke options like
53058         --avoid=lock that are used by coreutils bootstrap.
53059
53060 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
53061
53062         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
53063         more systematically.
53064
53065 2006-09-18  Jim Meyering  <jim@meyering.net>
53066
53067         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
53068
53069 2006-09-18  Bruno Haible  <bruno@clisp.org>
53070
53071         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
53072
53073 2006-09-18  Bruno Haible  <bruno@clisp.org>
53074
53075         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
53076         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
53077         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
53078         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
53079         * m4/gettext.m4: Require autoconf >= 2.52.
53080         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
53081         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
53082         of gl_cv_header_inttypes_h.
53083
53084 2006-09-18  Bruno Haible  <bruno@clisp.org>
53085
53086         * lib/javaversion.c: Include configmake.h.
53087
53088 2006-09-18  Bruno Haible  <bruno@clisp.org>
53089
53090         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
53091         avoid that the while loops be executed in a subshell.
53092
53093 2006-09-18  Bruno Haible  <bruno@clisp.org>
53094
53095         * MODULES.html.sh (func_module): Break long lines.
53096         Suggested by Bruce Korb <bkorb@gnu.org>.
53097
53098 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53099
53100         Speed up by a factor of 1.12.
53101         * gnulib-tool (nl): New variable.
53102         (func_import): Rewrite include directive extraction to only read each
53103         directive once.
53104
53105 2006-09-17  Bruno Haible  <bruno@clisp.org>
53106
53107         * modules/javaversion (Makefile.am): Remove DEFS setting.
53108         (Depends-on): Add configmake, for PKGDATADIR definition.
53109
53110 2006-09-17  Bruno Haible  <bruno@clisp.org>
53111
53112         * gnulib-tool (func_create_testdir): Rewrite all files at once.
53113
53114 2006-09-17  Bruno Haible  <bruno@clisp.org>
53115
53116         * gnulib-tool (func_append): New function, stolen from libtool.m4.
53117         (func_modules_transitive_closure, func_modules_add_dummy,
53118         func_modules_to_filelist, func_import, func_create_testdir,
53119         func_create_megatestdir, ...): Use it wherever possible.
53120         Suggested by Ralf Wildenhues.
53121
53122 2006-09-16  Karl Berry  <karl@gnu.org>
53123
53124         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
53125         to avoid sectioning errors.
53126         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
53127         [ifinfo]: blank line after @center-ed titles.
53128         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
53129         Spell FSF address consistently with others.
53130         (These changes approved by rms.)
53131
53132 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53133
53134         Speed up by a factor of 1.61.
53135         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
53136         already checked module names again.
53137
53138 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53139
53140         Speed up by a factor of 1.13.
53141         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
53142         for new_files, and the input to func_add_or_update.
53143
53144 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53145
53146         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
53147         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
53148
53149 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53150
53151         * modules/mkancesdirs (Depends-on): Add fcntl.
53152         * modules/savewd: New file.
53153         * MODULES.html.sh (File system functions): Add savewd.
53154
53155         * modules/configmake (Makefile.am): Add support for the
53156         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
53157
53158 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53159
53160         * m4/savewd.m4: New file.
53161
53162 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53163
53164         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
53165         (dirchownmod): New arg FD.  All callers changed.
53166         Use FD rather than opening the directory ourself, as opening is
53167         now the caller's responsibility.
53168         * lib/dirchownmod.h: Likewise.
53169         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
53170         hosts that require <sys/types.h> before <sys/stat.h>.  Include
53171         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
53172         (test_dir): Remove.
53173         (mkancesdirs): Return length of prefix of FILE that has already
53174         been made, or -2 if there is a child doing the work.  Redo
53175         algorithm so that it is O(N) rather than O(N**2).  Optimize away
53176         ".", and treat ".." specially since it might stray back into
53177         already-created areas.  Use a subprocess if necessary.  New arg
53178         WD; all users changed.  MAKE_DIR function should now return 1
53179         if it creates a directory that is not readable.  Return -2 if
53180         a child process is spun off.
53181         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
53182         Adjust signature to match code.
53183         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
53184         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
53185         all users changed.
53186         * lib/savewd.c, lib/savewd.h: New files.
53187
53188 2006-09-15  Jim Meyering  <jim@meyering.net>
53189
53190         * modules/rename-dest-slash: New module.
53191         * MODULES.html.sh (posix_compat): Add it here.
53192
53193         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
53194
53195 2006-09-15  Jim Meyering  <jim@meyering.net>
53196
53197         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
53198         file.
53199
53200         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
53201
53202 2006-09-15  Jim Meyering  <jim@meyering.net>
53203
53204         * lib/rename-dest-slash.c (has_trailing_slash): Use
53205         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
53206         (rpl_rename_dest_slash): Perform the cheaper trailing slash
53207         test before testing whether SRC is a directory.
53208         Suggestions from Bruno Haible.
53209
53210         Avoid a warning about an unused variable.
53211         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
53212         into the #ifdef block where it's used.
53213
53214         * lib/rename-dest-slash.c: New file.
53215
53216 2006-09-14  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/allocsa.c: Include <config.h> unconditionally.
53219         * lib/asnprintf.c: Likewise.
53220         * lib/asprintf.c: Likewise.
53221         * lib/c-strcasecmp.c: Likewise.
53222         * lib/c-strcasestr.c: Likewise.
53223         * lib/c-strncasecmp.c: Likewise.
53224         * lib/c-strstr.c: Likewise.
53225         * lib/classpath.c: Likewise.
53226         * lib/clean-temp.c: Likewise.
53227         * lib/concatpath.c: Likewise.
53228         * lib/copy-file.c: Likewise.
53229         * lib/csharpcomp.c: Likewise.
53230         * lib/csharpexec.c: Likewise.
53231         * lib/execute.c: Likewise.
53232         * lib/fatal-signal.c: Likewise.
53233         * lib/findprog.c: Likewise.
53234         * lib/fwriteerror.c: Likewise.
53235         * lib/gl_array_list.c: Likewise.
53236         * lib/gl_array_oset.c: Likewise.
53237         * lib/gl_avltree_list.c: Likewise.
53238         * lib/gl_avltree_oset.c: Likewise.
53239         * lib/gl_avltreehash_list.c: Likewise.
53240         * lib/gl_carray_list.c: Likewise.
53241         * lib/gl_linked_list.c: Likewise.
53242         * lib/gl_linkedhash_list.c: Likewise.
53243         * lib/gl_list.c: Likewise.
53244         * lib/gl_oset.c: Likewise.
53245         * lib/gl_rbtree_list.c: Likewise.
53246         * lib/gl_rbtree_oset.c: Likewise.
53247         * lib/gl_rbtreehash_list.c: Likewise.
53248         * lib/imaxabs.c: Likewise.
53249         * lib/imaxdiv.c: Likewise.
53250         * lib/javacomp.c: Likewise.
53251         * lib/javaexec.c: Likewise.
53252         * lib/javaversion.c: Likewise.
53253         * lib/linebreak.c: Likewise.
53254         * lib/localcharset.c: Likewise.
53255         * lib/lock.c: Likewise.
53256         * lib/mbchar.c: Likewise.
53257         * lib/mbswidth.c: Likewise.
53258         * lib/mkdtemp.c: Likewise.
53259         * lib/pipe.c: Likewise.
53260         * lib/printf-args.c: Likewise.
53261         * lib/printf-parse.c: Likewise.
53262         * lib/progname.c: Likewise.
53263         * lib/progreloc.c: Likewise.
53264         * lib/readlink.c: Likewise.
53265         * lib/sh-quote.c: Likewise.
53266         * lib/stpcpy.c: Likewise.
53267         * lib/stpncpy.c: Likewise.
53268         * lib/strcasecmp.c: Likewise.
53269         * lib/strcasestr.c: Likewise.
53270         * lib/strcspn.c: Likewise.
53271         * lib/striconv.c: Likewise.
53272         * lib/strncasecmp.c: Likewise.
53273         * lib/strnlen1.c: Likewise.
53274         * lib/strstr.c: Likewise.
53275         * lib/strtok_r.c: Likewise.
53276         * lib/tls.c: Likewise.
53277         * lib/tmpdir.c: Likewise.
53278         * lib/unicodeio.c: Likewise.
53279         * lib/unsetenv.c: Likewise.
53280         * lib/vasnprintf.c: Likewise.
53281         * lib/vasprintf.c: Likewise.
53282         * lib/wait-process.c: Likewise.
53283         * lib/xallocsa.c: Likewise.
53284         * lib/xsetenv.c: Likewise.
53285         * lib/xstriconv.c: Likewise.
53286
53287 2006-09-13  Simon Josefsson  <jas@extundo.com>
53288
53289         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
53290         that internally, suggested by Ralf Wildenhues
53291         <Ralf.Wildenhues@gmx.de>.
53292
53293 2006-09-13  Simon Josefsson  <jas@extundo.com>
53294
53295         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
53296         @LIBOBJS@.
53297         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53298
53299 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53300
53301         * lib/_fpending.c: Include <config.h> unconditionally, since we no
53302         longer worry about uses that don't define HAVE_CONFIG_H.
53303         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
53304         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
53305         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
53306         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
53307         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
53308         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
53309         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
53310         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
53311         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
53312         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
53313         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
53314         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
53315         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
53316         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
53317         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
53318         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
53319         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
53320         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
53321         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
53322         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
53323         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
53324         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
53325         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53326         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53327         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
53328         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
53329         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
53330         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
53331         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
53332         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
53333         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
53334         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
53335         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
53336         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
53337         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
53338         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
53339         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
53340         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
53341         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
53342         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
53343         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
53344         Likewise.
53345
53346 2006-09-13  Eric Blake  <ebb9@byu.net>
53347
53348         * lib/getopt.c: Fix typo in last commit.
53349
53350 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53351
53352         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
53353         dgettext.
53354
53355 2006-09-12  Jim Meyering  <jim@meyering.net>
53356
53357         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
53358         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
53359         Reported by Nelson H. F. Beebe.
53360
53361 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53362
53363         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
53364         program_invocation_name and program_invocation_short_name are
53365         initialized.
53366         * lib/argp-namefrob.h: Move declarations of program_invocation_name
53367         and program_invocation_short_name to argp.h, so they are visible
53368         to user programs.
53369         * lib/argp.h: Likewise
53370
53371 2006-09-10  Bruno Haible  <bruno@clisp.org>
53372
53373         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53374         m4/inttypes_h.m4, m4/uintmax_t.m4.
53375
53376 2006-09-10  Bruno Haible  <bruno@clisp.org>
53377
53378         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
53379         gl_AC_TYPE_UINTMAX_T.
53380
53381 2006-09-10  Bruno Haible  <bruno@clisp.org>
53382
53383         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
53384
53385 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53386
53387         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
53388         convention.  Text proposed by Bruno Haible.
53389         (struct argp_option): Document the use of N_() wrappers.
53390
53391         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
53392         '\v', and translate the two parts separately, instead of feeding
53393         the whole string to gettext.  This allows to exclude
53394         '\v' from the strings visible to the translator by writing doc
53395         strings as N_("..") "\v" N_("..").
53396
53397 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
53398
53399         * config/srclist.txt: Undo latest change; the bug was fixed.
53400
53401 2006-09-09  Bruno Haible  <bruno@clisp.org>
53402
53403         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
53404         assignments if building a library without libtool.
53405         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
53406         in func_emit_lib_Makefile_am.
53407         (func_import): When building a static library libfoo.a, arrange to
53408         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53409         (func_create_testdir): Likewise.
53410         * modules/gc (configure.ac, Makefile.am): If building statically,
53411         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53412         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53413         * modules/striconv (configure.ac, Makefile.am): Likewise.
53414         Based on a suggestion by Ralf Wildenhues.
53415
53416 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53419         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53420         Also:
53421
53422         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53423         Add year_2050_test to catch glibc bug 2821
53424         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53425
53426         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53427         Prefer #ifdef to #if.
53428
53429         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53430         Return from 'main' instead of calling 'exit'.
53431
53432 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53433
53434         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53435         returned the maximum time_t value rather than (time_t) -1.
53436         Problem originally reported by William Bardwell
53437         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53438
53439         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53440         Moved to here ...
53441         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53442         ... from here.
53443
53444 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53447         2821 is fixed.
53448
53449 2006-09-08  Jim Meyering  <jim@meyering.net>
53450
53451         Don't make generated files read-only.  That would bother too many
53452         people.  However, do retain the ability to work when targets are
53453         read-only: remove the destination and temporary files before writing
53454         them (when generated via sed or echo), or by using the -f option for
53455         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
53456         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53457         * modules/byteswap, modules/configmake, modules/fcntl:
53458         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53459         * modules/localcharset, modules/netinet_in, modules/poll:
53460         * modules/stdbool, modules/stdint, modules/sys_select:
53461         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53462
53463 2006-09-08  Jim Meyering  <jim@meyering.net>
53464
53465         Avoid new build failure on FreeBSD 6.0.
53466         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53467         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53468         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53469
53470 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53471
53472         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53473
53474 2006-09-07  Jim Meyering  <jim@meyering.net>
53475
53476         Fix global typo in last change: use chmod u-w, not chmod u-x.
53477         Spotted by Paul Eggert and Bruce Korb.
53478         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53479         * modules/byteswap, modules/configmake, modules/fcntl:
53480         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53481         * modules/localcharset, modules/netinet_in, modules/poll:
53482         * modules/stdbool, modules/stdint, modules/sys_select:
53483         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53484
53485 2006-09-06  Jim Meyering  <jim@meyering.net>
53486
53487         Make generated files be read-only.
53488         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53489         Ensure that each generated file is now read-only.
53490         * modules/argz: Likewise.
53491         * modules/arpa_inet: Likewise.
53492         * modules/byteswap: Likewise.
53493         * modules/configmake: Likewise.
53494         * modules/fcntl: Likewise.
53495         * modules/fnmatch: Likewise.
53496         * modules/getopt: Likewise.
53497         * modules/glob: Likewise.
53498         * modules/inttypes: Likewise.
53499         * modules/netinet_in: Likewise.
53500         * modules/poll: Likewise.
53501         * modules/stdbool: Likewise.
53502         * modules/stdint: Likewise.
53503         * modules/sys_select: Likewise.
53504         * modules/sys_socket: Likewise.
53505         * modules/sys_stat: Likewise.
53506         * modules/sysexits: Likewise.
53507         * modules/localcharset: Same as above, but continue using temporary
53508         file named "t-$@" (why different?) rather than the "$@-t" used
53509         everywhere else.
53510
53511         * modules/sysexits (Makefile.am): Replace literal occurrences
53512         of "sysexit.h" more readable, and more consistent, "$@".
53513
53514 2006-09-06  Bruno Haible  <bruno@clisp.org>
53515
53516         * modules/striconv: New file.
53517         * modules/xstriconv: New file.
53518         * MODULES.html.sh (Internationalization functions): Add striconv,
53519         xstriconv.
53520
53521 2006-09-06  Bruno Haible  <bruno@clisp.org>
53522
53523         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53524         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53525         not using libtool correctly.
53526
53527 2006-09-06  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/striconv.h: New file.
53530         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53531         iconvstring.c.
53532         * lib/xstriconv.h: New file.
53533         * lib/xstriconv.c: New file.
53534
53535 2006-09-06  Bruno Haible  <bruno@clisp.org>
53536
53537         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53538         lib_..._LDFLAGS.
53539
53540 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53541
53542         * lib/argz_.h: Sync from Libtool.
53543
53544         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53545                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53546
53547         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53548
53549 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53550
53551         * modules/trim: New file.
53552
53553 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53554
53555         * lib/trim.h: New file.
53556         * lib/trim.c: New file.
53557
53558 2006-09-05  Bruno Haible  <bruno@clisp.org>
53559
53560         * MODULES.html.sh (String handling): Add trim.
53561
53562 2006-09-04  Karl Berry  <karl@gnu.org>
53563
53564         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53565         until next release.
53566
53567 2006-09-03  Bruno Haible  <bruno@clisp.org>
53568
53569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53570         correctly.
53571
53572 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53573
53574         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53575         not gl_GETLOADAVG.  Omit unneeded semicolons.
53576         Problems reported by Ralf Wildenhues in
53577         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53578         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53579         at the end, which is the usual gnulib style.
53580
53581         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53582         of doing all the work ourselves.
53583         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53584         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53585
53586 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53587
53588         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53589         Problem reported by Ralf Wildenhues in
53590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53591
53592         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53593         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53594
53595 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53598         yesterday's patch by changing test -n to test -z.
53599
53600 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53601
53602         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53603         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53604         the former is now obsolescent.
53605
53606         * modules/chdir-long (Depends-on): Add fcntl.
53607
53608 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53609
53610         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53611         obsolescent, and programs should use gnulib instead.
53612         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53613         but with prefixes changed.
53614
53615 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53616
53617         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53618         or stdbool.h, because they might not exist while configuring.
53619
53620         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53621         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53622         does that for us.
53623         (O_DIRECTORY): Remove.
53624
53625 2006-08-31  Eric Blake  <ebb9@byu.net>
53626
53627         * gnulib-tool: Don't let emacs change spaces to TAB.
53628
53629 2006-08-31  Bruno Haible  <bruno@clisp.org>
53630
53631         * gnulib-tool: When calling func_import more than once, do it in a
53632         subshell.
53633         Reported by Eric Blake <ebb9@byu.net>.
53634
53635 2006-08-31  Bruno Haible  <bruno@clisp.org>
53636
53637         * gnulib-tool (nl): Remove variable.
53638         (sed_transform_lib_file): Use more robust test for config-h module.
53639         (func_import): Fix typo in 2006-08-25 patch.
53640
53641 2006-08-31  Bruno Haible  <bruno@clisp.org>
53642
53643         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53644         specified, augment Makefile.am variables instead of assigning them.
53645
53646 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         Work around a bug in both the Linux and SunOS 64-bit kernels:
53649         nanosleep mishandles sleeps for longer than 2**31 seconds.
53650         Problem reported by Frank v Waveren in
53651         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53653         Check for nanosleep bug.
53654         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53655
53656 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53657
53658         Work around a bug in both the Linux and SunOS 64-bit kernels:
53659         nanosleep mishandles sleeps for longer than 2**31 seconds.
53660         Problem reported by Frank v Waveren in
53661         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53662         * lib/nanosleep.c (BILLION): New constant.
53663         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53664         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53665         implementation.
53666
53667 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53668
53669         * modules/nanosleep (Depends-on): Add gettime.
53670
53671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53672         and Simon Josefsson  <jas@extundo.com>
53673         and Oskar Liljeblad  <oskar@osk.mine.nu>
53674
53675         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53676         * gnulib-tool (func_import): New license type 'unmodifiable license
53677         text'.
53678         * modules/fdl: Use it.  Longer description.
53679         * module/gpl, module/lgpl: New files.
53680
53681 2006-08-30  Jim Meyering  <jim@meyering.net>
53682
53683         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53684         shadowing the parameter.
53685
53686 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53687
53688         Sync from Libtool:
53689
53690         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53691
53692         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53693         sharing with gnulib.  Report by Eric Blake.
53694
53695 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53696
53697         * modules/isapipe: New file.
53698         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53699
53700 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53701
53702         * modules/configmake (Makefile.am): Add a comment, and omit
53703         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53704         by Bruno Haible.
53705
53706 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53707
53708         * m4/isapipe.m4: New file.
53709
53710 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53711
53712         * lib/isapipe.c, lib/isapipe.h: New files.
53713
53714 2006-08-29  Jim Meyering  <jim@meyering.net>
53715
53716         * modules/configmake (Makefile.am): Make configmake.h depend on
53717         Makefile.  Otherwise, a stale configmake.h could hang around.
53718
53719 2006-08-29  Eric Blake  <ebb9@byu.net>
53720
53721         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53722         resolution of upstream bug 3044.
53723
53724 2006-08-29  Bruno Haible  <bruno@clisp.org>
53725
53726         * modules/localcharset (Depends-on): Add configmake.
53727         (Makefile.am): Remove setting of LIBDIR through DEFS.
53728
53729 2006-08-29  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53732         defined.
53733
53734 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53735
53736         * modules/fcntl: New file.
53737         * modules/chdir-safer (Depends-on): Add fcntl.
53738         * modules/fts: Likewise.
53739         * modules/mkdir-p: Likewise.
53740
53741         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53742         This undoes the most recent change, since we're now addressing the
53743         problem in a different way.
53744
53745         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53746         into output, since the output might be called Makefile.am even
53747         if $makefile_name is something different.
53748         (func_import): Use $makefile_am rather than
53749         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53750         empty.
53751
53752         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53753
53754 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53757         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53758         recent change to stdint.m4, since we're now addressing the problem in a
53759         different way.
53760
53761 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * m4/fcntl_h.m4: New file.
53764
53765 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53766
53767         * lib/fcntl_.h: New file.
53768         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53769         the fcntl module.
53770         * lib/dirchownmod.c: Likewise.
53771         * lib/fts.c: Likewise.
53772
53773         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53774         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53775         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53776         just before including <inttypes.h>, to avoid circular inclusion.
53777
53778 2006-08-28  Jim Meyering  <jim@meyering.net>
53779
53780         * doc/visibility.texi: Actually read and correct the grammar of the
53781         sentence affected by yesterday's change.
53782
53783 2006-08-28  Eric Blake  <ebb9@byu.net>
53784
53785         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53786         needs wrapper.
53787
53788 2006-08-28  Eric Blake  <ebb9@byu.net>
53789
53790         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53791
53792 2006-08-28  Eric Blake  <ebb9@byu.net>
53793
53794         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53795
53796 2006-08-28  Bruno Haible  <bruno@clisp.org>
53797
53798         * modules/c-strstr: New file, from GNU gettext.
53799         * MODULES.html.sh (String handling): Add c-strstr.
53800
53801 2006-08-28  Bruno Haible  <bruno@clisp.org>
53802
53803         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53804         macros.
53805         Reported by Eric Blake.
53806
53807 2006-08-28  Bruno Haible  <bruno@clisp.org>
53808
53809         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53810         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53811         * lib/vasprintf.c: Include errno.h, limits.h.
53812         (EOVERFLOW): New fallback definition.
53813         (vasprintf): Test here whether the string length is > INT_MAX.
53814         * lib/vsnprintf.c: Include errno.h, limits.h.
53815         (EOVERFLOW): New fallback definition.
53816         (vsnprintf): Fix bug when generated string was too long for the buffer.
53817         Test here whether the string length is > INT_MAX.
53818
53819 2006-08-28  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/inttypes_.h (SCNX*): Remove definitions.
53822         Reported by Eric Blake.
53823
53824 2006-08-28  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/c-strstr.h: New file, from GNU gettext.
53827         * lib/c-strstr.c: New file, from GNU gettext.
53828
53829 2006-08-28  Bruno Haible  <bruno@clisp.org>
53830
53831         * gnulib-tool: Reorder some statements.
53832
53833 2006-08-28  Bruno Haible  <bruno@clisp.org>
53834
53835         * gnulib-tool: New option --makefile-name.
53836         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53837         $makefile_name.
53838         (func_import): Write $makefile_name to the cache file, and read it from
53839         there unless explicitly specified. Use $makefile_name as file name
53840         instead of Makefile.am. Adjust the recommendations accordingly.
53841
53842 2006-08-28  Bruno Haible  <bruno@clisp.org>
53843
53844         * gnulib-tool (func_verify_module): Check against misapplying patch.
53845
53846 2006-08-28  Bruno Haible  <bruno@clisp.org>
53847
53848         * gnulib-tool (func_relativize, func_relconcat): New functions.
53849         Give an error if --local-dir is given with --update.
53850         Remove trailing slashes from $local_gnulib_dir.
53851         (func_import): Store the relativized $local_gnulib_dir in
53852         gnulib-cache.m4, and read it from there if not specified explicitly.
53853
53854 2006-08-28  Bruno Haible  <bruno@clisp.org>
53855
53856         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53857         is the current directory. Respect also $local_gnulib_dir.
53858
53859 2006-08-28  Bruno Haible  <bruno@clisp.org>
53860             Simon Josefsson  <jas@extundo.com>
53861
53862         BeOS portability.
53863         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53864
53865 2006-08-27  Jim Meyering  <jim@meyering.net>
53866
53867         * doc/visibility.texi: Remove duplicate word: "pointer".
53868
53869 2006-08-26  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53872         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53873         (Makefile.am): Create inttypes.h from inttypes_.h.
53874         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53875
53876         * modules/imaxabs: New file.
53877
53878         * modules/imaxdiv: New file.
53879
53880 2006-08-26  Bruno Haible  <bruno@clisp.org>
53881
53882         * m4/inttypes.m4: New file.
53883         * m4/_inttypes_h.m4: Remove file.
53884         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53885         PRI_MACROS_BROKEN.
53886         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53887
53888         * m4/imaxabs.m4: New file.
53889
53890         * m4/imaxdiv.m4: New file.
53891
53892 2006-08-26  Bruno Haible  <bruno@clisp.org>
53893
53894         * lib/inttypes_.h: New file.
53895         * lib/inttypes.h: Remove file.
53896         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53897
53898         * lib/imaxabs.c: New file.
53899
53900         * lib/imaxdiv.c: New file.
53901
53902 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         New config-h module, so that "make" output needn't be cluttered
53905         by -DHAVE_CONFIG_H.
53906         * MODULES.html.sh (Support for building libraries and executables):
53907         Add config-h.
53908         * modules/config-h: New file.
53909         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53910         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53911         the config-h module is used.
53912
53913         New configmake module, so that "make" output needn't be cluttered
53914         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53915         * MODULES.html.sh (Support for building libraries and executables):
53916         Add configmake.
53917         * modules/configmake: New file.
53918
53919 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53920
53921         * m4/config-h.m4: New file.
53922
53923 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * config/srclist.txt: Add elisp-comp.
53926
53927 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53928
53929         * MODULES.html.sh (Support for building libraries and executables):
53930         Add elisp-comp.
53931         * build-aux/elisp-comp: New file.
53932         * modules/elisp-comp: New file.
53933
53934 2006-08-24  Bruno Haible  <bruno@clisp.org>
53935
53936         * gnulib-tool (func_create_testdir): Use non-default values of
53937         sourcebase and m4base.
53938
53939 2006-08-24  Bruno Haible  <bruno@clisp.org>
53940
53941         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53942         HTML structure.
53943
53944 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53945
53946         * modules/openat (Depends-on): Add lchown.
53947
53948 2006-08-23  Bruno Haible  <bruno@clisp.org>
53949
53950         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53951         of gl_LOCK_EARLY instead of gl_LOCK.
53952
53953 2006-08-23  Bruno Haible  <bruno@clisp.org>
53954
53955         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53956         on OSF/1 to no.
53957         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53958
53959 2006-08-23  Bruno Haible  <bruno@clisp.org>
53960
53961         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53962         as unusable.
53963
53964         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53965         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53966         (gl_LOCK): New macro.
53967
53968 2006-08-22  Simon Josefsson  <jas@extundo.com>
53969
53970         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53971         to md5 module.
53972
53973 2006-08-22  Simon Josefsson  <jas@extundo.com>
53974
53975         * MODULES.html.sh: Add "Support for maintaining and release
53976         projects".
53977
53978         * build-aux/gnupload: New file, from coreutils.
53979
53980 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53981
53982         Avoid the need for AC_LIBSOURCES in m4 macros.
53983         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53984         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53985         * modules/check-version (EXTRA_DIST): Add check-version.h.
53986         * modules/crc (EXTRA_DIST): Add crc.h.
53987         * modules/des (EXTRA_DIST): Add des.h.
53988         * modules/gc (EXTRA_DIST): Add gc.h.
53989         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53990         * modules/getline (EXTRA_DIST): Add getline.h.
53991         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53992         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53993         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53994         * modules/md2 (EXTRA_DIST): Add md2.h.
53995         * modules/md4 (EXTRA_DIST): Add md4.h.
53996         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53997         * modules/read-file (EXTRA_DIST): Add read-file.h.
53998         * modules/readline (EXTRA_DIST): Add readline.h.
53999         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
54000         rijndael-api-fst.h.
54001
54002 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54003
54004         * m4/rijndael.m4 (gl_ARCFOUR):
54005         * m4/arctwo.m4 (gl_ARCTWO):
54006         * m4/check-version.m4 (gl_CHECK_VERSION):
54007         * m4/crc.m4 (gl_CRC):
54008         * m4/des.m4 (gl_DES):
54009         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
54010         * m4/gc.m4 (gl_GC):
54011         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
54012         * m4/getline.m4 (gl_FUNC_GETLINE):
54013         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
54014         * m4/hmac-md5.m4 (gl_HMAC_MD5):
54015         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
54016         * m4/md2.m4 (gl_MD2):
54017         * m4/md4.m4 (gl_MD4):
54018         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
54019         * m4/read-file.m4 (gl_FUNC_READ_FILE):
54020         * m4/readline.m4 (gl_FUNC_READLINE):
54021         * m4/rijndael.m4 (gl_RIJNDAEL):
54022         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54023         to get the necessary .h files and whatnot.
54024
54025 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54026
54027         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
54028         gnulib rather than the other way around.
54029         * config/srclistvars.sh (COREUTILS): Remove.
54030
54031 2006-08-22  Jim Meyering  <jim@meyering.net>
54032
54033         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
54034
54035         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
54036
54037 2006-08-22  Eric Blake  <ebb9@byu.net>
54038
54039         * modules/regexprops-generic: New file.
54040         * MODULES.html.sh (Support for building documentation): List it.
54041
54042 2006-08-22  Eric Blake  <ebb9@byu.net>
54043
54044         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
54045         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54046         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
54047         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54048
54049 2006-08-22  Bruno Haible  <bruno@clisp.org>
54050
54051         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
54052         and lib_LTLIBRARIES like the other lib_* variables.
54053
54054 2006-08-22  Bruno Haible  <bruno@clisp.org>
54055
54056         * build-aux/x-to-1.in: New file, from GNU gettext.
54057
54058 2006-08-22  Bruno Haible  <bruno@clisp.org>
54059
54060         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
54061         <utmpx.h> exists.
54062
54063 2006-08-22  Bruno Haible  <bruno@clisp.org>
54064
54065         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
54066         <utmpx.h> exists.
54067
54068 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54069
54070         BeOS portability.
54071         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
54072         exist.
54073         Problem reported by Bruno Haible.
54074
54075 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         Avoid the need for AC_LIBSOURCES in m4 macros.
54078         * modules/acl (EXTRA_DIST): Add acl.h.
54079         * modules/argmatch (Files): Add m4/argmatch.m4.
54080         (configure.ac): Add gl_ARGMATCH.
54081         (EXTRA_DIST): Renamed from lib_SOURCES, for
54082         consistency with the other modules.  Remove argmatch.c.
54083         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
54084         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
54085         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
54086         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
54087         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
54088         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
54089         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
54090         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
54091         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
54092         * modules/closeout (EXTRA_DIST): Add closeout.h.
54093         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
54094         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
54095         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
54096         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
54097         dirname.h; remove basename.c and stripslash.c.
54098         * modules/exclude (EXTRA_DIST): Add exclude.h.
54099         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
54100         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
54101         * modules/file-type (EXTRA_DIST): Add file-type.h.
54102         * modules/filemode (EXTRA_DIST): Add filemode.h.
54103         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
54104         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54105         * modules/fpending (EXTRA_DIST): Add __fpending.h.
54106         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
54107         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
54108         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
54109         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
54110         * modules/getdate (EXTRA_DIST): Add getdate.c.
54111         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
54112         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
54113         * modules/getpass (EXTRA_DIST): Add getpass.h.
54114         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
54115         * modules/group-member (EXTRA_DIST): Add group-member.h.
54116         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
54117         * modules/hash (EXTRA_DIST): Add hash.h.
54118         * modules/human (EXTRA_DIST): Add human.h.
54119         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
54120         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
54121         * modules/lchown (EXTRA_DIST): Add lchown.h.
54122         * modules/long-options (EXTRA_DIST): Add long-options.h.
54123         * modules/lstat (EXTRA_DIST): Add lstat.h.
54124         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
54125         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
54126         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
54127         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
54128         * modules/memxor (EXTRA_DIST): Add memxor.h.
54129         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
54130         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
54131         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
54132         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
54133         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
54134         * modules/physmem (EXTRA_DIST): Add physmem.h.
54135         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
54136         * modules/posixver (EXTRA_DIST): Add posixver.h.
54137         * modules/quote (EXTRA_DIST): Add quote.h.
54138         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
54139         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
54140         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
54141         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
54142         regex_internal.h regexec.c.
54143         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
54144         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
54145         * modules/same (EXTRA_DIST): Add same.h.
54146         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
54147         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
54148         * modules/savedir (EXTRA_DIST): Add savedir.h.
54149         * modules/sha1 (EXTRA_DIST): Add sha1.h.
54150         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
54151         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
54152         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
54153         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
54154         * modules/strdup (EXTRA_DIST): Add strdup.h.
54155         * modules/strftime (EXTRA_DIST): Add strftime.h.
54156         * modules/strndup (EXTRA_DIST): Add strndup.h.
54157         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
54158         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
54159         * modules/time_r (EXTRA_DIST): Add time_r.h.
54160         * modules/timespec (EXTRA_DIST): Add timespec.h.
54161         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54162         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
54163         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
54164         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
54165         * modules/userspec (EXTRA_DIST): Add userspec.h.
54166         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
54167         * modules/utimens (EXTRA_DIST): Add utimens.h.
54168         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
54169         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
54170         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
54171         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
54172         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
54173         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
54174         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
54175         * modules/yesno (EXTRA_DIST): Add yesno.h.
54176
54177 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54178
54179         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
54180
54181         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
54182         * m4/dev-ino.m4, same-inode.m4: Remove.
54183
54184         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
54185         * m4/acl.m4 (AC_FUNC_ACL):
54186         * m4/backupfile.m4 (gl_BACKUPFILE):
54187         * m4/c-strtod.m4 (gl_C99_STRTOLD):
54188         * m4/canon-host.m4 (gl_CANON_HOST):
54189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54190         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
54191         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
54192         * m4/cloexec.m4 (gl_CLOEXEC):
54193         * m4/close-stream.m4 (gl_CLOSE_STREAM):
54194         * m4/closeout.m4 (gl_CLOSEOUT):
54195         * m4/dirfd.m4 (gl_FUNC_DIRFD):
54196         * m4/dirname.m4 (gl_DIRNAME):
54197         * m4/exclude.m4 (gl_EXCLUDE):
54198         * m4/exitfail.m4 (gl_EXITFAIL):
54199         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
54200         * m4/file-type.m4 (gl_FILE_TYPE):
54201         * m4/filemode.m4 (gl_FILEMODE):
54202         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
54203         * m4/fpending.m4 (gl_FUNC_FPENDING):
54204         * m4/fprintftime.m4 (gl_FPRINTFTIME):
54205         * m4/fts.m4 (gl_FUNC_FTS):
54206         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
54207         * m4/getdate.m4 (gl_GETDATE):
54208         * m4/gethrxtime.m4 (gl_GETHRXTIME):
54209         * m4/getpagesize.m4 (gl_GETPAGESIZE):
54210         * m4/getpass.m4 (gl_FUNC_GETPASS):
54211         * m4/gettime.m4 (gl_GETTIME):
54212         * m4/getugroups.m4 (gl_GETUGROUPS):
54213         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
54214         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
54215         * m4/hard-locale.m4 (gl_HARD_LOCALE):
54216         * m4/hash.m4 (gl_HASH):
54217         * m4/idcache.m4 (gl_IDCACHE):
54218         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
54219         * m4/lchown.m4 (gl_FUNC_LCHOWN):
54220         * m4/long-options.m4 (gl_LONG_OPTIONS):
54221         * m4/lstat.m4 (gl_FUNC_LSTAT):
54222         * m4/md5.m4 (gl_MD5):
54223         * m4/memcasecmp.m4 (gl_MEMCASECMP):
54224         * m4/memcoll.m4 (gl_MEMCOLL):
54225         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
54226         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
54227         * m4/memxor.m4 (gl_MEMXOR):
54228         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
54229         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
54230         * m4/modechange.m4 (gl_MODECHANGE):
54231         * m4/mountlist.m4 (gl_MOUNTLIST):
54232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54233         * m4/openat.m4 (gl_FUNC_OPENAT):
54234         * m4/pathmax.m4 (gl_PATHMAX):
54235         * m4/physmem.m4 (gl_PHYSMEM):
54236         * m4/posixtm.m4 (gl_POSIXTM):
54237         * m4/posixver.m4 (gl_POSIXVER):
54238         * m4/quote.m4 (gl_QUOTE):
54239         * m4/quotearg.m4 (gl_QUOTEARG):
54240         * m4/readtokens.m4 (gl_READTOKENS):
54241         * m4/readutmp.m4 (gl_READUTMP):
54242         * m4/regex.m4 (gl_REGEX):
54243         * m4/safe-read.m4 (gl_SAFE_READ):
54244         * m4/safe-write.m4 (gl_SAFE_WRITE):
54245         * m4/same.m4 (gl_SAME):
54246         * m4/save-cwd.m4 (gl_SAVE_CWD):
54247         * m4/savedir.m4 (gl_SAVEDIR):
54248         * m4/settime.m4 (gl_SETTIME):
54249         * m4/sha1.m4 (gl_SHA1):
54250         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
54251         * m4/stat-macros.m4 (gl_STAT_MACROS):
54252         * m4/stat-time.m4 (gl_STAT_TIME):
54253         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
54254         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
54255         * m4/strdup.m4 (gl_FUNC_STRDUP):
54256         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
54257         * m4/strndup.m4 (gl_FUNC_STRNDUP):
54258         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
54259         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
54260         * m4/time_r.m4 (gl_TIME_R):
54261         * m4/timespec.m4 (gl_TIMESPEC):
54262         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
54263         * m4/unlinkdir.m4 (gl_UNLINKDIR):
54264         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
54265         * m4/userspec.m4 (gl_USERSPEC):
54266         * m4/utimecmp.m4 (gl_UTIMECMP):
54267         * m4/utimens.m4 (gl_UTIMENS):
54268         * m4/xalloc.m4 (gl_XALLOC):
54269         * m4/xgetcwd.m4 (gl_XGETCWD):
54270         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
54271         * m4/xreadlink.m4 (gl_XREADLINK):
54272         * m4/xstrtod.m4 (gl_XSTRTOD):
54273         * m4/yesno.m4 (gl_YESNO):
54274         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54275         to get the necessary .h files and whatnot.
54276
54277 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
54278             Bruno Haible  <bruno@clisp.org>
54279
54280         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
54281         /bin/sh understanding of '!' conditional negation.
54282
54283 2006-08-21  Jim Meyering  <jim@meyering.net>
54284
54285         * modules/openat (Depends-on): Really alphabetize.
54286
54287         * modules/acl (Depends-on): Add error and quote.
54288
54289         * check-module (find_included_lib_files): Add at-func.c to the
54290         ok-to-include-more-than-once white list.
54291
54292         * modules/openat (Depends-on): Add lstat.  Alphabetize.
54293
54294 2006-08-21  Bruno Haible  <bruno@clisp.org>
54295
54296         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54297         Emit a pkgdata_DATA variable only if some snippets add contents to it.
54298         Reported by Martin Lambers <marlam@marlam.de>.
54299
54300 2006-08-21  Bruno Haible  <bruno@clisp.org>
54301
54302         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
54303         specify an installation location, don't emit a noinst_LIBRARIES or
54304         noinst_LTLIBRARIES assignment.
54305
54306 2006-08-21  Bruno Haible  <bruno@clisp.org>
54307
54308         BeOS portability.
54309         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
54310         BeOS has mbrtowc() but no <wctype.h>.
54311
54312 2006-08-21  Bruno Haible  <bruno@clisp.org>
54313
54314         BeOS portability.
54315         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
54316         exist.
54317
54318 2006-08-21  Bruno Haible  <bruno@clisp.org>
54319
54320         BeOS portability.
54321         * lib/mbchar.h: Include <wctype.h> only if it exists.
54322
54323 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54324
54325         Remove files that are no longer needed by their respective modules.
54326         * m4/obstack.m4: Remove.
54327         * m4/strerror_r.m4: Remove.
54328         * m4/uint32_t.m4: Remove.
54329         * m4/uintptr_t.m4: Remove.
54330         * m4/ullong_max.m4: Remove.
54331         * m4/xstrtoimax.m4: Remove.
54332         * m4/xstrtoumax.m4: Remove.
54333
54334         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
54335         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
54336         dependencies now capture this.
54337
54338         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
54339         Do not use AC_LIBSOURCES, since gnulib modules now do this.
54340         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
54341         * m4/human.m4 (gl_HUMAN): Likewise.
54342         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
54343         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
54344
54345         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
54346
54347         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
54348         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
54349         stdint.
54350         * m4/human.m4 (gl_HUMAN): Likewise.
54351         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
54352         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
54353         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54354         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54355         * m4/xstrtol (gl_XSTRTOL): Likewise.
54356
54357         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
54358         AC_TYPE_LONG_LONG_INT.
54359         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54360         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
54361         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
54362         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54363
54364         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
54365         on stdbool.
54366
54367         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
54368         (gl_PREREQ_XSTRTOUL): Remove.
54369
54370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
54371
54372         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
54373         mode.
54374
54375 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54376
54377         Add and change modules to make it easier for coreutils to use
54378         gnulib-tool.
54379         * modules/backupfile (Files): Remove m4/d-ino.m4.
54380         (Depends-on): Add d-ino.
54381         * modules/cycle-check (Depends-on): Add stdint.
54382         (lib_SOURCES): Add cycle-check.h.
54383         * modules/d-ino: New module.
54384         * modules/d-type: New module.
54385         * modules/error (Files): Remove m4/strerror_r.m4.
54386         * modules/filemode (Files): Add m4/st_dm_mode.m4.
54387         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54388         m4/inttypes_h.m4, m4/uintmax_t.m4.
54389         (Depends-on): Add stdint.
54390         (lib_SOURCES): Add fsusage.h.
54391         * modules/getcwd (Files): Remove d-ino.m4.
54392         (Depends-on): Add d-ino.
54393         * modules/getndelim2 (Depends-on): Add stdint.
54394         * modules/glob (Files): Remove m4/d-type.m4.
54395         (Depends-on): Add d-type.
54396         * modules/host-os: New module.
54397         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
54398         m4/inttypes_h.m4, m4/uintmax_t.m4.
54399         * Depends-on: Add stdint.
54400         (lib_SOURCES): Add human.h.
54401         * modules/inttostr (Files): Remove m4/intmax_t.m4,
54402         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
54403         m4/uintmax_t.m4, m4/ulonglong.m4.
54404         (Depends-on): Add stdint.
54405         (EXTRA_DIST): Add inttostr.h.
54406         * modules/lchmod: New module.
54407         * modules/link-follow: New module.
54408         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54409         (Depends-on): Add lchmod.
54410         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54411         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54412         (Depends-on): Add stdint.
54413         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54414         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54415         (Depends-on): Add stdint.
54416         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54417         * modules/perl: New module.
54418         * modules/regex (Depends-on): Add stdint.
54419         * modules/rmdir-errno: New module.
54420         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54421         m4/intmax_t.m4.
54422         (Depends-on): Add stdint.
54423         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54424         m4/uintmax_t.m4.
54425         (Depends-on): Add stdint.
54426         * modules/unlink-busy: New module.
54427         * modules/utimecmp (Depends-on): Add stdint.
54428         * modules/uptime: New module.
54429         * modules/winsz-ioctl: New module.
54430         * modules/winsz-termios: New module.
54431         * modules/xnanosleep (Depends-on): Add nanosleep.
54432         * modules/ullong_max: Remove.
54433         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54434         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54435         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54436         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54437         (Depends-on): Add inttypes.
54438         (lib_SOURCES): Add xstrtol.h.
54439         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54440         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54441         * MODULES.html.sh: Move 'assert' into the assert section.
54442         Move 'dummy' into the linking section.
54443         Remove ullong_max.
54444         Add section for compatibility checks for POSIX:2001 functions,
54445         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54446         winsz-ioctl, and winsz-termios into it.
54447         Add lchmod.
54448         Add top-level Misc section and put host-os, perl, and uptime
54449         into it.
54450
54451 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54452
54453         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
54454         now assume the stdint module.  Do not include inttypes.h.
54455         * lib/fsusage.h: Likewise.
54456         * lib/getndelim2.c: Likewise.
54457         * lib/human.h: Likewise.
54458         * lib/inttostr.h: Likewise.
54459         * lib/obstack.c: Likewise.
54460         * lib/regex_internal.h: Likewise.
54461         * lib/tempname.c: Likewise.
54462         * lib/utimecmp.c: Likewise.
54463         * lib/xstrtol.h: Likewise.
54464
54465         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54466
54467         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54468         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54469         * lib/xtime.h: Likewise.
54470
54471 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54472
54473         * modules/openat (Files): Add lib/fchmodat.c.
54474         Fixes problem reported by Jay Youngman.
54475
54476 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54477
54478         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54479         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54480
54481 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54482             Bruno Haible  <bruno@clisp.org>
54483
54484         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54485         and is a script that invokes bison. Tighten the code. Add comments.
54486
54487 2006-08-18  Jim Meyering  <jim@meyering.net>
54488
54489         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54490         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54491         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54492         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54493
54494 2006-08-18  Bruno Haible  <bruno@clisp.org>
54495
54496         * modules/bison-i18n: New file.
54497         * MODULES.html.sh (Internationalization functions): Add it.
54498
54499 2006-08-18  Bruno Haible  <bruno@clisp.org>
54500
54501         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54502         sys/statvfs.h. When getmntinfo was found, check its declaration and
54503         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54504
54505 2006-08-18  Bruno Haible  <bruno@clisp.org>
54506
54507         * m4/bison-i18n.m4: New file, from bison.
54508
54509 2006-08-18  Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54512         (ME_DUMMY): Treat "kernfs" as a dummy.
54513         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54514
54515 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54516
54517         Update from coreutils.
54518
54519         2006-08-15  Jim Meyering  <jim@meyering.net>
54520
54521         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54522
54523         2006-01-17  Jim Meyering  <jim@meyering.net>
54524
54525         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54526
54527         2006-01-11  Jim Meyering  <jim@meyering.net>
54528
54529         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54530         Check for the lchmod function.
54531
54532 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54533
54534         Update from coreutils.
54535
54536         * lib/__fpending.h: Add copyright notice.
54537         * lib/fprintftime.h: Likewise.
54538         * lib/savedir.c: Use (C) in copyright notice.
54539         * lib/savedir.h: Likewise.
54540
54541         2006-08-15  Jim Meyering  <jim@meyering.net>
54542
54543         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54544         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54545         in support of the EXPECTED_ERRNO macro.
54546         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54547         definitions.  Instead, define the appropriate symbols and include
54548         "at-func.c".
54549         * lib/mkdirat.c (mkdirat): Likewise.
54550         * lib/fchmodat.c (fchmodat): Likewise.
54551         (ENOSYS): Remove definition.
54552         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54553         it.  Don't include "unistd--.h" -- it wasn't ever used.
54554
54555         2006-01-17  Jim Meyering  <jim@meyering.net>
54556
54557         Rewrite fts.c not to change the current working directory,
54558         by using openat, fstatat, fdopendir, etc..
54559
54560         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54561         (HAVE_OPENAT_SUPPORT): Define.
54562         [_LIBC] (fchdir): Don't undef or define; no longer used.
54563         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54564         Now, this `function' always succeeds, and consumes its file descriptor
54565         parameter -- so callers must not close such FDs.  Update callers.
54566         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54567         (diropen): Add parameter, SP.  Adjust all callers.
54568         Implement using diropen_fd, rather than open.
54569         (fts_open): Initialize new member, fts_cwd_fd.
54570         Remove fts_rft-setting code.
54571         (fts_close): Close fts_cwd_fd, if necessary.
54572         (__opendir2): Define in terms of opendir or opendirat,
54573         depending on whether the FST_NOCHDIR flag is set.
54574         (fts_build): Since fts_safe_changedir consumes its FD, and since
54575         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54576         and close the dup'd file descriptor upon failure.
54577         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54578         (fts_safe_changedir): Tweak semantics to reflect that this function
54579         now calls cwd_advance_fd and hence consumes its FD argument.
54580         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54581         [struct FTS] (fts_rft): Remove now-unused member.
54582         [struct FTS] (fts_cycle.state): Improve comment.
54583
54584         * lib/openat.c (openat_needs_fchdir): New function.
54585         * lib/openat.h (openat_needs_fchdir): Declare it.
54586
54587 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54588
54589         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54590         Problem and fix reported by Pádraig Brady in
54591         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54592
54593 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54594
54595         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54596
54597 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54598
54599         * lib/memcoll.c (memcoll): Optimize for the common case where the
54600         arguments are bytewise equal.
54601
54602 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54603
54604         * doc/regexprops-generic.texi: Add a copyright notice.
54605
54606 2006-08-15  Bruno Haible  <bruno@clisp.org>
54607
54608         * modules/tmpdir (License): Change to LGPL.
54609
54610 2006-08-15  Bruno Haible  <bruno@clisp.org>
54611
54612         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54613         module.
54614
54615 2006-08-14  Simon Josefsson  <jas@extundo.com>
54616
54617         * config/srclist.txt: Add gnupload.
54618
54619 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         Change copyright notice from LGPL 2 to GPL 2, since that's the
54622         standard form used in the gnulib repository.
54623         * tests/test-lock.c: Likewise.
54624         * tests/test-stdint.c: Likewise.
54625         * tests/test-tls.c: Likewise.
54626
54627         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54628         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54629         Add copyright notice.
54630
54631         * check-module: Add copyright notice.  Output a copyright
54632         notice if "--version" is specified.
54633         * modules/COPYING: New file.
54634         * tests/test-getaddrinfo.c: Add copyright notice.
54635         * tests/test-verify.c: Likewise.
54636
54637 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54638
54639         Change copyright notice from LGPL 2 to GPL 2, since that's the
54640         standard form used in the gnulib repository.
54641         * lib/lock.c: LGPL -> GPL.
54642         * lib/lock.h: Likewise.
54643         * lib/strnlen1.c: Likewise.
54644         * lib/strnlen1.h: Likewise.
54645         * lib/tls.c: Likewise.
54646         * lib/tls.h: Likewise.
54647         * lib/tmpdir.c: Likewise.
54648
54649         * lib/TODO: Remove; this belongs only in coreutils.
54650
54651 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54652
54653         Add copyright notices to long-enough files that lack them, since
54654         otherwise the files aren't clearly free.  Use the same notice that
54655         getdate.texi already uses.
54656         * doc/alloca-opt.texi: Add copyright notice.
54657         * doc/alloca.texi: Likewise.
54658         * doc/ctime.texi: Likewise.
54659         * doc/functions.texi: Likewise.
54660         * doc/gcd.texi: Likewise.
54661         * doc/gnulib-tool.texi: Likewise.
54662         * doc/inet_ntoa.texi: Likewise.
54663         * doc/visibility.texi: Likewise.
54664
54665         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54666         * doc/quote.texi: Add copyright notice.
54667
54668         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54669         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54670         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54671         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54672         is now obsolete, and give a pointer to the Sun list.
54673         Add copyright notice.
54674
54675 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54676
54677         * config/srclistvars.sh: Add copyright notice.
54678
54679 2006-08-14  Eric Blake  <ebb9@byu.net>
54680
54681         Import the following change from libc:
54682
54683         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54684
54685         Upstream bug 2997.
54686         * lib/misc/error.c: Add space between program name and message if file
54687         name is missing.
54688
54689 2006-08-12  Karl Berry  <karl@gnu.org>
54690
54691         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54692         remove, these originate in gnulib now.
54693
54694 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54695
54696         * doc/Makefile (standards.info standards.html standards.dvi):
54697         Also depend on make-stds.texi.
54698
54699 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54702         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54703
54704         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54705         in wchar_t.  Problem reported by Eric Blake.
54706
54707         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54708         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54709         Also, help the compiler to keep LEN in a register.
54710
54711 2006-08-11  Eric Blake  <ebb9@byu.net>
54712
54713         * users.txt: Sort.  Add tar.
54714
54715 2006-08-11  Bruno Haible  <bruno@clisp.org>
54716
54717         * users.txt: New file.
54718
54719 2006-08-11  Bruno Haible  <bruno@clisp.org>
54720
54721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54722         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54723
54724 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54725
54726         * modules/snprintf (Depends-on): Remove minmax.
54727         (Maintainer): Add self and Bruno.
54728
54729 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54732         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54733         (EOVERFLOW): Define if the system does not.
54734         Do not include "minmax.h"; it wasn't used.
54735         (snprintf): Don't assume size_t promotes to an unsigned type.
54736         Fix bug when generated string was too long for the buffer: the
54737         buffer's contents are supposed to be the initial prefix of the
54738         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54739         exceeds INT_MAX; do the check ourselves.
54740
54741         Import the following changes from libc:
54742
54743         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54744
54745         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54746         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54747         set wc to the byte which couldn't be converted.
54748         (re_string_reconstruct): Don't clear valid_raw_len before calling
54749         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54750         tip_context using re_string_context_at.
54751
54752         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54753
54754         * lib/posix/regex.h: g++ still cannot handled [restrict].
54755
54756         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54757
54758         * lib/posix/regex.h: Remove special handling for VMS.
54759
54760 2006-08-10  Jim Meyering  <jim@meyering.net>
54761
54762         * modules/same-inode: New module.
54763         * modules/dev-ino: New module.
54764         * modules/cycle-check: Depend on these modules, rather than simply
54765         including their .h files.
54766         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54767         required via m4/cycle-check.m4.
54768         * modules/same: Depend on new same-inode module, rather than
54769         including same-inode.h.
54770         * modules/chdir-safer: New file.
54771
54772         * modules/chown (Depends-on): Add stat-macros.
54773
54774 2006-08-10  Jim Meyering  <jim@meyering.net>
54775
54776         * m4/cycle-check.m4: New file.
54777         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54778         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54779
54780 2006-08-10  Eric Blake  <ebb9@byu.net>
54781
54782         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54783         in from original proposal.
54784
54785 2006-08-10  Eric Blake  <ebb9@byu.net>
54786         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54787
54788         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54789         namespace.
54790
54791 2006-08-10  Bruno Haible  <bruno@clisp.org>
54792
54793         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54794         as well.
54795
54796 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54797
54798         Sync from coreutils.
54799
54800         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54801
54802         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54803         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54804
54805 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         * modules/restrict: Remove; no longer needed now that we assume
54808         Autoconf 2.59 or later.
54809         * MODULES.html.sh: Remove 'restrict'.
54810         * modules/argp (Depends-on): Remove 'restrict'.
54811         * modules/base64 (Depends-on): Likewise.
54812         * modules/gc (Depends-on): Likewise.
54813         * modules/getaddrinfo (Depends-on): Likewise.
54814         * modules/glob (Depends-on): Likewise.
54815         * modules/inet_ntop (Depends-on): Likewise.
54816         * modules/inet_pton (Depends-on): Likewise.
54817         * modules/memxor (Depends-on): Likewise.
54818         * modules/regex (Depends-on): Likewise.
54819         * modules/strtok_r (Depends-on): Likewise.
54820         * modules/time_r (Depends-on): Likewise.
54821
54822 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54823
54824         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54825         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54826         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54827         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54828         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54829         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54830         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54831         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54832
54833         Merge from coreutils.
54834         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54835         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54836         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54837         * m4/time_r.m4 (gl_TIME_R): Likewise.
54838
54839 2006-08-09  Karl Berry  <karl@gnu.org>
54840
54841         * config/srclist.txt: no more gettext-tools, per Bruno.
54842
54843 2006-08-08  Eric Blake  <ebb9@byu.net>
54844
54845         * modules/verror: New module.
54846         * MODULES.html.sh: Document it.
54847
54848 2006-08-08  Eric Blake  <ebb9@byu.net>
54849
54850         * lib/verror.h, lib/verror.c: New files.
54851
54852 2006-08-08  Eric Blake  <ebb9@byu.net>
54853
54854         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54855         verror_at_line output complies with GNU Coding Standards even when
54856         file is NULL.
54857
54858 2006-08-07  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54861         versions of AIX.
54862         Reported by Ralf Wildenhues.
54863
54864 2006-08-07  Bruno Haible  <bruno@clisp.org>
54865
54866         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54867         in an AC_DEFUN. Needed so that the autoconf snippets can use
54868         AC_REQUIRE.
54869
54870 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54871
54872         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54873         Initialize pkgdata_DATA.
54874         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54875         overriding it.
54876
54877 2006-08-06  Eric Blake  <ebb9@byu.net>
54878
54879         * lib/error.h: Fold in some upstream changes from glibc.
54880         * lib/error.c: Likewise.
54881
54882 2006-08-04  Bruno Haible  <bruno@clisp.org>
54883
54884         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54885         Make the mostlyclean-local rule depend on mostlyclean-generic.
54886         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54887
54888 2006-07-31  Bruno Haible  <bruno@clisp.org>
54889
54890         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54891         <stdlib.h>, <string.h>.
54892
54893 2006-07-30  Bruno Haible  <bruno@clisp.org>
54894
54895         * modules/readlink (License): Change to LGPL.
54896
54897 2006-07-30  Bruno Haible  <bruno@clisp.org>
54898
54899         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54900         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54901         set PKGDATADIR to point to it.
54902
54903 2006-07-30  Bruno Haible  <bruno@clisp.org>
54904
54905         * modules/csharpexec (configure.ac): Comment out macro invocation.
54906         * modules/javaexec (configure.ac): Likewise.
54907         * modules/javacomp-script (configure.ac): Likewise.
54908
54909         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54910
54911 2006-07-30  Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54914         linked-list.
54915
54916 2006-07-30  Bruno Haible  <bruno@clisp.org>
54917
54918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54919
54920 2006-07-30  Bruno Haible  <bruno@clisp.org>
54921
54922         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54923         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54924         get removed.
54925
54926 2006-07-29  Bruno Haible  <bruno@clisp.org>
54927
54928         Make it possible for gnulib-tool to work with locally modified or
54929         augmented gnulib repositories.
54930         * gnulib-tool (func_usage): Document --local-dir option.
54931         (local_gnulib_dir): New variable.
54932         Handle --local-dir option.
54933         (func_lookup_file): New function.
54934         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54935         (func_get_description, func_get_filelist, func_get_description,
54936         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54937         func_get_automake_snippet, func_get_include_directive,
54938         func_get_license, func_get_maintainer): Use func_lookup_file.
54939         (func_import, func_create_testdir): Use func_lookup_file.
54940
54941 2006-07-29  Bruno Haible  <bruno@clisp.org>
54942
54943         * modules/setenv (Depends-on): Add unistd.
54944
54945 2006-07-29  Bruno Haible  <bruno@clisp.org>
54946
54947         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54948
54949 2006-07-29  Bruno Haible  <bruno@clisp.org>
54950
54951         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54952
54953 2006-07-29  Bruno Haible  <bruno@clisp.org>
54954
54955         * gnulib-tool (import, update): If there is no Makefile.am, look at
54956         aclocal.m4, instead of bailing out.
54957
54958 2006-07-29  Bruno Haible  <bruno@clisp.org>
54959
54960         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54961         Categorize the options by when they are useful.
54962
54963 2006-07-29  Bruno Haible  <bruno@clisp.org>
54964
54965         * gnulib-tool (func_usage): Document option --no-libtool.
54966         Handle option --no-libtool.
54967         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54968         for changed semantics of $libtool variable.
54969         (func_import): Likewise. If libtool is not used, show this through
54970         an option --no-libtool.
54971         (func_create_testdir): Update.
54972
54973 2006-07-29  Bruno Haible  <bruno@clisp.org>
54974
54975         * gnulib-tool (func_import): Extend error message about missing
54976         --doc-base.
54977
54978 2006-07-29  Bruno Haible  <bruno@clisp.org>
54979
54980         * gnulib-tool (func_import): Don't create the $docbase directory if
54981         there is no file to store there.
54982
54983 2006-07-29  Bruno Haible  <bruno@clisp.org>
54984
54985         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54986         relevant, look for configure.ac there, not in the current directory.
54987         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54988
54989 2006-07-29  Bruno Haible  <bruno@clisp.org>
54990
54991         * gnulib-tool (SORT): New variable.
54992         (func_usage): Undocument --assume-autoconf option.
54993         Remove --assume-autoconf option handling.
54994         (autoconf_minversion): Determine from the contents of configure.ac.
54995         (func_import): Remove autoconf_minversion handling.
54996         Suggested by Eric Blake.
54997
54998 2006-07-29  Bruno Haible  <bruno@clisp.org>
54999
55000         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
55001
55002 2006-07-29  Bruno Haible  <bruno@clisp.org>
55003
55004         * config/srclist.txt (*setenv.[ch]): Remove rules.
55005
55006 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55007
55008         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
55009
55010 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55011
55012         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
55013         arpa/inet.h.
55014
55015 2006-07-28  Simon Josefsson  <jas@extundo.com>
55016
55017         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
55018         * modules/inet_pton (Depends-on): Likewise.
55019
55020 2006-07-28  Simon Josefsson  <jas@extundo.com>
55021
55022         * m4/netinet_in_h.m4: New file.
55023
55024 2006-07-28  Simon Josefsson  <jas@extundo.com>
55025
55026         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
55027         #include's.
55028
55029 2006-07-28  Simon Josefsson  <jas@extundo.com>
55030
55031         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
55032         #include's.
55033
55034 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
55035
55036         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
55037         setgid on directories only if they set these bits.
55038         * lib/modechange.h: Remove obsolete comment about masks.
55039
55040 2006-07-28  Eric Blake  <ebb9@byu.net>
55041
55042         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
55043         macro expansion.
55044
55045 2006-07-28  Bruno Haible  <bruno@clisp.org>
55046
55047         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
55048
55049 2006-07-28  Bruno Haible  <bruno@clisp.org>
55050
55051         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
55052
55053 2006-07-28  Bruno Haible  <bruno@clisp.org>
55054
55055         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55056         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55057         Define fallbacks.
55058         Avoids link error on FreeBSD 4.x.
55059         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55060
55061         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
55062         encoding.
55063         * lib/mbswidth.c (iswcntrl): Likewise.
55064
55065 2006-07-27  Bruno Haible  <bruno@clisp.org>
55066
55067         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
55068         test.
55069
55070 2006-07-27  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
55073         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
55074         defined.
55075
55076 2006-07-26  Eric Blake  <ebb9@byu.net>
55077
55078         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
55079
55080 2006-07-26  Eric Blake  <ebb9@byu.net>
55081
55082         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
55083         like mingw that lack mkstemp.
55084         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
55085         avoid compilation warning on mingw.
55086
55087 2006-07-26  Bruno Haible  <bruno@clisp.org>
55088
55089         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
55090         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
55091         INT_FAST*_MIN, INTPTR_MIN.
55092
55093 2006-07-25  Bruno Haible  <bruno@clisp.org>
55094
55095         * modules/version-etc (Depends-on): Add stdarg.
55096
55097 2006-07-25  Bruno Haible  <bruno@clisp.org>
55098
55099         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
55100         complex commands.
55101
55102 2006-07-25  Bruno Haible  <bruno@clisp.org>
55103
55104         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
55105         defined in <stdarg.h> or config.h.
55106
55107 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55108
55109         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
55110         (gl_STDIO_SAFER): Remove.
55111
55112 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55113
55114         * MODULES.html.sh (File stream based Input/Output):
55115         Add fopen-safer, tmpfile-safer; remove stdio-safer.
55116         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
55117         * modules/fopen-safer, modules/tmpfile-safer: New files.
55118         * modules/stdio-safer: Remove.
55119
55120 2006-07-24  Bruno Haible  <bruno@clisp.org>
55121
55122         * modules/tmpdir: New file.
55123         * MODULES.html.sh (File system functions): Add it.
55124
55125 2006-07-24  Bruno Haible  <bruno@clisp.org>
55126
55127         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
55128         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
55129
55130 2006-07-24  Bruno Haible  <bruno@clisp.org>
55131
55132         * modules/clean-temp: New file.
55133
55134 2006-07-24  Bruno Haible  <bruno@clisp.org>
55135
55136         * m4/tmpdir.m4: New file, from GNU gettext.
55137
55138 2006-07-24  Bruno Haible  <bruno@clisp.org>
55139
55140         * lib/tmpdir.h: New file, from GNU gettext.
55141         * lib/tmpdir.c: New file, from GNU gettext.
55142
55143 2006-07-24  Bruno Haible  <bruno@clisp.org>
55144
55145         * lib/clean-temp.h: New file, from GNU gettext.
55146         * lib/clean-temp.c: New file, from GNU gettext.
55147
55148 2006-07-23  Eric Blake  <ebb9@byu.net>
55149
55150         * modules/stdio-safer (Files): Add tmpfile-safer.c.
55151         (Depends-on): Add binary-io.
55152
55153 2006-07-23  Eric Blake  <ebb9@byu.net>
55154
55155         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
55156
55157 2006-07-23  Eric Blake  <ebb9@byu.net>
55158
55159         * lib/tmpfile-safer.c: New file.
55160         * lib/stdio-safer.h (fopen_safer): Add prototype.
55161         * lib/stdio--.h (tmpfile): Make safer.
55162
55163 2006-07-23  Bruno Haible  <bruno@clisp.org>
55164
55165         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
55166         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
55167         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
55168         gl_linked_remove_at): Use it.
55169
55170 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55171         and Simon Josefsson <jas@extundo.com>
55172
55173         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
55174
55175         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
55176
55177 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * modules/close-stream: New file.
55180         * modules/closeout (Description): Make it clear that it exits
55181         with a diagnostic on error.
55182         (Depends-on): Add close-stream.  Remove fpending, stdbool.
55183         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
55184
55185 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55186
55187         * m4/close-stream.m4: New file.
55188
55189 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55190
55191         * lib/close-stream.c, lib/close-stream.h: New files.
55192
55193 2006-07-22  Bruno Haible  <bruno@clisp.org>
55194
55195         Merge from GNU gettext 0.15.
55196
55197         2006-05-01  Bruno Haible  <bruno@clisp.org>
55198
55199                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
55200
55201         2006-07-22  Bruno Haible  <bruno@clisp.org>
55202
55203                 * modules/javaversion: New file.
55204                 * MODULES.html.sh (Java): Add javaversion.
55205
55206         2006-03-12  Bruno Haible  <bruno@clisp.org>
55207
55208                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
55209
55210         2005-12-04  Bruno Haible  <bruno@clisp.org>
55211
55212                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
55213                 (untested).
55214
55215         2006-06-21  Bruno Haible  <bruno@clisp.org>
55216
55217                 Avoid warnings from recent versions of mcs.
55218                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
55219                 -o, -L, -r any more. Use options documented since mcs-1.0
55220                 instead. Similarly for -g.
55221
55222         2005-12-04  Bruno Haible  <bruno@clisp.org>
55223
55224                 * build-aux/csharpcomp.sh.in: Suffix for resources is
55225                 .resources, not .resource.
55226
55227         2005-07-09  Bruno Haible  <bruno@clisp.org>
55228
55229                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
55230                 add a .dll suffix.
55231                 Reported by Mark Junker <mjscod@gmx.de>.
55232
55233         2006-07-22  Bruno Haible  <bruno@clisp.org>
55234
55235                 * modules/gettext: Upgrade to gettext-0.15.
55236                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
55237                 m4/visibility.m4.
55238                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
55239
55240 2006-07-22  Bruno Haible  <bruno@clisp.org>
55241
55242         Merge from GNU gettext 0.15.
55243
55244         2006-03-25  Bruno Haible  <bruno@clisp.org>
55245
55246                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
55247
55248         2006-07-21  Bruno Haible  <bruno@clisp.org>
55249
55250                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
55251                 "1.1".
55252
55253         2006-05-09  Bruno Haible  <bruno@clisp.org>
55254
55255                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
55256                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55257                 for the conftestver execution.
55258
55259         2006-05-01  Bruno Haible  <bruno@clisp.org>
55260
55261                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
55262                 optional target-version argument. Verify that the compiler
55263                 groks source of the specified source-version, or add -source
55264                 option as necessary. Verify that the compiler produces
55265                 bytecode in the specified target-version, or add -target and
55266                 -source options as necessary. Make the result of the test
55267                 available as variable CONF_JAVAC. Also log error output in
55268                 config.log.
55269
55270         2006-03-11  Bruno Haible  <bruno@clisp.org>
55271
55272                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
55273
55274         2006-05-09  Bruno Haible  <bruno@clisp.org>
55275
55276                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
55277                 CLASSPATH_SEPARATOR to a semicolon.
55278
55279         2006-03-12  Bruno Haible  <bruno@clisp.org>
55280
55281                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
55282                 available as variable CONF_JAVA, for subsequent autoconf
55283                 tests. Also log error output in config.log.
55284
55285         2006-07-19  Bruno Haible  <bruno@clisp.org>
55286
55287                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
55288                 that getline works on glibc2 systems. Needed to avoid trouble
55289                 in relocatable.c.
55290                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
55291
55292         2005-12-04  Bruno Haible  <bruno@clisp.org>
55293
55294                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
55295                 launcher (untested).
55296
55297         2005-12-04  Bruno Haible  <bruno@clisp.org>
55298
55299                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
55300
55301         2006-07-22  Bruno Haible  <bruno@clisp.org>
55302
55303                 * gettext.m4: Update from GNU gettext-0.15.
55304                 * nls.m4: Likewise.
55305                 * po.m4: Likewise.
55306                 * inttypes-pri.m4: Likewise.
55307                 * inttypes-h.m4: Renamed from inttypes.m4.
55308                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
55309
55310 2006-07-22  Bruno Haible  <bruno@clisp.org>
55311
55312         Merge from GNU gettext 0.15.
55313
55314         2005-07-05  Bruno Haible  <bruno@clisp.org>
55315
55316                 * printf-args.c (printf_fetchargs): Work around broken
55317                 definition of wint_t on mingw.
55318
55319         2005-02-12  Bruno Haible  <bruno@clisp.org>
55320
55321                 * xallocsa.h: Add extern "C" for C++.
55322
55323         2006-05-17  Bruno Haible  <bruno@clisp.org>
55324
55325                 Cygwin portability.
55326                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55327
55328         2006-04-30  Bruno Haible  <bruno@clisp.org>
55329
55330                 * progreloc.c: Include <mach-o/dyld.h> if available.
55331                 (find_executable): Use _NSGetExecutablePath when possible.
55332
55333         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55334
55335                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
55336                 function.
55337
55338         2005-12-29  Bruno Haible  <bruno@clisp.org>
55339
55340                 * progreloc.c (set_program_name_and_installdir): Fix
55341                 compilation error.
55342
55343         2005-12-04  Bruno Haible  <bruno@clisp.org>
55344
55345                 Cygwin portability.
55346                 * progreloc.c: Include <windows.h> also on Cygwin.
55347                 (find_executable): Add support for Cygwin.
55348                 (set_program_name_and_installdir): Handle also platforms with
55349                 nonempty EXEEXT.
55350
55351         2006-07-11  Bruno Haible  <bruno@clisp.org>
55352
55353                 * javacomp.c: Fix a comment.
55354                 Reported by Jim Meyering.
55355
55356         2006-04-30  Bruno Haible  <bruno@clisp.org>
55357
55358                 * javacomp.h (compile_java_class): Add source_version,
55359                 target_version arguments.
55360                 * javacomp.c: Rewritten to choose only a compiler that
55361                 respects the specified source_version and target_version.
55362
55363         2006-06-27  Bruno Haible  <bruno@clisp.org>
55364
55365                 Assume correct S_ISDIR macro.
55366                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
55367
55368         2006-07-22  Bruno Haible  <bruno@clisp.org>
55369
55370                 * javaversion.h: New file, from GNU gettext.
55371                 * javaversion.c: New file, from GNU gettext.
55372                 * javaversion.java: New file, from GNU gettext.
55373                 * javaversion.class: New file, from GNU gettext.
55374
55375         2006-05-17  Bruno Haible  <bruno@clisp.org>
55376
55377                 Cygwin portability.
55378                 * javaexec.c (execute_java_class): Test for jview program
55379                 also on Cygwin.
55380
55381         2006-04-09  Bruno Haible  <bruno@clisp.org>
55382
55383                 * fatal-signal.c: Don't include string.h.
55384                 (at_fatal_signal): Use a copying loop instead of memcpy.
55385
55386         2005-12-04  Bruno Haible  <bruno@clisp.org>
55387
55388                 * csharpexec.c: Add support for 'clix' launcher (untested).
55389                 (execute_csharp_using_sscli): New function.
55390                 (execute_csharp_program): Call it.
55391
55392         2006-06-21  Bruno Haible  <bruno@clisp.org>
55393
55394                 Avoid warnings from recent versions of mcs.
55395                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
55396                 -o, -L, -r any more. Use options documented since mcs-1.0
55397                 instead. Similarly for -g.
55398
55399         2005-07-09  Bruno Haible  <bruno@clisp.org>
55400
55401                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
55402                 add a .dll suffix.
55403                 Reported by Mark Junker <mjscod@gmx.de>.
55404
55405         2006-06-17  Bruno Haible  <bruno@clisp.org>
55406
55407                 * config.charset: Update for NetBSD 3.0.
55408
55409         2006-05-17  Bruno Haible  <bruno@clisp.org>
55410
55411                 Cygwin portability.
55412                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55413
55414         2006-05-16  Bruno Haible  <bruno@clisp.org>
55415
55416                 * localcharset.c [CYGWIN]: Include <windows.h>.
55417                 (get_charset_aliases): For Cygwin, return the same CPxxx
55418                 aliases list as under WIN32.
55419                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55420                 the environment variables. Fall back to GetACP().
55421
55422         2006-04-05  Bruno Haible  <bruno@clisp.org>
55423
55424                 * config.charset: Update Juan Manuel Guerrero's address.
55425
55426         2005-02-12  Bruno Haible  <bruno@clisp.org>
55427
55428                 * allocsa.h: Add extern "C" for C++.
55429
55430         2005-02-10  Bruno Haible  <bruno@clisp.org>
55431
55432                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55433                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55434
55435         2006-07-22  Bruno Haible  <bruno@clisp.org>
55436
55437                 * gettext.h: Update to GNU gettext-0.15.
55438
55439 2006-07-22  Bruno Haible  <bruno@clisp.org>
55440
55441         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55442         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55443         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55444
55445 2006-07-21  Eric Blake  <ebb9@byu.net>
55446
55447         * modules/stdlib-safer: New file.
55448         * MODULES.html.sh (File stream based Input/Output): Add
55449         stdlib-safer.
55450
55451 2006-07-21  Eric Blake  <ebb9@byu.net>
55452
55453         * lib/stdlib-safer.h: New file from coreutils, required by
55454         stdlib--.h.
55455
55456 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
55459
55460 2006-07-20  Bruno Haible  <bruno@clisp.org>
55461
55462         * gnulib-tool: Recognize new option --assume-autoconf.
55463         (autoconf_minversion): New variable.
55464         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55465
55466 2006-07-20  Bruno Haible  <bruno@clisp.org>
55467
55468         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55469
55470 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55471
55472         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55473         Reindent and repaginate.
55474
55475 2006-07-19  Derek Price  <derek@ximbiot.com>
55476
55477         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55478         Correct grammar.
55479
55480 2006-07-17  Bruno Haible  <bruno@clisp.org>
55481
55482         * modules/list: New file.
55483         * modules/array-list: New file.
55484         * modules/carray-list, modules/carray-list-tests: New files.
55485         * modules/linked-list, modules/linked-list-tests: New files.
55486         * modules/avltree-list, modules/avltree-list-tests: New files.
55487         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55488         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55489         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55490         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55491         * modules/oset: New file.
55492         * modules/array-oset: New file.
55493         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55494         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55495         * tests/test-carray_list.c: New file.
55496         * tests/test-linked_list.c: New file.
55497         * tests/test-avltree_list.c: New file.
55498         * tests/test-rbtree_list.c: New file.
55499         * tests/test-linkedhash_list.c: New file.
55500         * tests/test-avltreehash_list.c: New file.
55501         * tests/test-rbtreehash_list.c: New file.
55502         * tests/test-avltree_oset.c: New file.
55503         * tests/test-rbtree_oset.c: New file.
55504         * MODULES.html.sh (Container data structures): New section.
55505
55506 2006-07-17  Bruno Haible  <bruno@clisp.org>
55507
55508         * m4/gl_list.m4: New file.
55509
55510 2006-07-17  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/gl_list.h: New file.
55513         * lib/gl_list.c: New file.
55514         * lib/gl_array_list.h: New file.
55515         * lib/gl_array_list.c: New file.
55516         * lib/gl_carray_list.h: New file.
55517         * lib/gl_carray_list.c: New file.
55518         * lib/gl_linked_list.h: New file.
55519         * lib/gl_linked_list.c: New file.
55520         * lib/gl_anylinked_list1.h: New file.
55521         * lib/gl_anylinked_list2.h: New file.
55522         * lib/gl_avltree_list.h: New file.
55523         * lib/gl_avltree_list.c: New file.
55524         * lib/gl_anyavltree_list1.h: New file.
55525         * lib/gl_anyavltree_list2.h: New file.
55526         * lib/gl_rbtree_list.h: New file.
55527         * lib/gl_rbtree_list.c: New file.
55528         * lib/gl_anyrbtree_list1.h: New file.
55529         * lib/gl_anyrbtree_list2.h: New file.
55530         * lib/gl_anytree_list1.h: New file.
55531         * lib/gl_anytree_list2.h: New file.
55532         * lib/gl_linkedhash_list.h: New file.
55533         * lib/gl_linkedhash_list.c: New file.
55534         * lib/gl_anyhash_list1.h: New file.
55535         * lib/gl_anyhash_list2.h: New file.
55536         * lib/gl_avltreehash_list.h: New file.
55537         * lib/gl_avltreehash_list.c: New file.
55538         * lib/gl_rbtreehash_list.h: New file.
55539         * lib/gl_rbtreehash_list.c: New file.
55540         * lib/gl_anytreehash_list1.h: New file.
55541         * lib/gl_anytreehash_list2.h: New file.
55542
55543         * lib/gl_oset.h: New file.
55544         * lib/gl_oset.c: New file.
55545         * lib/gl_array_oset.h: New file.
55546         * lib/gl_array_oset.c: New file.
55547         * lib/gl_avltree_oset.h: New file.
55548         * lib/gl_avltree_oset.c: New file.
55549         * lib/gl_rbtree_oset.h: New file.
55550         * lib/gl_rbtree_oset.c: New file.
55551         * lib/gl_anytree_oset.h: New file.
55552
55553 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55554
55555         * m4/mkancesdirs.m4: New file.
55556         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55557         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55558         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55559         it.
55560
55561 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55562
55563         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55564         * lib/mkancesdirs.h: New files.
55565         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55566         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55567         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55568         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55569         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55570         callers changed.  Revamp internals significantly, by not
55571         attempting to create directories that are temporarily more
55572         permissive than the final results.  Do not attempt to use
55573         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55574         This removes some race conditions, fixes some bugs, and simplifies
55575         things.  Use new dirchownmod function to do owner and mode changes.
55576         * lib/mkdir-p.h: Likewise.
55577         * lib/modechange.c (octal_to_mode): New function.
55578         (struct mode_change): New member mentioned.
55579         (make_node_op_equals): New arg mentioned.  All callers changed.
55580         (mode_compile): Keep track of which mode bits the user has explicitly
55581         mentioned.
55582         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55583         New arg PMODE_BITS, to keep track of which mode bits the user
55584         mentioned; it treats S_ISUID and S_ISGID speciall.
55585         All callers changed.
55586         * lib/modechange.h: Likewise.
55587
55588 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         * MODULES.html.sh: Add mkancestors.
55591         * modules/mkancesdirs: New module.
55592         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55593         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55594         The chdir-safer and afs files are now orphans; I'll remove them
55595         unless someone speaks up.
55596         Add lib/dirchownmod.c, lib/dirchownmod.h.
55597         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55598         Add lchown, mkancesdirs.
55599         (Maintainer): Add self.
55600
55601 2006-07-15  Karl Berry  <karl@gnu.org>
55602
55603         * gnulib-tool: help message wording/arrangement.
55604
55605 2006-07-14  Simon Josefsson  <jas@extundo.com>
55606
55607         * doc/gnulib.texi (Libtool and Windows): New section.
55608
55609 2006-07-12  Simon Josefsson  <jas@extundo.com>
55610
55611         * modules/gendocs (License): Fix license, approved by Karl.
55612
55613 2006-07-12  Eric Blake  <ebb9@byu.net>
55614
55615         * MODULES.html.sh: Add gendocs.
55616
55617 2006-07-11  Eric Blake  <ebb9@byu.net>
55618
55619         * modules/fdl: New module, to install doc/fdl.texi.
55620         * MODULES.html.sh: Add new section for documentation modules.
55621         * gnulib-tool: Avoid space-tab.
55622         (--doc-base): New option, to manage files from doc.
55623
55624 2006-07-11  Eric Blake  <ebb9@byu.net>
55625
55626         * m4/absolute-header.m4: Fix comments to match recent change.
55627
55628 2006-07-11  Eric Blake  <ebb9@byu.net>
55629
55630         * gnulib-tool: List --doc-base before --tests-base.
55631
55632 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55633
55634         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55635
55636 2006-07-11  Bruno Haible  <bruno@clisp.org>
55637
55638         * README: Mention where to put documentation.
55639
55640 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55641
55642         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55643
55644 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55645
55646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55647         to stdint.m4.
55648
55649 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55650
55651         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55652         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55653         "no/such/file/stdint.h" when there is no such file, so that
55654         the resulting C code can be parsed by dodgy compilers.
55655         Problems reported by Bob Proulx.
55656
55657 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55658
55659         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55660         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55661         macros into the GNU _D_EXACT_NAMLEN.
55662         * lib/savedir.c:  Likewise.
55663         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55664
55665 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55666         and Paul Eggert  <eggert@cs.ucla.edu>
55667
55668         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55669         * m4/savedir.m4:
55670         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55671         macros into the GNU _D_EXACT_NAMLEN.
55672
55673 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55674
55675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55676         around the absolute name, to work around a problem with the HP-UX
55677         11.23 native C compiler, reported by Bob Proulx.
55678
55679 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55680
55681         * doc/maintain.texi, make-stds.texi: Sync from
55682         <http://savannah.gnu.org/projects/gnustandards>.
55683
55684 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55685
55686         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55687
55688 2006-07-09  Jim Meyering  <jim@meyering.net>
55689
55690         * m4/glob.m4: Remove a doubled word in a comment.
55691
55692 2006-07-09  Jim Meyering  <jim@meyering.net>
55693
55694         * lib/argp-pv.c: Remove a doubled word in a comment.
55695         * lib/check-version.c (check_version): Likewise.
55696         * lib/javacomp.c (compile_java_class): Likewise.
55697
55698 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55699
55700         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55701         for the benefit of people using Autoconf 2.60.  If you want to
55702         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55703         (or m4/onceonly.m4, if pre-2.57) manually.
55704
55705 2006-07-08  Jim Meyering  <jim@meyering.net>
55706
55707         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55708         comment.
55709         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55710         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55711         comment.
55712
55713 2006-07-08  Jim Meyering  <jim@meyering.net>
55714
55715         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55716
55717 2006-07-07  Simon Josefsson  <jas@extundo.com>
55718
55719         * tests/test-crc.c: Change expected crc value, the test vector
55720         were probably computed using the old broken crc.c?
55721
55722 2006-07-06  Simon Josefsson  <jas@extundo.com>
55723
55724         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55725         now the canonical place for the M4 file).
55726
55727         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55728         from the sys_socket dependency now.
55729
55730         * modules/inet_pton (Files): Ditto.
55731
55732         * modules/inet_ntop (Files): Ditto.
55733
55734 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55735
55736         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55737         not gl_PREREQ_GETUSERSHELL.
55738
55739 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55740
55741         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55742         with only one argument, for Autoconf 2.60.
55743         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55744         expand to nothing, so add a shell command to avoid syntax error.
55745         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55746
55747 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55748
55749         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55750
55751 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55754         no longer needed.  Check for isblank decl.
55755         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55756         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55757         of existence.
55758
55759 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55760
55761         * lib/getloadavg.c: Use __VMS, not VMS.
55762         * lib/getopt.c: Likewise.
55763         * lib/getpagesize.h: Likewise.
55764         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55765         and probably does not work.
55766
55767 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55768
55769         * lib/.cppi-disable: Add wcwidth.
55770         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55771         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55772         (ISGRAPH): Remove.  All uses changed to isgraph.
55773         (FOLD) [!defined _LIBC]: Remove special case.
55774         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55775         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55776         HAVE_ISBLANK.
55777         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55778         case.
55779
55780 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55781
55782         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55783         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55784         brackets.  Other minor changes to suppress some compiler
55785         warnings.
55786
55787 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55788         and Paul Eggert  <eggert@cs.ucla.edu>
55789
55790         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55791         of invoking obsolescent AC_HEADER_DIRENT macro.
55792         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55793         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55794         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55795         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55796         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55797         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55798         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55799         * m4/readdir.m4: Remove; no longer needed.
55800
55801 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55802         and Paul Eggert  <eggert@cs.ucla.edu>
55803
55804         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55805         Don't worry about this obsolete case any more.
55806         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55807         directories.
55808         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55809         worry about this obsolete case any more.
55810         * lib/fts.c: Likewise.
55811         * lib/getcwd.c: Likewise.
55812         * lib/glob.h: Likewise.
55813         * lib/savedir.c: Likewise.
55814
55815 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55816
55817         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55818         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55819         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55820         needed.
55821         All uses removed.
55822         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55823         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55824         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55825         needed.
55826         * m4/getdate.m4 (gl_GETDATE): Likewise.
55827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55828         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55829         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55830         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55831         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55832         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55833         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55834         needed.
55835
55836 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55837
55838         * lib/memcasecmp.c: Include <limits.h>.
55839         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55840         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55841         Don't assume isdigit succeeds only on '0' through '9'.
55842
55843 2006-07-05  Eric Blake  <ebb9@byu.net>
55844
55845         * modules/getaddrinfo (Depends-on): Add snprintf.
55846
55847 2006-07-05  Eric Blake  <ebb9@byu.net>
55848
55849         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55850         to avoid 'header present but could not be compiled' on cygwin.
55851
55852 2006-07-05  Eric Blake  <ebb9@byu.net>
55853
55854         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55855         missing from netdb.h.
55856         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55857
55858 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55859
55860         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55861         no longer needed.
55862         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55863         * m4/getdate.m4 (gl_GETDATE): Likewise.
55864         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55865         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55866         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55867         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55869
55870 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55871
55872         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55873         All uses of is_space replaced by isspace.
55874         * lib/exit.h: Don't talk about STDC_HEADERS.
55875         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55876         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55877         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55878         replaced by isprint etc.
55879         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55880         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55881         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55882         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55883         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55884         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55885
55886 2006-07-05  Bruno Haible  <bruno@clisp.org>
55887
55888         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55889         the function exists, before testing against AIX.
55890         Reported by Martin Lambers <marlam@marlam.de>.
55891
55892 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55893
55894         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55895         From Mark D. Baushke.
55896
55897 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55898
55899         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55900         to the absolute name, not just one, to bypass Sun C 5.8's
55901         "warning: #include of /usr/include/... may be non-portable".
55902
55903 2006-07-04  Eric Blake  <ebb9@byu.net>
55904
55905         * modules/dirname-tests: New test module.
55906         * tests/test-dirname.c: New file, replacing dirname.c
55907         TEST_DIRNAME section that was recently deleted.
55908
55909 2006-07-04  Bruno Haible  <bruno@clisp.org>
55910
55911         Assume ANSI C header files and <ctype.h> functions.
55912         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55913         (mbsnwidth): Use isprint, iscntrl instead.
55914
55915 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55916
55917         Merge from coreutils.
55918         * MODULES.html.sh: Add xstrtold.
55919         * modules/xstrtold: New file.
55920         * modules/cycle-check (Files): Add lib/same-inode.h.
55921         * modules/dirname (Files): Add m4/double-slash-root.m4.
55922         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55923         * modules/mkdir-p (Files): Add lib/same-inode.h.
55924         * modules/same (Files): Add lib/same-inode.h.
55925
55926 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55927
55928         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55929         This is to keep the terminology clean; POSIX talks about
55930         "absolute pathnames", not "full pathnames", but the GNU
55931         Coding Standards say to use "path" for something else;
55932         so use "absolute" to keep both sides happy.
55933         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55934         Set gl_absolute_header, not gl_full_header_path.
55935         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55936         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55937         All uses changed.
55938
55939         Merge from coreutils.
55940
55941         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55942
55943         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55944         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55945         want to require the building of c-strtod.o.
55946         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55947         needs -lm directly.
55948         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55949
55950         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55951
55952         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55953         --as-needed option if available.  Problem reported by Albert Chin in
55954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55955         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55956         cc merely issues a bunch of annoying warnings for --as-needed
55957         (this problem was reported by Bob Proulx).  Also, try linking with
55958         -lm to detect a bug in binutils 2.16 (this problem was reported
55959         by Ralf Wildenhues).
55960
55961         2006-06-18  Jim Meyering  <jim@meyering.net>
55962
55963         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55964         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55965         macro.
55966         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55967         also check for glibc-2.4's abort-inducing bug.
55968
55969         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55970         Low-probability clean-up should be to use rmdir to get rid of
55971         the just-created directory, not unlink.
55972
55973         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55974         configure fail, and request a bug report to inform us about it.
55975         Add a comment that, barring reports to the contrary, in 2007 we'll
55976         assume ftruncate is universally available.
55977
55978         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55979
55980         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55981
55982         2006-03-12  Jim Meyering  <jim@meyering.net>
55983
55984         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55985         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55986         * m4/same.m4 (gl_SAME): Likewise.
55987         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55988
55989         2006-03-11  Eric Blake  <ebb9@byu.net>
55990
55991         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55992         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55993         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55994         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55995
55996 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55997
55998         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55999         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
56000         reported by Mark D. Baushke, one in
56001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
56002
56003         Merge from coreutils.
56004
56005         * lib/.cppi-disable: Add stdint_.h.
56006         * lib/.cvsignore: Add stdint.h.
56007
56008         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56009
56010         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
56011         both double and long double versions.
56012         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
56013         * lib/xstrtold.c: New file.
56014         * lib/xstrtod.h (xstrtold): New decl.
56015
56016         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56017
56018         * lib/filemode.c (setst): Remove.
56019         (strmode): Rewrite to avoid setst.  This makes the code shorter,
56020         (arguably) clearer, and the generated code is a bit smaller on my
56021         Debian GNU/Linux stable x86 host.
56022
56023         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56024
56025         * lib/filemode.c: Include "filemode.h" first, to test the interface.
56026         Assume that filemode.h includes sys/types.h and sys/stat.h.
56027         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
56028         (ftypelet): Reorder to put common cases first, for efficiency.
56029         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
56030         to do 'M'.
56031         (strmode): Renamed from mode_string, and now stores 12 bytes instead
56032         of 10, for compatibility with FreeBSD.  All callers changed.
56033         (filemodestring): Now stores 12 bytes instead of 10, and sets file
56034         types that can't be deduced solely from st_mode.  First arg is now a
56035         const pointer.
56036         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
56037         (strmode): Renamed from mode_string.
56038         (filemodestring): New decl.
56039         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
56040         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
56041         needed.
56042         (S_ISPORT, S_ISWHT): New macros, if not already defined.
56043
56044         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56045
56046         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
56047         fsusage.h now does that.  Include fsusage.h first, to test interface.
56048         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
56049         at most one method (the old code could have generated decls that
56050         didn't conform to C89, not that this was ever exercised).
56051         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
56052
56053         2006-03-19  Jim Meyering  <jim@meyering.net>
56054
56055         Work even in a chroot where d_ino values for entries in "/"
56056         don't match the stat.st_ino values for the same names.
56057         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
56058         number, iterate through all entries again, using lstat instead.
56059         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
56060         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
56061
56062         * lib/getcwd.c (__getcwd): Clarify a comment.
56063         Use memcpy in place of a call to strcpy.
56064
56065         2006-03-12  Jim Meyering  <jim@meyering.net>
56066
56067         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
56068         matches that of the current directory (which we're about to chdir ".."
56069         out of), then save the dev-ino of the parent, instead.
56070
56071         * lib/same-inode.h (SAME_INODE): New file/macro.
56072         * lib/chdir-safer.c (SAME_INODE): Remove definition.
56073         Include "same-inode.h", instead.
56074         * lib/same.c: Likewise.
56075         * lib/cycle-check.h: Include "same-inode.h".
56076         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
56077         * lib/cycle-check.c (SAME_INODE): Remove definition.
56078         * lib/root-dev-ino.h: Include "same-inode.h".
56079
56080         2006-03-11  Eric Blake  <ebb9@byu.net>
56081
56082         * lib/same.c (same_name): s/base_name/last_component/
56083         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
56084         * lib/filenamecat.c (file_name_concat): Likewise.
56085
56086         2006-03-11  Eric Blake  <ebb9@byu.net>,
56087                     Paul Eggert  <eggert@cs.ucla.edu>
56088
56089         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
56090         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
56091         drive prefix.
56092         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
56093         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
56094         (last_component): New method.
56095         * lib/dirname.c (dir_len): Determine when drive letters need a
56096         subsequent slash.  Preserve // when it is special.
56097         (dir_name): Don't append dot when drive letter is absolute.
56098         [TEST_DIRNAME]: Move into a full-blown gnulib test.
56099         * lib/basename.c (base_name): New semantics - malloc the result.
56100         Preserve // when it is special.  Preserve relative files that look
56101         like drive letters.
56102         (base_len): Preserve // when it is special.
56103         (last_component): New method, similar to old base_name semantics.
56104         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
56105         base_name.  Strip redundant slashes from ///.
56106
56107 2006-07-03  Jim Meyering  <jim@meyering.net>
56108
56109         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
56110         macro is used before the first cycle_check call.
56111
56112 2006-07-03  Eric Blake  <ebb9@byu.net>
56113
56114         * modules/dirname (Depends-on): Add xstrndup.
56115
56116 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56117
56118         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
56119         test cases, so that config.log is a bit easier to follow.
56120
56121 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56122
56123         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
56124         both are 64 bits, since this seems to be the tradition, and this
56125         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
56126         we ever run into a host that prefers long long to long in this
56127         case, we'll need another configure-time test.  Problem reported by
56128         Jim Meyering.
56129
56130 2006-07-02  Eric Blake  <ebb9@byu.net>
56131
56132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
56133
56134 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56135
56136         * modules/inttypes (Depends-on): No longer depends on stdint.
56137         * modules/stdint (Description): Say more about assumptions.
56138         Say that the fast types might differ.  Say macros are used.
56139         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
56140         (Makefile.am): Revise list of substituted symbols to match
56141         new stdint.m4.
56142         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
56143         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
56144         * tests/test-stdint.c (verify_same_types)
56145         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
56146         the code conforms to C99/C89.
56147         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
56148         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
56149
56150 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56151
56152         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
56153         but fix a bug, by requiring at least 64 bits.
56154         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56155         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
56156         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
56157         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
56158
56159         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
56160         changes.  Make 2.59 a prerequisite.  Check and substitute for
56161         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
56162         inttypes.h.  Do not use special include files; just use the
56163         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
56164         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
56165         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
56166         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
56167         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
56168         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
56169         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
56170         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
56171         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
56172         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
56173         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
56174         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
56175         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
56176         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
56177         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
56178         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
56179         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
56180         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
56181         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
56182         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
56183         WINT_MAX.  Check for C99 conformance more strictly, by detecting
56184         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
56185         not check for things that C99 does not require, e.g., int8_t.  If
56186         a test isn't needed unless <stdint.h> isn't working, and is
56187         unlikely to be needed for any other reason, then don't do it
56188         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
56189         size_t, since we assume C89 freestanding at least.  Do not check
56190         for sig_atomic_t, wchar_t, or wint_t, since the code now does
56191         the right thing even if the types are not defined.  Instead use:
56192         (gl_STDINT_TYPE_PROPERTIES): New macro.
56193         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
56194         testing whether <sys/types.h> clashes, as Autoconf does this for
56195         us now.  All uses removed.
56196         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
56197         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
56198         (gl_CHECK_TYPE_SAME):
56199         Remove; no longer needed.
56200         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
56201         exists, since we'll return 0 anyway in that case.
56202         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
56203
56204 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56205
56206         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
56207         possible collision with system files.
56208         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
56209         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
56210         WCHAR_MIN and WCHAR_MAX in this case.
56211         (<stddef.h>): Do not include; no longer needed.
56212         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
56213         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
56214         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
56215         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
56216         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
56217         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
56218         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
56219         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
56220         !defined(__c99))]: Include in this case too, since it's harmless
56221         now.
56222         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
56223         dangerous to do so.
56224         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
56225         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
56226         (_STDINT_MIN, _STDINT_MAX): New macros.
56227         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
56228         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
56229         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
56230         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
56231         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
56232         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
56233         macros, not typedefs; this simplifies things quite a bit.
56234         Use long int for all types narrower than int64_t.
56235         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
56236         Define in terms of long long int or int64_t or long int,
56237         not int64_t or int32_t.  This saves some compile-time testing.
56238         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
56239         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
56240         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
56241         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
56242         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
56243         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
56244         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
56245         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
56246         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
56247         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
56248         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56249         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56250         undef any previous version and define our own version, for
56251         simplicity and consistency with the new macros for types.
56252         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56253         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56254         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
56255         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
56256         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
56257         @WINT_T_SUFFIX@ to keep things simple here.
56258         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
56259         Simplify by assuming typical 8/16/32/64 host, since we're
56260         already doing that elsewhere anyway.
56261         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
56262         and assume long long int is 64 bits if available.  This
56263         speeds up 'configure'.
56264
56265 2006-07-01  Eric Blake  <ebb9@byu.net>
56266
56267         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
56268         Reported by Andreas Buening.
56269
56270 2006-07-01  Eric Blake  <ebb9@byu.net>
56271
56272         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
56273
56274 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56275
56276         * lib/getaddrinfo.c: fixed typo
56277
56278 2006-06-29  Jim Meyering  <jim@meyering.net>
56279
56280         * modules/strftime (Maintainer): Add my name, since with the
56281         FPRINTFTIME changes strftime.c has forked from glibc.
56282
56283 2006-06-29  Eric Blake  <ebb9@byu.net>
56284
56285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
56286
56287 2006-06-29  Eric Blake  <ebb9@byu.net>
56288
56289         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
56290
56291 2006-06-29  Eric Blake  <ebb9@byu.net>
56292
56293         * lib/stat_.h: New file.
56294
56295 2006-06-29  Eric Blake  <ebb9@byu.net>
56296
56297         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
56298         unused static function.
56299
56300 2006-06-29  Eric Blake  <ebb9@byu.net>
56301
56302         * doc/functions.texi (Function Portability): Document missing lstat
56303         on mingw.
56304
56305 2006-06-29  Eric Blake  <ebb9@byu.net>
56306
56307         * MODULES.html.sh: Add sys_stat.
56308         * modules/sys_stat: New module.
56309         * modules/mkstemp (Depends-on): Add sys_stat.
56310
56311 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56312
56313         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
56314
56315 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56316
56317         * m4/c-bs-a.m4: Removed.
56318
56319 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56320
56321         * lib/strftime.c: Assume strftime() exists.
56322
56323 2006-06-29  Derek Price  <derek@ximbiot.com>
56324
56325         * modules/c-bs-a: Removed - \a is C89.
56326         * MODULES.html.sh: Remove c-bs-a.
56327
56328 2006-06-29  Bruno Haible  <bruno@clisp.org>
56329
56330         * modules/wcwidth (License): Change to LGPL.
56331
56332 2006-06-28  Simon Josefsson  <jas@extundo.com>
56333
56334         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
56335         on _WIN32.
56336
56337         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
56338         getnameinfo.
56339
56340 2006-06-28  Simon Josefsson  <jas@extundo.com>
56341
56342         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
56343
56344 2006-06-28  Simon Josefsson  <jas@extundo.com>
56345
56346         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
56347         functions there.  It will succeed on Windows XP, but on Windows
56348         2000 and (presumably) earlier, it will fail, and use the internal
56349         re-implementation.
56350         (use_win32_p): New function.
56351         (getaddrinfo): Use strtoul on servname, to support numeric ports.
56352         Support AI_NUMERICSERV to disable getservbyname.
56353         (getnameinfo): New function, only supports
56354         NI_NUMERICHOST|NI_NUMERICSERV for now.
56355
56356         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
56357         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
56358         getnameinfo.
56359
56360 2006-06-28  Eric Blake  <ebb9@byu.net>
56361
56362         * modules/wcwidth: New file.
56363         * modules/mbchar (Depends-on): Add wcwidth.
56364         * modules/mbswidth (Depends-on): Add wcwidth.
56365         * MODULES.html.sh: Add wcwidth.
56366
56367 2006-06-28  Eric Blake  <ebb9@byu.net>
56368
56369         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
56370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
56371
56372 2006-06-28  Eric Blake  <ebb9@byu.net>
56373
56374         * lib/xvasprintf.h: Fix comments.
56375
56376 2006-06-28  Eric Blake  <ebb9@byu.net>
56377
56378         * lib/mbchar.h (wcwidth): Include wcwidth.h.
56379         * lib/mbswidth.c (wcwidth): Move from here...
56380         * lib/wcwidth.h: ...to this new file.
56381
56382 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56383
56384         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
56385
56386         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
56387         it's obsolete.
56388         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
56389
56390 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56391
56392         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
56393         Autoconf 2.60 says this stuff was obsolete.
56394
56395 2006-06-28  Bruno Haible  <bruno@clisp.org>
56396
56397         * modules/wcwidth (Files): Add m4/wchar_t.m4.
56398
56399 2006-06-28  Bruno Haible  <bruno@clisp.org>
56400
56401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
56402         gt_TYPE_WCHAR_T.
56403
56404 2006-06-28  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
56407         declaration for wcwidth.
56408         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56409
56410 2006-06-28  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56413         (mkdir): Define using _mkdir.
56414
56415 2006-06-28  Bruno Haible  <bruno@clisp.org>
56416
56417         * lib/getaddrinfo.h: Fix POSIX URL.
56418         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56419         _WIN32.
56420         (use_win32_p): Make static.
56421         (getaddrinfo): Reject service name if it is empty or does not consist
56422         solely of decimal digits, or if its value is > 65535.
56423         (getnameinfo): Remove useless casts.
56424
56425 2006-06-27  Simon Josefsson  <jas@extundo.com>
56426
56427         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56428         Eggert and Martin Lambers.
56429
56430 2006-06-27  Simon Josefsson  <jas@extundo.com>
56431
56432         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56433         Eggert and Martin Lambers.
56434
56435 2006-06-27  Bruno Haible  <bruno@clisp.org>
56436
56437         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56438         result to 0, not to empty.
56439         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56440
56441 2006-06-27  Bruno Haible  <bruno@clisp.org>
56442
56443         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56444
56445 2006-06-26  Simon Josefsson  <jas@extundo.com>
56446
56447         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56448         present.
56449
56450 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
56451
56452         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
56453         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
56454         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
56455
56456 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
56457
56458         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
56459
56460 2006-06-26  Bruno Haible  <bruno@clisp.org>
56461
56462         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56463
56464 2006-06-26  Bruno Haible  <bruno@clisp.org>
56465
56466         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56467
56468 2006-06-26  Bruno Haible  <bruno@clisp.org>
56469
56470         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56471         SGI C compiler in pre-C99 mode.
56472         Suggested by Mark D. Baushke and Larry Jones.
56473
56474 2006-06-26  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56477         WCHAR_MAX.
56478         Reported by Mark D. Baushke and Larry Jones.
56479
56480 2006-06-26  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56483         in pre-C99 mode.
56484         Suggested by Mark D. Baushke and Larry Jones.
56485
56486 2006-06-23  Simon Josefsson  <jas@extundo.com>
56487             Bruno Haible  <bruno@clisp.org>
56488
56489         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56490         Emit mostlyclean-local rule.
56491         (func_emit_tests_Makefile_am): Likewise.
56492         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56493
56494 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56495
56496         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56497
56498 2006-06-23  Bruno Haible  <bruno@clisp.org>
56499
56500         * tests/test-stdint.c: Update to match ISO C 99 Technical
56501         Corrigendum 1.
56502
56503 2006-06-23  Bruno Haible  <bruno@clisp.org>
56504
56505         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56506
56507 2006-06-23  Bruno Haible  <bruno@clisp.org>
56508
56509         * lib/stdint_.h: Treat IRIX like OpenBSD.
56510
56511 2006-06-23  Bruno Haible  <bruno@clisp.org>
56512
56513         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56514         ISO C 99 Technical Corrigendum 1.
56515
56516 2006-06-22  Simon Josefsson  <jas@extundo.com>
56517
56518         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56519         MinGW.
56520
56521 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56522
56523         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56524         needed.  Some compiler complained about some of them.  Problem reported
56525         by Larry Jones in
56526         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56527
56528 2006-06-21  Simon Josefsson  <jas@extundo.com>
56529
56530         * tests/test-getaddrinfo.c: New file.
56531
56532         * modules/getaddrinfo-tests: New file.
56533
56534         * MODULES.html.sh: Add inet_pton.
56535
56536         * modules/inet_pton: New file.
56537
56538 2006-06-21  Simon Josefsson  <jas@extundo.com>
56539
56540         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56541         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56542         of using the (limited) gnulib implementation on Windows XP.
56543
56544         * m4/inet_pton.m4: New file.
56545
56546 2006-06-21  Simon Josefsson  <jas@extundo.com>
56547
56548         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56549         variable.
56550
56551         * lib/socket_.h: Don't define WINVER.
56552
56553         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56554         slightly modified to work in gnulib.
56555
56556 2006-06-21  Simon Josefsson  <jas@extundo.com>
56557
56558         * doc/gnulib.texi (Windows sockets): Add.
56559
56560 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56561
56562         * lib/read-file.c (fread_file): Start with buffer allocation of
56563         0 bytes rather than 1 byte; this simplifies the code.
56564         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56565         code to free buffer and save/restore errno.
56566         (internal_read_file): Remove unused local.
56567
56568 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56569
56570         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56571         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56572         Problem reported by Denis Excoffier in
56573         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56574
56575 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56576
56577         * modules/sys_socket, modules/socklen: Include sys/types since
56578         FreeBSD 4.x's sys/socket.h needs it.
56579
56580 2006-06-19  Simon Josefsson  <jas@extundo.com>
56581
56582         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56583
56584 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56585
56586         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56587
56588 2006-06-19  Bruno Haible  <bruno@clisp.org>
56589
56590         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56591         and FULL_PATH_INTTYPES_H in angle brackets.
56592         Reported by Mark D. Baushke <mdb@gnu.org>.
56593
56594 2006-06-17  Eric Blake  <ebb9@byu.net>
56595
56596         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56597         errno.
56598
56599 2006-06-17  Bruno Haible  <bruno@clisp.org>
56600
56601         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56602         <sys/inttypes.h>.
56603
56604 2006-06-17  Bruno Haible  <bruno@clisp.org>
56605
56606         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56607         whether errno is declared. Assume <errno.h> declares errno.
56608
56609 2006-06-17  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56612
56613 2006-06-17  Bruno Haible  <bruno@clisp.org>
56614
56615         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56616         problem on Solaris 2.5.1.
56617
56618 2006-06-16  Eric Blake  <ebb9@byu.net>
56619
56620         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56621         * lib/unicodeio.c [!defined errno]: Likewise.
56622         * lib/strtol.c [!defined errno]: Likewise.
56623         * lib/strtod.c [!defined errno]: Likewise.
56624
56625 2006-06-15  Eric Blake  <ebb9@byu.net>
56626
56627         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56628
56629 2006-06-15  Eric Blake  <ebb9@byu.net>
56630
56631         * config/srclist.txt (ssize_t.m4): Lose sync.
56632
56633 2006-06-15  Bruno Haible  <bruno@clisp.org>
56634
56635         * modules/stdint (Files): Include m4/full-header-path.m4,
56636         m4/size_max.m4, m4/wchar_t.m4.
56637         (Makefile.am): Many more substitutions.
56638         * modules/stdint-tests: New file.
56639         * tests/test-stdint.c: New file.
56640
56641 2006-06-15  Bruno Haible  <bruno@clisp.org>
56642
56643         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56644         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56645         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56646         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56647         gl_CHECK_TYPE_SAME): New macros.
56648
56649 2006-06-15  Bruno Haible  <bruno@clisp.org>
56650
56651         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56652
56653 2006-06-15  Bruno Haible  <bruno@clisp.org>
56654
56655         * lib/stdint_.h: Rewritten to be fully auto-configured.
56656         Fixes bug on HP-UX/IA64.
56657
56658 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56659
56660         * lib/getdate.y (__attribute__): Don't define if already defined.
56661         Problem reported by Larry Jones.
56662         * lib/utimens.c (__attribute__): Likewise.
56663
56664 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56665
56666         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56667         reported by Andreas Schwab.
56668
56669 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56670             Bruno Haible  <bruno@clisp.org>
56671
56672         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56673         check for the declaration of strnlen and a run test that exposes the
56674         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56675         rpl_strndup.
56676
56677 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56678             Bruno Haible  <bruno@clisp.org>
56679
56680         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56681
56682 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56683
56684         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56685         compile test, for Tru64 4.0D.
56686
56687 2006-05-28  Karl Berry  <karl@gnu.org>
56688
56689         * config/srclist.txt (printf-args.c): lose sync.
56690
56691 2006-05-26  Martin Lambers  <marlam@marlam.de>
56692
56693         * lib/getpass.c: Updates the test for the native W32 API, and adds
56694         missing includes, thus fixing compilation warnings.
56695
56696 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56697
56698         * lib/exclude.c (exclude_fnmatch): New function.
56699         (excluded_file_name): Call exclude_fnmatch.
56700         * lib/exclude.h (excluded_file_name): New prototype
56701
56702 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         * lib/tempname.c (small_open, large_open): New macros.
56705         (__open, __open64) [!_LIBC]: Remove.
56706         (__gen_tempname): Use small_open and large_open instead of __open
56707         and __open64.  This fixes a portability bug on HP-UX 11.11i
56708         reported by Simon Wing-Tang in
56709         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56710
56711 2006-05-24  Bruno Haible  <bruno@clisp.org>
56712
56713         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56714         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56715         Reported by Thorsten Maerz <torte@netztorte.de> via
56716         Aaron Stone <aaron@serendipity.cx>.
56717
56718 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56719
56720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56721         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56722         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56723         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56724         not really conditional on the cache.
56725         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56726
56727 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56728
56729         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56730         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56731         (my_usleep): Don't mishandle maximum value.
56732
56733 2006-05-19  Jim Meyering  <jim@meyering.net>
56734
56735         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56736
56737 2006-05-17  Bruno Haible  <bruno@clisp.org>
56738
56739         Cygwin portability.
56740         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56741
56742 2006-05-17  Bruno Haible  <bruno@clisp.org>
56743
56744         * lib/stdint_.h: Fix recognition of Cygwin.
56745
56746 2006-05-15  Bruno Haible  <bruno@clisp.org>
56747
56748         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56749         on libtool patch by Ralf Wildenhues.
56750
56751 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56752
56753         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56754         test for C99 conformance; (bool) 0.5 is an integer constant
56755         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56756         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56757
56758 2006-05-11  Simon Josefsson  <jas@extundo.com>
56759
56760         * m4/xvasprintf.m4: Fix obvious typo.
56761
56762 2006-05-11  Jim Meyering  <jim@meyering.net>
56763
56764         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56765         James Lemley.
56766
56767 2006-05-10  Simon Josefsson  <jas@extundo.com>
56768
56769         * lib/md4.c: Typo fix, update copyright years.
56770         (K1, K2): Don't use L because it turn computations into 64-bit on
56771         64-bit platforms.
56772
56773 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56774
56775         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56776         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56777         unwanted sign propagation, e.g., on hosts with 64-bit int.
56778         There still are some problems with reeelly weird theoretical hosts
56779         (e.g., 33-bit int) but it's not worth worrying about now.
56780         * lib/sha1.c (rol): Likewise.
56781         (K1, K2, K3, K4): Remove unnecessary L suffix.
56782
56783 2006-05-10  Bruno Haible  <bruno@clisp.org>
56784
56785         * lib/des.c: Cast to avoid warnings.
56786
56787 2006-05-09  Bruno Haible  <bruno@clisp.org>
56788
56789         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56790         (Depends-on): Depend also on xsize, stdarg.
56791         (configure.ac): Add gl_XVASPRINTF.
56792
56793 2006-05-09  Bruno Haible  <bruno@clisp.org>
56794
56795         * m4/xvasprintf.m4: New file.
56796
56797 2006-05-09  Bruno Haible  <bruno@clisp.org>
56798
56799         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56800         (EOVERFLOW): Define fallback value.
56801         (xstrcat): New function.
56802         (xvasprintf): Recognize the special case of a string concatenation.
56803
56804 2006-05-08  Eric Blake  <ebb9@byu.net>
56805
56806         * gnulib-tool (func_version): Base copyright year on CVS date.
56807         (func_emit_copyright_notice): New function.
56808         (func_emit_lib_Makefile_am): Use it.
56809         (func_emit_tests_Makefile_am): Likewise.
56810         (func_import): Likewise.
56811
56812 2006-05-08  Bruno Haible  <bruno@clisp.org>
56813
56814         * modules/stdarg: New file.
56815         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56816
56817 2006-05-08  Bruno Haible  <bruno@clisp.org>
56818
56819         * m4/stdarg.m4: New file, from GNU gettext.
56820
56821 2006-05-08  Bruno Haible  <bruno@clisp.org>
56822
56823         * config/srclist.txt (build-aux/config.rpath): different from latest
56824         release.
56825
56826 2006-05-08  Bruno Haible  <bruno@clisp.org>
56827
56828         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56829
56830 2006-05-05  Jim Meyering  <jim@meyering.net>
56831
56832         * m4/warning.m4: New file, derived from bison's file by the same name.
56833
56834 2006-05-03  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/stdint_.h: Shorter URL.
56837         * lib/inttypes.h: Likewise.
56838
56839 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56840
56841         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56842
56843 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56844
56845         * lib/verify.h: Document the internals better.  Most of this change
56846         was written by Bruno Haible.
56847
56848 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56849
56850         * doc/verify.texi: New file, partly based on a proposal by
56851         Bruno Haible.
56852
56853 2006-05-02  Bruno Haible  <bruno@clisp.org>
56854
56855         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56856         test from here...
56857         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56858
56859 2006-04-29  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56862         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56863
56864 2006-04-29  Bruno Haible  <bruno@clisp.org>
56865
56866         * gnulib-tool: Make --update option actually work.
56867
56868 2006-04-29  Bruno Haible  <bruno@clisp.org>
56869
56870         * doc/gcd.texi: New file.
56871         * doc/gnulib.texi: Include it.
56872
56873 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56874
56875         * lib/getdate.y (get_date): When adding relative date, start with the
56876         initial time, not with the result of the first mktime call.
56877
56878 2006-04-25  Bruno Haible  <bruno@clisp.org>
56879
56880         * gnulib-tool (func_import): Output the include directives in three
56881         blocks, sorted separately.
56882         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56883
56884 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56885
56886         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56887         to define main with arguments, for C++.  Reported by Eric Blake.
56888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56889         Prefer 'int main ()' to 'int main (void)', for C++.
56890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56891         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56892         for 'main', for C99 and C++.
56893
56894 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56895
56896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56897         Don't assume that exit status -1 is valid.
56898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56899         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56900         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56901         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56902         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56903         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56904         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56905         functions can be used without declaring them, or that you can
56906         exit with status -1.
56907         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56908
56909 2006-04-24  Karl Berry  <karl@gnu.org>
56910
56911         * config/srclist.txt (longdouble.m4): sync lost.
56912
56913 2006-04-24  Eric Blake  <ebb9@byu.net>
56914
56915         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56916
56917 2006-04-24  Bruno Haible  <bruno@clisp.org>
56918
56919         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56920         poll() implementation in AIX.
56921         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56922
56923 2006-04-24  Bruno Haible  <bruno@clisp.org>
56924
56925         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56926         assigned exactly once.
56927
56928 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56929             Bruno Haible  <bruno@clisp.org>
56930
56931         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56932         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56933         for AM_CPPFLAGS.
56934
56935 2006-04-23  Bruno Haible  <bruno@clisp.org>
56936
56937         * modules/copy-file: Depend on unistd.
56938         * modules/execute: Likewise.
56939         * modules/fatal-signal: Likewise.
56940         * modules/findprog: Likewise.
56941         * modules/mkdtemp : Likewise.
56942         * modules/pipe: Likewise.
56943         * modules/wait-process: Likewise.
56944
56945 2006-04-23  Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56948         condition was already detected.
56949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56950
56951 2006-04-23  Bruno Haible  <bruno@clisp.org>
56952
56953         * lib/copy-file.c: Include <unistd.h> unconditionally.
56954         * lib/execute.c: Likewise.
56955         * lib/fatal-signal.c: Likewise.
56956         * lib/findprog.c: Likewise.
56957         * lib/mkdtemp.c: Likewise.
56958         * lib/pipe.h: Likewise.
56959         * lib/pipe.c: Likewise.
56960         * lib/wait-process.h: Likewise.
56961
56962 2006-04-23  Bruno Haible  <bruno@clisp.org>
56963
56964         * gnulib-tool (func_usage): Fix --import description. Document
56965         --update.
56966         (func_import): Create temporary file in a temporary directory, if
56967         --dry-run is specified. Silence errors from 'grep' when there are no
56968         m4 files in $m4dir.
56969         (func_create_testdir): Silence errors from 'grep' when there are no
56970         m4 files in $m4dir.
56971         Reported by Karl Berry <karl@freefriends.org>.
56972
56973 2006-04-20  Bruno Haible  <bruno@clisp.org>
56974
56975         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56976         one argument, so that the code will be portable to Autoconf 2.60.
56977         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56978         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56979         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56980
56981 2006-04-19  Derek Price  <derek@ximbiot.com>
56982             Eric Blake  <ebb9@byu.net>
56983
56984         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56985         rather than "/full/path.h".  Update comment to match.  Shorten &
56986         generalize m4_translit call via AS_TR_CPP.
56987
56988 2006-04-19  Derek Price  <derek@ximbiot.com>
56989             Eric Blake  <ebb9@byu.net>
56990
56991         * lib/inttypes.h: Correct grammar in comment.
56992
56993 2006-04-18  Derek Price  <derek@ximbiot.com>
56994             Paul Eggert  <eggert@cs.ucla.edu>
56995
56996         * modules/inttypes: New file.
56997         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56998
56999 2006-04-18  Derek Price  <derek@ximbiot.com>
57000             Paul Eggert  <eggert@cs.ucla.edu>
57001
57002         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
57003         New files.
57004
57005 2006-04-18  Derek Price  <derek@ximbiot.com>
57006             Paul Eggert  <eggert@cs.ucla.edu>
57007
57008         * lib/inttypes.h: New file.
57009         * lib/strtoimax.c: Assume <inttypes.h>.
57010
57011 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
57012
57013         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
57014         isn't mounted.  Problem reported by Kir Kolyshkin.
57015
57016 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57017
57018         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
57019         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
57020         Derek R. Price.
57021         * lib/regex.h (RE_DUP_MAX): Update comment to match current
57022         implementation.
57023
57024 2006-04-12  Eric Blake  <ebb9@byu.net>
57025
57026         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
57027         is now done automatically by the corresponding Autoconf macro.
57028
57029 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
57030
57031         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
57032         time_r.h.
57033
57034 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57035
57036         Merge regex changes from libc, removing some of our
57037         POSIX-conformance changes that were rejected and redoing them in a
57038         less-intrusive way.
57039
57040         * lib/regcomp.c (re_compile_internal, init_dfa):
57041         Length arg is now size_t, not Idx.  All uses changed.
57042         (peek_token): Forward decl now says internal_function.
57043         (__re_error_msgid, __re_error_msgid_idx):
57044         Now static rather than extern with attribute_hidden.
57045         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
57046         For some reason libc prefers K&R style defns for external functions.
57047         (regerror) [!defined _LIBC]: Likewise.
57048         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
57049         (seek_collating_symbol_entry, lookup_collation_sequence_value):
57050         (build_range_exp, build_collating_symbol):
57051         Use K&R-style defn.
57052         (re_compile_fastmap): Use '\0' to memset, not 0.
57053         (utf8_sb_map): Make the calculations more obvious.
57054         (init_dfa, parse_bracket_exp, build_charclass_op):
57055         Call calloc and cast result, as glibc does.
57056         (init_word_char, fetch_token, peek_token, peek_token_bracket):
57057         (build_range_exp, build_collating_symbol):
57058         Now internal functions.
57059
57060         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
57061
57062         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
57063         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
57064         Don't depend on VMS; depend on __VMS instead, for POSIX
57065         namespace cleanness.
57066         (regoff_t): Define to ssize_t, not long int.
57067
57068         Remove the REG_ macros named below.  Instead, make the old names
57069         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
57070         __USE_GNU_REGEX.
57071         (REG_BACKSLASH_ESCAPE_IN_LISTS):
57072         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
57073         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
57074         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
57075         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
57076         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
57077         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
57078         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
57079         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
57080         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
57081         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
57082         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
57083         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
57084         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
57085         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
57086         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
57087         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
57088         (REG_NREGS):
57089         Remove.  All uses replaced by the old RE_* names.
57090         (RE_BACKSLASH_ESCAPE_IN_LISTS):
57091         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
57092         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
57093         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
57094         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
57095         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
57096         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
57097         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
57098         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
57099         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
57100         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
57101         Don't bother having these macros be independent of each others'
57102         values, since they no longer exist in the POSIX name space.
57103
57104         Rename the following member names back to their old names,
57105         unless !__USE_GNU_REGEX.  All uses changed back.
57106         (buffer): Renamed from re_buffer.
57107         (allocated): Renamed from re_allocated.
57108         (used): Renamed from re_used.
57109         (syntax): Renamed from re_syntax.
57110         (fastmap): Renamed from re_fastmap.
57111         (translate): Renamed from re_translate.
57112         (can_be_null): Renamed from re_can_be_null.
57113         (regs_allocated): Renamed from re_regs_allocated.
57114         (fastmap_accurate): Renamed from re_fastmap_accurate.
57115         (no_sub): Renamed from re_no_sub.
57116         (not_bol): Renamed from re_not_bol.
57117         (not_eol): Renamed from re_not_eol.
57118         (newline_anchor): Renamed from re_newline_anchor.
57119         (num_regs): Renamed from rm_num_regs.
57120         (start): Renamed from rm_start.
57121         (end): Renamed from rm_end.
57122
57123         (free_state): Move up a bit.
57124
57125         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
57126         #define to be empty.
57127         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
57128         when that is what is intended.
57129         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
57130         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
57131         (MAX): New macro.
57132         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
57133         All uses changed back to re_malloc, etc.  It's now the caller's
57134         responsibility to check for overflow; all callers changed.
57135         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
57136         (re_x2nrealloc): Remove.
57137         (free_state): Remove decl.
57138
57139         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
57140         (re_set_registers, re_exec):
57141         Use K&R-style defn.
57142
57143         2006-01-31  Roland McGrath  <roland@redhat.com>
57144
57145         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
57146         Reported by Mike Frysinger <vapier@gentoo.org>.
57147
57148         2006-01-15  Andreas Jaeger  <aj@suse.de>
57149
57150         [BZ #1950]
57151         * lib/regex_internal.c (re_string_reconstruct): Adjust for
57152         build_wcs_upper_buffer change.
57153         (build_wcs_upper_buffer): Change return type.
57154
57155         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
57156
57157         * lib/regex_internal.h: Include <stdint.h> if available.
57158
57159         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
57160
57161         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
57162
57163         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57164
57165         * lib/regcomp.c: Adjust for changed secondary hash function.
57166
57167         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
57168
57169         * lib/regex.h: Pretty printing.
57170         Clean up namespace a bit.
57171
57172         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
57173
57174         * lib/regexec.c (update_cur_sifted_state, check_arrival,
57175         check_arrival_add_next_nodes): Avoid using uninitialized variable.
57176
57177         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57178                     Ulrich Drepper  <drepper@redhat.com>
57179
57180         [BZ #1302]
57181         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
57182         changed.
57183         (bitset_word_t): Renamed from bitset_word.  All uses changed.
57184
57185         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
57186
57187         [BZ #281]
57188         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
57189         * lib/regcomp.c: Remove unnecessary uses of
57190         unsigned RE_TRANSLATE_TYPE.
57191         * lib/regex_internal.h: Likewise.
57192         * lib/regex_internal.c: Likewise.
57193         * lib/regexec.c: Likewise.
57194         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
57195
57196         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
57197
57198         * lib/regexec.c (find_recover_state): Remove unnecessary
57199         initialization.
57200         (transit_state_bkref): Make DFA a const pointer.
57201         (get_subexp): Likewise.
57202         (check_arrival): Likewise.
57203         (update_cur_sifted_state): Likewise.
57204         (re_search_internal): Likewise.
57205         (prune_impossible_nodes): Likewise.
57206         (acquire_init_state_context): Likewise.
57207         (proceed_next_node): Likewise.
57208         (set_regs): Likewise.
57209         (free_fail_stack_return): Likewise.
57210         (check_arrival_expand_ecl): Mark DFA parameter as const.
57211         (check_arrival_expand_ecl_sub): Likewise.
57212         (check_subexp_limits): Likewise.
57213         (sub_epsilon_src_nodes):  Likewise.
57214         (add_epsilon_src_nodes):  Likewise.
57215         (merge_state_array): Likewise.
57216         (update_regs): Likewise.
57217         (build_trtable): Likewise.
57218         (sift_states_backward): Mark MCTX parameter as const.
57219         (build_sifted_states): Likewise.
57220         (update_cur_sifted_state): Likewise.
57221         (sift_states_mkref): Likewise.
57222         (check_arrival_expand_ecl): Mark eclosure as const.
57223         (check_dst_limits_calc_pos_1): Likewise.
57224         * lib/regex_internal.h (re_match_context_t): Make dfa a const
57225         pointer.
57226
57227         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
57228
57229         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
57230         (transit_state_sb): Likewise.
57231         (transit_state_mb): Likewise.
57232         (sift_states_iter_mb): Likewise.
57233         (check_arrival_add_next_nodes): Likewise.
57234         (check_node_accept_bytes): Change first parameter to pointer-to-const.
57235         [_LIBC] (re_search_2_stub): Use mempcpy.
57236
57237         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
57238         mbrtowc for very simple UTF-8 case.
57239
57240         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
57241         a pointer-to-const.
57242         (re_acquire_state_context): Likewise.
57243         * lib/regex_internal.h: Adjust prototypes.
57244
57245         * lib/regex.c: Prevent using C++ compilers.
57246
57247         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
57248         (re_acquire_state_context): Likewise.
57249
57250 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57251
57252         * modules/regex (Depends-on): Add ssize_t.
57253
57254 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
57257         translation table.
57258
57259 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57260
57261         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
57262
57263 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
57264             Bruno Haible  <bruno@clisp.org>
57265
57266         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
57267         <sys/types.h> and <inttypes.h>.
57268
57269 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57270
57271         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
57272         `__error_t_defined', so argp.h will not typedef the former.
57273
57274 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
57275
57276         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
57277         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
57278         glibc names.  Even if glibc is changed to conform to POSIX, the
57279         traditional names will be available anyway, since regex depends on
57280         the extensions module.  Also, fix a longstanding typo in the
57281         implementation of Spencer ERE test #75 from grep 2.3.  Problems
57282         reported by Emanuele Giaquinta.  Also, change sense of cached
57283         variable, so that the message makes sense.
57284
57285 2006-03-24  Simon Josefsson  <jas@extundo.com>
57286
57287         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
57288         including some doc fixes.
57289         (base64_encode_alloc): Fix +1 bug on allocation failures.
57290
57291 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57292
57293         * lib/base64.c (base64_encode): Do not read past end of array with
57294         unsanitized input on systems with CHAR_BIT > 8.
57295
57296 2006-03-24  Eric Blake  <ebb9@byu.net>
57297
57298         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
57299
57300 2006-03-22  Karl Berry  <karl@gnu.org>
57301
57302         * config/srclist.txt (*setenv.[ch]): get from coreutils.
57303         * config/srclistvars.sh (COREUTILS): new var.
57304
57305 2006-03-17  Jim Meyering  <jim@meyering.net>
57306
57307         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
57308         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
57309
57310 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57311
57312         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
57313         no longer needs it.  Instead, check that regoff_t is as least
57314         as wide as ptrdiff_t.
57315
57316         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
57317         so that our regex.h stays compatible with the installed regex.
57318         This is helpful for installers who configure --without-included-regex.
57319         Problem reported by Emanuele Giaquinta.
57320
57321 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57322
57323         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
57324         Typedef to long int, not to off_, as POSIX will likely change
57325         in that direction.
57326
57327 2006-03-15  Eric Blake  <ebb9@byu.net>
57328
57329         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
57330
57331 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57332
57333         * lib/argp-help.c (validate_uparams): Fix typo
57334         * lib/argp-parse.c (argp_default_options): Consistently begin help
57335         messages with a lowercase letter.
57336
57337 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
57338
57339         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
57340         overrun buffers and shouldn't be used (much as gets shouldn't be
57341         used).
57342         * lib/time_r.c (asctime_r, ctime_r): Likewise.
57343
57344 2006-03-08  Simon Josefsson  <jas@extundo.com>
57345
57346         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
57347         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57348
57349 2006-03-08  Simon Josefsson  <jas@extundo.com>
57350
57351         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
57352         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57353
57354 2006-03-08  Simon Josefsson  <jas@extundo.com>
57355
57356         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
57357         signal that configure disabled the device.
57358
57359 2006-03-08  Simon Josefsson  <jas@extundo.com>
57360
57361         * build-aux/maint.mk: Fix refresh-po, to handle no translated
57362         languages.
57363
57364 2006-03-07  Simon Josefsson  <jas@extundo.com>
57365
57366         * modules/getopt (Depends-on): Add unistd.
57367
57368         * modules/unistd: New file.
57369
57370 2006-03-07  Simon Josefsson  <jas@extundo.com>
57371
57372         * modules/gc-random: New file.
57373
57374 2006-03-07  Simon Josefsson  <jas@extundo.com>
57375
57376         * m4/unistd_h.m4: New file.
57377
57378 2006-03-07  Simon Josefsson  <jas@extundo.com>
57379
57380         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
57381         test to be side-effect free by storing the result in the cache
57382         variable gl_cv_lib_readline, and moving the assignment of
57383         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
57384         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57385
57386 2006-03-07  Simon Josefsson  <jas@extundo.com>
57387
57388         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
57389         error on missing devices (the functions will return an error).
57390
57391         * m4/gc.m4: Move random stuff to gc-random.m4
57392
57393 2006-03-07  Simon Josefsson  <jas@extundo.com>
57394
57395         * lib/unistd_.h: New file.
57396
57397 2006-03-07  Simon Josefsson  <jas@extundo.com>
57398
57399         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
57400
57401 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57402
57403         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
57404         Problem reported by Juan Manuel Guerrero.
57405
57406 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57407
57408         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57409         the unistd module.
57410         * lib/getlogin_r.c: Likewise.
57411         * lib/getlogin_r.h: Likewise.
57412         * lib/glob.c: Likewise.
57413         * lib/pagealign_alloc.c: Likewise.
57414         * lib/unistd_.h: Remove; no longer needed.
57415
57416 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57419         Add unistd.
57420         * modules/c-stack (Depends-on): Add unistd.
57421         * modules/getlogin_r: Likewise.
57422         * modules/glob: Likewise.
57423         * modules/pagealign_alloc: Likewise.
57424         * modules/unistd (Files): Remove lib/unistd_.h.
57425         (EXTRA_DIST): Remove.
57426         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57427         need unistd_.h.
57428         (MOSTLYCLEANFILES): Remove unistd.h-t.
57429
57430 2006-03-03  Simon Josefsson  <jas@extundo.com>
57431
57432         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57433
57434 2006-03-03  Simon Josefsson  <jas@extundo.com>
57435
57436         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57437         libidn and bison.
57438
57439 2006-03-03  Simon Josefsson  <jas@extundo.com>
57440
57441         * build-aux/maint.mk: Add indent target.
57442
57443 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57444
57445         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57446         our replacement poll.h in any case, to avoid a differing
57447         declaration from a system header.  Seen on AIX.
57448
57449 2006-03-01  Simon Josefsson  <jas@extundo.com>
57450
57451         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
57452         <kasal@ucw.cz>.
57453
57454 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57455
57456         * modules/gettime (Depends-on): Add extensions module.
57457         * modules/nanosleep (Depends-on): Likewise.
57458         * modules/settime (Depends-on): Likewise.
57459
57460 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57461
57462         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57463         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57464         pedantically.
57465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57466         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57467
57468         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57469         not "==".  Reported by Ralf Wildenhues.
57470
57471 2006-03-01  Karl Berry  <karl@gnu.org>
57472
57473         * doc/Copyright/request-*: new files, synced from gnuorg.
57474
57475 2006-03-01  Karl Berry  <karl@gnu.org>
57476
57477         * config/srclist.txt (Copyright/*): new entries.
57478
57479 2006-02-28  Simon Josefsson  <jas@extundo.com>
57480
57481         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57482
57483 2006-02-27  Simon Josefsson  <jas@extundo.com>
57484
57485         * lib/base64.h: Indent #define's.  From Jim Meyering
57486         <jim@meyering.net>.
57487
57488 2006-02-27  Jim Meyering  <jim@meyering.net>
57489
57490         Revert the change of 2006-02-24, so these files can continue
57491         to be sync'd from gettext.
57492         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57493         of `config.h'.
57494
57495 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57496
57497         * modules/intprops: New file.
57498         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57499         Add intprops.
57500         * modules/getloadavg (Files): Remove lib/intprops.h.
57501         (Depends-on): Add intprops.
57502         * modules/human: Likewise.
57503         * modules/inttostr: Likewise.
57504         * modules/openat: Likewise.
57505         * modules/sig2str: Likewise.
57506         * modules/userspec: Likewise.
57507         * modules/utimecmp: Likewise.
57508         * modules/xnanosleep: Likewise.
57509         * modules/xstrtol: Likewise.
57510
57511 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57512
57513         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57514         * modules/lock-tests (TESTS): Use $(EXEEXT).
57515         * modules/tls-tests: Likewise.
57516         * modules/argp-tests: Likewise.
57517         (check_PROGRAMS): New var, replacing...
57518         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57519
57520 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57521
57522         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57523         `config.h'.
57524
57525 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57526
57527         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57528
57529 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57530
57531         Sync from coreutils.
57532         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57533         gl_CHDIR_SAFER.
57534
57535 2006-02-22  Jim Meyering  <jim@meyering.net>
57536
57537         Sync from coreutils.
57538         * m4/chdir-safer.m4: New file.
57539
57540 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57541
57542         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57543         AT_FDCWD exceeds INT_MAX.
57544         * lib/openat.h (AT_FDCWD): Likewise.
57545
57546 2006-02-17  Eric Blake  <address@hidden>
57547
57548         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57549
57550 2006-02-16  Simon Josefsson  <jas@extundo.com>
57551
57552         * modules/getaddrinfo (Depends-on): Add sys_socket.
57553
57554 2006-02-15  Simon Josefsson  <jas@extundo.com>
57555
57556         * build-aux/maint.mk: Add dsyntax-check rule.
57557
57558 2006-02-15  Eric Blake  <ebb9@byu.net>
57559
57560         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57561         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57562         'present but cannot compile' warnings on cygwin.
57563         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57564         use ws2tcpip.h if sys/socket.h works.
57565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57566         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57567
57568 2006-02-14  Simon Josefsson  <jas@extundo.com>
57569
57570         * modules/maintainer-makefile (Files): Rename.
57571
57572         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57573         and (the local) Makefile.cfg to maint-cfg.mk.
57574
57575         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57576         to the latter.
57577
57578         * modules/maintainer-makefile: New module.
57579
57580         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57581         severaly stripped to make it possible to build it up from scratch
57582         with reliable tests.
57583
57584         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57585         fixes to permit overriding the default actions when configure and
57586         makefile are not available.
57587
57588 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         Sync from coreutils.
57591         * modules/lstat (Depends-on): Don't depend on xalloc.
57592         (License): Change from GPL to LGPL, since this is now simply a
57593         replacement for a libc function.
57594
57595 2006-02-14  Jim Meyering  <jim@meyering.net>
57596
57597         Sync from coreutils.
57598
57599         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57600         failure on deficient systems, and simplify gnulib lgpl dependencies.
57601         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57602         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57603
57604         * lib/xalloc-die.c: Remove unused definition of N_.
57605
57606 2006-02-14  Jim Meyering  <jim@meyering.net>
57607
57608         Sync from coreutils.
57609         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57610         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57611         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57612         double-quote uses of that variable, to accommodate the rare case in
57613         which getmntent is available in none of the libraries checked.  This
57614         happens at least on FreeBSD 5.0.
57615
57616 2006-02-13  Simon Josefsson  <jas@extundo.com>
57617
57618         * gnulib-tool (Usage): Fix --import, from
57619         karl@freefriends.org (Karl Berry).
57620
57621 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57622
57623         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57624
57625 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57626
57627         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57628         "autoupdate" on 2005-12-12.
57629
57630 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57631
57632         * modules/closeout (Depends-on): Remove atexit.
57633
57634 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57635
57636         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57637         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57638
57639 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57640
57641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57642         __EXTENSIONS__ if this causes compilation to fail.  Problem
57643         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57644         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57645
57646 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57647
57648         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57649         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57651         All uses changed.
57652
57653 2006-01-26  Simon Josefsson  <jas@extundo.com>
57654
57655         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57656         prototype is visible on mingw32.
57657
57658         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57659         for mingw32.
57660
57661         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57662         mingw32).
57663
57664 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57665
57666         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57667         attempt to open for write; this always fails, at least on POSIX
57668         hosts.  This reinstates the 2006-01-09 change, which was
57669         inadvertently removed.
57670
57671 2006-01-26  Bruno Haible  <bruno@clisp.org>
57672
57673         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57674         Reported by Paul Eggert.
57675
57676 2006-01-26  Bruno Haible  <bruno@clisp.org>
57677             Paul Eggert  <eggert@cs.ucla.edu>
57678
57679         * lib/stdbool_.h (_Bool)
57680         [(! (defined __cplusplus || defined __BEOS__)
57681           && !defined __GNUC__
57682           && !(defined __HP_cc || defined __xlc__
57683                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57684                || defined __sgi))]:
57685         #define to signed char in these cases too; this simplifies
57686         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57687         etc., separately) and makes it more conservative.
57688
57689 2006-01-25  Simon Josefsson  <jas@extundo.com>
57690
57691         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57692         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57693         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57694
57695 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57696
57697         * lib/argp-namefrob.h: Bugfix. Remove stray #
57698
57699 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57700
57701         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57702         so that we test the test.
57703         Check for yet another HP-UX cc bug involving *bool |= bool.
57704
57705 2006-01-25  Karl Berry  <karl@gnu.org>
57706
57707         * config/srclist.txt (vasnprintf.c): sync lost.
57708
57709 2006-01-25  Jim Meyering  <jim@meyering.net>
57710
57711         Sync from the stable (b5) branch of coreutils:
57712
57713         * lib/fts.c (fts_children): Don't let close() clobber errno from
57714         failed fchdir().
57715
57716         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57717         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57718         a dangling symlink.  That can also happen at least for ELOOP.
57719         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57720         FYI, this bug predates the inclusion of fts.c in coreutils.
57721
57722         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57723         in their own block, so pre-c99 compilers don't object.
57724
57725         Avoid the double-free (first in fts_read, second in fts_close) that
57726         would occur when an `active' directory is made inaccessible (e.g.,
57727         via chmod a-x) during a traversal.
57728         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57729         before returning.  Reproduce this failure by
57730         mkdir -p a/b; cd a; chmod a-x . b
57731         Reported by Stavros Passas.
57732
57733 2006-01-25  Jim Meyering  <jim@meyering.net>
57734
57735         * lib/fileblocks.c: Remove more useless parentheses.
57736         * lib/readutmp.h: Likewise.
57737
57738 2006-01-25  Bruno Haible  <bruno@clisp.org>
57739
57740         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57741         warnings.
57742         Reported by Paul Eggert.
57743
57744 2006-01-25  Bruno Haible  <bruno@clisp.org>
57745
57746         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57747         rid of a trap command. For Solaris sh.
57748         Reported by Mark D. Baushke <mdb@gnu.org>.
57749
57750 2006-01-24  Simon Josefsson  <jas@extundo.com>
57751
57752         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57753         Bruno.
57754
57755 2006-01-24  Karl Berry  <karl@gnu.org>
57756
57757         * config/srclist.txt (argp-namefrob.h): sync lost.
57758
57759 2006-01-24  Jim Meyering  <jim@meyering.net>
57760
57761         * modules/openat (Files): Add lib/intprops.h.
57762         From Mark D. Baushke.
57763
57764 2006-01-24  Jim Meyering  <jim@meyering.net>
57765
57766         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57767         Reported by Mark D. Baushke.
57768
57769 2006-01-24  Jim Meyering  <jim@meyering.net>
57770
57771         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57772
57773 2006-01-24  Bruno Haible  <bruno@clisp.org>
57774
57775         * modules/strnlen (Maintainer): Change from glibc to all.
57776
57777 2006-01-24  Bruno Haible  <bruno@clisp.org>
57778
57779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57780         Patch by Paul Eggert.
57781
57782 2006-01-24  Bruno Haible  <bruno@clisp.org>
57783
57784         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57785         already has it.
57786         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57787         2005-11-26.
57788
57789         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57790         'signed char' to avoid problems with the built-in _Bool type.
57791         Reported by Paul Eggert on 2005-11-26.
57792
57793 2006-01-24  Bruno Haible  <bruno@clisp.org>
57794
57795         * gnulib-tool (func_import): Avoid constructing complicated sed
57796         expressions inside backquote.
57797         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57798
57799 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57800
57801         These changes imported from libc.
57802         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57803         test and two separate function calls.
57804         * lib/strndup.c (__strndup): Add libc_hidden_def.
57805
57806 2006-01-23  Simon Josefsson  <jas@extundo.com>
57807
57808         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57809         Remove the test_*_SOURCES variable: automake infers it by default.
57810         * modules/tls-tests: Likewise.
57811
57812 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57813
57814         Work around porting bugs reported by Dieter in
57815         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57816         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57817         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57818         Include "getopt.h" first, to check interface.
57819         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57820         !HAVE_DECL_GETENV.
57821         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57822         (__strndup): Revert to K&R-style function dfns, the glibc style.
57823         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57824         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57825         Include strnlen.h first, to get prototype properly.
57826         (strnlen): Renamed from __strnlen.
57827         Remove weak alias.
57828
57829 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57830
57831         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57832
57833 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57834
57835         * config/srclist.txt: Adjust to reflect glibc reorganization.
57836         This affects only comments.
57837
57838 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57839
57840          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57841          Reported by Bruce Korb <bkorb@gnu.org>.
57842
57843 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57844
57845         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57846         to pacify gcc -Wswitch-default.
57847
57848 2006-01-22  Bruno Haible  <bruno@clisp.org>
57849
57850         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57851         temporary buffer for sprintf, take into account the precision also
57852         for 'd', 'i', 'u', 'o', 'x', 'X'.
57853
57854 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57855
57856         * modules/argp-tests: New module
57857         * tests/test-argp.c: New file
57858         * tests/test-argp-2.sh: New file
57859
57860 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57861
57862         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57863         (__argp_base_name): Removed
57864         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57865         typo.
57866         (__argp_base_name): Provide macro definition or extern declaration
57867         depending on the configuration
57868
57869 2006-01-20  Simon Josefsson  <jas@extundo.com>
57870
57871         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57872
57873 2006-01-20  Simon Josefsson  <jas@extundo.com>
57874
57875         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57876
57877 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57878
57879         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57880         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57881         Suggested by Bruno Haible.
57882
57883 2006-01-20  Karl Berry  <karl@gnu.org>
57884
57885         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57886         until changes propagate, I guess.
57887
57888 2006-01-19  Simon Josefsson  <jas@extundo.com>
57889
57890         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57891
57892 2006-01-19  Simon Josefsson  <jas@extundo.com>
57893
57894         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57895
57896 2006-01-19  Simon Josefsson  <jas@extundo.com>
57897
57898         * gnulib-tool: Set check_PROGRAMS.
57899
57900         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57901         modules/des-tests, modules/gc-arcfour-tests,
57902         modules/gc-arctwo-tests, modules/gc-des-tests,
57903         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57904         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57905         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57906         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57907         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57908         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57909         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57910         test_*_SOURCES.
57911
57912 2006-01-18  Simon Josefsson  <jas@extundo.com>
57913
57914         * modules/socklen (Depends-on): Depend on sys_socket.
57915
57916 2006-01-18  Simon Josefsson  <jas@extundo.com>
57917
57918         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57919         modules/des-tests, modules/gc-arcfour-tests,
57920         modules/gc-arctwo-tests, modules/gc-des-tests,
57921         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57922         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57923         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57924         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57925         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57926         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57927         $(EXEEXT) to automake TESTS variable, for mingw32.
57928
57929 2006-01-17  Simon Josefsson  <jas@extundo.com>
57930
57931         * modules/socklen (Include): Need sys/socket.h.
57932
57933 2006-01-17  Bruno Haible  <bruno@clisp.org>
57934
57935         * modules/ssize_t (Include): Add <sys/types.h>.
57936
57937 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57938
57939         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57940         it's not portable and it doesn't work with cross-compiles.
57941         Problem reported by Bruno Haible.  Fix missing-$ typo in
57942         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57943         -zignore from being used with Sun's C compiler.
57944
57945 2006-01-12  Simon Josefsson  <jas@extundo.com>
57946
57947         * lib/base64.c: Fix warning, reported by Bruno Haible
57948         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57949
57950 2006-01-12  Bruno Haible  <bruno@clisp.org>
57951
57952         * modules/ldd: New file.
57953         * build-aux/ldd.sh.in: New file.
57954         * MODULES.html.sh (Support for building libraries and executables): Add
57955         ldd.
57956
57957 2006-01-12  Bruno Haible  <bruno@clisp.org>
57958
57959         * m4/ldd.m4: New file.
57960
57961 2006-01-12  Bruno Haible  <bruno@clisp.org>
57962
57963         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57964         endless loop while replacing $auxdir with build-aux.
57965
57966 2006-01-11  Simon Josefsson  <jas@extundo.com>
57967
57968         * lib/stdint_.h (SIZE_MAX): Add missing (.
57969
57970 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57971
57972         Sync from coreutils.
57973         * lib/md5.c: Fix commentary typos.
57974         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57975         * lib/md5.h (__attribute__): Remove; unused.
57976         * lib/sha1.c: Fix commentary to match md5 better.
57977         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57978         so that we don't need to worry about alignment.  All uses changed.
57979         This merges the 2005-10-28 md5 change into sha1.
57980
57981 2006-01-11  Jim Meyering  <jim@meyering.net>
57982
57983         Sync from coreutils.
57984         * lib/md5.c (OP): Fix spacing.
57985
57986 2006-01-11  Bruno Haible  <bruno@clisp.org>
57987
57988         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57989         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57990         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57991
57992 2006-01-11  Bruno Haible  <bruno@clisp.org>
57993
57994         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57995         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57996         the "early" section as well.
57997
57998 2006-01-11  Bruno Haible  <bruno@clisp.org>
57999
58000         Avoid "ar: no archive members specified" error on MacOS X.
58001         * gnulib-tool (func_modules_add_dummy): New function.
58002         (func_import, func_create_testdir): Invoke it.
58003
58004 2006-01-11  Bruno Haible  <bruno@clisp.org>
58005
58006         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
58007         with $auxdir in AC_CONFIG_FILES statements.
58008
58009 2006-01-11  Bruno Haible  <bruno@clisp.org>
58010
58011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58012         Initialize also noinst_HEADERS to empty.
58013
58014 2006-01-11  Bruno Haible  <bruno@clisp.org>
58015
58016         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
58017         variables.
58018         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
58019         autoreconf.
58020
58021 2006-01-11  Bruno Haible  <bruno@clisp.org>
58022
58023         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
58024         overridable by the user.
58025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58026
58027 2006-01-10  Simon Josefsson  <jas@extundo.com>
58028
58029         * modules/sys_socket: New file.
58030
58031 2006-01-10  Simon Josefsson  <jas@extundo.com>
58032
58033         * m4/sys_socket_h.m4: New file.
58034
58035 2006-01-10  Simon Josefsson  <jas@extundo.com>
58036
58037         * lib/socket_.h: New file.
58038
58039 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58040
58041         * modules/readutmp (Maintainer): Add myself.
58042
58043 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58044
58045         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
58046         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
58047         People who are still concerned with buggy memcmp implementations
58048         can invoke gl_FUNC_MEMCMP themselves.
58049
58050 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58051
58052         * lib/regex_internal.h (BITSET_WORD_BITS):
58053         Work around a bug in 64-bit PGC (before version 6.1-2), where the
58054         preprocessor mishandles large unsigned values as if they were signed.
58055         Problem reported by Claudio Fontana in
58056         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
58057
58058 2006-01-10  Jim Meyering  <jim@meyering.net>
58059
58060         Avoid the double-free (first in fts_read, second in fts_close) that
58061         would occur when an `active' directory is made inaccessible (e.g.,
58062         via chmod a-x) during a traversal.
58063         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58064         before returning.  Reproduce this failure by
58065         mkdir -p a/b; cd a; chmod a-x . b
58066         Reported by Stavros Passas.
58067
58068         Sync from coreutils.
58069         * lib/sha1.c: Tweak grammar in a comment.
58070
58071 2006-01-10  Jim Meyering  <jim@meyering.net>
58072
58073         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
58074         Patch by Joerg Sonnenberger.
58075
58076 2006-01-10  Bruno Haible  <bruno@clisp.org>
58077
58078         * modules/readutmp: Depend on module free.
58079         * modules/strtok_r: Depend on module restrict.
58080
58081 2006-01-10  Bruno Haible  <bruno@clisp.org>
58082
58083         * modules/gettext (configure.ac): Add an invocation of
58084         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
58085
58086 2006-01-10  Bruno Haible  <bruno@clisp.org>
58087
58088         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
58089         Reported by Werner Lemberg <wl@gnu.org>.
58090
58091 2006-01-10  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/localcharset.c: Update from GNU gettext.
58094
58095 2006-01-10  Bruno Haible  <bruno@clisp.org>
58096
58097         * lib/argp.h (__const): Remove macro. Use const instead.
58098         * lib/argp-fmtstream.h (__const): Likewise.
58099         * lib/glob_.h (__const): Remove macro.
58100         * lib/glob-libc.h: Use const instead of __const.
58101
58102 2006-01-10  Bruno Haible  <bruno@clisp.org>
58103
58104         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
58105         variable.
58106         Needed to avoid an automake error regarding the 'gettext' module.
58107
58108 2006-01-09  Simon Josefsson  <jas@extundo.com>
58109
58110         * modules/inet_ntop (Depends-on): Add restrict.
58111
58112 2006-01-09  Simon Josefsson  <jas@extundo.com>
58113
58114         * modules/gc-rijndael-tests (License): Put under LGPL.
58115
58116         * modules/gc-des-tests (License): Likewise.
58117
58118         * modules/gc-arcfour-tests (License): Likewise.
58119
58120         * modules/gc-arctwo-tests (License): Likewise.
58121
58122         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
58123
58124         * modules/gc-hmac-sha1-tests (Files): Likewise.
58125
58126         * modules/gc-hmac-md5-tests (License): Likewise.
58127
58128         * modules/gc-sha1-tests (License): Likewise.
58129
58130         * modules/gc-md5-tests (License): Likewise.
58131
58132         * modules/gc-md4-tests (License): Likewise.
58133
58134         * modules/gc-md2-tests (License): Likewise.
58135
58136         * modules/gc-tests (License): Likewise.
58137
58138         * modules/des-tests (License): Likewise.
58139
58140         * modules/md4-tests (License): Likewise.
58141
58142         * modules/md2-tests (License): Likewise.
58143
58144 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58145
58146         Sync from coreutils:
58147
58148         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
58149         * modules/lib-ignore: New file.
58150         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
58151         chdir-safer.m4, lchmod.m4.
58152         * modules/openat: Add mkdirat.c, openat-priv.h.
58153
58154 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58155
58156         Sync from coreutils.
58157         * m4/lib-ignore.m4: New file.
58158         * m4/lchmod.m4: New file.
58159
58160 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58161
58162         Sync from coreutils.
58163         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
58164         for write access: POSIX says that must fail.
58165         * lib/fts.c (diropen): Likewise.
58166         * lib/save-cwd.c (save_cwd): Likewise.
58167         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
58168         well, for minor improvements on hosts that lack O_DIRECTORY.
58169         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
58170         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
58171         Fall back on chown if open failed with EACCES.
58172
58173         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
58174         Report an error at compile-time if only a 1-second nominal clock
58175         resolution is found.
58176
58177         * lib/lchmod.h: New file.
58178         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
58179         (make_dir_parents): Use lchown rather than chown, and
58180         lchmod rather than chmod.
58181
58182         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
58183         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
58184         "proc" reported by n0dalus.
58185
58186         * lib/mountlist.c: Include <limits.h>.
58187         (dev_from_mount_options)
58188         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
58189         New function.  It no longer assumes "dev=" has the System V meaning
58190         on Linux (since it doesn't).  It also parses "dev=" more carefully.
58191         (read_file_system_list)
58192         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
58193         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
58194         dev= in that case.
58195
58196         * lib/posixtm.h (PDS_PRE_2000): New macro.
58197         * lib/posixtm.c (year): Arg is now syntax_bits rather than
58198         allow_century.  All usages changed.  Reject dates outside the range
58199         1969-1999 if PDS_PRE_2000 is used.
58200
58201 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58202
58203         Sync from coreutils.
58204         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
58205         (Time of day items): Mention the possibility of leap seconds.
58206         Problem reported by Dr. David Alan Gilbert.
58207
58208 2006-01-09  Jim Meyering  <jim@meyering.net>
58209
58210         Sync from coreutils.
58211
58212         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
58213
58214         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
58215
58216         * lib/modechange.c (mode_compile): Reject an invalid mode string
58217         that starts with an octal digit.  From Andreas Gruenbacher.
58218
58219         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
58220         and dup to open_safer and dup_safer, respectively.
58221         (openat_permissive): Fix typo in comment.
58222
58223         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
58224         "gettext.h"; either no longer needed or are guaranteed by openat.h.
58225         (_): Remove; no longer needed.
58226         (openat): Renamed from rpl_openat; no need for rpl_openat
58227         since openat.h renames openat for us.
58228         Replace most of the body with a call to openat_permissive,
58229         to avoid duplicate code.
58230         Port to (probably hypothetical) environments were mode_t is
58231         wider than int.
58232         (openat_permissive): Require mode arg, so that we can check
58233         types better.  Put it just after flags.  Change cwd failure
58234         indicator from pointer-to-bool to pointer-to-errno-value.
58235         All callers changed.
58236         Invoke openat_save_fail and/or openat_restore_fail if
58237         cwd_errno is null, so that openat can call us.
58238         (openat_permissive, fdopendir, fstatat, unlinkat):
58239         Simplify errno handling to avoid some duplicate code,
58240         as it's OK to set errno on success.
58241         * lib/openat.h: Revamp code so that function macros depend on
58242         __OPENAT_PREFIX only, not also on AT_FDCWD.
58243         (openat_ro): Remove.  Caller changed to use openat_permissive.
58244         (openat_permissive): Now a macro, if not a function.
58245         (openat_restore_fail, openat_save_fail): Now always functions,
58246         since mkdirat needs them even if __OPENAT_PREFIX is defined.
58247
58248         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
58249         and openat.c.
58250         * lib/mkdirat.c: Include openat-priv.h.
58251         Remove definitions of macros defined therein.
58252         * lib/openat.c: Likewise.
58253
58254         * lib/mkdirat.c (mkdirat): New file and function.
58255         * lib/openat.h (mkdirat): Declare.
58256
58257         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
58258
58259         * lib/openat.h (openat_permissive): Declare.
58260         (openat_ro): Define.
58261
58262         * lib/openat.c (EXPECTED_ERRNO): New macro.
58263         (openat_permissive): New function -- used in remove.c rewrite.
58264         (all functions): Set errno just before returning, only if there
58265         was an actual failure.
58266         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
58267
58268         Emulate openat-family functions using Linux's procfs, if possible.
58269         Idea and some code based on Ulrich Drepper's glibc changes.
58270
58271         * lib/openat.c: (BUILD_PROC_NAME): New macro.
58272         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
58273         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
58274         before falling back on save_cwd and restore_cwd.
58275         (fdopendir, fstatat, unlinkat): Likewise.
58276
58277         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
58278         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
58279
58280         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
58281         as second argument to va_arg.  Otherwise, some versions of gcc
58282         warn that `if this code is reached, the program will abort'.
58283
58284 2006-01-09  Jim Meyering  <jim@meyering.net>
58285
58286         Sync from coreutils.
58287         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
58288         Require openat-priv.h.
58289
58290 2006-01-09  Bruno Haible  <bruno@clisp.org>
58291
58292         * modules/strnlen (Include): Use strnlen.h.
58293
58294 2006-01-09  Bruno Haible  <bruno@clisp.org>
58295
58296         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
58297
58298 2006-01-09  Bruno Haible  <bruno@clisp.org>
58299
58300         * lib/sysexit_.h (EX_OK): New macro.
58301         Suggested by Martin Lambers <marlam@marlam.de>.
58302
58303 2006-01-09  Bruno Haible  <bruno@clisp.org>
58304
58305         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
58306         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
58307
58308 2006-01-09  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
58311         numbers.
58312
58313 2006-01-09  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
58316         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
58317         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
58318         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
58319
58320 2006-01-09  Bruno Haible  <bruno@clisp.org>
58321
58322         * build-aux/javacomp.sh.in: New file, moved from lib/.
58323         * modules/javacomp-script (Files): Update.
58324         (configure.ac): Add AC_CONFIG_FILES invocation.
58325         (EXTRA_DIST): Remove variable.
58326
58327         * build-aux/javaexec.sh.in: New file, moved from lib/.
58328         * modules/javaexec (Files): Update.
58329         (configure.ac): Add AC_CONFIG_FILES invocation.
58330         (EXTRA_DIST): Remove javaexec.sh.in.
58331
58332         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
58333         * modules/csharpcomp-script (Files): Update.
58334         (configure.ac): Add AC_CONFIG_FILES invocation.
58335         (EXTRA_DIST): Remove variable.
58336
58337         * build-aux/csharpexec.sh.in: New file, moved from lib/.
58338         * modules/csharpexec (Files): Update.
58339         (configure.ac): Add AC_CONFIG_FILES invocation.
58340         (EXTRA_DIST): Remove csharpexec.sh.in.
58341
58342 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58343
58344         Sync from coreutils.
58345
58346         Add POSIX ACL support
58347         * lib/acl.h (copy_acl, set_acl): Add declarations.
58348         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
58349         systems other than Linux.
58350         (chmod_or_fchmod): New function: use fchmod when possible,
58351         and chmod otherwise.
58352         (file_has_acl): Add a POSIX ACL implementation, with a
58353         Linux-specific subcase.
58354         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
58355         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
58356         acls are unsupported.
58357         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
58358         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
58359         are unsupported.
58360
58361 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58362
58363         Sync from coreutils.
58364         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
58365
58366 2006-01-07  Bruno Haible  <bruno@clisp.org>
58367
58368         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
58369         gl_EARLY.
58370
58371 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58372
58373         * lib/strftime.c (tzname): Don't declare if it is already #defined.
58374         Problem reported for Mingw by Mark Junker.
58375
58376 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58377
58378         * README: Gnulib normally doesn't generate a tarball.
58379
58380 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
58381
58382         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
58383         long int, not int, for nanosecond counts, so that people who are
58384         used to POSIX struct timespec won't be surprised.  Reported by Jim
58385         Meyering.
58386
58387 2005-12-28  Bruno Haible  <bruno@clisp.org>
58388
58389         * build-aux/config.rpath: Update from GNU gettext.
58390
58391 2005-12-16  Jim Meyering  <jim@meyering.net>
58392
58393         * modules/fprintftime: New module.
58394         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
58395
58396 2005-12-16  Jim Meyering  <jim@meyering.net>
58397
58398         * m4/fprintftime.m4: New file.
58399
58400 2005-12-16  Jim Meyering  <jim@meyering.net>
58401
58402         * lib/fprintftime.c, lib/fprintftime.h: New files.
58403
58404 2005-12-15  Simon Josefsson  <jas@extundo.com>
58405
58406         * modules/socklen (configure.ac): Fix M4 macro name, to align with
58407         new m4/socklen.m4.
58408
58409 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58410
58411         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58412         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58413
58414 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58415
58416         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58417         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58418         struct uparams is valid. Fall back to the default values if it is
58419         not.
58420
58421 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58422
58423         * modules/argp (Files): Add argp-pin.c
58424         (Depends-on): dirname
58425         (lib_SOURCES): Add argp-pin.c
58426
58427 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58428
58429         * m4/argp.m4:  Check if program_invocation_name and
58430         program_invocation_short_name are declared and define appropriate
58431         macros if they are not.
58432
58433 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58434
58435         * lib/argp-help.c (__argp_base_name): New function
58436         (__argp_short_program_name): Rewrite using __argp_base_name
58437         * lib/argp-namefrob.h: Define program_invocation_name and
58438         program_invocation_short_name if requested
58439         (__argp_base_name): Add prototype
58440         * lib/argp-parse.c (argp_def): Use gettext wrappers
58441         (argp_default_parser): Use __argp_base_name
58442         * lib/argp-pin.c: New file. Defines program_invocation_name and
58443         program_invocation_short_name on systems that lack them.
58444
58445 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58446
58447         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58448         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58449         porting problem reported by Georg Schwarz in
58450         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58451
58452 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58453
58454         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
58455         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58456         porting problem reported by Georg Schwarz in
58457         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58458
58459 2005-12-05  Bruno Haible  <bruno@clisp.org>
58460
58461         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58462         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58463         Reported by Mark Junker <mjscod@gmx.de>.
58464
58465 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58468         Use implementation from Albert Chin, with some
58469         comments/corrections by Stepan Kasal and myself.
58470
58471 2005-12-02  Bruno Haible  <bruno@clisp.org>
58472
58473         * gnulib-tool (func_import): Accept GPLed build tool modules when
58474         --lgpl is given.
58475         * modules/csharpcomp-script: New file.
58476         * modules/csharpcomp: Depend on it.
58477         * modules/javacomp-script: New file.
58478         * modules/javacomp: Depend on it.
58479         Suggested by Simon Josefsson.
58480
58481 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58484         statement, to work around an HP-UX 10.20 compiler bug reported by
58485         Peter O'Gorman.
58486
58487 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58488
58489         * modules/savedir (Depends-on): Add openat.
58490
58491 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58492
58493         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58494         (uintmax_t) [defined uintmax_t]: Do not declare.
58495         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58496         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58497         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58498         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58499         sake of portability to weird hosts that C allows (though we don't
58500         know of any practical examples).
58501
58502         * lib/savedir.h (fdsavedir): New decl.
58503         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58504         contains most of the former guts of savedir.
58505         (savedir): Use savedirstream.
58506         Include "openat.h".
58507
58508 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         * modules/obstack (Files): Add m4/ulonglong.m4.
58511         Problem reported by Davide Angelocola.
58512
58513 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58516         coreutils no longer futzes with rounding modes.
58517
58518 2005-11-14  Jim Meyering  <jim@meyering.net>
58519
58520         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58521         replacement of mkstemp.
58522
58523 2005-11-10  Simon Josefsson  <jas@extundo.com>
58524
58525         * lib/readline.c: Remove EOL.
58526
58527 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58528
58529         * modules/gethrxtime (Depends-on): Add gettime.
58530
58531 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58532
58533         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58534         or gettimeofday; no longer needed.
58535
58536 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58539         time business.
58540         (gethrxtime) [! (HAVE_NANOUPTIME
58541         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58542         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58543         our own approximation.
58544
58545 2005-11-08  Eric Blake  <ebb9@byu.net>
58546
58547         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58548
58549 2005-11-08  Eric Blake  <ebb9@byu.net>
58550
58551         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58552
58553 2005-11-04  Bruno Haible  <bruno@clisp.org>
58554
58555         * gnulib-tool: Implement --update mode.
58556
58557 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58558
58559         Fix porting problem reported by Theodoros V. Kalamatianos.
58560         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58561         Don't assume that futimes failing means we must fail.
58562
58563 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58564
58565         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58566         variables to suggest the intended function of the PATH_MAX check.
58567
58568 2005-10-30  Kean Johnston  <jkj@sco.com>
58569
58570         Trivial changes to support SCO systems.
58571         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58572         as PATH_MAX.
58573         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58574         where __ptr is null when no I/O is pending.
58575
58576 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58579         leave errno alone.  Problem reported by Dmitry V. Levin.
58580
58581 2005-10-28  Simon Josefsson  <jas@extundo.com>
58582
58583         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58584         Test more.
58585
58586         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58587
58588         * modules/md2, modules/md2-tests: New files.
58589
58590 2005-10-28  Simon Josefsson  <jas@extundo.com>
58591
58592         * m4/inet_ntop.m4: More tests.
58593
58594         * m4/gc-md2.m4, md2.m4: New file.
58595
58596 2005-10-28  Simon Josefsson  <jas@extundo.com>
58597
58598         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58599         "restrict" keywords, as per POSIX.  Protect the function
58600         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58601         Don't use K&R prototypes.  Check the sprintf return values.
58602         Re-define EAFNOSUPPORT if not present.  Indent.
58603
58604         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58605         suggested by Bruno Haible <bruno@clisp.org>.
58606
58607         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58608
58609         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58610
58611         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58612         libgcrypt).
58613
58614         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58615
58616         * lib/md2.h, lib/md2.c: New files.
58617
58618 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58619
58620         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58621         errno alone.  Problem reported by Frederic Jolliton.
58622
58623 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58624
58625         * modules/verify (License): Change from GPL to LGPL.  This is a
58626         tiny module and there are apparently near-equivalents that are
58627         under the BSD license.
58628
58629 2005-10-24  Simon Josefsson  <jas@extundo.com>
58630
58631         * modules/sha1: Relicense to LGPL.
58632
58633 2005-10-24  Simon Josefsson  <jas@extundo.com>
58634
58635         * lib/md4.h: Shrink buffer size, now that we changed the type.
58636
58637 2005-10-23  Simon Josefsson  <jas@extundo.com>
58638
58639         * gnulib-tool (func_import): Fix --tests-base.
58640
58641 2005-10-22  Simon Josefsson  <jas@extundo.com>
58642
58643         * modules/arcfour (Depends-on): Need stdint.
58644
58645 2005-10-22  Simon Josefsson  <jas@extundo.com>
58646
58647         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58648         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58649
58650 2005-10-22  Simon Josefsson  <jas@extundo.com>
58651
58652         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58653         suggested by Bruno Haible <bruno@clisp.org>.
58654
58655 2005-10-22  Simon Josefsson  <jas@extundo.com>
58656
58657         * lib/crc.h: Include stddef.h, for size_t.
58658
58659 2005-10-22  Simon Josefsson  <jas@extundo.com>
58660
58661         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58662         arcfour_context struct (simplify test vector testing in GNU
58663         Shishi).
58664
58665 2005-10-21  Simon Josefsson  <jas@extundo.com>
58666
58667         * modules/des, modules/des-tests: New files.
58668
58669         * modules/gc-des, modules/gc-des-tests: New files.
58670
58671         * tests/test-des.c, tests/test-gc-des.c: New file.
58672
58673 2005-10-21  Simon Josefsson  <jas@extundo.com>
58674
58675         * modules/arctwo, modules/arctwo-tests: New files.
58676
58677         * tests/test-arctwo.c: New file.
58678
58679         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58680
58681         * tests/test-gc-arctwo.c: New file.
58682
58683 2005-10-21  Simon Josefsson  <jas@extundo.com>
58684
58685         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58686         Bruno Haible <bruno@clisp.org>.
58687
58688         * m4/gc-des.m4: New file.
58689
58690 2005-10-21  Simon Josefsson  <jas@extundo.com>
58691
58692         * m4/arctwo.m4: New file.
58693
58694         * m4/gc-arctwo.m4: New file.
58695
58696 2005-10-21  Simon Josefsson  <jas@extundo.com>
58697
58698         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58699         block.
58700
58701 2005-10-21  Simon Josefsson  <jas@extundo.com>
58702
58703         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58704         <bruno@clisp.org>.
58705
58706         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58707
58708         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58709         Bruno Haible <bruno@clisp.org>.
58710
58711         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58712         <bruno@clisp.org>.
58713
58714 2005-10-21  Simon Josefsson  <jas@extundo.com>
58715
58716         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58717
58718 2005-10-21  Simon Josefsson  <jas@extundo.com>
58719
58720         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58721
58722 2005-10-21  Simon Josefsson  <jas@extundo.com>
58723
58724         * lib/des.h, lib/des.c: New files.
58725
58726         * lib/gc-gnulib.c: Support DES.c
58727
58728 2005-10-21  Simon Josefsson  <jas@extundo.com>
58729
58730         * lib/arctwo.h, lib/arctwo.c: New files.
58731
58732         * lib/gc-gnulib.c: Support ARCTWO.
58733
58734 2005-10-21  Simon Josefsson  <jas@extundo.com>
58735
58736         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58737         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58738
58739 2005-10-21  Simon Josefsson  <jas@extundo.com>
58740
58741         * gnulib-tool (func_import, func_create_testdir): Define automake
58742         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58743         Makefile.am snippet),
58744         suggested by Bruno Haible <bruno@clisp.org>.
58745
58746         * modules/gc (Makefile.am): Use it.
58747
58748 2005-10-21  Bruno Haible  <bruno@clisp.org>
58749
58750         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58751         patch.
58752
58753 2005-10-19  Simon Josefsson  <jas@extundo.com>
58754
58755         * tests/test-gc-rijndael.c: New file.
58756
58757         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58758
58759 2005-10-19  Simon Josefsson  <jas@extundo.com>
58760
58761         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58762         interface too.
58763
58764 2005-10-19  Simon Josefsson  <jas@extundo.com>
58765
58766         * tests/test-gc-arcfour.c: New file.
58767
58768         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58769
58770 2005-10-19  Simon Josefsson  <jas@extundo.com>
58771
58772         * modules/gc-md4, modules/gc-md4-tests: New file.
58773
58774         * tests/test-gc-md4.c: New file.
58775
58776 2005-10-19  Simon Josefsson  <jas@extundo.com>
58777
58778         * m4/gc-md4.m4: New file.
58779
58780 2005-10-19  Simon Josefsson  <jas@extundo.com>
58781
58782         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58783         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58784         <kasal@ucw.cz>.
58785
58786 2005-10-19  Simon Josefsson  <jas@extundo.com>
58787
58788         * m4/gc-arcfour.m4: New file.
58789
58790         * m4/gc-rijndael.m4: New file.
58791
58792 2005-10-19  Simon Josefsson  <jas@extundo.com>
58793
58794         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58795
58796 2005-10-19  Simon Josefsson  <jas@extundo.com>
58797
58798         * lib/gc-gnulib.c: Support ARCFOUR.
58799
58800 2005-10-19  Simon Josefsson  <jas@extundo.com>
58801
58802         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58803         support.
58804
58805         * lib/gc.h: Add ECB enum type.
58806
58807         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58808
58809 2005-10-18  Simon Josefsson  <jas@extundo.com>
58810
58811         * tests/test-md5.c: New file.
58812
58813         * modules/md5-tests: New file.
58814
58815 2005-10-18  Simon Josefsson  <jas@extundo.com>
58816
58817         * tests/test-md4.c: New file.
58818
58819         * modules/md4, modules/md4-tests: New files.
58820
58821 2005-10-18  Simon Josefsson  <jas@extundo.com>
58822
58823         * m4/md4.m4: New file.
58824
58825 2005-10-18  Simon Josefsson  <jas@extundo.com>
58826
58827         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58828
58829 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58830
58831         * gnulib-tool (func_create_testdir): Omit the second check whether
58832         BUILT_SOURCES in nonempty.
58833
58834 2005-10-17  Simon Josefsson  <jas@extundo.com>
58835
58836         * tests/test-rijndael.c: New file.
58837
58838 2005-10-17  Simon Josefsson  <jas@extundo.com>
58839
58840         * modules/sha1: Depend on stdint instead of md5.
58841
58842         * modules/md5: Depend on stdint, remove uint32_t.
58843
58844 2005-10-17  Simon Josefsson  <jas@extundo.com>
58845
58846         * modules/gc-sha1-tests: New file.
58847
58848         * tests/test-gc-sha1.c: New file.
58849
58850 2005-10-17  Simon Josefsson  <jas@extundo.com>
58851
58852         * m4/md5.m4: Remove call to uint32_t.m4.
58853
58854 2005-10-17  Simon Josefsson  <jas@extundo.com>
58855
58856         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58857
58858         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58859         md5.h.
58860
58861         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58862
58863         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58864
58865 2005-10-17  Simon Josefsson  <jas@extundo.com>
58866
58867         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58868
58869 2005-10-17  Simon Josefsson  <jas@extundo.com>
58870
58871         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58872
58873 2005-10-17  Simon Josefsson  <jas@extundo.com>
58874
58875         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58876
58877         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58878
58879 2005-10-17  Bruno Haible  <bruno@clisp.org>
58880
58881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58882         that it can also be used in a test.
58883
58884 2005-10-16  Bruno Haible  <bruno@clisp.org>
58885
58886         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58887         TESTS_ENVIRONMENT, so that individual tests can augment it.
58888
58889         * gnulib-tool (func_create_testdir): Use an intermediate target for
58890         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58891         macros, like $(ALLOCA_H), which cannot be passed through the command
58892         line.
58893
58894 2005-10-15  Simon Josefsson  <jas@extundo.com>
58895
58896         * modules/rijndael-tests: New file.
58897
58898         * modules/rijndael: New file.
58899
58900 2005-10-15  Simon Josefsson  <jas@extundo.com>
58901
58902         * m4/rijndael.m4: New file.
58903
58904 2005-10-15  Simon Josefsson  <jas@extundo.com>
58905
58906         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58907
58908         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58909
58910 2005-10-14  Simon Josefsson  <jas@extundo.com>
58911
58912         * tests/test-arcfour.c: New file.
58913
58914         * modules/arcfour, modules/arcfour-tests: New files.
58915
58916 2005-10-14  Simon Josefsson  <jas@extundo.com>
58917
58918         * m4/arcfour.m4: New file.
58919
58920 2005-10-14  Simon Josefsson  <jas@extundo.com>
58921
58922         * lib/arcfour.h, lib/arcfour.c: New files.
58923
58924 2005-10-14  Roland McGrath  <roland@redhat.com>
58925
58926         Import from libc.  [BZ #1331]
58927         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58928         macro argument.
58929         Reported by Matej Vela <vela@debian.org>.
58930
58931 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58934         include <wchar.h>; no longer needed.
58935
58936 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58937
58938         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58939
58940 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58941         and  Ulrich Drepper  <drepper@redhat.com>
58942
58943         Import from libc.
58944         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58945         instead of inline stream orientation test and two separate
58946         function calls.  Pay no attention to USE_IN_LIBIO.
58947
58948 2005-10-13  Simon Josefsson  <jas@extundo.com>
58949
58950         * modules/gc-hmac-md5-tests: New file.
58951
58952         * tests/test-gc-hmac-sha1.c: New file.
58953
58954         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58955
58956         * modules/gc-hmac-md5-tests: New file.
58957
58958         * tests/test-gc-md5.c: New file.
58959
58960         * modules/gc-md5-tests: New file.
58961
58962 2005-10-13  Simon Josefsson  <jas@extundo.com>
58963
58964         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58965         Move memory allocation outside of loop.
58966
58967 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58970         intermediate directory is in a read-only file system.  Problem
58971         reported by Eric Blake.
58972
58973 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58974
58975         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58976
58977 2005-10-12  Simon Josefsson  <jas@extundo.com>
58978
58979         * tests/test-hmac-sha1.c: New file.
58980
58981         * modules/hmac-sha1-tests: New file.
58982
58983         * modules/hmac-sha1: New file.
58984
58985 2005-10-12  Simon Josefsson  <jas@extundo.com>
58986
58987         * modules/gc-sha1: New file.
58988
58989 2005-10-12  Simon Josefsson  <jas@extundo.com>
58990
58991         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58992
58993         * tests/test-gc-pbkdf2-sha1.c: New file.
58994
58995 2005-10-12  Simon Josefsson  <jas@extundo.com>
58996
58997         * modules/gc-md5, modules/gc-hmac-md5: New files.
58998
58999         * modules/gc (Files): Remove md5, memxor and hmac files.
59000
59001 2005-10-12  Simon Josefsson  <jas@extundo.com>
59002
59003         * m4/gc-pbkdf2-sha1.m4: New file.
59004
59005         * m4/gc-hmac-sha1.m4: New file.
59006
59007         * m4/gc-sha1: New file.
59008
59009         * m4/hmac-sha1.m4: New file.
59010
59011 2005-10-12  Simon Josefsson  <jas@extundo.com>
59012
59013         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
59014
59015         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
59016
59017 2005-10-12  Simon Josefsson  <jas@extundo.com>
59018
59019         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
59020         suggested by Bruno Haible <bruno@clisp.org>.
59021
59022 2005-10-12  Simon Josefsson  <jas@extundo.com>
59023
59024         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
59025
59026 2005-10-12  Simon Josefsson  <jas@extundo.com>
59027
59028         * lib/gc-pbkdf2-sha1.c: New file.
59029
59030         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
59031
59032 2005-10-12  Simon Josefsson  <jas@extundo.com>
59033
59034         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
59035
59036         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
59037
59038 2005-10-12  Simon Josefsson  <jas@extundo.com>
59039
59040         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
59041         GC_USE_HMAC_MD5, respectively.
59042
59043         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
59044         (gc_md5): Fix typo.
59045
59046         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
59047
59048         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
59049
59050         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
59051
59052 2005-10-12  Bruno Haible  <bruno@clisp.org>
59053
59054         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
59055         Reported by Stepan Kasal <kasal@ucw.cz>.
59056
59057 2005-10-11  Simon Josefsson  <jas@extundo.com>
59058
59059         * tests/test-crc.c: New file.
59060
59061         * modules/crc, modules/crc-tests: New files.
59062
59063 2005-10-11  Simon Josefsson  <jas@extundo.com>
59064
59065         * m4/crc.m4: New file.
59066
59067 2005-10-11  Simon Josefsson  <jas@extundo.com>
59068
59069         * lib/gc.h: Add gc_hash and gc_hash_buffer.
59070
59071         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
59072
59073         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
59074
59075 2005-10-11  Simon Josefsson  <jas@extundo.com>
59076
59077         * lib/crc.h, lib/crc.c: New files.
59078
59079         * lib/gc.h (gc_hash_buffer): Add doc.
59080
59081 2005-10-11  Bruno Haible  <bruno@clisp.org>
59082
59083         * modules/c-strcasestr: New file.
59084         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
59085
59086 2005-10-11  Bruno Haible  <bruno@clisp.org>
59087
59088         * modules/c-strcase: New file.
59089         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
59090
59091 2005-10-11  Bruno Haible  <bruno@clisp.org>
59092
59093         * lib/strcasecmp.c: Include limits.h.
59094         (strcasecmp): Avoid integer overflow on exotic platforms.
59095         * lib/strncasecmp.c: Include limits.h.
59096         (strncasecmp): Avoid integer overflow on exotic platforms.
59097         Reported by Paul Eggert.
59098
59099 2005-10-11  Bruno Haible  <bruno@clisp.org>
59100
59101         * lib/c-strcasestr.h: New file, from GNU gettext.
59102         * lib/c-strcasestr.c: New file, from GNU gettext.
59103
59104 2005-10-11  Bruno Haible  <bruno@clisp.org>
59105
59106         * lib/c-strcase.h: New file, from GNU gettext.
59107         * lib/c-strcasecmp.c: New file, from GNU gettext.
59108         * lib/c-strncasecmp.c: New file, from GNU gettext.
59109
59110 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59111
59112         * modules/mempcpy (License): GPL -> LGPL.
59113         * modules/strchrnul (License): Likewise.
59114         * modules/sysexits (License): Likewise.
59115
59116 2005-10-08  Simon Josefsson  <jas@extundo.com>
59117
59118         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
59119
59120 2005-10-07  Simon Josefsson  <jas@extundo.com>
59121
59122         * m4/memxor.m4: Remove gl_C_RESTRICT call.
59123
59124 2005-10-06  Simon Josefsson  <jas@extundo.com>
59125
59126         * tests/test-hmac-md5.c: New file.
59127
59128         * modules/hmac-md5-tests: New file.
59129
59130         * modules/hmac-md5: New file.
59131
59132 2005-10-06  Simon Josefsson  <jas@extundo.com>
59133
59134         * m4/hmac-md5.m4: New file.
59135
59136         * m4/memxor.m4: Require gl_C_RESTRICT.
59137
59138 2005-10-06  Simon Josefsson  <jas@extundo.com>
59139
59140         * lib/memxor.c (memxor): Avoid casts and warnings.
59141
59142 2005-10-06  Simon Josefsson  <jas@extundo.com>
59143
59144         * lib/hmac-md5.c: New file.
59145
59146         * lib/hmac.h: New file.
59147
59148 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59149
59150         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
59151         promotes to int, not unsigned int, to catch the AIX 5.3
59152         compiler bug.
59153
59154 2005-10-05  Simon Josefsson  <jas@extundo.com>
59155
59156         * modules/memxor: New file.
59157
59158         * modules/iconv (Files): Move config.rpath to havelib, it is used
59159         there.
59160
59161         * modules/havelib (Files): Add config.rpath.
59162
59163 2005-10-05  Simon Josefsson  <jas@extundo.com>
59164
59165         * m4/memxor.m4: New file.
59166
59167 2005-10-05  Simon Josefsson  <jas@extundo.com>
59168
59169         * lib/memxor.c (memxor): Fix compiler error.
59170
59171         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
59172         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
59173
59174         * lib/memxor.h, lib/memxor.c: New files.
59175
59176         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
59177         we assume all systems have it, suggested by Jim Meyering
59178         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
59179         any systems lack sys/socket.h; mingw32 is known to lack it, but we
59180         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
59181         same reasons.
59182
59183 2005-10-05  Simon Josefsson  <jas@extundo.com>
59184
59185         * config/srclist.txt: Add glibc bug 1423 for md5.h.
59186
59187 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59188
59189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
59190         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
59191         needed, since the source code now assumes these .h files.
59192
59193 2005-10-05  Derek Price  <derek@ximbiot.com>
59194
59195         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
59196
59197 2005-10-05  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/stdint (License): Change to LGPL.
59200
59201 2005-10-04  Simon Josefsson  <jas@extundo.com>
59202
59203         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
59204         D. Baushke" <mdb@gnu.org>.
59205
59206 2005-10-04  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/verify.h (verify_true): Provide alternative definition for C++.
59209
59210 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
59213         (SSIZE_MAX): New macro, if not already defined.
59214         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
59215         than 2 GiB.
59216
59217 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59218
59219         Sync from coreutils.
59220         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
59221         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
59222         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
59223         ULLONG_MAX doesn't work with 2.7.2.1.
59224
59225 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59226
59227         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
59228         From Ben Pfaff.
59229
59230         * modules/exclude (Depends-on): Depend on verify.
59231         * modules/strtoimax (Depends-on): Likewise.
59232         * modules/utimecmp (Depends-on): Likewise.
59233
59234 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59235
59236         * lib/exclude.c: Include verify.h.
59237         (verify): Remove.  All callers changed to use verify.h's version.
59238         * lib/strtoimax.c: Likewise.
59239         * lib/utimecmp.c: Likewis.e
59240
59241         Sync from coreutils.
59242         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
59243         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
59244         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
59245         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
59246         bother returning ENOSYS if settimeofday or stime fails; just let
59247         them return whatever errno they want to return.
59248         * lib/utimens.c: Include unistd.h, for dup2.
59249         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
59250         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
59251
59252 2005-10-02  Jim Meyering  <jim@meyering.net>
59253
59254         Sync from coreutils.
59255         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
59256         from glibc-2.2.5 that fails for read-only files.
59257
59258 2005-10-02  Jim Meyering  <jim@meyering.net>
59259
59260         Sync from coreutils.
59261         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
59262         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
59263         `#if HAVE_CONFIG_H'.
59264         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
59265         Remove AT_FDCWD test.
59266         Do not consume the fd unless successful.
59267         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
59268         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
59269         block, so that we don't even try to compile it if settimeofday is
59270         available.  This works around a compilation failure on OSF1 V5.1,
59271         due to stime requiring a `long int*' while tv_sec is `int'.
59272
59273 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
59274
59275         Sync from coreutils.
59276         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
59277         against `yes', rather than just testing for nonempty.
59278
59279 2005-10-01  Simon Josefsson  <jas@extundo.com>
59280
59281         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
59282         and Darwin.
59283
59284         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
59285         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
59286         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
59287         freeaddrinfo and gai_strerror are declared by the POSIX headers.
59288         Check if struct addrinfo is declared.
59289
59290 2005-10-01  Simon Josefsson  <jas@extundo.com>
59291
59292         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
59293         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
59294         AI_* and EAI_* definitions.  Protect function declarations.
59295
59296 2005-10-01  Jim Meyering  <jim@meyering.net>
59297
59298         Sync from coreutils.
59299
59300         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
59301         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
59302         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
59303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59304         in the inet and nsl libraries.  Required on Solaris 5.7.
59305
59306 2005-10-01  Jim Meyering  <jim@meyering.net>
59307
59308         Sync from coreutils.
59309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59310         in the inet and nsl libraries.  Required on Solaris 5.7.
59311
59312 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
59313
59314         * lib/getdelim.c (getdelim): Remove unused variables.
59315
59316 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
59319         so that the code works even with ancient cpp.  Portability problem
59320         with GCC 2.7.2.1 reported by Thomas M.Ott.
59321
59322 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59323
59324         * modules/regex (Depends-on): Add strcase.
59325
59326         * modules/gethostname (Licence): Change from GPL to LGPL, since
59327         gethostname.c is a trivial implementation of a standard library
59328         function.
59329         * modules/poll (License): Change from GPL to LGPL, since it's
59330         derived from LGPL code.
59331
59332 2005-09-27  Jim Meyering  <jim@meyering.net>
59333
59334         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
59335         HAVE_CONFIG_H.
59336
59337         * lib/intprops.h (signed_type_or_expr__): Define.
59338         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
59339         for unsigned types.
59340
59341 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59342
59343         * lib/verify.h (verify_expr): Remove, replacing with:
59344         (verify_true): New macro that returns true instead of void.
59345         (verify_type__): Remove.
59346         (verify): Use verify_true rather than verify_type__.
59347
59348 2005-09-26  Bruno Haible  <bruno@clisp.org>
59349
59350         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
59351         is necessary.
59352         (lib_SOURCES): Remove mbchar.c.
59353         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
59354         (Files): Add m4/mbrtowc.m4.
59355         * modules/mbiter: Likewise.
59356         * modules/mbuiter: Likewise.
59357
59358 2005-09-26  Bruno Haible  <bruno@clisp.org>
59359
59360         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
59361         compile mbchar.c if they are not both present.
59362         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
59363         * m4/mbiter.m4 (gl_MBITER): Likewise.
59364         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
59365         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
59366         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
59367
59368 2005-09-25  Jim Meyering  <jim@meyering.net>
59369
59370         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
59371         also uses socklen_t.
59372
59373 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         * lib/utimens.c (ENOSYS): Define if not already defined.
59376         (futimens): Support having a null PATH if the file descriptor
59377         is nonnegative.
59378
59379         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
59380         Remove.
59381         (__attribute): Define to empty unless GCC 3.1 or later.
59382         This works around a core dump on OpenBSD 3.4, which has GCC
59383         2.95.3, which dumps core when given __attribute__(()).  It also
59384         simplifies other tests, since we really don't want to bother with
59385         worrying about which ancient version of GCC supported what.
59386         Original problem reported by Yoann Vandoorselaere, with part of
59387         the fix suggested by Derek Price.
59388
59389 2005-09-24  Jim Meyering  <jim@meyering.net>
59390
59391         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
59392         so we can once again use a positive bitfield width of 1 -- now we
59393         don't have to explain why we were using a bitfield width of 2.
59394
59395 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59396
59397         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
59398         and similarly for the other external symbols.  Problem reported
59399         by James Gallager.
59400
59401         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
59402         bug reported by Jim Meyering.
59403
59404         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
59405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
59406         not needed, since socklen is a prerequisite module.
59407
59408 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59409
59410         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59411         Problem reported by Eric Blake.
59412         (getaddrinfo): Initialize se so that it's not garbage.
59413         Redo internal storage allocation so that it doesn't make unportable
59414         assumptions about alignment.
59415         Fix a memory leak.
59416
59417         * lib/utimens.c (futimens): Use futimesat if available.
59418         Prefer it to futimes since it doesn't have the futimes bug.
59419
59420         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59421         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59422         Instead, declare a function that returns a pointer to an array,
59423         and use verify_type__ to declare the size of the array.
59424         Problem and germ of a solution reported by Bruno Haible.
59425         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59426         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59427
59428 2005-09-23  Jim Meyering  <jim@meyering.net>
59429
59430         Sync from coreutils.
59431         Correct build failure (socklen_t not defined) on at least
59432         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59433         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59434
59435 2005-09-23  Jim Meyering  <jim@meyering.net>
59436
59437         * modules/getaddrinfo (Depends-on): Add socklen.
59438
59439 2005-09-23  Bruno Haible  <bruno@clisp.org>
59440
59441         * tests/test-verify.c: New file.
59442
59443 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59444
59445         Sync from coreutils.
59446
59447         * modules/argmatch (Depends-on): Add verify.
59448         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
59449         unistd-safer.
59450         * modules/save-cwd (Depends-on): Likewise.
59451
59452         * modules/openat (Files): Add lib/openat-die.c.
59453         (Depends-on): Remove error, exitfail.
59454         Add dirname.
59455
59456         * modules/verify: New file.
59457         * MODULES.html.sh (Diagnostics <assert.h>): New section,
59458         with "verify" module.
59459
59460 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59461
59462         Sync from coreutils.
59463
59464         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59465         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59466         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59467         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59468         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59469         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59470         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59471         Don't bother checking for string.h, stdlib.h, unistd.h.
59472         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59473         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59474         module's job.
59475         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59476         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59477
59478         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59479         (gl_GETDATE): Use it.
59480
59481         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59482
59483 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         Sync from coreutils.
59486
59487         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59488         stat-time.h.
59489         * lib/argmatch.h: Include verify.h
59490         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59491         (ARGMATCH_ASSERT): Remove; unused.
59492         * lib/canonicalize.c: Assume STDC_HEADERS.
59493         * lib/exclude.c: Include "strcase.h".
59494         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59495         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59496         and stdio-safer.h.
59497         (getusershell): Call fopen, not fopen_safer.
59498         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59499         Do not include unistd-safer.h.
59500         (save_cwd): Don't call fd_safer; no longer needed
59501         now that we include fcntl--.h.
59502
59503         * lib/getdate.y (relative_time): New type.
59504         (RELATIVE_TIME_0): New constant.
59505         (parser_control): Use relative_time instead of doing it ourselves.
59506         (%union): Add new relative_time rel member.
59507         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59508         Now typeless.
59509         (relunit, relunit_snumber): Now of type rel.
59510         (zone, rel, relunit, get_date): Adjust to above changes.
59511
59512         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59513         Do not include unistd-safer.h.
59514         (getloadavg): Don't call fd_safer; no longer needed
59515         now that we include fcntl--.h.
59516
59517         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59518         (make_dir_parents): Treat ENOSYS like EEXIST.
59519
59520         Improve quality of diagnostics on restore_cwd failure.
59521         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59522         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59523         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59524         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59525         each time through the loop.  Do not diagnose restore_cwd failure;
59526         that is the caller's job (and perhaps the caller does not care).
59527
59528         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59529         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59530         If the file already exists but is not a directory, don't bother
59531         to try to make its parents.
59532         Close potential file descriptor leak if we can't chdir("/") (!).
59533         Don't always return true if chdir($PWD) fails; return true only
59534         if the requested action was done successfully (except for the
59535         chdir($PWD)).
59536         Don't log final directory unless we actually made it.
59537         Refactor to avoid duplicate code to fix up permissions.
59538         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59539
59540         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59541         to make it a bit faster and (I hope) clearer.
59542         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59543         Fix bug in formats like %2N.
59544
59545         * lib/verify.h: New file.
59546
59547 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59548
59549         Sync from coreutils.
59550         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59551
59552 2005-09-22  Jim Meyering  <jim@meyering.net>
59553
59554         Sync from coreutils.
59555
59556         * m4/lstat.m4 (gl_FUNC_LSTAT):
59557         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59558         Remove obsolete comment.
59559         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59560         * m4/xstrtod.m4: Likewise.
59561
59562         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59563
59564 2005-09-22  Jim Meyering  <jim@meyering.net>
59565
59566         Sync from coreutils.
59567
59568         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59569
59570         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59571         the .tm_year member, since otherwise gcc-4.0 would now warn about
59572         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59573
59574         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59575         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59576
59577         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59578         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59579         when run in a time zone for which daylight savings time is in effect
59580         for the starting date.
59581
59582         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59583         stop us from restricting permissions of just-created absolute-named
59584         directories.
59585         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59586         to restore initial working directory.
59587         * lib/mkdir-p.c (make_dir_parents): New parameter:
59588         different_working_dir, to tell caller if/when we change the working
59589         directory and are unable to return to the initial one.
59590         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59591         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59592         `return false'.  This fixes a bug introduced on 2004-07-30.
59593
59594         * lib/openat.c (fdopendir): Be sure to close the supplied
59595         file descriptor before returning.  This makes our replacement
59596         implementation a little closer to Solaris's, where fdopendir
59597         ties the file descriptor to the returned DIR* pointer.
59598         * lib/openat.c (unlinkat): New function.
59599         * lib/openat.h (unlinkat): Add prototype.
59600         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59601         (openat_restore_fail): Rename from openat_restore_die.
59602         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59603
59604         Provide an alternative to exiting immediately upon save_cwd or
59605         restore_cwd failure.  Now, an application can arrange e.g.,
59606         to perform a longjump in that case.
59607         * lib/openat.c: Include dirname.h.
59608         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59609         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59610         and openat_restore_die rather than calling error directly.
59611         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59612
59613         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59614         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59615         define.
59616
59617         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59618         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59619                             int utc, int nanoseconds);
59620         Background:
59621         date should not have to allocate a megabyte of virtual memory to
59622         handle a format argument like +%1048575T.  When implemented with
59623         strftime, it must allocate such a buffer, use strftime to fill it
59624         in, print it, then free it.
59625         With fprintftime, it simply prints everything and exits.
59626         With no need for memory allocation, that's one fewer way to fail.
59627         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59628         optional field width, not before, so we accept %9:z, not %:9z.
59629         (my_strftime): Be sure to use L_('x') for literals.
59630
59631         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59632         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59633         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59634         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59635         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59636         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59637         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59638         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59639         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59640         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59641         * lib/xgethostname.c, lib/xreadlink.c:
59642         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59643
59644         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59645         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59646         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59647         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59648         and don't include <sys/file.h>).
59649
59650 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59651
59652         Sync from coreutils.
59653
59654         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59655         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59656         [!LDAV_DONE]: Avoid unused variable warning.
59657
59658 2005-09-21  Bruno Haible  <bruno@clisp.org>
59659
59660         * lib/unicodeio.h (unicode_to_mb): New declaration.
59661
59662 2005-09-20  Derek Price  <derek@ximbiot.com>
59663
59664         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59665         getaddrinfo.h.
59666
59667 2005-09-20  Bruno Haible  <bruno@clisp.org>
59668
59669         * gnulib-tool: Remove trailing slashes from the values specified for
59670         --source-base, --m4-base, --tests-base, --aux-dir.
59671         Suggested by Simon Josefsson <jas@extundo.com>.
59672
59673 2005-09-20  Bruno Haible  <bruno@clisp.org>
59674
59675         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59676         func_modules_to_filelist, func_import, func_create_testdir): Make all
59677         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59678         change when gnulib-tool is invoked in a different locale.
59679
59680 2005-09-19  Simon Josefsson  <jas@extundo.com>
59681
59682         * m4/socklen.m4: Fix typo.
59683
59684 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59685
59686         Use a consistent style for including <config.h>.
59687         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59688         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59689         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59690         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59691         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59692         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59693         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59694         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59695         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59696         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59697         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59698         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59699         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59700         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59701         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59702         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59703         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59704         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59705         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59706         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59707         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59708         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59709         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59710         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59711         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59712         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59713         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59714         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59715         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59716         lib/xstrtoumax.c, lib/yesno.c:
59717         Standardize inclusion of config.h.
59718         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59719         lib/inttostr.h:  Removed inclusion of config.h from header files.
59720         * lib/inttostr.c:  Adjusted in-tree users.
59721         * lib/timespec.h: Remove superfluous warning to include config.h.
59722         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59723         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59724         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59725         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59726         config.h with HAVE_CONFIG_H.
59727
59728 2005-09-19  Jim Meyering  <jim@meyering.net>
59729
59730         * modules/pathmax (License): Change to LGPL.
59731
59732 2005-09-19  Derek Price  <derek@ximbiot.com>
59733
59734         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59735
59736 2005-09-19  Bruno Haible  <bruno@clisp.org>
59737
59738         * gnulib-tool (import): Provide default for --tests-base.
59739
59740 2005-09-19  Bruno Haible  <bruno@clisp.org>
59741
59742         * doc/quote.texi: New file, extracted from gnulib.texi.
59743         * doc/ctime.texi: New file, extracted from gnulib.texi.
59744         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59745         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59746         * doc/gnulib.texi: Include them.
59747
59748 2005-09-18  Bruno Haible  <bruno@clisp.org>
59749
59750         Portability fix.
59751         * gnulib-tool (func_readlink): New function.
59752         (func_ln_if_changed): Use it.
59753
59754 2005-09-18  Bruno Haible  <bruno@clisp.org>
59755
59756         * gnulib-tool: Support --with-tests also with --import.
59757         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59758         (func_import): Use variables $testsbase and $inctests. Emit a
59759         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59760         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59761         SUBDIRS += $testsdir.
59762         (func_create_testdir): Update.
59763
59764 2005-09-18  Bruno Haible  <bruno@clisp.org>
59765
59766         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59767         instead of $dry_run.
59768         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59769         (func_ln_if_changed): Don't handle dry-run here.
59770         (func_import): In dry-run mode, detect more precisely which actions
59771         would be performed, and don't use "...ing" verbs.
59772
59773 2005-09-18  Bruno Haible  <bruno@clisp.org>
59774
59775         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59776         (func_import): Use join on two temporary files instead of three nested
59777         loops, in order to determine which files are new or old.
59778
59779 2005-09-18  Bruno Haible  <bruno@clisp.org>
59780
59781         * gnulib-tool (func_import): Comment out code that spits out the
59782         new files with --dry-run.
59783
59784 2005-09-18  Bruno Haible  <bruno@clisp.org>
59785
59786         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59787
59788 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59789
59790         * lib/stat-time.h: New file.
59791         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59792         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59793         in a different way.
59794         (timespec_cmp): New function.
59795         * lib/utimecmp.c: Include stat-time.h.
59796         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59797         members exist, not on the obsolescent ST_MTIM_NSEC.
59798         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59799
59800 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59801
59802         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59803
59804 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59805
59806         * MODULES.html.sh (File system functions): Add stat-time.
59807         * modules/stat-time: New file.
59808         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59809         is now done in a different way, by the stat-time module.
59810         * modules/utimecmp (Depends-on): Add stat-time.
59811
59812 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         * m4/st_mtim.m4: Remove.  Superseded by...
59815         * m4/stat-time.m4: New file.
59816         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59817         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59818
59819 2005-09-15  Derek Price  <derek@ximbiot.com>
59820
59821         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59822
59823 2005-09-15  Derek Price  <derek@ximbiot.com>
59824
59825         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59826         * lib/regex_internal.c: Ditto, using this...
59827         (__GNUC_PREREQ): ...new macro.
59828         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59829         using...
59830         (__GNUC_PREREQ): ...this new macro.
59831
59832         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59833
59834 2005-09-15  Derek Price  <derek@ximbiot.com>
59835             Paul Eggert  <eggert@cs.ucla.edu>
59836
59837         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59838         changes, consolidating in...
59839         * lib/regex_internal.h: ...this file.
59840
59841 2005-09-13  Jim Meyering  <jim@meyering.net>
59842
59843         * lib/canon-host.c: Filter through gnu indent and reword comments
59844         slightly.
59845         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59846
59847 2005-09-13  Derek Price  <derek@ximbiot.com>
59848
59849         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59850         failure.
59851         Reported by Jim Meyering  <jim@meyering.net>.
59852
59853 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59854
59855         * lib/base64.c: Typo.
59856         (base64_encode): Put b64str in initialized data section.
59857
59858 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59859
59860         Merge glibc and coreutils changes into gnulib, plus a few
59861         extra fixes.
59862         * lib/md5.c: Use #error rather than a string.
59863         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59864         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59865         (__attribute__): Define to empty for non recent-GCC.
59866         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59867         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59868         Renamed from their non-__ counterparts, with new macros replacing
59869         them if not _LIBC.  Add __THROW attribute.
59870         (rol): Remove.
59871         (struct md5_ctx): Align buffer if using GCC.
59872         * lib/sha1.h (struct sha1_ctx): Likewise.
59873         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59874         The old name was backwards.
59875         (NOTSWAP): Remove; not used.
59876         (rol): New macro, moved here from md5.h.
59877         (sha1_process_block): Remove a FIXME that doesn't make sense.
59878
59879 2005-09-12  Derek Price  <derek@ximbiot.com>
59880
59881         Return usable errors from canon-host.
59882         * lib/canon-host.h: New file.
59883         * lib/canon-host.c (canon_host): Wrap...
59884         (canon_host_r): ...this new function, which now relies exclusively on
59885         getaddrinfo.
59886         (ch_strerror): New function.
59887         (last_cherror): New global.
59888         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59889         interface.
59890         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59891         void *.
59892         (freeaddrinfo): Free ai->ai_canonname when set.
59893
59894 2005-09-12  Derek Price  <derek@ximbiot.com>
59895
59896         Make canon-host require getaddrinfo.
59897         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59898         AC_LIBSOURCE canon-host.h.  Call...
59899         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59900         gl_GETADDRINFO.
59901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59902
59903 2005-09-12  Derek Price  <derek@ximbiot.com>
59904
59905         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59906         LGPL.
59907         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59908
59909 2005-09-12  Derek Price  <derek@ximbiot.com>
59910
59911         * lib/gai_strerror.c: Include config.h when available.  Include
59912         getaddrinfo.h before other headers to test interface.
59913         Reported by Larry Jones <lawrence.jones@ugs.com>.
59914
59915 2005-09-12  Derek Price  <derek@ximbiot.com>
59916             Paul Eggert  <eggert@cs.ucla.edu>
59917
59918         * modules/glob (Files): Add glob-libc.h.
59919
59920 2005-09-12  Derek Price  <derek@ximbiot.com>
59921             Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59924         glob_.h, glob-libc.h.
59925         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59926
59927 2005-09-12  Derek Price  <derek@ximbiot.com>
59928             Paul Eggert  <eggert@cs.ucla.edu>
59929
59930         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59931         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59932         protecting things that should be done only in gnulib contexts.
59933         * lib/glob_.h: New file, containing only the glob things needed for
59934         gnulib.
59935         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59936         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59937         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59938         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59939         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59940         and to respect the namespace rules better.
59941
59942 2005-09-08  Simon Josefsson  <jas@extundo.com>
59943
59944         * modules/socklen: New file.
59945
59946 2005-09-08  Simon Josefsson  <jas@extundo.com>
59947
59948         * m4/socklen.m4: New file.
59949
59950 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         * modules/utimens (Files): Add m4/utimbuf.m4, since
59953         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59954         Reported by Sergey Poznyakoff.
59955
59956 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59957
59958         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59959         definitions, since that's the preferred style in glibc.
59960         Fix a minor spacing issue, and update copyright notice to match
59961         glibc's.
59962
59963 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59964
59965         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59966
59967 2005-09-06  Simon Josefsson  <jas@extundo.com>
59968
59969         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59970         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59971
59972 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59975         warning.
59976
59977 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59978
59979         * config/srclist.txt: Add glibc bug 1302.
59980
59981 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         Change bitset word type from unsigned int to unsigned long int,
59984         as this has better performance on typical 64-bit hosts.
59985         Port bitset code to hosts with unusual word sizes.
59986         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59987         (build_collating_symbol):
59988         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59989         argument is a bitset.  This is merely a style issue, but it makes
59990         it clearer that an entire array is expected.
59991         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59992         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59993         Port to the case where bitset_word is not the same as unsigned int.
59994         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59995         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59996         Likewise.
59997         * lib/regexec.c (check_dst_limits_calc_pos_1,
59998         check_subexp_matching_top):
59999         (build_trtable, group_nodes_into_DFAstates):
60000         Likewise.
60001         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
60002         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
60003         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
60004         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
60005         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
60006         * lib/regcomp.c (optimize_subexps, lower_subexp):
60007         Work even if bitset_word has holes in its bitwise representation.
60008         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
60009         * lib/regexec.c (check_dst_limits_calc_pos_1,
60010         check_subexp_matching_top):
60011         Likewise.
60012         * lib/regex_internal.c (re_string_reconstruct):
60013         Don't assume UCHAR_MAX == 255.
60014         * lib/regex_internal.h (bitset_set_all): Likewise.
60015         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
60016         All uses changed.
60017         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
60018         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
60019         All uses changed.
60020         (BITSET_WORD_MAX): New macro.
60021         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
60022         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
60023         (bitset_empty, bitset_copy):
60024         Prefer sizeof (bitset) to multiplying it out ourselves.
60025         (bitset_not_merge): Remove; unused.
60026         (bitset_contain): Return bool, not unsigned int with one bit on.
60027         All callers changed.
60028         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
60029         alignment than re_node_set; do this by defining a new internal
60030         type struct dests_alloc and using it to allocate memory.
60031
60032 2005-09-05  Bruno Haible  <bruno@clisp.org>
60033
60034         * gnulib-tool (func_import): Fix comparison in handling of symbolic
60035         links.
60036
60037 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
60038
60039         * modules/size_max (Makefile.am): Add size_max.h
60040
60041 2005-09-04  Derek Price  <derek@ximbiot.com>
60042
60043         * gnulib-tool (func_import): Fix reversed $symbolic logic.
60044
60045 2005-09-03  Simon Josefsson  <jas@extundo.com>
60046
60047         * gnulib-tool: Fix typo.
60048
60049 2005-09-03  Simon Josefsson  <jas@extundo.com>
60050
60051         * config/srclist.txt: Add glibc bug 1293.
60052
60053 2005-09-03  Derek Price  <derek@ximbiot.com>
60054
60055         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
60056         From Larry Jones <lawrence.jones@ugs.com>.
60057
60058 2005-09-02  Simon Josefsson  <jas@extundo.com>
60059
60060         * modules/socklen: New file.
60061
60062 2005-09-02  Simon Josefsson  <jas@extundo.com>
60063
60064         * modules/havelib: New module.
60065
60066         * modules/gettext, modules/iconv, modules/lock, modules/readline:
60067         Use havelib.
60068
60069 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60070
60071         Check for arithmetic overflow when calculating sizes, to prevent
60072         some buffer-overflow issues.  These patches are conservative, in the
60073         sense that when I couldn't determine whether an overflow was possible,
60074         I inserted a run-time check.
60075         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
60076         macros.
60077         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
60078         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
60079         (re_xnrealloc, re_x2nrealloc): New inline functions.
60080         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
60081         parse_bracket_exp):
60082         (build_equiv_class, build_charclass): Check for arithmetic overflow
60083         in size expression calculations.
60084         * lib/regex_internal.c (re_string_realloc_buffers):
60085         (build_wcs_upper_buffer, re_node_set_add_intersect):
60086         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
60087         (re_dfa_add_node, register_state): Likewise.
60088         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
60089         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
60090         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
60091         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
60092
60093 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60094
60095         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60096         m4/ulonglong.m4.  Problem reported by Martin Lambers.
60097
60098 2005-09-02  Bruno Haible  <bruno@clisp.org>
60099
60100         Support for lib vs. lib64 distinction on biarch platforms.
60101         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
60102         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
60103         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
60104
60105 2005-09-02  Bruno Haible  <bruno@clisp.org>
60106
60107         * gnulib-tool (import): In the other first-use case, provide defaults
60108         as well.
60109
60110 2005-09-02  Bruno Haible  <bruno@clisp.org>
60111
60112         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
60113         patches not yet found in the latest gettext release.
60114
60115 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
60118         to avoid a collision with bits/local_lim.h in glibc.
60119         All uses changed.  Problem reported by Dmitry V. Levin in
60120         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
60121
60122         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
60123         bugs in int versus size_t comparisons.
60124         (re_string_context_at): Fix bug where the code assumed that
60125         Idx is signed.
60126
60127         Use bool where appropriate.
60128         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
60129         All callers changed.
60130         (calc_eclosure_iter): Likewise, for ROOT arg.
60131         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
60132         (build_charclass_op): Likewise, for NON_MATCH arg.
60133         * lib/regex_internal.c (re_string_allocate, re_string_construct):
60134         (re_string_construct_common): Likewise, for ICASE arg.
60135         * lib/regexec.c (re_search_2_stub, re_search_stub):
60136         Likewise, for RET_LEN arg.
60137         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
60138         (set_regs): Likewise, for FL_BACKTRACK arg.
60139         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
60140         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
60141         (calc_eclosure_iter, parse_bracket_exp):
60142         Use bool for internal variables that are booleans.
60143         * lib/regexec.c (re_search_internal, check_matching,
60144         proceed_next_node):
60145         (set_regs, build_sifted_states, sift_states_bkref):
60146         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
60147         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60148         (find_collation_sequence_value):
60149         Likewise.
60150         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
60151         (re_node_set_compare):
60152         Return bool, not int. All callers changed.
60153         * lib/regexec.c (check_halt_node_context, check_dst_limits):
60154         (build_trtable, check_node_accept): Likewise.
60155         * lib/regex_internal.h: Include stdbool.h.
60156
60157         Fix bugs uncovered when converting to bool.
60158         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
60159         failure instead of charging ahead blindly.
60160         * lib/regex_internal.c (register_state): Likewise.
60161         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
60162         for freeing internal storage.
60163         (group_nodes_into_DFA_states): Use unsigned int, not int, for
60164         bitset pieces used as boolean, to avoid undefined behavior
60165         on hosts that do int overflow checking.
60166
60167 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60168
60169         * config/srclist.txt: Add glibc bugs 1285-1287.
60170
60171 2005-09-01  Jim Meyering  <jim@meyering.net>
60172
60173         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
60174         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
60175         Require gl_STAT_MACROS, too.
60176
60177 2005-09-01  Bruno Haible  <bruno@clisp.org>
60178
60179         * gnulib-tool (import): In the first-use case, provide defaults.
60180
60181 2005-09-01  Bruno Haible  <bruno@clisp.org>
60182
60183         * gnulib-tool (func_import): Remove the .tmp files.
60184
60185 2005-09-01  Bruno Haible  <bruno@clisp.org>
60186
60187         * gnulib-tool (func_import): Fix handling of symbolic links.
60188
60189 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
60192         old glibc regex code mishandles strings longer than 2**31 bytes.
60193         This patch fixes this when the regex code is used in gnulib
60194         (i.e., outside glibc).
60195
60196         This patch should not affect the use of the regex code inside
60197         glibc.  No doubt this problem also needs to be handled for glibc
60198         as well, but the result will be an incompatible change to the
60199         glibc ABI, and the old ABI will have to be supported too.  That
60200         can be the the subject for another patch.
60201
60202         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
60203         governing whether the rest of this patch is active.  By default,
60204         the macro is disabled and the patch has no effect.
60205         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
60206         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
60207         (struct re_pattern_buffer, re_search, re_search_2, re_match):
60208         (re_match_2, re_set_registers): Use the new types.
60209         * lib/regex_internal.h (Idx, re_hashval_t): New types.
60210         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
60211         New macros.
60212         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
60213         (re_string_context_at, bin_tree_t, re_dfastate_t):
60214         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
60215         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
60216         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
60217         (re_string_char_size_at, re_string_wchar_at):
60218         (re_string_elem_size_at):
60219         Use the new types and macros to port to 64-bit hosts.
60220         Use unsigned types for internal values, so that the code
60221         mostly works even for arrays larger than SSIZE_MAX.
60222         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
60223         (search_duplicated_node, calc_eclosure_iter, fetch_number):
60224         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
60225         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
60226         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
60227         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
60228         (calc_inveclosure, parse_dup_op, build_range_exp):
60229         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
60230         (fetch_number, create_token_tree, mark_opt_subexp):
60231         Likewise.
60232         * lib/regex_internal.c (re_string_construct_common,
60233         create_ci_newstate):
60234         (create_cd_newstate, re_string_allocate, re_string_construct):
60235         (re_string_realloc_buffers, build_wcs_upper_buffer):
60236         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60237         (re_string_reconstruct, re_string_peek_byte_case):
60238         (re_string_fetch_byte_case, re_string_context_at):
60239         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60240         (re_node_set_init_copy, re_node_set_add_intersect):
60241         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60242         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60243         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60244         (re_acquire_state, re_acquire_state_context, register_state):
60245         Likewise.
60246         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
60247         search_cur_bkref_entry):
60248         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
60249         (re_search_internal, re_search_2_stub, re_search_stub)
60250         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
60251         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
60252         (update_cur_sifted_state, check_dst_limits):
60253         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60254         (check_subexp_limits, sift_states_bkref, merge_state_array):
60255         (check_subexp_matching_top, get_subexp, get_subexp_sub):
60256         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
60257         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60258         (expand_bkref_cache, check_node_accept_bytes):
60259         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
60260         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
60261         (acquire_init_state_context, check_halt_node_context):
60262         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
60263         (sift_states_backward, clean_state_log_if_needed):
60264         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
60265         (find_recover_state, transit_state_sb, transit_state_mb):
60266         (transit_state_bkref, build_trtable, match_ctx_clean):
60267         Likewise.
60268         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
60269         to work around an assumption that REG_MISSING is negative.
60270
60271         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
60272         (seek_collating_symbol_entry) [defined _LIBC]:
60273         (lookup_collation_sequence_value) [defined _LIBC]:
60274         (build_range_exp, build_collating_symbol) [defined _LIBC]:
60275         Use prototypes rather than old-style function definitions.
60276         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
60277         (transit_state_sb) [0]:
60278         (find_collation_sequence_value) [defined _LIBC]: Likewise.
60279
60280         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
60281         rm_eo.
60282
60283         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
60284         (optimize_subexps, lower_subexp):
60285         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
60286         since the signed shift might overflow.  Use 1u<<31 instead.
60287         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60288         Likewise.
60289         * lib/regexec.c (check_dst_limits_calc_pos_1,
60290         check_subexp_matching_top): Likewise.
60291
60292         * lib/regcomp.c (optimize_subexps, lower_subexp):
60293         Use CHAR_BIT rather than 8, for clarity.
60294         * lib/regexec.c (check_dst_limits_calc_pos_1):
60295         (check_subexp_matching_top): Likewise.
60296         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
60297         have to worry about portability issues when shifting it left.
60298         Remove no-longer-needed test for table_size > 0.
60299         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
60300         in a word, as the resulting behavior is undefined.
60301         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
60302         in one case, a <= should have been an <, and in another case the
60303         whole test was missing.
60304         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
60305         the standard name CHAR_BIT.
60306         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
60307         this is not true on one's complement and signed-magnitude hosts.
60308
60309         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
60310         next_last_offset.
60311         (struct re_dfa_t): Remove unused member states_alloc.
60312         * lib/regcomp.c (init_dfa): Don't initialize unused members.
60313
60314 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60315
60316         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
60317         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
60318         and large-file glibc and in 32-bit large-file Solaris.
60319
60320 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60321
60322         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
60323         lengths fit in regoff_t; this isn't true if regoff_t is the same
60324         width as size_t.
60325         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60326         (= START + RANGE) instead of RANGE.  This avoids overflow
60327         problems when regoff_t is the same width as size_t.
60328         All callers changed.
60329         (re_search_2_stub): Check for overflow when adding the
60330         sizes of the two strings.
60331         (re_search_stub): Check for overflow when adding START
60332         to RANGE; if it occurs, substitute the extreme value.
60333
60334 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60335
60336         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
60337
60338 2005-08-31  Jim Meyering  <jim@meyering.net>
60339
60340         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
60341         a pointer-to-const.
60342         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
60343         (register_state): Likewise.
60344         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
60345         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60346         (group_nodes_into_DFAstates): Likewise.
60347
60348 2005-08-31  Jim Meyering  <jim@meyering.net>
60349
60350         * check-module: Add a FIXME comment.
60351
60352 2005-08-31  Eric Blake  <ebb9@byu.net>
60353
60354         * modules/unistd-safer (Files): Add unistd--.h.
60355         * modules/stdio-safer (Files): Add stdio--.h.
60356
60357 2005-08-31  Derek Price  <derek@ximbiot.com>
60358
60359         * lib/getdelim.c (getdelim): Return EOF on EOF.
60360         Reported by Larry Jones <lawrence.jones@ugs.com>.
60361
60362 2005-08-31  Bruno Haible  <bruno@clisp.org>
60363
60364         Avoid unnecessary diffs in the generated lib/Makefile.am.
60365         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
60366         the generated files.
60367         (func_import): Don't set cmd.
60368
60369 2005-08-31  Bruno Haible  <bruno@clisp.org>
60370
60371         * lib/strstr.c: Include <stddef.h>, for NULL.
60372         * lib/strcasestr.c: Likewise.
60373         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60374
60375 2005-08-31  Bruno Haible  <bruno@clisp.org>
60376
60377         * gnulib-tool: New option --macro-prefix.
60378         (func_import): Use macro_prefix.
60379         (import): Handle option --macro-prefix.
60380
60381 2005-08-31  Bruno Haible  <bruno@clisp.org>
60382
60383         * gnulib-tool (import): Rename most ac_* variables to cached_*.
60384         Also use new variables cached_lgpl, cached_libtool.
60385
60386 2005-08-31  Bruno Haible  <bruno@clisp.org>
60387
60388         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
60389         always instantiating them.
60390
60391 2005-08-31  Bruno Haible  <bruno@clisp.org>
60392
60393         * gnulib-tool (func_import): Read the previous cached settings
60394         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
60395         earlier added by gnulib but are now dropped. Warn when a gnulib file
60396         overwrites a non-gnulib file.
60397
60398 2005-08-31  Bruno Haible  <bruno@clisp.org>
60399
60400         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
60401         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
60402         projects that don't keep autogenerated files in CVS. Put into
60403         actioncmd only the specified modules, not the transitive closure.
60404
60405 2005-08-31  Bruno Haible  <bruno@clisp.org>
60406
60407         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60408         Create directories that shall be filled.
60409         (import): Don't look for gl_* macros in configure.ac. Recurse across
60410         all directories containing a gnulib-cache.m4 files, if meaningful.
60411
60412 2005-08-31  Bruno Haible  <bruno@clisp.org>
60413
60414         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60415         (import): Set seen_libtool when we see gl_LIBTOOL.
60416
60417 2005-08-31  Bruno Haible  <bruno@clisp.org>
60418
60419         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60420         declaration macro definitions from generated gnulib.m4.
60421
60422 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60423
60424         * lib/iconvme.h: Add prototype for iconv_alloc.
60425
60426 2005-08-29  Simon Josefsson  <jas@extundo.com>
60427
60428         * lib/iconvme.c: Fix errno.
60429
60430 2005-08-29  Bruno Haible  <bruno@clisp.org>
60431
60432         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60433         that it works when the directory contains spaces.
60434
60435 2005-08-29  Bruno Haible  <bruno@clisp.org>
60436
60437         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60438
60439 2005-08-29  Bruno Haible  <bruno@clisp.org>
60440
60441         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60442         Emit more advice.
60443
60444 2005-08-29  Bruno Haible  <bruno@clisp.org>
60445         and Stepan Kasal  <kasal@ucw.cz>
60446
60447         * check-module: If more parameters are given, check each of them
60448         separately; add more exceptions, as noted by Jim Meyering.
60449         (check_module): New procedure.
60450         (%exempt_header): Now contains all exceptions.
60451
60452 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
60453
60454         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
60455
60456 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60457
60458         * lib/iconvme.c: Split iconv_string into iconv_alloc.
60459
60460 2005-08-28  Bruno Haible  <bruno@clisp.org>
60461
60462         * m4/gnulib-tool.m4: New file.
60463
60464 2005-08-27  Jim Meyering  <jim@meyering.net>
60465
60466         * modules/unistd-safer (Files): Add pipe-safer.c.
60467         * modules/fcntl-safer (Files): Add creat-safer.c.
60468
60469 2005-08-27  Jim Meyering  <jim@meyering.net>
60470
60471         * m4/stdlib-safer.m4: New file.  From coreutils.
60472         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60473         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60474         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60475         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60476         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60477
60478 2005-08-27  Jim Meyering  <jim@meyering.net>
60479
60480         * lib/fopen-safer.c: Merge minor changes from coreutils.
60481         * lib/dup-safer.c: Likewise.
60482         * lib/fd-safer.c: Likewise.
60483
60484         Merge from coreutils.
60485         * lib/stdio--.h: New file.
60486         * lib/stdlib--.h: New file.
60487         * lib/mkstemp-safer.c: New file.
60488
60489         GNU tar needs these.
60490         * lib/pipe-safer.c: New file.
60491         * lib/creat-safer.c: New file.
60492         * lib/fcntl--.h (creat): Define to creat_safer.
60493         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60494         * lib/unistd--.h (pipe): Define to pipe_safer.
60495         * lib/unistd-safer.h: Declare pipe_safer.
60496
60497 2005-08-26  Simon Josefsson  <jas@extundo.com>
60498
60499         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60500         Haible <bruno@clisp.org>.
60501
60502 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60503
60504         * lib/regex_internal.h: Remove all references to
60505         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60506         or better.
60507         (bitset_not, bitset_merge, bitset_not_merge):
60508         (bitset_mask, re_string_allocate, re_string_construct):
60509         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60510         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60511         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60512         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60513         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60514         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60515         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60516         (re_acquire_state_context):
60517         Remove unnecessary forward decls.
60518         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60519         Put __attribute at function definition,
60520         now that the function decl has been removed.
60521         * lib/regex_internal.c (re_string_peek_byte_case):
60522         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60523         Likewise.
60524
60525 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60526
60527         * m4/regex.m4: Add AC_PREREQ(2.50).
60528         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60529
60530 2005-08-25  Simon Josefsson  <jas@extundo.com>
60531
60532         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60533         __fsetlocking.
60534
60535 2005-08-25  Simon Josefsson  <jas@extundo.com>
60536
60537         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60538         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60539         GLIBC specific code.
60540
60541 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60542
60543         Make regex safe for g++.  This fixes one real bug (an "err"
60544         that should have been "*err").  g++ problem reported by
60545         Sam Steingold.
60546         * lib/regex_internal.h (re_calloc): New macro, consistent with
60547         re_malloc etc.  All callers of calloc changed to use re_calloc.
60548         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60549         not int.  All callers changed.
60550         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60551         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60552         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60553         (find_recover_state): Change "err" to "*err"; this fixes what
60554         appears to be a real bug.
60555         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60556         versus int.
60557
60558 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60559
60560         * modules/regex (Depends-on): Add malloc, since the code
60561         assumes that !malloc(0) means failure.
60562
60563 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60564
60565         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60566
60567         alloca modernization/simplification for regex.
60568         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60569         needs to be at the start of the file, and can be moved into
60570         regex_internal.h and simplified.
60571         * lib/regex_internal.h: Include <alloca.h>.
60572         (__libc_use_alloca) [!defined _LIBC]: New macro.
60573         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60574         now works outside glibc.
60575
60576 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * config/srclist.txt: Add glibc bugs 1241, 1245.
60579
60580 2005-08-25  Jim Meyering  <jim@meyering.net>
60581
60582         * lib/open-safer.c: Include <config.h>.
60583         Otherwise, we'd lose LARGEFILE support in any file using
60584         e.g. "fcntl--.h"
60585
60586 2005-08-25  Bruno Haible  <bruno@clisp.org>
60587
60588         * m4/minmax.m4: Require autoconf 2.52.
60589         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60590         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60591         alternatives of translit over the alphabet.
60592         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60593
60594 2005-08-24  Simon Josefsson  <jas@extundo.com>
60595
60596         * tests/test-getpass.c: New file.
60597
60598 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60599
60600         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60601         for GNU regex features.
60602
60603 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60606         * lib/regex.h (regerror): Likewise.
60607
60608         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60609         requires this.  (The code never needed it.)
60610
60611         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60612         All uses of recently-renamed identifiers changed to use the new,
60613         POSIX-compliant names.  The code will build and run just fine
60614         without these changes, but it's better to eat our own dog food
60615         and use the standard-conforming names.
60616
60617         * lib/regex.h: Fix a multitude of POSIX name space violations.
60618         These changes have an effect only for programs that define
60619         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60620         do not change anything for programs compiled in the normal way.
60621         Also, there is no effect on the ABI.
60622
60623         (_REGEX_SOURCE): New macro.
60624         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60625         defined and _GNU_SOURCE is not; this fixes a name space violation.
60626
60627         Rename the following macros to obey POSIX requirements.
60628         The old names are still visible as macros if _REGEX_SOURCE is defined.
60629         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60630         RE_BACKSLASH_ESCAPE_IN_LISTS.
60631         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60632         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60633         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60634         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60635         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60636         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60637         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60638         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60639         (REG_INTERVALS): renamed from RE_INTERVALS.
60640         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60641         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60642         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60643         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60644         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60645         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60646         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60647         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60648         RE_UNMATCHED_RIGHT_PAREN_ORD.
60649         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60650         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60651         (REG_DEBUG): renamed from RE_DEBUG.
60652         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60653         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60654         unusual, since we can't clash with the POSIX REG_ICASE.
60655         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60656         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60657         (REG_NO_SUB): renamed from RE_NO_SUB.
60658         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60659         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60660         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60661         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60662         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60663         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60664         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60665         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60666         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60667         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60668         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60669         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60670         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60671         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60672         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60673         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60674         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60675         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60676         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60677         (REG_FIXED): Renamed from REGS_FIXED.
60678         (REG_NREGS): Renamed from RE_NREGS.
60679
60680         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60681         of other REG_* macros, since POSIX says the user is allowed to
60682         #undef these macros selectively.
60683
60684         (reg_errcode_t): Update comment stating what other tables need
60685         to be consistent.
60686
60687         Rename the following enum values to obey POSIX requirements.
60688         The old names are still visible as macros.
60689         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60690         is not defined, since GNU is supposed to be a superset of POSIX as
60691         much as possible, and since we want reg_errcode_t to be a signed
60692         type for implementation consistency.
60693         (_REG_NOERROR): Renamed from REG_NOERROR.
60694         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60695         (_REG_BADPAT): Renamed from REG_BADPAT.
60696         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60697         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60698         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60699         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60700         (_REG_EBRACK): Renamed from REG_EBRACK.
60701         (_REG_EPAREN): Renamed from REG_EPAREN.
60702         (_REG_EBRACE): Renamed from REG_EBRACE.
60703         (_REG_BADBR): Renamed from REG_BADBR.
60704         (_REG_ERANGE): Renamed from REG_ERANGE.
60705         (_REG_ESPACE): Renamed from REG_ESPACE.
60706         (_REG_BADRPT): Renamed from REG_BADRPT.
60707         (_REG_EEND): Renamed from REG_EEND.
60708         (_REG_ESIZE): Renamed from REG_ESIZE.
60709         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60710         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60711         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60712         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60713         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60714
60715         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60716         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60717         changed.  But support the old name if the new one is not defined
60718         and if _REGEX_SOURCE.
60719
60720         Change the following member names in struct re_pattern_buffer.
60721         The old names are still supported if !_REGEX_SOURCE.
60722         The new names are always supported, regardless of _REGEX_SOURCE.
60723         (re_buffer): Renamed from buffer.
60724         (re_allocated): Renamed from allocated.
60725         (re_used): Renamed from used.
60726         (re_syntax): Renamed from syntax.
60727         (re_fastmap): Renamed from fastmap.
60728         (re_translate): Renamed from translate.
60729         (re_can_be_null): Renamed from can_be_null.
60730         (re_regs_allocated): Renamed from regs_allocated.
60731         (re_fastmap_accurate): Renamed from fastmap_accurate.
60732         (re_no_sub): Renamed from no_sub.
60733         (re_not_bol): Renamed from not_bol.
60734         (re_not_eol): Renamed from not_eol.
60735         (re_newline_anchor): Renamed from newline_anchor.
60736
60737         Change the following member names in struct re_registers.
60738         The old names are still supported if !_REGEX_SOURCE.
60739         The new names are always supported, regardless of _REGEX_SOURCE.
60740         (rm_num_regs): Renamed from num_regs.
60741         (rm_start): Renamed from start.
60742         (rm_end): Renamed from end.
60743
60744         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60745         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60746         Prepend __ to parameter names.
60747
60748         Undo yesterday's changes.
60749
60750 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60753         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60754         lib/regex.c.
60755
60756 2005-08-24  Jim Meyering  <jim@meyering.net>
60757
60758         Sync from coreutils.
60759         * m4/fcntl-safer.m4: New file.
60760
60761         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60762         and object files for this module.
60763
60764 2005-08-24  Jim Meyering  <jim@meyering.net>
60765
60766         Sync from coreutils.
60767         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60768
60769 2005-08-24  Jim Meyering  <jim@meyering.net>
60770
60771         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60772         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60773
60774 2005-08-24  Jim Meyering  <jim@meyering.net>
60775
60776         * modules/fcntl-safer: New module.
60777         * modules/fts (Depends-on): Add fcntl-safer.
60778         * MODULES.html.sh (File descriptor based Input/Output):
60779         Add fcntl-safer.
60780
60781 2005-08-24  Bruno Haible  <bruno@clisp.org>
60782
60783         Support for unit test modules.
60784         * modules/README: Mention tests modules.
60785         * modules/TEMPLATE-TESTS: New file.
60786         * gnulib-tool: New options --extract-tests-module, --with-tests and
60787         --tests-base (unused for the moment).
60788         (testsbase, inctests): New variables.
60789         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60790         (func_verify_module): Exclude TEMPLATE-TESTS.
60791         (func_verify_nontests_module, func_verify_tests_module): New functions.
60792         (func_get_dependencies): Add implicit dependency for tests modules.
60793         (func_get_tests_module): New function.
60794         (func_modules_transitive_closure): When --with-tests was specified,
60795         include the unit tests as well, unless explicitly avoided.
60796         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60797         (func_emit_tests_Makefile_am): New function.
60798         (func_create_testdir): When --with-tests was specified, emit a
60799         tests/ directory.
60800         * MODULES.html.sh (Future developments): Update.
60801
60802 2005-08-24  Bruno Haible  <bruno@clisp.org>
60803
60804         * modules/tls-tests: New file.
60805         * tests/test-tls.c: New file, from GNU gettext.
60806
60807 2005-08-24  Bruno Haible  <bruno@clisp.org>
60808
60809         * modules/lock-tests: New file.
60810         * tests/test-lock.c: New file, from GNU gettext.
60811
60812 2005-08-24  Bruno Haible  <bruno@clisp.org>
60813
60814         * lib/lock.h: Add multiple inclusion guard.
60815         * lib/tls.h: Add multiple inclusion guard.
60816
60817 2005-08-24  Bruno Haible  <bruno@clisp.org>
60818
60819         * gnulib-tool: Add support for the --aux-dir option to
60820         --create-testdir, --create-megatestdir, --test, --megatest.
60821         (func_create_testdir, func_create_megatestdir): Optionally emit a
60822         AC_CONFIG_AUX_DIR directive.
60823         (create-testdir, create-megatestdir, test, megatest): Provide a
60824         default value for $auxdir.
60825
60826 2005-08-24  Bruno Haible  <bruno@clisp.org>
60827
60828         * gnulib-tool (import): Use compound statement instead of subshell
60829         where possible.
60830
60831 2005-08-24  Bruno Haible  <bruno@clisp.org>
60832
60833         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60834
60835 2005-08-24  Bruno Haible  <bruno@clisp.org>
60836
60837         * gnulib-tool (func_version): Update.
60838
60839 2005-08-24  Bruno Haible  <bruno@clisp.org>
60840
60841         * gnulib-tool (func_import, func_create_testdir,
60842         func_create_megatestdir): Quote all autoconf macro arguments.
60843
60844 2005-08-24  Bruno Haible  <bruno@clisp.org>
60845
60846         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60847         option --force, because --force causes the aclocal.m4 of each
60848         subdirectory to be newer than the corresponding config.h.in.
60849
60850 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60853         All contents moved to gl_REGEX.
60854         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60855         assume that it does.
60856
60857 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         * lib/regex.h (REG_NOSYS)
60860         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60861         Define, since POSIX requires it as of 2001.
60862         (_REG_ENOSYS)
60863         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60864         New private symbol, used to keep the enum signed in all cases.
60865         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60866         Youngman in
60867         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60868
60869         * lib/regex_internal.c (re_string_skip_chars, register_state):
60870         (calc_state_hash):
60871         Remove forward decls; no longer needed now that we use prototypes.
60872         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60873         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60874         (clean_state_log_if_needed): Likewise.
60875
60876 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60877
60878         * config/srclist.txt: Add glibc bugs 1231-1233.
60879
60880 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60881
60882         Fix problems reported by Sam Steingold in
60883         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60884         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60885         assumed that reg_errcode_t is a signed type, which is not
60886         necessarily true if _XOPEN_SOURCE is not defined.
60887         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60888         since some compilers warn about it otherwise.
60889
60890 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60891
60892         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60893         (init_word_char, create_initial_state, duplicate_node_closure):
60894         (fetch_token, peek_token_bracket, build_range_exp):
60895         (build_collating_symbol): Remove forward decls; no longer needed
60896         now that we use prototypes.
60897
60898         * lib/regcomp.c:
60899         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60900         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60901         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60902         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60903         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60904         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60905         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60906         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60907         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60908         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60909         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60910         (build_charclass, build_charclass_op, fetch_number, create_tree):
60911         (create_token_tree, mark_opt_subexp, duplicate_tree):
60912         Use prototypes rather than old-style definitions.
60913
60914         * lib/regex_internal.c:
60915         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60916         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60917         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60918         (re_string_reconstruct, re_string_peek_byte_case):
60919         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60920         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60921         (re_node_set_init_copy, re_node_set_add_intersect):
60922         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60923         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60924         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60925         (re_acquire_state, re_acquire_state_context, register_state):
60926         (create_ci_newstate, create_cd_newstate, free_state):
60927         Likewise.
60928         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60929         re_search_2):
60930         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60931         (re_search_internal, prune_impossible_nodes):
60932         (acquire_init_state_context, check_matching, static):
60933         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60934         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60935         (update_regs, sift_states_backward, build_sifted_states):
60936         (clean_state_log_if_needed, merge_state_array):
60937         (update_cur_sifted_state, add_epsilon_src_nodes):
60938         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60939         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60940         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60941         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60942         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60943         (check_arrival, check_arrival_add_next_nodes):
60944         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60945         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60946         (check_node_accept_bytes, check_node_accept, extend_buffers):
60947         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60948         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60949         (sift_ctx_init):
60950         Likewise.
60951
60952         * lib/regex_internal.h:
60953         (re_string_allocate, re_string_construct, re_string_reconstruct):
60954         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60955         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60956         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60957         (re_string_context_at, re_string_peek_byte_case):
60958         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60959         is defined, since we now use prototypes always.
60960
60961         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60962         C89 or better.  All uses removed.
60963
60964 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60965
60966         * config/srclist.txt: Add glibc bugs 1220-1227.
60967
60968 2005-08-20  Jim Meyering  <jim@meyering.net>
60969
60970         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60971         of unused local, dfa.
60972
60973 2005-08-20  Bruno Haible  <bruno@clisp.org>
60974
60975         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60976
60977 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60978
60979         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60980         (re_node_set_insert_last, re_dfa_add_node):
60981         Rename local variables to avoid GCC shadowing warnings.
60982
60983 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60984
60985         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60986         [defined lint]: Suppress bogus uninitialized-variable warnings.
60987
60988         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60989         and let the caller return REG_ESPACE if out of space.  This
60990         removes an uninitialied-variable warning with GCC 4.0.1, and also
60991         avoids taking the address of a local variable.  All callers
60992         changed.
60993
60994 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60995
60996         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60997         $LIBCSRC/posix/regexec.c.
60998         Add glibc bug 1217 for regcomp.c.
60999
61000 2005-08-19  Jim Meyering  <jim@meyering.net>
61001
61002         * lib/regexec.c (proceed_next_node): Redo local variables to
61003         avoid GCC shadowing warnings.
61004
61005 2005-08-18  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/strstr.c (strstr): Fix return value in multibyte case.
61008         * lib/strcasestr.c (strcasestr): Likewise.
61009
61010 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61011
61012         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
61013
61014 2005-08-17  Jim Meyering  <jim@meyering.net>
61015
61016         Make the %s format (seconds since the epoch) work for a negative
61017         number and when used with a zero-padded field width, e.g. %015s.
61018
61019         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
61020         label so that it precedes the code to set `digits'.  Otherwise,
61021         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
61022         print `00-22'.  Now, it prints `-0022', as it should.
61023
61024 2005-08-17  Bruno Haible  <bruno@clisp.org>
61025
61026         * modules/strstr (Files): Add m4/mbrtowc.m4.
61027         (Depends-on): Add mbuiter.
61028
61029 2005-08-17  Bruno Haible  <bruno@clisp.org>
61030
61031         * modules/strcasestr: New file.
61032         * MODULES.html.sh (String handling, based on ANSI C 89): Add
61033         strcasestr.
61034
61035 2005-08-17  Bruno Haible  <bruno@clisp.org>
61036
61037         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
61038
61039 2005-08-17  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/mbuiter: New file.
61042         * MODULES.html.sh (Extended multibyte and wide character utilities):
61043         Add mbuiter.
61044
61045 2005-08-17  Bruno Haible  <bruno@clisp.org>
61046
61047         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
61048         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
61049
61050 2005-08-17  Bruno Haible  <bruno@clisp.org>
61051
61052         * m4/strcasestr.m4: New file.
61053
61054 2005-08-17  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
61057         * lib/strstr.c: Completely rewritten, with multibyte locale support.
61058
61059 2005-08-17  Bruno Haible  <bruno@clisp.org>
61060
61061         * lib/strcasestr.h: New file.
61062         * lib/strcasestr.c: New file.
61063
61064 2005-08-17  Bruno Haible  <bruno@clisp.org>
61065
61066         * lib/strcasecmp.c: Use mbuiter.h.
61067
61068 2005-08-17  Bruno Haible  <bruno@clisp.org>
61069
61070         * lib/mbuiter.h: New file.
61071
61072 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61073
61074         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
61075         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
61076         and gl_GETOPT are both invoked via different paths (as happens
61077         with GNU tar CVS because it uses both argp and getopt), the former
61078         wins.
61079
61080 2005-08-16  Bruno Haible  <bruno@clisp.org>
61081
61082         * modules/tls: New file.
61083         * MODULES.html.sh (Multithreading): Add tls.
61084
61085 2005-08-16  Bruno Haible  <bruno@clisp.org>
61086
61087         * modules/strnlen1: New file.
61088         * MODULES.html.sh (String handling): Add strnlen1.
61089
61090 2005-08-16  Bruno Haible  <bruno@clisp.org>
61091
61092         * modules/strcase (Files): Add m4/mbrtowc.m4.
61093         (Depends-on): Add strnlen1, mbchar.
61094
61095 2005-08-16  Bruno Haible  <bruno@clisp.org>
61096
61097         * modules/mbiter: New file.
61098         * MODULES.html.sh (Extended multibyte and wide character utilities):
61099         Add mbiter.
61100
61101 2005-08-16  Bruno Haible  <bruno@clisp.org>
61102
61103         * modules/mbfile: New file.
61104         * MODULES.html.sh (Extended multibyte and wide character utilities):
61105         Add mbfile.
61106
61107 2005-08-16  Bruno Haible  <bruno@clisp.org>
61108
61109         * modules/mbchar: New file.
61110         * MODULES.html.sh (Extended multibyte and wide character utilities):
61111         New section.
61112
61113 2005-08-16  Bruno Haible  <bruno@clisp.org>
61114
61115         * m4/tls.m4: New file, from GNU gettext.
61116
61117 2005-08-16  Bruno Haible  <bruno@clisp.org>
61118
61119         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
61120         always.
61121         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
61122
61123 2005-08-16  Bruno Haible  <bruno@clisp.org>
61124
61125         * m4/mbiter.m4: New file.
61126
61127 2005-08-16  Bruno Haible  <bruno@clisp.org>
61128
61129         * m4/mbfile.m4: New file.
61130
61131 2005-08-16  Bruno Haible  <bruno@clisp.org>
61132
61133         * m4/mbchar.m4: New file.
61134
61135 2005-08-16  Bruno Haible  <bruno@clisp.org>
61136
61137         * lib/tls.h: New file, from GNU gettext.
61138         * lib/tls.c: New file, from GNU gettext.
61139
61140 2005-08-16  Bruno Haible  <bruno@clisp.org>
61141
61142         * lib/strnlen1.h: New file.
61143         * lib/strnlen1.c: New file.
61144
61145 2005-08-16  Bruno Haible  <bruno@clisp.org>
61146
61147         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
61148         (mbi_init): Update.
61149         (mbi_avail, mbi_advance): Let the iteration end before the terminating
61150         NUL byte, not after it.
61151
61152 2005-08-16  Bruno Haible  <bruno@clisp.org>
61153
61154         * lib/strcase.h (strcasecmp): Add note in comments.
61155         * lib/strncasecmp.c: Use code from strcasecmp.c.
61156         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
61157         (strcasecmp): Work correctly in multibyte locales.
61158
61159 2005-08-16  Bruno Haible  <bruno@clisp.org>
61160
61161         * lib/mbiter.h: New file.
61162
61163 2005-08-16  Bruno Haible  <bruno@clisp.org>
61164
61165         * lib/mbfile.h: New file.
61166
61167 2005-08-16  Bruno Haible  <bruno@clisp.org>
61168
61169         * lib/mbchar.h: New file.
61170         * lib/mbchar.c: New file.
61171
61172 2005-08-16  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
61175         the valid ones. Makes the comparison operations transitive:
61176         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
61177         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
61178
61179 2005-08-15  Simon Josefsson  <jas@extundo.com>
61180
61181         * modules/ssize_t (License): Change to 'unlimited'.
61182
61183         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
61184
61185 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61186
61187         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
61188         Add comments for each pending glibc patch.
61189
61190 2005-08-15  Bruno Haible  <bruno@clisp.org>
61191
61192         * lib/regex.h (__restrict_arr): Don't define to __restrict if
61193         __cplusplus is defined.
61194
61195 2005-08-14  Jim Meyering  <jim@meyering.net>
61196
61197         Sync from coreutils.
61198
61199         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
61200         Use the hash-table-based cycle-detection code not just when
61201         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
61202         Reported by James Youngman in
61203         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
61204         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
61205         FTS_TIGHT_CYCLE_CHECK.
61206         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
61207         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
61208         once again.
61209         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
61210         * lib/fts.c (fd_safer): Remove decl.
61211         Include fcntl--.h rather than unistd-safer.h
61212         (fts_safe_changedir): Don't call fd_safer; no longer needed
61213         now that we include fcntl--.h.
61214
61215 2005-08-12  Simon Josefsson  <jas@extundo.com>
61216
61217         * modules/getndelim2: Use ssize_t module.
61218         * modules/getnline: Likewise.
61219         * modules/safe-read: Likewise.
61220         * modules/xreadlink: Likewise.
61221
61222         * modules/ssize_t: New file.
61223
61224 2005-08-12  Simon Josefsson  <jas@extundo.com>
61225
61226         * m4/readline.m4: Look for termcap, curses or ncurses if required.
61227
61228 2005-08-12  Simon Josefsson  <jas@extundo.com>
61229
61230         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61231         ssize_t.
61232
61233 2005-08-12  Simon Josefsson  <jas@extundo.com>
61234
61235         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
61236         readline, getdelim and check_version.
61237         (Support for systems lacking ISO C 99: Sizes of integer types):
61238         Add size_max.
61239
61240 2005-08-12  Bruno Haible  <bruno@clisp.org>
61241
61242         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
61243
61244 2005-08-11  Simon Josefsson  <jas@extundo.com>
61245
61246         * modules/readline: New file.
61247
61248         * modules/strnlen (Files): Add strnlen.h.
61249
61250 2005-08-11  Simon Josefsson  <jas@extundo.com>
61251
61252         * m4/readline.m4: New file.
61253
61254 2005-08-11  Simon Josefsson  <jas@extundo.com>
61255
61256         * lib/readline.h, readline.c: New file.
61257
61258 2005-08-11  Simon Josefsson  <jas@extundo.com>
61259
61260         * doc/gnulib.texi (Initial import, Finishing touches): Mention
61261         gl_AVOID.
61262
61263 2005-08-11  Bruno Haible  <bruno@clisp.org>
61264
61265         * lib/strnlen.h (strnlen): Change parameter name to match comment.
61266
61267 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
61268
61269         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
61270
61271 2005-08-10  Simon Josefsson  <jas@extundo.com>
61272
61273         * tests/test-iconvme.c: New file.
61274
61275 2005-08-10  Simon Josefsson  <jas@extundo.com>
61276
61277         * m4/strnlen.m4: New file.
61278
61279         * m4/strndup.m4: Don't check for strnlen declaration, done in
61280         strnlen.m4.
61281
61282 2005-08-10  Simon Josefsson  <jas@extundo.com>
61283
61284         * lib/strndup.c: Use strnlen.h.
61285
61286         * lib/strnlen.h: New file.
61287
61288 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61289
61290         * README: Typos.
61291
61292 2005-08-02  Simon Josefsson  <jas@extundo.com>
61293
61294         * modules/readline: New file.
61295
61296 2005-08-02  Simon Josefsson  <jas@extundo.com>
61297
61298         * modules/getdelim: New file.
61299
61300         * modules/getline: Rewrite, don't use getndelim2.
61301
61302 2005-08-02  Simon Josefsson  <jas@extundo.com>
61303
61304         * m4/getline.m4: Separate out getdelim stuff into separate module.
61305
61306         * m4/getdelim.m4: New file.
61307
61308 2005-08-02  Simon Josefsson  <jas@extundo.com>
61309
61310         * lib/getline.h, getline.c: Rewrite.
61311
61312         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
61313
61314 2005-07-31  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/lock.h (gl_lock_initializer): New macro.
61317         (gl_lock_define_initialized): Use it.
61318         (gl_rwlock_initializer): New macro.
61319         (gl_rwlock_define_initialized): Use it.
61320         (gl_recursive_lock_initializer): New macro.
61321         (gl_recursive_lock_define_initialized): Use it.
61322
61323 2005-07-30  Karl Berry  <karl@gnu.org>
61324
61325         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61326         Report from Ben Pfaff, regarding getopt.
61327
61328 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
61329
61330         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
61331         normal way.
61332         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
61333         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
61334         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
61335         (gl_GETOPT): Use the new macros.  Most of the implementation
61336         is moved to the new macros.  This is for programs like Emacs
61337         that don't want all the functionality of gl_GETOPT.
61338
61339 2005-07-26  Bruno Haible  <bruno@clisp.org>
61340
61341         * m4/lock.m4: Update from GNU gettext.
61342
61343 2005-07-26  Bruno Haible  <bruno@clisp.org>
61344
61345         * lib/lock.h: Update from GNU gettext.
61346         * lib/lock.c: Update from GNU gettext.
61347
61348 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
61349
61350         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
61351         obsolescent AC_TRY_RUN.  Include the default includes files, for
61352         'exit'.
61353
61354 2005-07-24  Bruno Haible  <bruno@clisp.org>
61355
61356         * modules/visibility: New file.
61357         * MODULES.html.sh (Misc): Add visibility.
61358
61359 2005-07-24  Bruno Haible  <bruno@clisp.org>
61360
61361         * m4/visibility.m4: New file.
61362
61363 2005-07-24  Bruno Haible  <bruno@clisp.org>
61364
61365         * doc/visibility.texi: New file.
61366
61367 2005-07-22  Bruno Haible  <bruno@clisp.org>
61368
61369         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
61370         $(ALLOCA_H), redundant through BUILT_SOURCES.
61371         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
61372         redundant through BUILT_SOURCES.
61373         * modules/byteswap (Makefile.am): Remove explicit dependency on
61374         $(BYTESWAP_H), redundant through BUILT_SOURCES.
61375         * modules/fnmatch (Makefile.am): Remove explicit dependency on
61376         $(FNMATCH_H), redundant through BUILT_SOURCES.
61377         * modules/getopt (Makefile.am): Remove explicit dependency on
61378         $(GETOPT_H), redundant through BUILT_SOURCES.
61379         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
61380         redundant through BUILT_SOURCES.
61381         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
61382         redundant through BUILT_SOURCES.
61383         * modules/stdbool (Makefile.am): Remove explicit dependency on
61384         $(STDBOOL_H), redundant through BUILT_SOURCES.
61385         * modules/stdint (Makefile.am): Remove explicit dependency on
61386         $(STDINT_H), redundant through BUILT_SOURCES.
61387         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
61388         Remove explicit dependency on $(SYSEXITS_H).
61389         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
61390
61391 2005-07-18  Simon Josefsson  <jas@extundo.com>
61392
61393         * lib/check-version.c (check_version): Accept identical versions too.
61394
61395 2005-07-18  Bruno Haible  <bruno@clisp.org>
61396
61397         * modules/lock: New file.
61398         * MODULES.html.sh (Multithreading): New section.
61399
61400 2005-07-18  Bruno Haible  <bruno@clisp.org>
61401
61402         * m4/lock.m4: New file, from GNU gettext.
61403
61404 2005-07-18  Bruno Haible  <bruno@clisp.org>
61405
61406         * lib/lock.h: New file, from GNU gettext.
61407         * lib/lock.c: New file, from GNU gettext.
61408
61409 2005-07-18  Bruno Haible  <bruno@clisp.org>
61410
61411         * lib/lock.h (gl_once_t): New type.
61412         (gl_once_define, gl_once): New macros.
61413         * lib/lock.c (fresh_once): New variable.
61414         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61415         functions.
61416
61417 2005-07-16  Simon Josefsson  <jas@extundo.com>
61418
61419         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61420         workaround, suggested by Bruno.
61421
61422 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61423
61424         * modules/xalloc (Depends-on): Add xalloc-die.
61425         * modules/xvasprintf (Depends-on): Add xalloc-die.
61426
61427 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61428
61429         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61430         with a minor change.
61431
61432 2005-07-15  Bruno Haible  <bruno@clisp.org>
61433
61434         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61435         When using lib/poll.c, define poll as rpl_poll.
61436
61437 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         * modules/argp (Depends-on): Remove unlocked-io.
61440
61441 2005-07-14  Derek Price  <derek@ximbiot.com>
61442
61443         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61444         for glob symlink bug.
61445
61446 2005-07-14  Bruno Haible  <bruno@clisp.org>
61447
61448         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
61449         Instead, test for *_unlocked function declarations directly.
61450
61451 2005-07-11  Simon Josefsson  <jas@extundo.com>
61452
61453         * modules/size_max: New file.
61454
61455         * modules/xsize: Depend on size_max module for size_max.m4.
61456
61457 2005-07-11  Simon Josefsson  <jas@extundo.com>
61458
61459         * lib/size_max.h: New file.
61460
61461 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61462
61463         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61464         copyright symbol and the year.
61465         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61466         (version_etc_va): Use parameterized copyright notice.
61467         Reword to conform to the current GNU coding standards.
61468
61469 2005-07-11  Karl Berry  <karl@gnu.org>
61470
61471         * doc/gnulib.texi (Quoting): new node.
61472         (Initial import): more info, from Patrice.
61473
61474 2005-07-11  Bruno Haible  <bruno@clisp.org>
61475
61476         * gnulib-tool (func_usage): Document option --avoid.
61477         (Command line options): Handle --avoid.
61478         (func_acceptable): New function.
61479         (func_modules_transitive_closure): Use it.
61480
61481 2005-07-11  Bruno Haible  <bruno@clisp.org>
61482
61483         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61484         Reported by Jim Meyering.
61485
61486 2005-07-10  Bruno Haible  <bruno@clisp.org>
61487
61488         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61489         Needed when size_t is smaller than 'unsigned int'.
61490         Reported by Paul Eggert.
61491
61492 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61493
61494         * modules/argp (Depends-on): Add unlocked-io
61495
61496 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61497
61498         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61499         block of defines.
61500
61501 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61502
61503         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61504         fix now.
61505
61506 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61507         and Paul Eggert  <eggert@cs.ucla.edu>
61508
61509         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61510         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61511
61512 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61513
61514         * modules/regex (Files): Add lib/regex_internal.c,
61515         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61516         (Depends-on): Add extensions.
61517         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61518
61519 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61520
61521         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61522         pathconf.
61523         * m4/same.m4 (gl_SAME): Likewise.
61524         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61525
61526         * m4/regex.m4: Adjust to new libc regex implementation.
61527         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61528         all the .c and .h parts of (the new) regex.
61529         Quote the m4 stuff better.
61530         Check for RE_ICASE bug of old gnulib.
61531         Check for REG_STARTEND of recent libc.
61532         Rename local variables from jm_* to gl_*.
61533         Quote operand of "test -f".
61534         Say "recent enough" version of libc, not "version 2".
61535         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61536         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61537         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61538         Remove check for btowc, isascii.
61539         Require AM_LANGINFO_CODESET.
61540
61541 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         * lib/regex.c, regex.h: Sync from libc.
61544         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61545         * lib/regexec.c:
61546         New files, synced from libc, except that regex_internal.h
61547         currently has a small porting fix.
61548
61549 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61550
61551         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61552         regex_internal.c, regexec.c.
61553         Add regex_internal.h too, but as a comment, since the libc version
61554         is currently broken in gnulib mode.
61555
61556 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61557
61558         Support programs like Emacs that use gnulib but not gettext.
61559         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61560         * modules/gettext-h: New file.
61561         * modules/gettext (Files): Remove lib/gettext.h.
61562         (Depends-on): Add gettext-h.
61563         (Makefile.am): Remove lib_SOURCES.
61564         * modules/argmatch, modules/c-stack, modules/closeout:
61565         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61566         * modules/execute, modules/file-type, modules/getaddrinfo:
61567         * modules/getopt, modules/human, modules/javacomp:
61568         * modules/javaexec, modules/mkdir-p, modules/obstack:
61569         * modules/openat, modules/pagealign_alloc, modules/pipe:
61570         * modules/quotearg, modules/regex, modules/rpmatch:
61571         * modules/unicodeio, modules/userspec, modules/version-etc:
61572         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61573         * modules/xsetenv:
61574         Depend on gettext-h, not gettext.
61575
61576 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61577
61578         * gnulib-tool (func_import): Add support for 'public domain' license.
61579         * modules/alloca, modules/atexit, modules/memmove:
61580         Now public domain, not GPL.
61581         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61582         * modules/realloc, modules/strerror, modules/strtod:
61583         Now LGPL, not GPL.
61584
61585 2005-07-05  Bruno Haible  <bruno@clisp.org>
61586
61587         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61588         autoconf CVS. Needed for mingw.
61589
61590 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61591
61592         Remove the dependency of the strftime module on the tzset module.
61593         * modules/strftime (Depends-on): Remove dependency on tzset.
61594
61595 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         Remove the dependency of the strftime module on the tzset module.
61598         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61599         gl_FUNC_TZSET_CLOBBER.
61600
61601 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61602
61603         Remove the dependency of the strftime module on the tzset module.
61604         * lib/strftime.c (my_strftime)
61605         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61606         Copy the input structure, to work around some of the bug with
61607         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61608         Solaris releases, you should also use the tzset module, but we won't
61609         require it as a dependency any more since we don't want LGPLed code
61610         to depend on GPLed code.
61611
61612 2005-07-02  Jim Meyering  <jim@meyering.net>
61613
61614         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61615         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61616         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61617         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61618
61619 2005-07-02  Jim Meyering  <jim@meyering.net>
61620
61621         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61622
61623 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61624
61625         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61626         declares only 'struct timespec;' (!).
61627
61628 2005-07-01  Jim Meyering  <jim@meyering.net>
61629
61630         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61631         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61632         * lib/save-cwd.c, tempname.c:
61633         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61634         and don't include <sys/file.h>).
61635
61636 2005-06-29  Jim Meyering  <jim@meyering.net>
61637
61638         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61639         type name.  Use the variable name instead.
61640         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61641         Likewise.
61642
61643 2005-06-28  Simon Josefsson  <jas@extundo.com>
61644
61645         * modules/check-version (Files): Add check-version.m4.
61646
61647 2005-06-28  Simon Josefsson  <jas@extundo.com>
61648
61649         * m4/check-version.m4: New file, suggested by Jim Meyering
61650         <jim@meyering.net>.
61651
61652 2005-06-28  Simon Josefsson  <jas@extundo.com>
61653
61654         * lib/check-version.h, lib/check-version.c: New files.
61655
61656 2005-06-28  Simon Josefsson  <jas@extundo.com>
61657
61658         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61659         collision with global variable.  Better indentation.  Don't
61660         increment buffer pointer beyond buffer end.  Based on comments
61661         from Paul Eggert <eggert@cs.ucla.edu>.
61662
61663         * lib/base64.h: Indent.
61664
61665 2005-06-28  Simon Josefsson  <jas@extundo.com>
61666
61667         * doc/gnulib.texi (Library version handling): New section.
61668
61669 2005-06-28  Jim Meyering  <jim@meyering.net>
61670
61671         * check-module (find_included_lib_files): Hard-code another
61672         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61673         but modules/fts-lgpl (correctly) does not list those files.
61674
61675         * modules/canonicalize (Files): Add lib/pathmax.h.
61676
61677 2005-06-25  Simon Josefsson  <jas@extundo.com>
61678
61679         * modules/check-version: New file.
61680
61681 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61682
61683         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61684         initializer of struct addrinfo, as an indication that we don't
61685         care how many members the structure has.
61686
61687 2005-06-24  Derek Price  <derek@ximbiot.com>
61688         and Bruno Haible  <bruno@clisp.org>
61689
61690         Remove stat module & update lstat.
61691         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61692         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61693         * m4/stat.m4: Remove this file.
61694
61695 2005-06-24  Derek Price  <derek@ximbiot.com>
61696         and Bruno Haible  <bruno@clisp.org>
61697
61698         Remove stat module & update lstat.
61699         * lib/stat.c: Remove this file...
61700         (slash_aware_lstat): ...moving this content and its support...
61701         * lib/lstat.c (rpl_lstat): ...into here.
61702         * lib/lstat.h: New file.
61703
61704 2005-06-24  Derek Price  <derek@ximbiot.com>
61705         and Bruno Haible  <bruno@clisp.org>
61706
61707         Remove stat module & update lstat.
61708         * config/srclist.txt (libc sources): Remove stat.
61709
61710 2005-06-24  Derek Price  <derek@ximbiot.com>
61711         and Bruno Haible  <bruno@clisp.org>
61712
61713         Remove stat module & update lstat.
61714         * MODULES.html.sh (stat): Remove.
61715         * MODULES.html: Regenerated.
61716         * modules/lstat (Description): Correct function name.
61717         (Files): Add "lstat.h".
61718         (Depends-on): Remove stat, add xalloc, stat-macros.
61719         * modules/stat: Remove this file.
61720         (Include): Add "lstat.h", remove <sys/stat.h>.
61721
61722 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61725         (ranged_convert): Don't save conversion in a temporary struct.
61726         This causes a warning with GCC 4.0.0, and anyway in the typical
61727         case it's not worth the extra 100 bytes or so of code.
61728         (ranged_convert, __mktime_internal): When calling a function via a
61729         pointer P, use P () rather than (*P) (), as we now assume C89 or
61730         better.
61731
61732 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61733
61734         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61735         "who -r" failed to give output.  Problem reported by Tim Waugh.
61736
61737         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61738         (xcalloc): Use it to avoid needless tests.
61739         Problem reported by Jim Meyering.
61740
61741 2005-06-20  Derek Price  <derek@ximbiot.com>
61742
61743         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61744         unnecessary for Autoconfs > 2.59c.
61745
61746 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61747
61748         * lib/argp.h (__option_is_short): Check upper limit of
61749         __key. Isprint() requires its argument to have the value
61750         of an unsigned char or EOF.
61751
61752 2005-06-16  Jim Meyering  <jim@meyering.net>
61753
61754         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61755         when either N or S is zero.
61756
61757 2005-06-16  Derek Price  <derek@ximbiot.com>
61758
61759         * m4/bison.m4: Declare YACC & YFLAGS precious.
61760
61761 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61762
61763         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61764         multibyte string or pattern, fall back on unibyte matching.
61765         Problem reported by James Youngman.
61766
61767 2005-06-08  Bruno Haible  <bruno@clisp.org>
61768
61769         * modules/csharpcomp: New file.
61770         * MODULES.html.sh (C#): Add csharpcomp.
61771
61772 2005-06-08  Bruno Haible  <bruno@clisp.org>
61773
61774         * m4/csharpcomp.m4: New file, from GNU gettext.
61775
61776 2005-06-08  Bruno Haible  <bruno@clisp.org>
61777
61778         * lib/csharpcomp.h: New file, from GNU gettext.
61779         * lib/csharpcomp.c: New file, from GNU gettext.
61780         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61781
61782 2005-06-08  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61785         warning on mingw.
61786
61787 2005-06-07  Derek Price  <derek@ximbiot.com>
61788
61789         Sync from CVS.
61790         * lib/glob_.h: Indent nested #ifdef.
61791
61792 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61793
61794         Sync from coreutils.
61795         Use "file name" when talking about file names, instead of "filename"
61796         or "path", as per the GNU coding standards.
61797         * lib/mkdir-p.c: Renamed from makepath.c.
61798         (make_dir_parents): Renamed from make_path.  All callers changed.
61799         * lib/mkdir-p.h: Likewise.  All includers changed.
61800         * lib/filenamecat.c: Renamed from path-concat.c.
61801         (file_name_concat): Renamed from path_concat.  All callers changed.
61802         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61803         * lib/filenamecat.h: Likewise.  All includers changed.
61804         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61805         in comments or local variable names.
61806         * lib/basename.c: Likewise.
61807         * lib/canonicalize.c, canonicalize.h: Likewise.
61808         * lib/dirname.c, dirname.h: Likewise.
61809         * lib/euidaccess.c: Likewise.
61810         * lib/exclude.c: Likewise
61811         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61812         * lib/fsusage.c, fsuage.h: Likewise.
61813         * lib/fts.c, fts_.h: Likewise.
61814         * lib/getcwd.c: Likewise.
61815         * lib/getloadavg.c: Likewise.
61816         * lib/mkstemp.c: Likewise.
61817         * lib/mountlist.c, mountlist.h: Likewise.
61818         * lib/openat.c, openat.h: Likewise.
61819         * lib/readlink-stub.c: Likewise.
61820         * lib/readutmp.c, readutmp.h: Likewise.
61821         * lib/rename.c: Likewise.
61822         * lib/rmdir.c: Likewise.
61823         * lib/same.c: Likewise.
61824         * lib/savedir.c: Likewise.
61825         * lib/stripslash.c: Likewise.
61826         * lib/tempname.c: Likewise.
61827         * lib/xreadlink.c: Likewise.
61828         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61829         All uses changed.
61830         * lib/exclude.h: Likewise.
61831
61832         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61833         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61834         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61835         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61836         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61837         files have been getting away with it for years (MORE/BSD 4.3
61838         is extinct now).
61839         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61840         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61841
61842         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61843         Define to 256, not 255, as per modern POSIX.
61844
61845 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         Sync from coreutils.
61848         Use "file name" when talking about file names, instead of "filename"
61849         or "path", as per the GNU coding standards.
61850         * MODULES.html.sh: mkdir-p renamed from makepath.
61851         filenamecat renamed from path-concat.
61852         * modules/filenamecat: Renamed from modules/path-concat.
61853         (Files): filenamecat.h and filenamecat.c renamed from
61854         path-concat.h and path-concat.c.
61855         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61856         (Include): filenamecat.h, not path-concat.h.
61857         * modules/mkdir-p: Renamed from modules/makepath.
61858         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61859         makepath.c.
61860         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61861         (Include): mkdir-p.h, not makepath.h.
61862
61863 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61864
61865         Sync from coreutils.
61866         * m4/mkdir-p.m4: Renamed from makepath.m4.
61867         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61868         Rename files from makepath.c to mkdir-p.c, and from
61869         makepath.h to mkdir-p.h.
61870         * m4/filenamecat.m4: Renamed from path-concat.m4.
61871         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61872         Rename files from path-concat.c to filenamecat.c,
61873         and from path-concat.h to filenamecat.h.
61874         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61875         "file name" in local variables or comments.
61876         * m4/rename.m4: Likewise.
61877
61878 2005-06-01  Bruno Haible  <bruno@clisp.org>
61879
61880         * modules/csharpexec: New file.
61881         * MODULES.html.sh (C#): New section.
61882
61883 2005-06-01  Bruno Haible  <bruno@clisp.org>
61884
61885         * m4/csharp.m4: New file, from GNU gettext.
61886         * m4/csharpexec.m4: New file, from GNU gettext.
61887
61888 2005-06-01  Bruno Haible  <bruno@clisp.org>
61889
61890         * lib/csharpexec.h: New file, from GNU gettext.
61891         * lib/csharpexec.c: New file, from GNU gettext.
61892         * lib/csharpexec.sh.in: New file, from GNU gettext.
61893
61894 2005-05-31  Derek Price  <derek@ximbiot.com>
61895             Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         Sync from cvs.
61898         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61899
61900 2005-05-31  Derek Price  <derek@ximbiot.com>
61901             Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         Sync from cvs.
61904         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61905
61906 2005-05-29  Derek Price  <derek@ximbiot.com>
61907
61908         * config/srclist.txt (glob_.h, glob.c): Add these files.
61909
61910 2005-05-29  Derek Price  <derek@ximbiot.com>
61911
61912         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61913         * modules/glob: New file.
61914         * modules/getlogin_r: Add link to POSIX spec in description.
61915
61916 2005-05-29  Derek Price  <derek@ximbiot.com>
61917             Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * m4/glob.m4: New file.
61920
61921 2005-05-29  Derek Price  <derek@ximbiot.com>
61922             Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * lib/glob_.h, lib/glob.c: New files.
61925
61926 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61927
61928         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61929         * modules/fts-lgpl (Depends-on): Remove gettext.
61930
61931 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61934         and don't require gt_INTTYPES_PRI.
61935
61936 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61939
61940         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61941         the configuration hassle isn't worth it.
61942         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61943         (LONGEST_MODIFIER, PRIuMAX): Remove.
61944
61945 2005-05-27  Bruno Haible  <bruno@clisp.org>
61946
61947         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61948
61949 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61950
61951         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61952         _POSIX_PTHREAD_SEMANTICS for Solaris.
61953
61954 2005-05-25  Derek Price  <derek@ximbiot.com>
61955
61956         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61957
61958 2005-05-25  Derek Price  <derek@ximbiot.com>
61959             Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61962         * lib/getlogin_r.c, getlogin_r.h: New files.
61963
61964 2005-05-25  Bruno Haible  <bruno@clisp.org>
61965             Derek Price  <derek@ximbiot.com>
61966
61967         * lib/getlogin_r.h: Simplify API documentation.
61968
61969 2005-05-23  Derek Price  <derek@ximbiot.com>
61970
61971         * modules/minmax (Files): Add m4/minmax.m4.
61972         (configure.ac): Add gl_MINMAX.
61973
61974 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61975
61976         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61977         so that unistd-safer.h (GPL'ed code) need not be included.
61978
61979 2005-05-22  Bruno Haible  <bruno@clisp.org>
61980
61981         * m4/minmax.m4: New file.
61982         Based on a patch by Derek Price <derek@ximbiot.com>.
61983
61984 2005-05-22  Bruno Haible  <bruno@clisp.org>
61985
61986         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61987         (INT64_MIN): Fix definition.
61988         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61989
61990         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61991         NEED_SIGNED_INT_TYPES.
61992
61993         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61994         HAVE_SYSTEM_INTTYPES.
61995
61996 2005-05-22  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61999         Also include <sys/param.h> if it defines MIN, MAX.
62000         Based on a patch by Derek Price <derek@ximbiot.com>.
62001
62002 2005-05-21  Jim Meyering  <jim@meyering.net>
62003
62004         * modules/fts (Files): Add m4/inttypes-pri.m4.
62005         (Depends-on): Add lstat and remove gettext.  Alphabetize.
62006
62007 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62008
62009         New fts module.
62010         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
62011         (setup_dir, free_dir): New functions.
62012         (enter_dir, leave_dir): Define trivial
62013         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
62014         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
62015         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
62016         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
62017         Move to fts-cycle.c.
62018         (fts_open): Use setup_dir.
62019         (fts_close): Use free_dir.
62020         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
62021         This adds a label and some gotos, but the alternatives were messier.
62022         Check for memory allocation failure when entering a dir.
62023         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
62024         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
62025         (FTS): New member fts_cycle, that is a union that contains the
62026         old active_dir_ht and cycle_state.  All uses changed to mention
62027         fts_cycle.ht and fts_cycle.state.
62028         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
62029         fts.c, with the following changes:
62030         (setup_dir, free_dir): New functions.
62031         (enter_dir): Now returns bool.  Return true if successful, false
62032         if memory exhausted.  All callers changed.
62033         Do not bother partly cleaning up on
62034         memory allocation failure; that is free_dir's job.
62035         However, free ad if hash_insert fails, to avoid memory leak.
62036         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
62037         fts->fts_options to see which union member to use.
62038
62039 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
62042         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
62043
62044 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62045
62046         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
62047
62048 2005-05-20  Jim Meyering  <jim@meyering.net>
62049
62050         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
62051         Now a macro, to pacify GCC.
62052
62053 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62054
62055         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
62056         of -1.
62057
62058 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62059
62060         * lib/chown.c (rpl_chown): Return -1 on failure.
62061
62062 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62063
62064         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
62065         Don't check for stddef.h.
62066         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
62067         don't use its results.
62068         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
62069         since we include them unconditionally.  Don't require
62070         AM_STDBOOL_H, since stdbool is a prerequisite.
62071         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
62072         since we assume C89 or better.
62073         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
62074         as we don't use their results.
62075         Don't check for fchdir, memmove, memset, strrchr, as we use
62076         them unconditionally.
62077         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
62078         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
62079
62080 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62081
62082         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
62083         Include <stddef.h> unconditionally, since we assume C89 now.
62084         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
62085         * lib/fts.c: Include fts_.h first, to check interface.
62086         Do not include intprops.h; no longer needed.
62087         Include cycle-check.h and hash.h, since fts_.h no longer does.
62088         Remove unnecessary casts of closedir to void.
62089         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
62090         decide whether to decrement nlinks.
62091         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
62092         (FTS): Use struct hash_table * instead of Hash_table, so that
62093         we no longer need to include hash.h here.
62094
62095 2005-05-18  Jim Meyering  <jim@meyering.net>
62096
62097         * modules/dirfd (License): Change to LGPL.  Most of the code
62098         is already in the public domain.
62099
62100 2005-05-18  Jim Meyering  <jim@meyering.net>
62101
62102         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
62103         Reported by Yoann Vandoorselaere.
62104
62105 2005-05-17  Jim Meyering  <jim@meyering.net>
62106
62107         * m4/fts.m4: New file, from coreutils.
62108
62109 2005-05-17  Jim Meyering  <jim@meyering.net>
62110
62111         * lib/fts.c, lib/fts_.h: New files, from coreutils.
62112
62113 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         Sync from coreutils.
62116         * m4/unlinkdir.m4: New file.
62117
62118 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62119
62120         Sync from coreutils.
62121         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
62122         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
62123         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
62124         White space changes only.
62125         * lib/makepath.c (make_path): Port to hosts where leading "//" is
62126         special.
62127         * lib/yesno.c: Include getline.h, not ctype.h.
62128         (yesno): Don't remove leading white space; POSIX doesn't allow it.
62129         Use getline to remove arbitrary restriction on response length.
62130
62131 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62132
62133         * config/srclist-update: Spell out "Street" in FSF postal
62134         mail address; this is the style the FSF seems to prefer.
62135
62136         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
62137         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
62138         this updates FSF postal mail address.
62139
62140         Sync from coreutils.
62141         * modules/unlinkdir: New file.
62142         * modules/yesno (Depends-on): Add getline.
62143         * MODULES.html.sh (File system functions): Add unlinkdir.
62144
62145 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62146
62147         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
62148         lib/strsep.h:
62149         Change the initial comment to refer to GPL, not LGPL.
62150         gnulib-tool will change it to LGPL as needed.
62151
62152         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
62153         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
62154         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
62155         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
62156         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
62157         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
62158         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
62159         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
62160         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
62161         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
62162         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
62163         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
62164         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
62165         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
62166         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
62167         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
62168         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
62169         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
62170         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
62171         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
62172         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
62173         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
62174         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
62175         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
62176         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
62177         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
62178         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
62179         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
62180         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
62181         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
62182         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
62183         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
62184         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
62185         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
62186         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
62187         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
62188         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
62189         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
62190         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
62191         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
62192         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
62193         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
62194         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
62195         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
62196         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
62197         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
62198         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
62199         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
62200         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
62201         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
62202         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62203         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
62204         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
62205         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
62206         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
62207         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
62208         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
62209         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
62210         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
62211         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
62212         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
62213         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
62214         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
62215         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
62216         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
62217         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
62218         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
62219         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
62220         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
62221         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
62222         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
62223         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
62224         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
62225         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
62226         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
62227         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
62228         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
62229         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
62230         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
62231         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
62232         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
62233         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
62234         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
62235         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
62236         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
62237         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
62238         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
62239         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
62240         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
62241         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
62242         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
62243         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
62244         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
62245         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
62246         lib/yesno.c, lib/yesno.h:
62247         Update FSF postal mail address.
62248
62249 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
62252         tests/test-memmem.c, tests/test-stpncpy.c:
62253         Update FSF postal mail address.
62254
62255 2005-05-13  Bruno Haible  <bruno@clisp.org>
62256
62257         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
62258         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
62259         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
62260         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
62261         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
62262         Add support for 64-bit integers in the MSVC compiler.
62263
62264 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62265
62266         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
62267
62268 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
62269
62270         * gnulib-tool (func_import): Sort and uniquify recommended includes.
62271
62272 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         * doc/getdate.texi (General date syntax): Don't say that date
62275         date --iso-8601=ns generates acceptable dates; it doesn't yet.
62276         Problem reported by Nic Ferrier.
62277
62278 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62279
62280         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
62281         specified in ai_socktype. Fix invalid ai_protocol
62282         check. ai_protocol is usually set to 0 or depending on
62283         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
62284         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
62285         ai_socktype / ai_protocol in the returned addrinfo structure.
62286
62287 2005-05-10  Simon Josefsson  <jas@extundo.com>
62288
62289         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
62290         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62291
62292 2005-05-10  Karl Berry  <karl@gnu.org>
62293
62294         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
62295         (from http://www.gnu.org/licenses).
62296         * doc/COPYING.LIB: also rename to COPYING.LESSER.
62297         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
62298         fdl.texi suffices.
62299
62300 2005-05-10  Karl Berry  <karl@gnu.org>
62301
62302         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
62303         (COPYING.DOC): remove.
62304
62305         * config/srclist-update: new FSF address.
62306
62307 2005-05-10  Derek Price  <derek@ximbiot.com>
62308
62309         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
62310         possible.
62311
62312 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62313             Bruno Haible  <bruno@clisp.org>
62314
62315         * modules/inet_ntop: New file.
62316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62317         inet_ntop.
62318
62319 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62320             Bruno Haible  <bruno@clisp.org>
62321
62322         * m4/inet_ntop.m4: New file.
62323
62324 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62325             Bruno Haible  <bruno@clisp.org>
62326
62327         * lib/inet_ntop.h: New file.
62328         * lib/inet_ntop.c: New file, from glibc with modifications.
62329
62330 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
62331
62332         * modules/time_r (License): Change to LGPL.
62333         * modules/extensions (License): Change to LGPL.  Actually,
62334         the license is more permissive than that, but currently gnulib-tool
62335         doesn't know how to handle more-permissive licenses.
62336
62337         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
62338         Problem reported by Dave Love.
62339
62340 2005-05-08  Jim Meyering  <jim@meyering.net>
62341
62342         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
62343         blank.
62344
62345 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62346
62347         * modules/argmatch (Depends-on): Add stdbool.
62348         * modules/backupfile (Depends-on): Likewise.
62349         * modules/chdir-long (Depends-on): Likewise.
62350         * modules/closeout (Depends-on): Likewise.
62351         * modules/cycle-check (Depends-on): Likewise.
62352         * modules/dirname (Depends-on): Likewise.
62353         * modules/fnmatch (Depends-on): Likewise.
62354         * modules/fsusage (Depends-on): Likewise.
62355         * modules/fwriteerror (Depends-on): Likewise.
62356         * modules/getcwd (Depends-on): Likewise.
62357         * modules/getloadavg (Depends-on): Likewise.
62358         * modules/hard-locale (Depends-on): Likewise.
62359         * modules/makepath (Depends-on): Likewise.
62360         * modules/mountlist (Depends-on): Likewise.
62361         * modules/nanosleep (Depends-on): Likewise.
62362         * modules/posixtm (Depends-on): Likewise.
62363         * modules/quotearg (Depends-on): Likewise.
62364         * modules/readtokens (Depends-on): Likewise.
62365         * modules/readtokens0 (Depends-on): Likewise.
62366         * modules/readutmp (Depends-on): Likewise.
62367         * modules/save-cwd (Depends-on): Likewise.
62368         * modules/strftime (Depends-on): Likewise.
62369         * modules/userspec (Depends-on): Likewise.
62370         * modules/utimecmp (Depends-on): Likewise.
62371         * modules/xgetcwd (Depends-on): Likewise.
62372         * modules/xnanosleep (Depends-on): Likewise.
62373         * modules/xstrtod (Depends-on): Likewise.
62374         * modules/yesno (Depends-on): Likewise.
62375
62376 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62377
62378         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
62379         needless checks.
62380
62381 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62382
62383         Merge from coreutils.  Among other things,
62384         add bulletproofing for cases where stdin, stdout, or stderr are closed.
62385         * lib/fd-safer.c: New file.
62386         * lib/fcntl-safer.h, open-safer.c: Remove.
62387         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
62388         * lib/dup-safer.c: Include unistd-safer.h first.
62389         Don't include errno.h.
62390         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
62391         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
62392         * lib/file-type.c: Rely on file-type.h change.
62393         * lib/getloadavg.c: Include unistd-safer.h.
62394         (getloadavg): Use safer open.
62395         * lib/getusershell.c: Include "stdio-safer.h".
62396         (getusershell): Use safer fopen.
62397         * lib/long-options.c (long_options): Use NULL rather than 0.
62398         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
62399         'free'.
62400         * lib/modechange.c: Likewise.
62401         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
62402         (MODE_DONE): New constant.
62403         (struct mode_change): Remove 'next' member.
62404         (make_node_op_equals): New function; like the old one of the
62405         same name, except it allocates an array.
62406         (mode_compile, mode_create_from_ref): Use it.
62407         (mode_compile): Allocate result as an array, not a linked list.
62408         Parse octal string ourself, so that we catch mistakes like "+0".
62409         (mode_adjust): Arg is an array, not a linked list.
62410         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62411         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62412         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62413         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62414         Remove.  This is now stat-macros.h's job.
62415         (talloc): Remove.  All callers replaced by xalloc, so that
62416         our invokers don't have to worry about reporting memory failures.
62417         (make_node_op_equals): Remove.
62418         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62419         New constants.
62420         (struct mode_change): Moved here from modechange.h.
62421         (mode_append_entry): Remove.
62422         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62423         apps to have incorrect behavior.  Use simpler algorithm for head
62424         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62425         Detect more invalid usages rather than having somewhat-random behavior.
62426         Don't insert an "a=" action, as that leads to incorrect behavior.
62427         (mode_compile, mode_create_from_ref): Return NULL on error instead
62428         of an enum, since now there's only one way to have an error.  All
62429         callers changed.
62430         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62431         at the correct time.  Simplify calculation of "+u" and its ilk.
62432         Don't mishandle "+X".
62433         (mode_free): Remove "register" and localize decls.
62434         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62435         (struct mode_change): Move to modechange.c; callers don't
62436         need to see this stuff.
62437         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62438         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62439         (mode_change, mode_adjust): Reflect the new signatures noted above.
62440         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62441         that might redefine system include files.
62442         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62443         (my_usleep): Use NULL rather than (void *) 0.
62444         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62445         Use siginterrupt to specify that system calls should be interrupted.
62446         (rpl_nanosleep): Move initialization of suspended closer to call of
62447         my_usleep.
62448         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
62449         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
62450         (desirable_utmp_entry): New function.
62451         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
62452         using x2nrealloc, to simplify logic.
62453         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
62454         size calculation.  Do not assume utmp file is a regular file.
62455         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
62456         (READ_UTMP_CHECK_PIDS): New constant.
62457         * lib/save-cwd.c: Include unistd-safer.h.
62458         (save_cwd): Use fd_safer.
62459         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62460         [!_LIBC] Include "stat-macros.h" instead.
62461         * lib/unistd-safer.h (fd_safer): New decl.
62462
62463 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         * modules/getloadavg (Depends-on): Add unistd-safer.
62466         * modules/getusershell (Depends-on): Add stdio-safer.
62467         * modules/lstat (Depends-on): Remove xalloc.
62468         * modules/mkstemp (Depends-on): Add stat-macros.
62469         * modules/modechange (Depends-on): Remove xstrtol.
62470         Add stat-macros, xalloc.
62471         * modules/save-cwd (Depends-on): Add unistd-safer.
62472         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62473         * modules/unistd-safer (Files): Add lib/fd-safer.c
62474         (Makefile.am): Remove lib_SOURCES.
62475
62476         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62477         Remove fcntl-safer; unistd-safer supersedes it.
62478
62479 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62482         AC_HEADER_STAT.
62483         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62484         (gl_PREREQ_CHOWN): Remove.
62485         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62486         it.  Don't require AC_HEADER_STAT.
62487         (gl_PREREQ_LSTAT): Remove.
62488         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62489         Don't require AC_HEADER_STAT.
62490         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62491         (gl_PREREQ_RMDIR): Remove.
62492         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62493         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62494         the stat-macros module a prerequisite.
62495         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62496         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62497         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62498         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62499         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62500         variable names.
62501         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62502         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62503         variable prefixes.
62504         * m4/fcntl-safer.m4: Remove.
62505         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62506         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62507         Invoke gl_PREREQ_FD_SAFER.
62508         (gl_PREREQ_FD_SAFER): New macro.
62509         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62510         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62511         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62512         Remove duplicate call to AC_LIBOBJ(readutmp).
62513         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62514
62515         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62516         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62517
62518 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62519
62520         * MODULES.html.sh (Misc): Add byteswap.
62521
62522 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62523
62524         * modules/getcwd (Depends-on): Add extensions.
62525         * modules/openat (Depends-on): Likewise.
62526
62527 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62528
62529         * modules/byteswap: New file.
62530
62531 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62532
62533         * m4/byteswap.m4: New file.
62534
62535 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62536
62537         * lib/byteswap_.h: New file.
62538
62539 2005-04-25  Karl Berry  <karl@gnu.org>
62540
62541         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62542
62543 2005-04-25  Albert Chin  <china@thewrittenword.com>
62544
62545         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62546         Toolkit C bug.
62547
62548 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62549
62550         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62551         (func_ln_if_changed) Remove forcibly for no error message
62552         in case file does not exist.
62553
62554 2005-04-19  Simon Josefsson  <jas@extundo.com>
62555
62556         * gnulib-tool (Options): Make --symlink mean --symbolic.
62557
62558 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62559
62560         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62561
62562 2005-04-16  Simon Josefsson  <jas@extundo.com>
62563
62564         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62565
62566 2005-04-15  Simon Josefsson  <jas@extundo.com>
62567
62568         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62569
62570 2005-04-15  Simon Josefsson  <jas@extundo.com>
62571
62572         * gnulib-tool: Rename --symlink to --symbolic.
62573
62574 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62575
62576         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62577         symbolic links to files instead of copying/moving.  Add --aux-dir,
62578         specifying directory relative --dir where auxiliary build tools
62579         are placed.
62580
62581 2005-04-14  Bruno Haible  <bruno@clisp.org>
62582
62583         * modules/allocsa (License): Change to LGPL.
62584         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62585
62586 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62587
62588         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62589         that "UTC +1 second" continues to work.  Problem reported
62590         by Dmitry V. Levin.
62591         (relunit_snumber): New rule.
62592         (relunit): Use it.
62593
62594 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62595
62596         * lib/getdate.y (universal_time_zone_table): New constant.
62597         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62598         universal_time_zone_table.
62599         (lookup_zone): Prefer universal_time_zone_table to
62600         local_time_zone_table, so that "GMT" time stamps are allowed in
62601         London during the summer.  Problem reported by Ian Abbott.
62602
62603 2005-04-12  Jim Meyering  <jim@meyering.net>
62604
62605         * lib/human.c (humblock): Set *options even when returning due to
62606         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62607         warning from gcc-4.
62608
62609 2005-04-09  Jim Meyering  <jim@meyering.net>
62610
62611         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62612         -Wuninitialized: initialize tm0.tm_year.
62613
62614 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62617         count, since there's no maximum.  All uses changed.
62618         Add member dsts_seen.
62619         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62620         not being INT_MAX.
62621         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62622         Use pc_rels_seen to decide whther a date is absolute.
62623
62624         * lib/getdate.y (number): Don't overwrite year.
62625         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62626         check.
62627
62628 2005-04-02  Simon Josefsson  <jas@extundo.com>
62629
62630         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62631         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62632
62633 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62634
62635         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62636         where no absolute path name can be longer than PATH_MAX.
62637
62638 2005-03-27  Jim Meyering  <jim@meyering.net>
62639
62640         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62641
62642 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62645         "one's complement" -> "ones' complement" in comment, as per Knuth.
62646         "value of type" -> "type or expression" in comment.
62647         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62648
62649 2005-03-26  Jim Meyering  <jim@meyering.net>
62650
62651         Comment nits.
62652         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62653         Correct typos: s/or/of/.
62654
62655 2005-03-26  Jim Meyering  <jim@meyering.net>
62656
62657         * modules/check-include-files: Move to ../ and rename to...
62658         * check-module: ...this.
62659
62660 2005-03-25  Jim Meyering  <jim@meyering.net>
62661
62662         * modules/xvasprintf (Files): Add xalloc.h.
62663
62664 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62665
62666         * modules/gettext (Files): config/config.rpath ->
62667         build-aux/config.rpath
62668         * modules/iconv (Files): Likewise.
62669         Problem reported by Oskar Liljeblad.
62670
62671 2005-03-23  Jim Meyering  <jim@meyering.net>
62672
62673         * modules/check-include-files: New script to check for
62674         missing dependencies, multiple includes, etc.
62675
62676         * modules/c-strtold (Depends-on): Add xalloc.
62677         * modules/c-strtod (Depends-on): Add xalloc.
62678         * modules/hash (Depends-on): Add xalloc.
62679         (Files): Remove lib/xalloc.h.
62680
62681         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62682         * modules/userspec (Files): Add lib/inttostr.h.
62683
62684 2005-03-23  Jim Meyering  <jim@meyering.net>
62685
62686         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62687
62688 2005-03-22  Jim Meyering  <jim@meyering.net>
62689
62690         * modules/stat-macros: New module.
62691         * modules/canonicalize, modules/euidaccess, modules/file-type,
62692         * modules/filemode, modules/lchown, modules/makepath,
62693         * modules/rmdir, modules/stat: Depend on new stat-macros module
62694         rather than listing lib/stat-macros.h manually.
62695         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62696
62697 2005-03-22  Jim Meyering  <jim@meyering.net>
62698
62699         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62700
62701 2005-03-22  Bruno Haible  <bruno@clisp.org>
62702
62703         * config/srclist.txt: Replace target directory 'config' with
62704         'build-aux'.
62705         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62706         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62707         ../build-aux/.
62708
62709 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62710
62711         * modules/chdir-long (Depends-on): Add mempcpy.
62712
62713         * modules/acl, modules/backupfile, modules/c-strtod,
62714         modules/c-strtold, modules/canon-host, modules/canonicalize,
62715         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62716         modules/exclude, modules/exitfail, modules/file-type,
62717         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62718         modules/getdate, modules/getline, modules/getpagesize,
62719         modules/getpass, modules/getugroups, modules/group-member,
62720         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62721         modules/inttostr, modules/long-options, modules/makepath,
62722         modules/md5, modules/memcasecmp, modules/memcoll,
62723         modules/modechange, modules/mountlist, modules/path-concat,
62724         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62725         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62726         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62727         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62728         modules/strftime, modules/strndup, modules/strverscmp,
62729         modules/timespec, modules/unlocked-io, modules/userspec,
62730         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62731         modules/yesno:
62732         Remove lib_SOURCES line from Makefile.am section, as this is now
62733         done automatically by the corresponding Autoconf macro.
62734
62735 2005-03-21  Jim Meyering  <jim@meyering.net>
62736
62737         Changes imported from coreutils.
62738
62739         * lib/cycle-check.c: Don't include xalloc.h.
62740
62741         * lib/path-concat.c: Don't include assert.h.
62742         (path_concat): Remove assertion that would have triggered
62743         for ABASE starting with more than one slash.
62744         Reported by Andreas Schwab.
62745
62746         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62747         properly when ABASE is an absolute file name.
62748         Correct the description of this function.
62749         Include <assert.h>.
62750         Add an assertion and a test driver.
62751         This fixes a bug introduced on 2004-07-02.
62752         Andreas Schwab reported the resulting failure of cp --parents:
62753         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62754
62755 2005-03-21  Jim Meyering  <jim@meyering.net>
62756
62757         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62758         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62759
62760 2005-03-21  Jim Meyering  <jim@meyering.net>
62761         and  Paul Eggert  <eggert@cs.ucla.edu>
62762
62763         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62764         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62765         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62766         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62767         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62768         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62769         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62770         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62771         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62772         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62773         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62774         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62775         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62776         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62777         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62778         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62779         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62780         for these modules.
62781
62782 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62783
62784         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62785         (which shouldn't happen), generate nothing instead of returning 0
62786         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62787
62788 2005-03-16  Bruno Haible  <bruno@clisp.org>
62789
62790         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62791         HAVE_LONGLONG_64BIT.
62792
62793 2005-03-16  Bruno Haible  <bruno@clisp.org>
62794
62795         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62796         HAVE_LONGLONG_64BIT.
62797
62798 2005-03-16  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62801         HAVE_LONGLONG_64BIT.
62802
62803 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62806         reliably distinguish strftime failure from empty output on POSIX
62807         hosts.
62808
62809 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62812         (iconv_string): Don't guess a size-zero buffer, as that might cause
62813         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62814         result would be 'too large', where 'too large' is (heuristically)
62815         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62816         overflow concerns.  This will prevent some unwanted malloc failures
62817         when the inputs are very large.
62818
62819 2005-03-15  Karl Berry  <karl@gnu.org>
62820
62821         * config/srclist.txt (config.rpath): from gettext.
62822         * config/config.rpath: update.
62823
62824 2005-03-15  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62827         to 'negate'.
62828
62829         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62830         variable.
62831
62832         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62833         results.
62834
62835 2005-03-14  Simon Josefsson  <jas@extundo.com>
62836
62837         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62838         <fx@gnu.org>.
62839
62840 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62841
62842         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62843         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62844         intprops.h.
62845         * lib/strtol.c: Likewise.
62846
62847 2005-03-14  Jim Meyering  <jim@meyering.net>
62848
62849         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62850         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62851         to be nonzero so that we (and caller) can detect the difference
62852         between a valid zero-length expansion and an error return, even
62853         when the underlying strftime fails before writing anything into
62854         that location.
62855
62856 2005-03-14  Bruno Haible  <bruno@clisp.org>
62857
62858         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62859         Update from GNU gettext 0.14.3.
62860
62861 2005-03-10  Jim Meyering  <jim@meyering.net>
62862
62863         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62864
62865 2005-03-10  Jim Meyering  <jim@meyering.net>
62866
62867         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62868         so that this module works on systems without fchdir.
62869
62870 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62871
62872         Factor int-properties macros into a single file, except for
62873         glibc-related files.
62874         * lib/intprops.h: New file.
62875         * lib/getloadavg.c: Include it instead of limits.h.
62876         (INT_STRLEN_BOUND): Remove.
62877         * lib/human.c: Include intprops.h.
62878         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62879         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62880         302/1000.
62881         * lib/inttostr.h: Include intprops.h instead of limits.h.
62882         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62883         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62884         for consistency with intprops.h.
62885         (time_t_is_integer, twos_complement_arithmetic): Use them.
62886         * lib/sig2str.h: Include <signal.h>, intprops.h.
62887         (INT_STRLEN_BOUND): Remove.
62888         * lib/strftime.c (TYPE_SIGNED): Remove.
62889         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62890         * lib/strtol.c: Adjust comments to match intprops.h.
62891         * lib/userspec.c: Include intprops.h.
62892         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62893         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62894         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62895         instead of rolling our own expressions.
62896         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62897
62898         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62899         instead of int.
62900         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62901         the right thing even if adding 1900 would overflow.  Similarly
62902         for tm_mon + 1 and tm_yday + 1.
62903         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62904         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62905         (DO_SIGNED_NUMBER): New macro.
62906         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62907
62908 2005-03-07  Bruno Haible  <bruno@clisp.org>
62909
62910         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62911
62912 2005-03-07  Bruno Haible  <bruno@clisp.org>
62913
62914         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62915
62916 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62917
62918         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62919         (func_import): Only replace files via --import when they have actually
62920         changed.
62921
62922 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62923
62924         * m4/mmap-anon.m4: New file.
62925         * m4/pagealign_alloc.m4: New file.
62926
62927 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62928             Bruno Haible  <bruno@clisp.org>
62929
62930         * modules/pagealign_alloc: New file.
62931         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62932
62933 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62934             Bruno Haible  <bruno@clisp.org>
62935
62936         * lib/pagealign_alloc.h: New file.
62937         * lib/pagealign_alloc.c: New file.
62938
62939 2005-03-03  Bruno Haible  <bruno@clisp.org>
62940
62941         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62942         Use an all-permissive copyright notice, recommended by RMS.
62943
62944 2005-03-02  Bruno Haible  <bruno@clisp.org>
62945
62946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62947         of AIX, the replacement has to be done only after <string.h> is
62948         included, therefore not in config.h. stpncpy.h does the replacement,
62949         and stpncpy.c uses it.
62950
62951 2005-03-02  Bruno Haible  <bruno@clisp.org>
62952
62953         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62954         stpncpy.c uses it.
62955
62956 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62957
62958         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62959         The workaround isn't strictly needed for POSIX conformance, and
62960         it's too much of a pain to configure and maintain.  We'll ask
62961         people to fix their kernels instead.
62962         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62963         (NANOSLEEP_BUG_WORKAROUND): Remove.
62964         (xnanosleep): Remove the workaround.
62965
62966 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62967
62968         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62969         Reported by Derek Price.
62970         (Include): Add "timespec.h".
62971
62972         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62973
62974 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62975
62976         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62977         to detect nanosleep bug.
62978
62979 2005-03-01  Bruno Haible  <bruno@clisp.org>
62980
62981         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62982
62983 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         * modules/gethrxtime: New file.
62986         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62987         (Depends-on): Add gethrxtime.
62988         (configure.ac): Add gl_XNANOSLEEP.
62989         (Makefile.am): Remove lib_SOURCES line.
62990
62991 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62992
62993         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62994         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62995
62996 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62999         * lib/timespec.h (gettime): Return void, since it always
63000         succeeds now.  All uses changed.
63001         * lib/gettime.c (gettime) Likewise.
63002         [HAVE_NANOTIME]: Prefer nanotime.
63003         Assume gettimeofday succeeds, as POSIX requires.
63004         Assime time () succeeds, since other code already does.
63005         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
63006         (timespec_subtract): Remove.
63007         (NANOSLEEP_BUG_WORKAROUND): New constant.
63008         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
63009         things considerably.  Use it only on GNU/Linux hosts, since the
63010         workaround shouldn't be needed elsewhere.
63011
63012 2005-02-24  Bruno Haible  <bruno@clisp.org>
63013
63014         * modules/gettext (Files): Add m4/glibc2.m4.
63015
63016 2005-02-24  Bruno Haible  <bruno@clisp.org>
63017
63018         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
63019         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
63020         * m4/progtest.m4:
63021         Update from GNU gettext 0.14.2.
63022         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
63023
63024 2005-02-24  Bruno Haible  <bruno@clisp.org>
63025
63026         * lib/localcharset.c: Update from GNU gettext 0.14.2.
63027         * lib/config.charset: Update from GNU gettext 0.14.2.
63028
63029 2005-02-24  Bruno Haible  <bruno@clisp.org>
63030
63031         * lib/gettext.h: Update from GNU gettext 0.14.2.
63032
63033 2005-02-23  Simon Josefsson  <jas@extundo.com>
63034
63035         * m4/iconvme.m4: New file.
63036
63037 2005-02-23  Jim Meyering  <jim@meyering.net>
63038
63039         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
63040         change.
63041         Thanks to Bruno Haible for catching it.
63042
63043 2005-02-22  Simon Josefsson  <jas@extundo.com>
63044
63045         * modules/iconvme: New file.
63046
63047         * MODULES.html.sh: Add iconvme.
63048
63049 2005-02-22  Simon Josefsson  <jas@extundo.com>
63050
63051         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
63052
63053 2005-02-22  Simon Josefsson  <jas@extundo.com>
63054
63055         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
63056
63057 2005-02-22  Jim Meyering  <jim@meyering.net>
63058
63059         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
63060         s/ifndef/ifdef/.
63061
63062 2005-02-20  Neil Conway  <neilc@samurai.com>
63063
63064         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
63065         returned by OSX/Darwin if the specified buffer is not large
63066         enough for the hostname.
63067
63068 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63069
63070         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
63071         pass it to _help, otherwise the latter coredumps trying to
63072         dereference state.root_argp.
63073
63074 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * modules/chdir-long (Depends-on): Add memrchr.
63077         * modules/memrchr (Files): Add lib/memrchr.h.
63078         (Include): "memrchr.h".
63079
63080 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63081
63082         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
63083
63084 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         * lib/memrchr.h: New file.
63087         * lib/chdir-long.c: Include it.
63088         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
63089         Don't bother including stddef.h.
63090
63091 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63092
63093         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
63094         inclusion.
63095         Include <sys/types.h>, for dev_t.
63096         (ME_DUMMY, ME_REMOTE): Move from here....
63097         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
63098         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
63099         Dmitry V. Levin.
63100         Include mountlist.h first, to test the interface.
63101
63102 2005-01-29  Bruno Haible  <bruno@clisp.org>
63103
63104         * lib/progname.c (program_name): Initialize.
63105         Needed when linking statically on MacOS X.
63106
63107 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63108
63109         Sync from coreutils.
63110         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
63111         (Depends-on): Add c-strtod.
63112         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
63113
63114 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63115
63116         Sync from coreutils.
63117         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
63118
63119         Remove files that are specific to coreutils.
63120         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
63121
63122 2005-01-28  Bruno Haible  <bruno@clisp.org>
63123
63124         * modules/javacomp: New file.
63125         * MODULES.html.sh (Java): Add javacomp.
63126
63127 2005-01-28  Bruno Haible  <bruno@clisp.org>
63128
63129         * m4/javacomp.m4: New file, from GNU gettext.
63130
63131 2005-01-28  Bruno Haible  <bruno@clisp.org>
63132
63133         * lib/javacomp.sh.in: New file, from GNU gettext.
63134         * lib/javacomp.h: New file, from GNU gettext.
63135         * lib/javacomp.c: New file, from GNU gettext.
63136
63137 2005-01-26  Simon Josefsson  <jas@extundo.com>
63138
63139         * lib/gai_strerror.c: Use GPL in header.
63140
63141 2005-01-26  Bruno Haible  <bruno@clisp.org>
63142
63143         * modules/javaexec: New file.
63144         * MODULES.html.sh (Java): Add javaexec.
63145
63146 2005-01-26  Bruno Haible  <bruno@clisp.org>
63147
63148         * m4/javaexec.m4: New file, from GNU gettext.
63149
63150 2005-01-26  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/javaexec.sh.in: New file, from GNU gettext.
63153         * lib/javaexec.h: New file, from GNU gettext.
63154         * lib/javaexec.c: New file, from GNU gettext.
63155
63156 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63157
63158         * modules/lchown (Depends-on): Remove lchown.h
63159
63160 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63161
63162         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
63163         must be defined if the header file was not found, in order
63164         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
63165
63166 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63167
63168         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
63169         initializers for struct pentry_state.
63170         (__argp_error): Check return value of __asprintf
63171         (__argp_failure): Translate error message
63172
63173         * lib/argp-parse.c: Removed braces around the expansion of N_()
63174
63175 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63176
63177         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
63178         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
63179         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
63180         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
63181         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
63182         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
63183         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
63184         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
63185         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
63186         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
63187         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
63188         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
63189         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
63190         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
63191         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
63192         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
63193         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
63194         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
63195         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
63196         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
63197         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
63198         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
63199         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
63200         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
63201         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
63202         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
63203         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
63204         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
63205         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
63206         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
63207         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
63208         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
63209         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
63210         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
63211         xstrtol.m4, xstrtoumax.m4, yesno.m4:
63212         Use an all-permissive copyright notice, recommended by RMS.
63213
63214 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         * modules/chdir-long (Depends-on): Remove mempcpy.
63217
63218 2005-01-21  Jim Meyering  <jim@meyering.net>
63219
63220         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
63221         same value as for Solaris 9.
63222
63223         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
63224         component length.  This included changing the parameter to be
63225         of type `char *' rather than `char const *'.
63226         * lib/chdir-long.h (chdir_long): Update prototype.
63227
63228         * lib/openat.c (fdopendir, fstatat): New functions.
63229         * lib/openat.h: Include headers required for use of DIR and struct
63230         stat.
63231         [AT_SYMLINK_NOFOLLOW]: Define.
63232         (fdopendir, fstatat): Add prototypes.
63233
63234 2005-01-21  Bruno Haible  <bruno@clisp.org>
63235
63236         * modules/classpath: New file.
63237         * MODULES.html.sh (Java): Add classpath.
63238
63239 2005-01-21  Bruno Haible  <bruno@clisp.org>
63240
63241         * lib/classpath.h: New file, from GNU gettext.
63242         * lib/classpath.c: New file, from GNU gettext.
63243
63244 2005-01-20  Simon Josefsson  <jas@extundo.com>
63245
63246         * modules/version-etc-fsf: New file.
63247
63248 2005-01-20  Simon Josefsson  <jas@extundo.com>
63249
63250         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
63251         * lib/version-etc.c: Remove version_etc_copyright.
63252         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
63253         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
63254
63255 2005-01-20  Simon Josefsson  <jas@extundo.com>
63256
63257         * lib/base64.h (isbase64): Add.
63258
63259         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
63260         using a unsigned prototype, don't inline.
63261         (base64_decode): Use it.
63262
63263 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
63266         it.
63267
63268 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * lib/save-cwd.c (save_cwd): Remove code to support the case
63271         where fchdir is missing or flaky.
63272
63273 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63274
63275         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
63276
63277 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
63280         AC_LIBSOURCES now does this.
63281         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
63282         with new ullong_max module.
63283
63284 2005-01-19  Bruno Haible  <bruno@clisp.org>
63285
63286         * modules/sh-quote: New file.
63287         * MODULES.html.sh (Executing programs): Add sh-quote.
63288
63289 2005-01-19  Bruno Haible  <bruno@clisp.org>
63290
63291         * lib/sh-quote.h: New file, from GNU gettext.
63292         * lib/sh-quote.c: New file, from GNU gettext.
63293
63294 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63295
63296         Merge from coreutils.
63297         * m4/ullong_max.m4: New file.
63298         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
63299         (gl_MACROS): Assume localeconv exists.
63300
63301 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63302
63303         Merge changes from coreutils, as described below in several
63304         changelogs dated today.
63305
63306         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
63307         (O_DIRECTORY): Remove; not needed here, since "." must be
63308         a directory.  All uses removed.
63309         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
63310         universal on Suns, and we also need to test for IRIX.
63311         Revamp code to use 'if' rather than '#if'.
63312         Avoid unnecessary comparison of cwd->desc to 0.
63313
63314         * lib/utimens.c (futimens): Robustify the previous patch, by checking
63315         for known valid error numbers rather than observed invalid ones.
63316
63317 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63318
63319         * modules/ullong_max: New file.
63320
63321         * modules/chdir-long, modules/openat: New files.
63322         * modules/save-cwd (Depends-on): Depend on chdir-long.
63323         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
63324
63325 2005-01-18  Jim Meyering  <jim@meyering.net>
63326
63327         Merge from coreutils.
63328         * m4/chdir-long.m4, m4/openat.m4: New files.
63329         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
63330         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
63331         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
63332         is sane and DOES follow symlinks.  Besides, testing 20 different
63333         systems found no broken chown implementations.
63334         Prompted by a change in rsync's copy of this macro.
63335         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
63336
63337         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
63338
63339         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
63340         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
63341         NULL-means-set-to-current-time semantics.
63342         Remove temporary file immediately, rather than waiting
63343         for configure's at-exit trap code to do it.
63344
63345 2005-01-18  Jim Meyering  <jim@meyering.net>
63346
63347         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63348
63349         * lib/utimens.c (futimens): Account for the fact that futimes
63350         can also fail with errno == ENOSYS or errno == ENOENT.
63351         Patch from Dmitry V. Levin.
63352
63353         Change the name of the robust chdir function from chdir to chdir_long.
63354         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
63355         (restore_cwd): Use chdir_long, not chdir.
63356         * lib/chdir-long.c: Renamed from chdir.c.
63357         * lib/chdir-long.h: Renamed from chdir.h.
63358         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
63359         Hurd.
63360
63361 2005-01-18  Bruno Haible  <bruno@clisp.org>
63362
63363         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
63364         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
63365         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
63366         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
63367         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
63368         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
63369         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
63370         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
63371         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
63372         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
63373         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
63374         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
63375         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
63376         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
63377         Use an all-permissive copyright notice, recommended by RMS.
63378
63379 2005-01-18  Bob Proulx  <bob@proulx.com>
63380
63381         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
63382         simplify offsetof() macro construct to avoid compile failure with
63383         native HP-UX 11.0 ANSI C compiler.
63384
63385 2005-01-17  Bruno Haible  <bruno@clisp.org>
63386
63387         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
63388         redundant because stpncpy.m4 takes care of it.
63389
63390 2005-01-17  Bruno Haible  <bruno@clisp.org>
63391
63392         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
63393
63394 2005-01-17  Bruno Haible  <bruno@clisp.org>
63395
63396         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
63397         used.
63398
63399 2005-01-17  Bruno Haible  <bruno@clisp.org>
63400
63401         * lib/fwriteerror.h (fwriteerror): Change specification to include
63402         fclose.
63403         * lib/fwriteerror.c: Include <stdbool.h>.
63404         (fwriteerror): At the end, close the file stream. Record whether
63405         stdout was already closed.
63406
63407 2005-01-17  Bruno Haible  <bruno@clisp.org>
63408
63409         * lib/execute.c (environ): Declare if needed.
63410         * lib/pipe.c (environ): Likewise.
63411         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63412
63413 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63414
63415         * modules/argp: Depend on vsnprintf
63416
63417 2005-01-10  Jim Meyering  <jim@meyering.net>
63418
63419         * modules/closeout (Depends-on): Add atexit.
63420
63421 2005-01-06  Bruno Haible  <bruno@clisp.org>
63422
63423         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63424
63425 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63426
63427         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63428         definitions to be after all include files, to avoid collisions.
63429         Problem reported by Bob Proulx.
63430
63431 2005-01-04  Jim Meyering  <jim@meyering.net>
63432
63433         Changes imported from coreutils.
63434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63435         as the mkstemp template, use a temporary directory and an
63436         8.3-friendly template to avoid trouble on systems like DJGPP.
63437         Reported by Juan M. Guerrero via Stepan Kasal.
63438         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63439         close. Remove the temporary directory right away, rather than waiting
63440         for configure's at-exit trap code to do it.
63441         Suggestion from Stepan Kasal.
63442
63443 2005-01-01  Simon Josefsson  <jas@extundo.com>
63444
63445         * gnulib-tool: Print #include directives when --import'ing.
63446
63447 2004-12-28  Simon Josefsson  <jas@extundo.com>
63448
63449         * tests/test-base64.c: Include required header files.  Remove
63450         unused variables.
63451
63452 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63453
63454         * modules/error (Depends-on): Remove gettext.
63455
63456 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63457
63458         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
63459         not needed.  This removes a dependency on the gettext module.
63460         [defined _LIBC]: Do not include <libintl.h>; not needed.
63461
63462 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63463
63464         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63465         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63466
63467 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63468
63469         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63470         HAVE_DECL_STRTOLD.
63471
63472 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63473
63474         * modules/getdate (Depends-on): Remove alloca-opt.
63475
63476 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63477
63478         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63479
63480 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63481
63482         * lib/argp-parse.c: Include <stddef.h>.
63483         (alignof, alignto): New macros.
63484         (parser_init): Don't assume that void * is aligned sufficiently
63485         for struct option.
63486
63487         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63488         need to extend the stack.
63489         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63490         large.
63491
63492 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63493
63494         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63495
63496 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63497
63498         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63499         (2004-10-24) change.  Apparently this was a false alarm.
63500
63501         * modules/getdate: Depend on alloca-opt, not alloca.
63502
63503 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63506         Remove now-obsolete comment about AIX.
63507         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63508         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63509         (YYMAXDEPTH): New macro.
63510
63511 2004-12-18  Simon Josefsson  <jas@extundo.com>
63512
63513         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63514
63515 2004-12-18  Bruno Haible  <bruno@clisp.org>
63516
63517         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63518
63519 2004-12-18  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/fatal-signal.c (fatal_signals): Make non-const.
63522         (init_fatal_signals): New function.
63523         (uninstall_handlers, install_handlers): Ignore signals that were set to
63524         SIG_IGN.
63525         (at_fatal_signal): Call init_fatal_signals.
63526         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63527         SIG_IGN.
63528         Reported by Paul Eggert.
63529
63530 2004-12-18  Bruno Haible  <bruno@clisp.org>
63531
63532         * doc/alloca.texi: New file.
63533         * doc/alloca-opt.texi: New file.
63534
63535 2004-12-17  Jim Meyering  <jim@meyering.net>
63536
63537         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63538         Otherwise, install-sh could exit with improper exit status when
63539         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63540
63541 2004-12-16  Simon Josefsson  <jas@extundo.com>
63542
63543         * tests/test-base64.c: Add license.
63544
63545 2004-12-15  Stepan Kasal  <address@hidden>
63546
63547         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63548
63549 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63550
63551         * modules/getcwd (Files): Add m4/d-ino.m4.
63552         Suggested by Mark D. Baushke.
63553
63554 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         * lib/getdate.y (textint): New member "negative".
63557         (time_zone_hhmm): New function.
63558         Expect 14 shift-reduce conflicts, not 13.
63559         (o_colon_minutes): New rule.
63560         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63561         (yylex): Set the "negative" member of signed numbers.
63562
63563 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         * doc/getdate.texi (Time of day items, Time zone items):
63566         Describe new formats +00:00, UTC+00:00.
63567
63568 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63569
63570         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63571         spurious "-l"s.  Problem reported by Stepan Kasal.
63572
63573 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63574
63575         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63576         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63577
63578 2004-12-04  Simon Josefsson  <jas@extundo.com>
63579
63580         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63581         Vandoorselaere <yoann@prelude-ids.org>.
63582
63583 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         Changes imported from coreutils.
63586         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63587         exist.
63588         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63589
63590 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63591
63592         Changes imported from coreutils.
63593         * lib/hard-locale.c: Assume <locale.h> exists.
63594         Include "strdup.h".
63595         (GLIBC_VERSION): New macro.
63596         (hard_locale): Assume setlocale exists.
63597         Rewrite to avoid #ifdef.
63598         Use strdup rather than malloc + strcpy.
63599         * lib/human.c: Assume <locale.h> exists.
63600         (human_readable): Assume localeconv exists.
63601
63602 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63603
63604         * modules/hard-locale (Depends-on): Add strdup.
63605
63606 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63607
63608         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63609         convert T2, not T.  (Imported from libc.)
63610
63611 2004-11-30  Simon Josefsson  <jas@extundo.com>
63612
63613         * modules/restrict (License): Change to LGPL.
63614
63615 2004-11-30  Simon Josefsson  <jas@extundo.com>
63616
63617         * m4/restrict.m4: Add copyright and copying conditions.
63618
63619 2004-11-30  Simon Josefsson  <jas@extundo.com>
63620
63621         * m4/base64.m4: New file.
63622
63623 2004-11-30  Simon Josefsson  <jas@extundo.com>
63624
63625         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63626         base64.
63627
63628         * tests/test-base64.c: New file.
63629
63630         * modules/base64: New file.
63631
63632 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63633
63634         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63635         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63636
63637         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63638
63639 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63640
63641         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63642         (__getcwd.c): Don't restore errno; glibc doesn't.
63643         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63644         first, falling back to our code only if its results look suspicious.
63645         Ensure that the resulting buffer is only as large as necessary.
63646
63647         * lib/readutmp.c: Include readutmp.h first.
63648         Include <errno.h>, since readutmp.h no longer does that.
63649         * lib/readutmp.h: Don't include <errno.h>,
63650         <sys/param.h>, <time.h>; not needed to establish interface.
63651         (errno): Remove decl.
63652         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63653         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63654         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63655
63656 2004-11-28  Simon Josefsson  <jas@extundo.com>
63657
63658         * lib/base64.h, base64.c: New file.
63659
63660 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63661
63662         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63663
63664 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63667         (Depends-on): Remove pathmax, same.  Add mempcpy.
63668         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63669         (Makefile.am): Append getcwd.h to lib_SOURCES.
63670         (Include): Add getcwd.h.
63671         (Maintainer): Change from Jim Meyering to "all, glibc",
63672         since getdate now uses intended-for-glibc code.
63673         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63674         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63675
63676 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63677
63678         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63679         HP's ANSI C compiler.
63680         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63681         Declaring int functions causes warnings on some modern systems and
63682         shouldn't be needed to compile on ancient ones.
63683         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63684         defined.
63685
63686         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63687         with the following changes.
63688         (__set_errno): Parenthesize properly.
63689         Include <stdbool.h>.
63690         (MIN, MAX, MATCHING_INO): New macros.
63691         (__getcwd): Define with prototype, not K&R form.
63692         Use heuristics to allocate default buffer on stack if possible.
63693         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63694         behavior, and to avoid the PATH_MAX limit when computing
63695         ../../../../...
63696         Use MATCHING_INO to compare inode number to file.
63697         Check for arithmetic overflow in size calculations.
63698         Fix bug in reallocation of dot array that caused getcwd to fail
63699         on directories nested deeper than 75.
63700         Be more careful about saving errno on error.
63701         Do not use realloc; use only free+malloc, as this is a bit
63702         more flexible and avoids a needless copy operation.
63703         Do not inspect st_dev and st_ino for symbolic links; POSIX
63704         doesn't specify the latter.
63705         Check for closedir errors.
63706         Avoid needless casts.
63707         Use "#ifdef weak_alias" around weak_alias, to be like other
63708         glibc code.
63709         The following changes to getcwd.c have effect only when used in
63710         gnulib; they have no effect inside glibc proper.
63711         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63712         as alloca isn't used.
63713         (alloca, __alloca): Likewise.
63714         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63715         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63716         unconditionally, as gnulib assumes C89 or better.
63717         Do not include <sys/param.h>.
63718         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63719         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63720         better.
63721         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63722         Include <dirent.h> in a way that is compatible with modern Autoconf.
63723         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63724         New macros, if not already defined.
63725         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63726         Use "_LIBC", not "defined _LIBC", for consistency.
63727         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63728         a mempcpy module.
63729         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63730         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63731         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63732         credit only to Jim Meyering and adjust the copyright dates.
63733         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63734         <stdlib.h>, <unistd.h>, "pathmax.h".
63735         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63736         (INITIAL_BUFFER_SIZE): Remove.
63737         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63738
63739 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63742         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63743         Use the _ONCE methods, for efficiency.
63744         Check for fcntl.h.  In test program, include <errno.h>
63745         and <fcntl.h> if available.  Remove old K&R cruft from
63746         test program.  Check for common errors in GNU/Linux,
63747         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63748         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63750         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63751         name accordingly.
63752         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63753         accommodate new getcwd.c.
63754         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63755         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63756         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63757         that's all we need now.
63758
63759 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63760
63761         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63762         argp-parse.c depends on getopt internals, that means we should
63763         always use our getopt, to be on the safe side.
63764         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63765         order not to spoil the result of an eventual previous invocation
63766         of gl_GETOPT_SUBSTITUTE.
63767
63768 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63769
63770         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63771         redefinition warnings. To avoid them, include the defines
63772         in `#if !defined __need_getopt ... #endif'. The only place
63773         where __getopt_argv_const is used is in definitions
63774         of getopt_long and getopt_long_only below, which are as well
63775         protected by `#ifndef __need_getopt'.
63776         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63777         __need_getopt after including <stdio.h> and <unistd.h> These
63778         headers might have defined it.
63779
63780 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63781
63782         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63783
63784 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63787         (futimens): New function, which uses futimes if available.
63788         (futimens, utimens): Support timespec==NULL, with same semantics
63789         as utime and utimens.
63790         * lib/utimens.h (futimens): New decl.
63791
63792 2004-11-23  Jim Meyering  <jim@meyering.net>
63793
63794         * lib/getopt_.h: Remove trailing blanks.
63795
63796 2004-11-23  Jim Meyering  <jim@meyering.net>
63797
63798         * lib/__fpending.c: Add comment.
63799
63800 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63801
63802         * modules/canonicalize (Depends-on): Add xreadlink.
63803         Problem reported by James Youngman.
63804
63805 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63808         New macros.
63809         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63810         optopt): Use them instead of invoking ## directly; otherwise, the
63811         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63812
63813 2004-11-19  Bruno Haible  <bruno@clisp.org>
63814
63815         * lib/strtok_r.c: Move comments from here...
63816         * lib/strtok_r.h: ... to here.
63817
63818 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63819
63820         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63821         implementations that mishandle size_t overflow.
63822
63823 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63824
63825         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63826         might fail.  Problem reported by Yoann Vandoorselaere.
63827         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63828         implementations that mishandle size_t overflow.
63829
63830 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63831
63832         * modules/canon-host (Depends-on): Add strdup.
63833
63834 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63835
63836         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63837
63838 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63839
63840         * lib/canon-host.c: Include "strdup.h".
63841         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63842         Use strdup instead of malloc/strcpy to duplicate strings.
63843
63844         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63845         (human_space_before_unit): New constant.
63846         * lib/human.c (human_readable): Support it.
63847
63848         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63849         (xgetcwd): Set errno correctly when failing.
63850         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63851         the failure is actually due to a PATH_MAX problem.
63852
63853         Further getopt changes to make it more likely that glibc will
63854         buy the changes back.
63855         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63856         (getopt): Use it, so to preserve glibc semantic
63857         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63858         when compiling for libc.
63859         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63860         (getopt_long, getopt_long_only): Use it.
63861
63862         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63863         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63864         (getopt): Argv is now char * const *, as per standard.
63865         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63866         not char *__getopt_argv_const *.
63867         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63868         _getopt_long_only_r): Likewise.
63869         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63870         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63871         _getopt_long_r, _getopt_long_only_r): Likewise.
63872         * lib/getopt_.h (__getopt_argv_const): Remove.
63873         (getopt): Argv is now char * const *, as per standard.
63874
63875         * lib/getdate.y (tORDINAL): New token.
63876         (day, relunit): Allow it for relative times.
63877         (relative_time_table): Use tORDINAL for ordinals.
63878
63879 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63880
63881         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63882         Document that "second" isn't allowed as an ordinal number.
63883
63884 2004-11-16  Jim Meyering  <jim@meyering.net>
63885
63886         * modules/closeout (Depends-on): Add fpending.
63887
63888 2004-11-15  Jim Meyering  <jim@meyering.net>
63889
63890         * lib/closeout.c: Include "__fpending.h" once again.
63891         Include <stdbool.h>.
63892         (close_stdout): Don't fail just because stdout was closed initially,
63893         since some programs don't write to stdout in the normal course of
63894         operation (other than --version and --help), and we don't want this
63895         function to make e.g. `touch file >&-' fail.
63896         But do fail if it was closed and someone has tried to write to it.
63897         E.g., `printf foo >&-' must fail.
63898
63899 2004-11-13  Jim Meyering  <jim@meyering.net>
63900
63901         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63902
63903 2004-11-12  Simon Josefsson  <jas@extundo.com>
63904
63905         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63906         small doc fix is still pending.
63907
63908 2004-11-11  Simon Josefsson  <jas@extundo.com>
63909
63910         * modules/strtok_r: New file.
63911
63912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63913         strtok_r.
63914
63915 2004-11-11  Simon Josefsson  <jas@extundo.com>
63916
63917         * m4/strtok_r.m4: New file.
63918
63919         * m4/getopt.m4: Replace opterr.
63920
63921 2004-11-11  Simon Josefsson  <jas@extundo.com>
63922
63923         * lib/strtok_r.h, strtok_r.c: New file.
63924
63925 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63926
63927         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63928         of replacing opterr, getopt, etc.  This should handle the
63929         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63930
63931 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63932
63933         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63934         we can stop lying to compilers about the constness of argv when we
63935         are compiled outside glibc.
63936         (getopt, getopt_long, getopt_long_only): Use it.
63937         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63938         _getopt_internal, getopt): Likewise.
63939         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63940         _getopt_long_only_r): Likewise.
63941         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63942         _getopt_long_r, _getopt_long_only_r): Likewise.
63943
63944         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63945         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63946         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63947         the other external symbols.
63948         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63949         declaration, since the above renaming now works around collisions.
63950
63951 2004-11-11  Jim Meyering  <jim@meyering.net>
63952
63953         * lib/linebreak.c: Remove trailing blanks.
63954         * lib/alloca_.h: Likewise.
63955         * lib/acosl.c: Likewise.
63956         * lib/euidaccess.c: Likewise.
63957         * lib/allocsa.h: Likewise.
63958
63959 2004-11-10  Simon Josefsson  <jas@extundo.com>
63960
63961         * m4/getaddrinfo.m4: New file.
63962
63963 2004-11-10  Simon Josefsson  <jas@extundo.com>
63964
63965         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63966
63967 2004-11-10  Simon Josefsson  <jas@extundo.com>
63968
63969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63970         getaddrinfo.
63971
63972         * modules/getaddrinfo: New file.
63973
63974 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63977
63978 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63979
63980         * lib/mktime.c (SHR): New macro, which is a portable
63981         substitute for >> that should work even on Crays.
63982         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63983         Problem reported by Mark D. Baushke in
63984         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63985         * lib/getdate.y (SHR): Likewise.
63986         (tm_diff): Use it.
63987         * lib/strftime.c (SHR): Likewise.
63988         (tm_diff): Use it.
63989         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63990         quote_these_too, so that right shifts are well defined.  All uses
63991         changed.
63992
63993 2004-11-10  Jim Meyering  <jim@meyering.net>
63994
63995         Ensure that no close failure goes unreported.
63996         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63997         return early when it seems there's nothing to flush.
63998         Don't include __fpending.h.
63999
64000 2004-11-10  Jim Meyering  <jim@meyering.net>
64001
64002         * modules/closeout (Depends-on): Remove fpending.
64003
64004 2004-11-10  Jim Meyering  <jim@meyering.net>
64005
64006         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
64007
64008 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
64011         gl_FUNC_STRFTIME.
64012         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
64013         and AC_REQUIRE when possible, to avoid duplicate checks.
64014         Check for <wchar.h>.
64015
64016 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
64019
64020 2004-11-09  Bruno Haible  <bruno@clisp.org>
64021
64022         * m4/sockpfaf.m4: New file.
64023
64024 2004-11-05  Bruno Haible  <bruno@clisp.org>
64025
64026         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
64027         Reported by Mark D. Baushke <mdb@cvshome.org>.
64028
64029 2004-11-04  Bruno Haible  <bruno@clisp.org>
64030
64031         2004-09-11  Bruno Haible  <bruno@clisp.org>
64032                 * allocsa.valgrind: New file.
64033         2004-02-06  Bruno Haible  <bruno@clisp.org>
64034                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
64035                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
64036                 Reported by Christopher Seip <chris.seip@hp.com>.
64037
64038 2004-11-04  Bruno Haible  <bruno@clisp.org>
64039
64040         * modules/allocsa (Files): Add lib/allocsa.valgrind.
64041         (Makefile.am): Distribute it.
64042
64043 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64044
64045         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
64046         with errno == ERANGE if the buffer is too small.
64047         Problem reported by Mark D. Baushke.
64048
64049 2004-11-03  Albert Chin  <china@thewrittenword.com>
64050             Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
64053         equivalent, substitute $ac_type for equivalent type rather than
64054         blindly using uint32_t *always* which won't work if uint32_t is not
64055         available.  Define _UINT32_T to work around typedef of uint32_t if
64056         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
64057         2.5.1.
64058
64059 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * m4/jm-macros.m4: Sync from coreutils.
64062         (gl_MACROS): Check for mbrlen, for pathchk.
64063         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
64064
64065 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         * lib/xreadlink.c (MAXSIZE): New macro.
64068         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
64069         size does not exceed MAXSIZE.  Avoid cast.
64070         As suggested by Mark D. Baushke in
64071         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
64072         if readlink fails with buffer size just under MAXSIZE, try again
64073         with MAXSIZE.
64074
64075 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
64078
64079 2004-11-02  Derek R. Price  <derek@ximbiot.com>
64080         and  Paul Eggert  <eggert@cs.ucla.edu>
64081
64082         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
64083         (get_date): Overparenthesize to avoid GCC warning.
64084
64085 2004-11-02  Bruno Haible  <bruno@clisp.org>
64086
64087         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
64088         returns void.
64089
64090 2004-11-02  Bruno Haible  <bruno@clisp.org>
64091
64092         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
64093         function returns void.
64094
64095 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64096
64097         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
64098         fflush_unlocked, flockfile, funlockfile, funlockfile,
64099         fputs_unlocked, putc_unlocked.
64100
64101 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64102
64103         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64104         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
64105         already declared.
64106
64107 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         * modules/getdate (Files): Add doc/getdate.texi.
64110         (Depends-on): Add setenv, xalloc.
64111
64112 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         * lib/getdate.y: Add support for TZ="foo" within a date string.
64115         Fix some bugs near time_t boundaries.  Reject dates with
64116         out-of-range components, e.g., "Sept 31".
64117         Include <stdlib.h>, "setenv.h", "xalloc.h".
64118         (ISDIGIT_LOCALE): Remove; unused.
64119         Note that the TZ and time functions used here are not reentrant.
64120         (mktime_ok, get_tz): New functions.
64121         (TZBUFSIZE): New constant.
64122         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
64123         This requires that we sometimes generate our own TZ="XXX..." setting.
64124
64125 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         * doc/getdate.texi: New file, from coreutils with modifications for
64128         the new TZ parsing.
64129
64130 2004-10-27  Derek R. Price  <derek@ximbiot.com>
64131
64132         * lib/mktime.c (not_equal_tm): Remove redundant check.
64133
64134 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * modules/regex (lib_SOURCES): Add regex.c.
64137         Reported by James Youngman in
64138         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
64139
64140 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64141
64142         * lib/getdate.y: Use Bison 1.875 features, and some minor
64143         code cleanups.  This change does not affect semantics.
64144         Don't include <stdlib.h>; no longer needed.
64145         Don't include unlocked-io.h; only the "#if TEST" code uses
64146         stdio, and performance isn't crucial there.
64147         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
64148         Bison 1.875 features as described below.
64149         All uses of "PC." replaced by "pc->".
64150         (YYSTYPE): Add a forward declaration.
64151         (yylex, yyerror): Use full prototypes in forward decls.
64152         Use "%pure-parser" rather than obsolescent "%pure_parser".
64153         Use %parse-param and %lex-param instead of obsolescent
64154         YYPARSE_PARAM and YYLEX_PARAM.
64155         (meridian_table, month_and_day_table, time_units_table,
64156         relative_time_table, time_zone_table, military_table,
64157         lookup_zone, lookup_word, get_date):
64158         Use NULL instead of 0 where appropriate.
64159         (to_hour): Avoid abort (), to avoid a dependency on
64160         stdlib.h.
64161         (yyerror, yylex): Now accepts parser_control * arg.
64162         (main) [TEST]: Use '\0' rather than 0 for char.
64163
64164 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
64167
64168 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64169
64170         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
64171         It's now the caller's responsibility to handle the case where
64172         !HAVE_GETPAGESIZE && !defined getpagesize.
64173
64174         * lib/mktime.c (leapyear): Arg is long int, not int.
64175
64176 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
64179
64180 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64181
64182         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
64183         missing.  Problem reported by James Youngman.
64184
64185 2004-10-16  Simon Josefsson  <jas@extundo.com>
64186
64187         * gnulib-tool: Fix comments.  Fix parse problem.
64188         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
64189
64190 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
64191
64192         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
64193         implementation of getopt_long.  Problem reported by Alexander Taler in:
64194         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
64195
64196 2004-10-15  Bruno Haible  <bruno@clisp.org>
64197
64198         * gnulib-tool: Untabify. Initialize supplied_libname.
64199         (func_usage): More homogenous output.
64200         (func_modules_transitive_closure, func_modules_to_filelist,
64201         func_emit_lib_Makefile_am): New functions.
64202         (func_import): New function, extracted from big case statement. Use
64203         func_get_license, func_modules_transitive_closure,
64204         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
64205         opt_lgpl. Don't use test -a, as it's not portable.
64206         (func_create_testdir): Use func_modules_transitive_closure,
64207         func_modules_to_filelist, func_emit_lib_Makefile_am.
64208
64209 2004-10-15  Bruno Haible  <bruno@clisp.org>
64210
64211         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
64212
64213 2004-10-15  Bruno Haible  <bruno@clisp.org>
64214
64215         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
64216         the portions belonging to each module.
64217         Suggested by Derek Robert Price <derek@ximbiot.com>.
64218
64219 2004-10-12  Simon Josefsson  <jas@extundo.com>
64220
64221         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64222         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
64223         to real functions.
64224
64225 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64226
64227         * modules/vsnprintf: New file.
64228
64229 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64230
64231         * m4/vsnprintf.m4: New file.
64232
64233 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64234
64235         * lib/vsnprintf.h: New file.
64236         * lib/vsnprintf.c: New file.
64237
64238 2004-10-11  Bruno Haible  <bruno@clisp.org>
64239
64240         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
64241         vsnprintf.
64242
64243 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64244
64245         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
64246
64247 2004-10-07  Bruno Haible  <bruno@clisp.org>
64248
64249         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
64250         fits into the provided buffer.
64251
64252 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * lib/diacrit.c, diacrit.h: Add GPL notice.
64255
64256         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
64257         notice.
64258         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
64259         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
64260         This avoids a potential constant-folding bug.
64261
64262 2004-10-05  Bruno Haible  <bruno@clisp.org>
64263
64264         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
64265         for the declaration of strsep.
64266
64267 2004-10-05  Bruno Haible  <bruno@clisp.org>
64268
64269         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
64270
64271 2004-10-04  Simon Josefsson  <jas@extundo.com>
64272
64273         * modules/memmem: New file.
64274         * tests/test-memmem.c: New file.
64275         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
64276
64277 2004-10-04  Simon Josefsson  <jas@extundo.com>
64278
64279         * m4/memmem.m4: New file.
64280
64281 2004-10-04  Simon Josefsson  <jas@extundo.com>
64282
64283         * lib/memmem.h: New file.
64284         * lib/memmem.c: New file, taken from glibc.
64285
64286 2004-10-04  Simon Josefsson  <jas@extundo.com>
64287
64288         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
64289         '#ifdef USE_UNLOCKED_IO'.
64290
64291 2004-10-04  Simon Josefsson  <jas@extundo.com>
64292
64293         * config/srclist.txt: Add memmem from glibc.
64294
64295 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64296
64297         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
64298
64299         * modules/argmatch, modules/argp, modules/closeout, modules/error,
64300         modules/exclude, modules/getdate, modules/getline,
64301         modules/getndelim2, modules/getpass, modules/getpass-gnu,
64302         modules/getusershell, modules/linebuffer, modules/md5,
64303         modules/mountlist, modules/posixtm, modules/readtokens,
64304         modules/readutmp, modules/regex, modules/sha1,
64305         modules/version-etc, modules/yesno:
64306         Remove dependency on unlocked-io.
64307
64308 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64309
64310         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
64311
64312         * m4/unlocked-io.m4: Add copyright notice.
64313         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
64314
64315 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
64318         * lib/xmalloc.c (xmemdup): Likewise.
64319         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
64320         XFREE): Remove these long-obsolescent macros.
64321         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
64322         * lib/xstrdup.c: Remove.
64323
64324         * lib/regex.c (re_comp): Cast gettext return value to char *,
64325         Problem reported by Martin Neitzel via Mark D. Baushke.
64326
64327 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64328
64329         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
64330         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
64331         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
64332         regex.c, sha1.c, version-etc.c, yesno.c:
64333         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
64334         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
64335         the includer's responsibility.
64336
64337         Sync from coreutils.
64338
64339         * lib/modechange.c (mode_compile): Don't decrement a pointer that
64340         points to the start of a string, as the C Standard says the
64341         resulting behavior is undefined.
64342
64343         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
64344         simple -> simple_backups, numbered_existing ->
64345         numbered_existing_backups, numbered -> numbered_backups
64346         to avoid shadowing problems.  All uses changed.
64347         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
64348         * lib/backupfile.c (check_extension, numbered_backup):
64349         Rename locals to avoid shadowing 'basename'.
64350         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
64351         once.
64352
64353         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
64354         * lib/.cvsignore: Add getopt.h.
64355
64356 2004-10-04  Bruno Haible  <bruno@clisp.org>
64357
64358         * modules/README: New file.
64359         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
64360         not a module.
64361
64362 2004-10-02  Jim Meyering  <jim@meyering.net>
64363
64364         * lib/dirfd.h, getpagesize.h: Add copyright notice.
64365
64366 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64367
64368         * modules/strsep: New file.
64369
64370 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64371
64372         * m4/strsep.m4: New file.
64373
64374 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64375
64376         * lib/strsep.h: New file.
64377         * lib/strsep.c: New file.
64378
64379 2004-10-01  Simon Josefsson  <jas@extundo.com>
64380
64381         * lib/snprintf.c (snprintf): Handle size==0.
64382
64383 2004-10-01  Simon Josefsson  <jas@extundo.com>
64384             Bruno Haible  <bruno@clisp.org>
64385
64386         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
64387         (snprintf): Declare 'args'.
64388
64389 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
64390
64391         * lib/snprintf.c: Remove comments as to why each header is needed.
64392
64393 2004-10-01  Bruno Haible  <bruno@clisp.org>
64394
64395         * MODULES.html.sh: Add strsep.
64396
64397 2004-09-30  Simon Josefsson  <jas@extundo.com>
64398
64399         * modules/snprintf: New file.
64400
64401 2004-09-30  Simon Josefsson  <jas@extundo.com>
64402
64403         * m4/snprintf.m4: New file.
64404
64405 2004-09-30  Simon Josefsson  <jas@extundo.com>
64406
64407         * lib/snprintf.h, lib/snprintf.c: New files.
64408
64409 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64410
64411         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64412         (hol_entry_help): Never translate an empty string.
64413         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64414         * lib/argp.h (OPTION_NO_TRANS): New option.
64415
64416 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64417
64418         * modules/argp (Maintainer): Replace Simon Josefsson
64419         by Sergey Poznyakoff.
64420
64421 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64422
64423         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64424         changes merged back into glibc.
64425
64426 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64427
64428         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64429
64430 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64431
64432         * lib/xvasprintf.c: Include xalloc.h.
64433         (xvasprintf): Use xalloc_die, not xmalloc_die.
64434
64435 2004-09-29  Bruno Haible  <bruno@clisp.org>
64436
64437         * modules/alloca-opt: New file, derived from modules/alloca.
64438         * modules/allocsa: Depend on alloca-opt instead of alloca.
64439         * modules/setenv: Likewise.
64440         * modules/vasnprintf: Likewise.
64441         * MODULES.html.sh: Add alloca-opt.
64442
64443 2004-09-28  Simon Josefsson  <jas@extundo.com>
64444
64445         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64446         LGPL, and to replace license template from GPL to LGPL.
64447
64448 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64449
64450         * modules/dummy: Change license to LGPL.
64451
64452 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64453
64454         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
64455
64456 2004-09-24  Simon Josefsson  <jas@extundo.com>
64457
64458         * modules/minmax (License): Change from GPL to LGPL.
64459
64460 2004-09-23  Simon Josefsson  <jas@extundo.com>
64461
64462         * gnulib-tool (--import): Typo.
64463
64464 2004-09-23  Simon Josefsson  <jas@extundo.com>
64465
64466         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64467
64468 2004-09-22  Bruno Haible  <bruno@clisp.org>
64469
64470         * modules/*: Add 'License' field.
64471         * gnulib-tool: Accept --extract-license option.
64472         (func_get_license): New function.
64473
64474 2004-09-21  Bruno Haible  <bruno@clisp.org>
64475
64476         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64477         Reported by Simon Josefsson.
64478
64479 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64480
64481         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64482         gl_AC_TYPE_LONG_LONG.
64483
64484 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64485
64486         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64487
64488 2004-09-18  Simon Josefsson  <jas@extundo.com>
64489         and  Paul Eggert  <eggert@cs.ucla.edu>
64490
64491         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64492         calls with autoreconf.  Define GL_LIB.
64493
64494 2004-09-14  Karl Berry  <karl@gnu.org>
64495
64496         * config/srclist.txt: unsync setenv.c, sigh.
64497
64498 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64499
64500         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64501         Problem reported by Bruno Haible in:
64502         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64503
64504 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64505
64506         * config/srclist.txt: Comment out argp-pvh.c.
64507
64508 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64511         in case some system header has #define'd it.  Problem reported by
64512         Soeren D. Schulze in
64513         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64514
64515 2004-09-09  Karl Berry  <karl@gnu.org>
64516
64517         * regex.[ch]: delete from the root.  These were supposed to be
64518                 synced with emacs cvs, but this has not happened for about
64519                 a year, and anyway nothing else uses emacs regex.[ch].
64520                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64521                 lib/regex[.ch] is untouched.
64522
64523 2004-09-09  Bruno Haible  <bruno@clisp.org>
64524
64525         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64526
64527 2004-09-09  Bruno Haible  <bruno@clisp.org>
64528
64529         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64530         modifications.
64531         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64532
64533 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64534
64535         * modules/xvasprintf: New file.
64536         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64537
64538 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64539
64540         * lib/xvasprintf.h: New file.
64541         * lib/xvasprintf.c: New file.
64542         * lib/xasprintf.c: New file.
64543
64544 2004-09-08  Bruno Haible  <bruno@clisp.org>
64545
64546         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64547
64548 2004-09-08  Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64551         length is > INT_MAX.
64552         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64553         more.
64554
64555 2004-09-08  Bruno Haible  <bruno@clisp.org>
64556
64557         * lib/stdint_.h: New file, taken from GNU clisp.
64558
64559 2004-09-08  Bruno Haible  <bruno@clisp.org>
64560             Oskar Liljeblad  <oskar@osk.mine.nu>
64561
64562         * modules/stdint: New file.
64563         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64564
64565 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         Import from coreutils.
64568         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64569         strings on unbounded length.  alloca's performance benefits aren't
64570         that important here.
64571         (V_STRDUP): Remove.
64572         (parse_with_separator): New function, with most of the internals
64573         of the old parse_user_spec.  Allow user to omit both user and group,
64574         for compatibility with FreeBSD.
64575         Clone only the user name, not the entire spec.
64576         Do not set *uid, *gid unless entirely successful.
64577         Avoid memory leak in some failing cases.
64578         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64579         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64580         (parse_user_spec): Rewrite to use parse_with_separator.
64581
64582 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         * modules/userspec: Don't depend on alloca.
64585
64586 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64589
64590 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64591
64592         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64593         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64594         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64595
64596 2004-08-16  Simon Josefsson  <jas@extundo.com>
64597
64598         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64599         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64600         Add --dry-run for --import.
64601         Let user provided command line parameters override configure.ac
64602         settings.
64603
64604 2004-08-12  Simon Josefsson  <jas@extundo.com>
64605
64606         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64607         as discussed with Paul Eggert in threads rooted at
64608         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64609         and
64610         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64611         Before, the test was empty, and relied on ELIDE_CODE in source
64612         code.)
64613         (gl_PREREQ_GETOPT): New macro.
64614         (gl_GETOPT): Use them.
64615
64616 2004-08-12  Simon Josefsson  <jas@extundo.com>
64617
64618         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64619         * lib/getopt_.h: Renamed from getopt.h.
64620
64621 2004-08-12  Simon Josefsson  <jas@extundo.com>
64622
64623         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64624         Change default library name from libfoo to libgnu.
64625         Now, if you have a configure.ac that says:
64626                 gl_SOURCE_BASE(gl)
64627                 gl_M4_BASE(gl/m4)
64628                 gl_MODULES(error getopt etcetera)
64629                 gl_INIT
64630         you can import all you need by running:
64631                 ../gnulib/gnulib-tool --import
64632
64633         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64634         (Makefile.am): Rewrite, use logic from argz.
64635         (Include): Use <getopt.h> instead of "getopt.h".
64636
64637 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64638
64639         * modules/argp (Files): Add m4/unlocked-io.m4.
64640         (Depends-on): Add extensions.
64641
64642 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64643
64644         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64645         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64646         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64647         Check for program_invocation_name, program_invocation_short_name,
64648         flockfile, funlockfile, features.h, _getopt_long_only_r.
64649
64650 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64651
64652         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64653         its complicated substitute.
64654         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64655         and program_invocation_name.
64656         (__argp_basename) [!_LIBC]: Remove; the only use was
64657         replaced by its body.
64658         (__argp_short_program_name): Change condition from
64659         !defined __argp_short_program_name to
64660         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64661         to match argp-namefrob.h.
64662         (__argp_failure): Don't assume strerror_r returns char *.
64663         * lib/argp-parse.c (N_): Define unconditionally.
64664         (argp_default_options): Fill out initializers with 0 to avoid
64665         gcc warnings.
64666
64667 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64668
64669         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64670         getopt1.c.
64671
64672 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64673
64674         Merge from coreutils.
64675
64676         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64677
64678         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64679         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64680
64681 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64682
64683         Merge from coreutils.
64684
64685         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64686         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64687         for Reliant Unix 5.43.
64688
64689         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64690         (union fooround): Use uintmax_t, not long int.
64691         The rest is a merge from libc:
64692         [defined _LIBC]: Include <shlib-compat.h>.
64693         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64694
64695         * lib/settime.c (settime): Recode to avoid warning with
64696         Sun Forte C 6U2.
64697
64698         * lib/strverscmp.c: Convert to UTF-8.
64699
64700 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64701
64702         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64703         m4/uintmax_t.m4.
64704
64705 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64706
64707         * modules/xalloc-die: New file.
64708         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64709
64710         * modules/md5 (Files): Add m4/uint32_t.m4.
64711         * modules/sha1: Renamed from modules/sha.
64712         (Files):
64713         Rename lib/sha.h to lib/sha1.h.
64714         Rename lib/sha.c to lib/sha1.c.
64715         Rename m4/sha.m4 to m4/sha1.m4.
64716         (lib_SOURCES): Likewise.
64717         (configure.ac): Rename gl_SHA to gl_SHA1.
64718         (Include): sha.h -> sha1.h.
64719
64720 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64721
64722         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64723         * m4/sha1.m4: Renamed from sha.m4.
64724         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64725
64726 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64727
64728         * lib/obstack.h (obstack_empty_p):
64729         Don't assume that chunk->contents is suitably aligned.
64730         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64731         Likewise. Problem reported by Benno in
64732         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64733
64734         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64735         readable.  This could be improved further but it'd take some work.
64736
64737 2004-08-08  Simon Josefsson  <jas@extundo.com>
64738
64739         * modules/xgethostname (Depends-on): Remove exit and error (not
64740         used).
64741
64742         * modules/getpass-gnu: Add getpass.h.
64743         (Depends-on): Add stdbool.
64744         * modules/getpass: Add getpass.h.
64745
64746 2004-08-08  Simon Josefsson  <jas@extundo.com>
64747
64748         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64749         Check getpass declaration.
64750
64751 2004-08-08  Simon Josefsson  <jas@extundo.com>
64752
64753         * lib/xgethostname.c: Don't include error.h (not used).
64754
64755         * lib/getpass.h: Add.
64756         * lib/getpass.c: Include getpass.h first.
64757
64758 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         * lib/xalloc-die.c: New file.
64761         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64762         All uses removed.
64763         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64764         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64765         xalloc-die.c.
64766         (_, N_, xalloc_die): Move to xalloc-die.c.
64767         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64768         so that we needn't mess with xalloc_msg_memory_exhausted.
64769
64770         * lib/sha1.h: Renamed from sha.h.
64771         (SHA1_H): Renamed from _SHA_H.
64772         (sha1_ctx): Renamed from sha_ctx.
64773         (sha1_init_ctx): Renamed from sha_init_ctx.
64774         (sha1_process_block): Renamed from sha_process_block.
64775         (sha1_process_bytes): Renamed from sha_process_bytes.
64776         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64777         (sha1_read_ctx): Renamed from sha_read_ctx.
64778         (sha1_stream): Renamed from sha_stream.
64779         (sha1_buffer): Renamed from sha_buffer.
64780         * lib/sha1.c: Likewise; renamed from sha.c.
64781         Do not include <sys/types.h>.
64782         Include <stddef.h> rather than <stdlib.h>.
64783
64784 2004-08-08  Bruno Haible  <bruno@clisp.org>
64785
64786         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64787         FILESYSTEM_PREFIX_LEN.
64788         * lib/progreloc.c: Likewise.
64789         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64790
64791 2004-08-06  Simon Josefsson  <jas@extundo.com>
64792
64793         * modules/progname (Depends-on): Don't depend on stdbool.
64794
64795 2004-08-06  Simon Josefsson  <jas@extundo.com>
64796
64797         * modules/getsubopt: New file.
64798         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64799         getsubopt.
64800
64801 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64802
64803         More merge from coreutils.
64804
64805         * m4/utimens.m4, m4/utimecmp.m4: New files.
64806         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64807         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64808         prereq.m4, sha.m4: Import changes from coreutils.
64809
64810 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64811
64812         More merge from coreutils.
64813         * modules/raise, modules/readtokens0, modules/utimens:
64814         * modules/utimecmp, module/xnanosleep: New files.
64815         * modules/strftime: Add lib/strftime.h.
64816         Change include from <time.h> to "strftime.h".
64817         * modules/yesno: Add lib/yesno.h.
64818         * modules/backupfile: Remove lib/addext.c.
64819         * modules/euidaccess: Add stat-macros.h.
64820         * modules/canonicalize, modules/euidaccess,
64821         modules/filemode, modules/lchown, modules/makepath,
64822         modules/rmdir, modules/stat: Likewise.
64823
64824 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64825
64826         Merge from tar.
64827         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64828         SIZE_MAX is a valid preprocessor constant.
64829         (__argp_basename): Change from "#ifndef _LIBC"
64830         to "#ifndef __argp_short_program_name", so that
64831         we don't compile these functions for tar.
64832
64833         More merges from coreutils.
64834         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64835         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64836         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64837         * lib/addext.c: Remove; no longer needed.
64838         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64839         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64840         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64841         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64842         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64843         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64844         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64845         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64846         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64847         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64848         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64849         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64850         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64851         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64852         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64853         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64854         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64855         Import changes from coreutils.
64856
64857 2004-08-05  Simon Josefsson  <jas@extundo.com>
64858
64859         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64860
64861 2004-08-05  Simon Josefsson  <jas@extundo.com>
64862
64863         * m4/getsubopt.m4: New file.
64864
64865 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         Merge from coreutils.
64868
64869         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64870         * m4/getcwd-path-max.m4: New files.
64871
64872         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64873         FILESYSTEM_PREFIX_LEN ->
64874         FILE_SYSTEM_PREFIX_LEN.
64875         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64876         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64877         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64878         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64879
64880         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64881         prerequisite modules now handle the DOS stuff.
64882         Don't check for unistd.h.
64883
64884 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64885
64886         Merge from coreutils.
64887
64888         * lib/.gdb-history: Remove; this doesn't belong here.
64889
64890         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64891         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64892         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64893         * lib/getcwd.c: New files.
64894
64895         * lib/dirname.h: Include <stdbool.h>.
64896         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64897         for consistency with POSIX terminology.  All uses changed.
64898         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64899         (strip_trailing_slashes): Use bool for booleans.
64900         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64901
64902         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64903         sometimes returns a positive errno value even when it succeeds.
64904         (print_errno_message) [!LIBC]: Fall back on strerror if
64905         __strerror_r fails.
64906
64907         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64908         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64909         (longest_relative_suffix): New function.
64910         (path_concat): Use it.  Assume first argument is not NULL.
64911         Port to DOS.  Omit redundant separators.
64912         Report an error instead of returning NULL.
64913         Use mempcpy instead of memcpy.
64914         (xpath_concat): Remove: not declared or used.
64915
64916         * lib/same.h: Include <stdbool.h>
64917         (same_name): Return bool, not int.
64918         * lib/same.c (same_name): Likewise.
64919         (errno): Don't declare; we assume C89 or better now.
64920
64921         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64922         if not already defined.
64923
64924         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64925         * lib/dup-safer.c (errno): Likewise.
64926
64927 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         Merge from coreutils.
64930         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64931         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64932         * modules/path-concat: Don't depend on strdup.
64933
64934 2004-08-03  Simon Josefsson  <jas@extundo.com>
64935
64936         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64937         * lib/progname.h: Don't include stdbool.h.
64938
64939 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64940
64941         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64942         * MODULES.html.sh (func_all_modules): Remove fatal.
64943
64944 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64945
64946         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64947
64948 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64949
64950         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64951         working.
64952
64953 2004-08-02  Simon Josefsson  <jas@extundo.com>
64954
64955         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64956         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64957         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64958
64959 2004-08-01  Simon Josefsson  <jas@extundo.com>
64960
64961         * lib/xgetdomainname.c: Include stdlib.h, for free().
64962
64963 2004-07-19  Bruno Haible  <bruno@clisp.org>
64964
64965         * MODULES.html.sh (func_all_modules): Add dummy.
64966
64967 2004-07-16  Simon Josefsson  <jas@extundo.com>
64968
64969         * modules/dummy: New file.
64970
64971 2004-07-16  Simon Josefsson  <jas@extundo.com>
64972
64973         * lib/dummy.c: New file.
64974
64975 2004-07-16  Bruno Haible  <bruno@clisp.org>
64976
64977         * lib/backupfile.h: Add extern "C" for C++.
64978         * lib/closeout.h: Likewise.
64979         * lib/copy-file.h: Likewise.
64980         * lib/findprog.h: Likewise.
64981         * lib/full-write.h: Likewise.
64982         * lib/pathname.h: Likewise.
64983         * lib/progname.h: Likewise.
64984         * lib/stpcpy.h: Likewise.
64985         * lib/stpncpy.h: Likewise.
64986         * lib/strcase.h: Likewise.
64987         * lib/strstr.h: Likewise.
64988         * lib/xalloc.h: Likewise.
64989
64990         * lib/mbswidth.h: Add extern "C" for C++.
64991         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64992
64993 2004-07-13  Robert Millan  <robertmh@gnu.org>
64994
64995         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64996
64997 2004-07-09  Simon Josefsson  <jas@extundo.com>
64998
64999         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
65000         failed without this.)
65001
65002 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         * modules/chown (Files): Add lib/fchown-stub.c, since
65005         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
65006
65007 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         * lib/fchown-stub.c: New file.
65010
65011 2004-06-24  Jim Meyering  <jim@meyering.net>
65012
65013         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
65014
65015 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65016
65017         * modules/argz: Omit "#include".
65018
65019         * MODULES.html.sh (func_all_modules): Add calloc, to match
65020         2004-06-01 addition of calloc module.
65021
65022 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65023
65024         * m4/argz.m4: New file, which is autoupdated from libtool.
65025
65026 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
65029         libtool.
65030
65031 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         * config/srclist-update: Don't insist on "USA." before the
65034         close-comment, as libtool omits the period and puts the */ on a
65035         separate line.
65036         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
65037         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
65038
65039 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
65040
65041         * modules/argz: New file.
65042         * MODULES.html.sh (func_all_modules): Add argz.
65043
65044 2004-06-12  Jim Meyering  <jim@meyering.net>
65045         and  Paul Eggert  <eggert@cs.ucla.edu>
65046
65047         * modules/hash (Files): Add lib/xalloc.h.
65048         * modules/pipe (Depends-on): Add wait-process.
65049         * modules/stat (Depends-on): Add xalloc.
65050         * modules/userspec (Files): Add lib/userspec.h.
65051         * modules/xstrto
65052
65053         Upgrade from gettext-0.13.
65054         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
65055         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
65056         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
65057
65058 2004-06-10  Jim Meyering  <jim@meyering.net>
65059
65060         * lib/calloc.c: New file.
65061
65062 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65063
65064         * lib/getdate.y (yylex): Allow space between sign and number.
65065         Problem reported by Dan Jacobson.
65066
65067 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65068
65069         Merge from coreutils CVS.
65070
65071         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
65072         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
65073         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
65074         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
65075         xstrtol.m4: Fix copyright date and/or serial number.
65076
65077         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
65078         See if we need an fchown replacement.
65079         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
65080         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
65081         and use the replacement function if we detect either defect.
65082
65083         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
65084         gl_UTIMECMP.
65085
65086 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65087         and  Jim Meyering  <jim@meyering.net>
65088
65089         Merge from coreutils CVS.
65090
65091         * lib/stat-macros.h: New file, with contents from file-type.h
65092         and coreutils' system.h.
65093         * lib/file-type.c: Include "stat-macros.h".
65094         * lib/file-type.h (file_type): Move all macro definitions to new file,
65095         stat-macros.h.
65096
65097         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
65098         Wrap old code with this conditional.
65099         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
65100         function that does not dereference symlinks.
65101         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
65102
65103         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
65104         dependency problems.
65105         (xreadlink): Accept new arg SIZE, for efficiency.
65106         All decls and uses changed.
65107         * lib/xreadlink.h: Include <stddef.h>, for size_t.
65108
65109         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
65110         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
65111
65112         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
65113         sysexits.h.
65114
65115 2004-06-01  Jim Meyering  <jim@meyering.net>
65116
65117         * m4/calloc.m4: New file.
65118
65119 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
65120
65121         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
65122         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
65123         Also, fix a typo in a diagnostic.
65124
65125 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
65128         or AC_FUNC_REALLOC.
65129
65130 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65131
65132         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
65133         macros to be defined.
65134         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
65135         the allocator returns NULL because the requested size is zero.
65136
65137 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
65140         var.  Add comment explaining why libc still defines it.  This
65141         merges the following patch from glibc:
65142         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
65143
65144 2004-05-20  Andreas Schwab  <schwab@suse.de>
65145
65146         * m4/free.m4: Replace free if it not known to work, not the other
65147         way round.
65148
65149 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65150
65151         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
65152         present in glibc since revision 1.1 of this file.
65153         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
65154         obstack_alignment_mask, obstack_alloc, obstack_base,
65155         obstack_blank, obstack_blank_fast, obstack_chunk_size,
65156         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
65157         obstack_grow0, obstack_init, obstack_int_grow,
65158         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
65159         obstack_next_free, obstack_object_size, obstack_ptr_grow,
65160         obstack_ptr_grow_fast, obstack_room): Remove declarations of
65161         nonexistent functions.
65162
65163 2004-05-18  Karl Berry  <karl@gnu.org>
65164
65165         * config/srclist.txt: break link for vasnprintf.c.
65166
65167 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         Port obstack to the AS/400, where pointers are 16 bytes wide and
65170         you cannot cast an integer to a valid pointer.  This patch is
65171         currently waiting to be integrated into glibc; see
65172         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
65173
65174         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
65175         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
65176         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
65177         (struct obstack): temp member is now a union of a pointer and
65178         an integer, instead of an integer.  All integer uses changed.
65179         This does not affect the physical layout of struct obstack,
65180         except on hosts (like the AS/400) where the size or alignment of
65181         void * is greater than that of ptrdiff_t.
65182         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
65183         __STDC__)]: Store temporary in pointer member of union, not
65184         integer member.
65185         * lib/obstack.c: Include <stddef.h>, for offsetof.
65186         (struct fooalign): Remove; it doesn't need a name.
65187         (union fooround): Change double to long double, and add void *.
65188         (DEFAULT_ALIGNMENT): Use offsetof to compute.
65189         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
65190         not a macro.  Hence the values are always int; so remove all
65191         casts-to-int in uses.
65192
65193 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65194
65195         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
65196         we can get this patch merged into glibc.
65197
65198 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65199             Paul Eggert  <eggert@cs.ucla.edu>
65200
65201         * m4/argp: Depend on alloca.
65202
65203 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65204             Paul Eggert  <eggert@cs.ucla.edu>
65205
65206         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
65207         freecoding.
65208
65209 2004-05-17  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
65212         precision that consists of a '.' followed by an empty digit string.
65213         Patch by Tor Lillqvist <tml@iki.fi>.
65214
65215 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
65218         for backward compatibility with older code.  We need our own
65219         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
65220         it under some other name, and our alloca.h will define it.
65221
65222 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65223             Derek Price  <derek@ximbiot.com>
65224
65225         * lib/alloca.c: Include <alloca.h>, to get our interface.
65226         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
65227         include <alloca.h> first.  Use C89 prototype for alloca; this
65228         requires including <stddef.h> for size_t.  Use extern "C" if C++.
65229         Use #elif for simplicity, since we can assume C89 now.
65230         Don't try to source the system alloca.h since it will not be found
65231         and to prevent recursively including its replacement.
65232         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
65233         * lib/regex.c: Likewise.
65234
65235 2004-05-16  Derek Price  <derek@ximbiot.com>
65236             Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         getline cleanup.  This changes the getndelim2 API: both order of
65239         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
65240         no delimiter).
65241
65242         * lib/getline.c: Don't include stddef.h or stdio.h, since our
65243         interface does that.
65244         (getline): Always use getdelim, so that we don't have two
65245         copies of this code.
65246         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
65247         if available.
65248         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
65249         (GETNDELIM2_MAXIMUM): New macro.
65250         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
65251         instead of the old practice of delim2==0.  All callers changed.
65252         Return -1 on overflow, instead of returning junk.
65253         Do not set *linesize unless allocation succeeds.
65254         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
65255         that we include sys/types.h.
65256         * lib/getnline.h: Likewise.
65257         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
65258         (getndelim2): Reorder arguments.
65259         * lib/getnline.c (getnline, getndelim):
65260         Don't discard the NMAX argument.
65261         (getnline): Invoke getndelim, to avoid code duplication.
65262         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
65263         of (size_t) -1 by callers of the getnline family.
65264
65265 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65266
65267         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
65268         Check for gettimeofday.
65269         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
65270         Check for settimeofday, stime.
65271
65272 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         * lib/nanosleep.c (suspended): Change its type from int to
65275         sig_atomic_t volatile.
65276         (first_call): Make it private to rpl_nanosleep, and have it
65277         be zero initially as that's a bit faster.
65278         (my_usleep): Round up fractional times instead of truncating them,
65279         as this is the usual meaning for 'sleep'.
65280
65281         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
65282         doesn't work.
65283         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
65284         (ENOSYS): Define if not defined.
65285         (settime): Fall back on stime if it exists and settimeofday fails.
65286         But don't bother with fallbacks if a method fails with errno == EPERM.
65287
65288 2004-05-11  Jim Meyering  <jim@meyering.net>
65289
65290         Prior to this change, the save_cwd caller required read access to the
65291         current directory on most systems (ones with the fchdir function).
65292
65293         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
65294         fails, try write-only, and finally, resort to using xgetcwd.
65295
65296 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65297
65298         * lib/obstack.c, obstack.h: Import changes from libc.
65299
65300 2004-04-28  Bruno Haible  <bruno@clisp.org>
65301
65302         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
65303         also implicitly appends .exe to executables.
65304         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
65305         accepts Windows pathnames.
65306         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65307         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65308         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65309         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65310         Reported by Derek Robert Price <derek@ximbiot.com>.
65311
65312 2004-04-21  Karl Berry  <karl@gnu.org>
65313
65314         * config/srclist.txt (localcharset.c): break sync.
65315
65316 2004-04-20  Paul Eggert  <eggert@twinsun.com>
65317
65318         * m4/host-os.m4: Add a copyright notice.
65319
65320 2004-04-20  Jim Meyering  <jim@meyering.net>
65321
65322         Change UTILS_ to gl_ in AC_DEFINE'd names.
65323         Change utils_- and jm_-prefixed variables, too.
65324         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
65325         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65326         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65327
65328         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
65329         Don't emit trailing blanks.
65330         Also rename jm_-prefixed variables to have gl_ prefix.
65331
65332         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
65333         Also rename jm_-prefixed variables to have gl_ prefix.
65334
65335         * m4/jm-macros.m4: Reflect the renamings.
65336         * m4/prereq.m4: Likewise.
65337
65338 2004-04-20  Jim Meyering  <jim@meyering.net>
65339
65340         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
65341         memory.
65342
65343 2004-04-20  Jim Meyering  <jim@meyering.net>
65344             Bruno Haible  <bruno@clisp.org>
65345
65346         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
65347         memory when realloc fails.
65348
65349 2004-04-19  Jim Meyering  <jim@meyering.net>
65350
65351         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
65352         now that readutmp.c may call `free (0)'.
65353
65354 2004-04-19  Bruno Haible  <bruno@clisp.org>
65355
65356         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
65357         * m4/inttypes_h.m4: Likewise.
65358         * m4/stdint_h.m4: Likewise.
65359         * m4/intmax_t.m4: Likewise.
65360         * m4/uintmax_t.m4: Likewise.
65361
65362 2004-04-18  Jim Meyering  <jim@meyering.net>
65363
65364         * m4/prereq.m4: Don't forbid jm_ prefix.
65365
65366         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
65367         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
65368         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
65369         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
65370         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
65371         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
65372         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
65373         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
65374         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
65375         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
65376         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
65377         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
65378         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
65379         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
65380         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
65381         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
65382         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
65383         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
65384         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
65385
65386 2004-04-18  Jim Meyering  <jim@meyering.net>
65387
65388         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
65389         failure, don't leak memory and do call END_UTMP_ENT.
65390
65391 2004-04-16  Jim Meyering  <jim@meyering.net>
65392
65393         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
65394         coreutils' stat program.
65395         (gl_PREREQ): Don't require jm_PREREQ_STAT.
65396
65397 2004-04-11  Paul Eggert  <eggert@twinsun.com>
65398
65399         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
65400         C89.
65401         (CHAR_BIT): Remove, since we assume C89.
65402         Include <stdint.h> if available, as per current Autoconf CVS advice.
65403
65404 2004-03-31  Jim Meyering  <jim@meyering.net>
65405
65406         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
65407         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65408         * m4/xalloc.m4: Likewise.
65409
65410 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65411
65412         Merge from coreutils.
65413
65414         * m4/inttostr.m4: New file.
65415         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65416         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65417         Require gl_CLOCK_TIME.
65418         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65419
65420 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65421
65422         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65423         not bool, to be more consistent with Unix conventions.
65424         Suggested by Bruno Haible.
65425
65426         Merge from coreutils.
65427
65428         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65429         * lib/umaxtostr.c: New files.
65430
65431         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65432         the usual <time.h> dance.
65433         (get_date): Change signature to support fractional time stamps.
65434         All callers changed.
65435         * lib/getdate.y: Include "getdate.h" first, as we can now
65436         assume C89 and don't need to worry about 'const'.
65437         Similarly, include "unlocked-io.h" near start, not in middle.
65438         Include <limits.h>.
65439         (textint.value): Use long int rather than int.
65440         (textint.digits): Use size_t rather than int.
65441         (BILLION, LOG10_BILLION): New constants.
65442         (parser_control): New member rel_ns.  Members day_ordinal,
65443         time_zone, month, day, hour, minutes, rel_year, rel_month,
65444         rel_day, rel_hour, rel_minutes, rel_seconds
65445         are now long int, not int.  Member seconds is now struct timespec,
65446         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65447         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65448         not int.
65449         (%union.intval): Now long int, not int.
65450         New member timespec.
65451         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
65452         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
65453         (spec): Now is a timespec or an item list.
65454         (timespec, items): New nonterminals.
65455         (time, rel, relunit, number, get_date):
65456         Add support for fractional seconds.
65457         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
65458         (gmtime, localtime, mktime): Remove decls; not needed with C89.
65459         (to_hour): First arg is now long int, not int.
65460         (to_year): Returns long int, not int.
65461         Don't treat year -70 like 70.
65462         (tm_diff): Returns long int, not int.
65463         (lookup_word): Use bool instead of int when appropriate.
65464         (yylex): Use size_t for count, not int.
65465         Detect overflow when parsing large integer constants.
65466         Add support for fractions.
65467         (get_date): Make pointers 'const' if possible.
65468         Use more-portable code to detect integer overflow.
65469         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65470         Don't use ctime; it's not reliable if the year has >4 digits.
65471
65472         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65473         This is for compatibility with BSD.
65474
65475         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65476         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65477         From coreutils' system.h.
65478
65479         * lib/userspec.c: Don't include "posixver.h".
65480         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65481         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65482         compatible extension.  Simplify code by removing a boolean int
65483         that was always nonzero if a string was nonnull.
65484
65485 2004-03-30  Jim Meyering  <jim@meyering.net>
65486
65487         Merge from coreutils.
65488
65489         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65490         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65491         on some systems one must include <grp.h> before it.
65492         Reported by Christian Krackowizer.
65493
65494 2004-03-30  Jim Meyering  <jim@meyering.net>
65495
65496         Merge from coreutils.
65497
65498         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65499
65500         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65501         an empty input stream.
65502
65503         * lib/readtokens.c: Include <stdbool.h>.
65504         (readtoken): Use `size_t' rather than int/long.
65505         All callers adjusted.
65506         Use `bool' rather than `int' where appropriate.
65507         Use memset rather than an explicit loop.
65508         Use x2nrealloc rather than xrealloc.
65509         Allow the use of `\0' as a delimiter.
65510         (readtokens): Likewise.
65511         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65512
65513 2004-03-30  Jim Meyering  <jim@meyering.net>
65514
65515         * m4/realloc.m4: Remove file, since now it does no more than
65516         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65517         the `configure.ac' section of module/realloc.
65518         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65519
65520 2004-03-30  Bruno Haible  <bruno@clisp.org>
65521
65522         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65523         nonnull.
65524
65525 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65526
65527         Merge changes to getloadavg.c from coreutils and Emacs.
65528
65529         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65530         Define to an expression, not to the empty string.
65531         Include cloexec.h and xalloc.h.
65532         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65533         Use set_cloexec_flag rather than rolling our own.
65534         * lib/cloexec.c, lib/cloexec.h: New files.
65535
65536 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65537
65538         * m4/cloexec.m4: New file.
65539
65540 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65541
65542         * lib/getopt.h: Sync with libc CVS.
65543
65544 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65545             Bruno Haible  <bruno@clisp.org>
65546
65547         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65548         mbswidth.
65549
65550 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65551             Bruno Haible  <bruno@clisp.org>
65552
65553         * lib/mbswidth.h: Include <wchar.h> only if
65554         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65555         <wchar.h>.
65556         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65557
65558 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65559
65560         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65561         Sync with libc CVS.
65562         * lib/getopt_int.h: New file, also synced from libc.
65563
65564 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65565
65566         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65567         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65568         Bring back getopt.c, getopt.h, getopt1.c.
65569
65570 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65571
65572         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65573         All uses changed.  Check for sa_sigaction member; this fixes
65574         a bug first reported by Jason Andrade in
65575         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65576
65577 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65578
65579         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65580         '#if' expressions.  Unlike the code it replaces, it does not
65581         depend on (defined _SC_PAGESIZE).  However, it does depend on
65582         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65583         first reported by Jason Andrade in
65584         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65585
65586 2004-02-25  Simon Josefsson  <jas@extundo.com>
65587
65588         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65589
65590 2004-02-25  Simon Josefsson  <jas@extundo.com>
65591
65592         * lib/strdup.h: New file.
65593         * lib/strdup.c: Include it.
65594         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65595         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65596
65597 2004-02-23  Karl Berry  <karl@gnu.org>
65598
65599         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65600         (from fencepost.gnu.org:/gd/gnuorg).
65601
65602 2004-02-23  Karl Berry  <karl@gnu.org>
65603
65604         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65605         * config/srclist.txt: add maintain/standards documents.
65606
65607 2004-02-18  Bruno Haible  <bruno@clisp.org>
65608
65609         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65610         Reported by Derek Robert Price <derek@ximbiot.com>.
65611
65612 2004-02-16  Karl Berry  <karl@gnu.org>
65613
65614         * config/mkinstalldirs, install-sh: update from automake.
65615
65616 2004-02-06  Karl Berry  <karl@gnu.org>
65617
65618         * m4/po.m4: update from gettext 0.14.1.
65619
65620 2004-02-06  Karl Berry  <karl@gnu.org>
65621
65622         * lib/config.charset: update from gettext 0.14.1.
65623
65624 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65625
65626         Add comments and code, prompted by suggestions from Bruno Haible
65627         for sh-quote.
65628         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65629         describing the enum quoting_style values.
65630         * lib/quotearg.c (quotearg_alloc): New function.
65631         (quotearg_buffer_restyled): Treat lone { and } as special.
65632         Treat = as special.  Work around bug with older shells
65633         that "see" a '\' that is really the 2nd byte of a multibyte char.
65634         Quote empty string with shell_quoting_style.
65635
65636 2004-02-03  Bruno Haible  <bruno@clisp.org>
65637
65638         * m4/pipe.m4: New file, from GNU gettext.
65639
65640 2004-02-03  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/pipe.h: New file, from GNU gettext.
65643         * lib/pipe.c: New file, from GNU gettext.
65644
65645 2004-01-27  Bruno Haible  <bruno@clisp.org>
65646
65647         * m4/execute.m4: New file, from GNU gettext.
65648
65649 2004-01-27  Bruno Haible  <bruno@clisp.org>
65650
65651         * lib/execute.h: New file, from GNU gettext.
65652         * lib/execute.c: New file, from GNU gettext.
65653         * lib/w32spawn.h: New file, from GNU gettext.
65654
65655 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65656
65657         Merge from diffutils.
65658
65659         * lib/file-type.c (file_type): Add typed memory objects.
65660         * lib/file-type.h (S_TYPEISTMO): New macro.
65661
65662         * lib/c-stack.h (c_stack_action): Remove argv argument.
65663         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65664         (die): Don't calculate message unless segv_action returns.
65665         (get_stack_location, min_address_from_argv, max_address_from_argv,
65666         volatile stack_base, volatile_stack_size): Remove.
65667         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65668         that every segmentation violation is a stack overflow.  (Ouch!)
65669         See Debian bug 136249 (still outstanding) for more info about why
65670         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65671
65672 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65673
65674         Exit-status fix from coreutils.
65675
65676         Use exit_failure consistently in place of EXIT_FAILURE,
65677         so that program exit statuses are consistent on failure.
65678
65679         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65680         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65681         * lib/argmatch.h: Comment fix to match the above.
65682         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65683         Now a macro referring to exit_failure, instead of a separate
65684         variable.  Include "exitfail.h" to get it.
65685         * lib/xstrtol.h: Include "exitfail.h".
65686         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65687
65688         * lib/long-options.c (parse_long_options): Use prototype
65689         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65690         for clarity.
65691
65692 2004-01-21  Jim Meyering  <jim@meyering.net>
65693
65694         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65695         so as not to conflict with a different-sized __mktime_internal
65696         function in GNU libc.
65697         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65698         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65699
65700 2004-01-20  Karl Berry  <karl@gnu.org>
65701
65702         * config/config.guess: update from config.
65703
65704         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65705
65706 2004-01-20  Bruno Haible  <bruno@clisp.org>
65707
65708         Safer stack allocation.
65709         * lib/setenv.c: Include allocsa.h.
65710         (alloca): Remove fallback definition.
65711         (freea): Remove macro.
65712         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65713         instead of freea.
65714
65715 2004-01-20  Bruno Haible  <bruno@clisp.org>
65716
65717         * m4/eealloc.m4: New file, from GNU gettext.
65718
65719 2004-01-20  Bruno Haible  <bruno@clisp.org>
65720
65721         * m4/allocsa.m4: New file, from GNU gettext.
65722
65723 2004-01-20  Bruno Haible  <bruno@clisp.org>
65724
65725         * lib/xallocsa.h: New file, from GNU gettext.
65726         * lib/xallocsa.c: New file, from GNU gettext.
65727
65728 2004-01-20  Bruno Haible  <bruno@clisp.org>
65729
65730         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65731
65732 2004-01-20  Bruno Haible  <bruno@clisp.org>
65733
65734         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65735         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65736         specially.
65737
65738 2004-01-20  Bruno Haible  <bruno@clisp.org>
65739
65740         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65741         patch.
65742
65743 2004-01-20  Bruno Haible  <bruno@clisp.org>
65744
65745         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65746
65747 2004-01-20  Bruno Haible  <bruno@clisp.org>
65748
65749         * lib/eealloc.h: New file.
65750
65751 2004-01-20  Bruno Haible  <bruno@clisp.org>
65752
65753         * lib/binary-io.h: Avoid warnings on Cygwin.
65754
65755 2004-01-20  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/allocsa.h: New file, from GNU gettext.
65758         * lib/allocsa.c: New file, from GNU gettext.
65759
65760 2004-01-18  Karl Berry  <karl@gnu.org>
65761
65762         * doc/gpl.texi, doc/lgpl.texi: new files.
65763
65764 2004-01-18  Karl Berry  <karl@gnu.org>
65765
65766         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65767         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65768
65769 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65770
65771         Merge from coreutils.
65772
65773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65774         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65775         (gl_DEFAULT_POSIX2_VERSION): Move
65776         the documentation from 'configure' into 'config.hin',
65777         so that 'configure --help' isn't burdened by it and
65778         we don't have to worry about its formatting there.
65779         Reword the documentation so that it's more succinct
65780         and can be run together into a single paragraph.
65781         * m4/same.m4 (gl_SAME): Check for pathconf.
65782
65783 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65784
65785         Merge from coreutils.
65786
65787         * lib/posixver.c: Include posixver.h.
65788
65789         * lib/same.c: Include <stdbool.h>, <limits.h>.
65790         (_POSIX_NAME_MAX): Define if not defined.
65791         (MIN): New macro.
65792         (same_name): If file names are silently truncated, report
65793         that the file names are the same if they are the same after
65794         the silent truncation.
65795
65796         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65797         conversion function.
65798         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65799         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65800         longer needed.
65801
65802 2004-01-15  Jim Meyering  <jim@meyering.net>
65803
65804         Merge from coreutils.
65805
65806         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65807         if no library is required.
65808         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65809         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65810         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65811         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65812         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65813         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65814         value, $ac_cv_search_crypt, if it's "none required".
65815         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65816         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65817         not gl_FUNC_GETLOADAVG.
65818         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65819         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65820
65821 2004-01-15  Jim Meyering  <jim@meyering.net>
65822
65823         Merge from coreutils.
65824
65825         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65826         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65827         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65828
65829         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65830         optional configure-time default.
65831
65832         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65833
65834         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65835
65836 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65837
65838         Merge from coreutils.
65839
65840         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65841         value, $ac_cv_search_nanosleep, if it's "none required".
65842
65843 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65844
65845         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65846         with like-named macro in fnmatch.c.
65847         (EXT): Use an internal constant instead.
65848
65849         Merge fnmatch patches from glibc.
65850         * lib/fnmatch.c (mbsinit): Remove define.
65851         Add libc_hidden_ver (__fnmatch, fnmatch).
65852         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65853         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65854
65855 2004-01-14  Karl Berry  <karl@gnu.org>
65856
65857         * config/install-sh: update from automake.
65858
65859 2004-01-13  Karl Berry  <karl@gnu.org>
65860
65861         * config/install-sh: update from automake.
65862
65863 2004-01-09  Karl Berry  <karl@gnu.org>
65864
65865         * config/install-sh: update from automake.
65866
65867 2004-01-05  Karl Berry  <karl@gnu.org>
65868
65869         * config/config.{sub,guess}: update from config.
65870
65871 2003-12-31  Karl Berry  <karl@gnu.org>
65872
65873         * config/depcomp: update from automake.
65874
65875 2003-12-14  Karl Berry  <karl@gnu.org>
65876
65877         * lib/config.charset: update from gettext-runtime.
65878
65879 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65880
65881         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65882         Bug reported by Alfred M. Szmidt.
65883
65884 2003-12-03  Bruno Haible  <bruno@clisp.org>
65885
65886         * m4/gettext.m4: Upgrade from gettext-0.13.
65887         * m4/po.m4: Upgrade from gettext-0.13.
65888         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65889         * m4/intmax.m4: New file, from gettext-0.13.
65890         * m4/printf-posix.m4: New file, from gettext-0.13.
65891
65892 2003-11-29  Karl Berry  <karl@gnu.org>
65893
65894         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65895
65896 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65897             Bruno Haible  <bruno@clisp.org>
65898
65899         * lib/printf-parse.h: Don't include sys/types.h.
65900         (ARG_NONE): New macro.
65901         (char_directive): Change type of *arg_index fields to size_t.
65902         * lib/printf-parse.c: Don't include sys/types.h.
65903         (SSIZE_MAX): Remove macro.
65904         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65905         Remove unnecessary overflow check.
65906         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65907         fields.
65908
65909 2003-11-25  Bruno Haible  <bruno@clisp.org>
65910
65911         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65912
65913 2003-11-25  Bruno Haible  <bruno@clisp.org>
65914
65915         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65916         gt_TYPE_SSIZE_T.
65917
65918 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65919
65920         * modules/alloca: Remove dependency on xalloc.
65921
65922 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65923
65924         * lib/alloca.c: Remove dependency on xalloc module.
65925         (xalloc_die): Remove.
65926         (memory_full) [!defined emacs]: New macro.
65927         [!defined emacs]: Don't include xalloc.h.
65928         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65929         address arithmetic overflows.  Change datatypes a bit to avoid
65930         unnecessary casts.
65931
65932 2003-11-22  Jim Meyering  <jim@meyering.net>
65933
65934         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65935         s/size/size_t/.
65936
65937 2003-11-21  Karl Berry  <karl@gnu.org>
65938
65939         * config/config.{sub,guess}: update from config.
65940
65941 2003-11-18  Karl Berry  <karl@gnu.org>
65942
65943         * config/config.{sub,guess}: update from config.
65944
65945         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65946
65947 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65948
65949         * README: Mention that S+T cannot overflow if S is the size of
65950         an existing object and T is sufficiently small.
65951
65952 2003-11-17  Jim Meyering  <jim@meyering.net>
65953
65954         On systems without utime and without a utimes function capable of
65955         dealing with a NULL struct utimbuf* argument, this utime replacement
65956         could -- in unusual circumstances -- leak a file descriptor.
65957         * lib/utime.c: Include <unistd.h> and <errno.h>.
65958         (utime_null): Be sure to close `fd' and to preserve errno.
65959         Reported by Geoff Collyer via Arnold Robbins.
65960
65961 2003-11-17  Bruno Haible  <bruno@clisp.org>
65962
65963         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65964         (Depends-on): Add xsize.
65965
65966 2003-11-17  Bruno Haible  <bruno@clisp.org>
65967
65968         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65969
65970 2003-11-17  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/vasnprintf.c (alloca): Remove fallback definition.
65973         (freea): Remove definition.
65974         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65975         Reported by Paul Eggert.
65976
65977 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65978             Bruno Haible  <bruno@clisp.org>
65979
65980         Protect against address arithmetic overflow.
65981         * lib/printf-args.h: Include stddef.h.
65982         (arguments): Change type of field 'count' to size_t.
65983         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65984         'unsigned int' where appropriate.
65985         * lib/printf-parse.h: Include sys/types.h.
65986         (char_directive): Change type of *arg_index fields to ssize_t.
65987         (char_directives): Change type of fields 'count', max_*_length to
65988         size_t.
65989         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65990         (SSIZE_MAX): Define fallback value.
65991         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65992         instead of 'int' where appropriate. Check a_allocated, d_allocated
65993         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65994         * lib/vasnprintf.c: Include xsize.h.
65995         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65996         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65997         overflow. Avoid wraparound when converting a width or precision from
65998         decimal to binary.
65999
66000 2003-11-16  Bruno Haible  <bruno@clisp.org>
66001
66002         Update from GNU gettext.
66003         * lib/printf-parse.c: Generalize to it can be compiled for wide
66004         strings.
66005         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
66006         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
66007         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
66008         SNPRINTF): New macros.
66009         Don't include <alloca.h> if the file is used inside libintl.
66010         (local_wcslen): New function, for Solaris 2.5.1.
66011         (VASNPRINTF): Use it instead of wcslen.
66012
66013 2003-11-16  Bruno Haible  <bruno@clisp.org>
66014
66015         * lib/xsize.h (xmax): New function.
66016         (xsum, xsum3, xsum4): Declare as "pure" functions.
66017
66018 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66019
66020         * modules/xalloc (Files): Undo latest change, since xalloc.h
66021         no longer needs SIZE_MAX or PTRDIFF_MAX.
66022
66023 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66024
66025         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
66026         gl_PTRDIFF_MAX.
66027
66028 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66029
66030         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
66031         "return", to pacify some unknown compiler.  Problem reported
66032         by Joerg Schilling.
66033
66034 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66035
66036         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
66037         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
66038         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
66039         heuristic is just as accurate as far as we know, and it removes a
66040         dependency on size_max.m4 and ptrdiff_max.m4.
66041
66042 2003-11-11  Bruno Haible  <bruno@clisp.org>
66043
66044         * modules/xsize (Files): Add m4/size_max.m4.
66045         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
66046
66047 2003-11-11  Bruno Haible  <bruno@clisp.org>
66048
66049         * m4/size_max.m4: New file.
66050         * m4/ptrdiff_max.m4: New file.
66051         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
66052         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
66053         (gl_XALLOC): Invoke it.
66054
66055 2003-11-11  Bruno Haible  <bruno@clisp.org>
66056
66057         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
66058         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
66059         defined.
66060
66061 2003-11-10  Paul Eggert  <eggert@twinsun.com>
66062
66063         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
66064         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
66065         rejected some allocations of exactly SIZE_MAX - 2 bytes.
66066         From Bruno Haible.
66067         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
66068         not (size_t) -1, since it's defined here.
66069
66070 2003-11-09  Karl Berry  <karl@gnu.org>
66071
66072         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
66073
66074 2003-11-06  Paul Eggert  <eggert@twinsun.com>
66075
66076         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
66077         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
66078         Reject sizes of exactly SIZE_MAX bytes.
66079         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
66080         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
66081
66082 2003-11-05  Bruno Haible  <bruno@clisp.org>
66083
66084         * lib/xsize.h: Include limits.h, to avoid a possible collision with
66085         SIZE_MAX defined in <limits.h> on Solaris.
66086
66087 2003-11-04  Jim Meyering  <jim@meyering.net>
66088
66089         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
66090         variable names, rather than @VAR@.
66091         * modules/poll: Likewise.
66092
66093 2003-11-04  Bruno Haible  <bruno@clisp.org>
66094
66095         * modules/xsize: New file.
66096         * modules/linebreak: Depend on xsize.
66097         * MODULES.html.sh (func_all_modules): Add xsize.
66098
66099 2003-11-04  Bruno Haible  <bruno@clisp.org>
66100
66101         * m4/xsize.m4: New file.
66102
66103 2003-11-04  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/xsize.h: New file.
66106         * lib/linebreak.c: Include xsize.h.
66107         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
66108         argument for overflow.
66109         Suggested by Paul Eggert.
66110
66111 2003-11-03  Karl Berry  <karl@gnu.org>
66112
66113         * config/config.{guess,sub}: update from config.
66114
66115 2003-11-03  Jim Meyering  <jim@meyering.net>
66116
66117         * modules/userspec (lib_SOURCES): Add userspec.h.
66118         (Include): Add "userspec.h".
66119         Improve description.
66120
66121 2003-11-03  Jim Meyering  <jim@meyering.net>
66122
66123         * lib/userspec.c: Include "userspec.h".
66124         * lib/userspec.h: New file.
66125
66126 2003-11-03  Bruno Haible  <bruno@clisp.org>
66127
66128         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
66129
66130 2003-11-03  Bruno Haible  <bruno@clisp.org>
66131
66132         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
66133         available, to avoid (extremely rare) race condition.
66134         Suggested by Paul Eggert.
66135
66136 2003-11-02  Karl Berry  <karl@gnu.org>
66137
66138         * config/srclist.txt (vasprintf.c): sync broken, sigh.
66139
66140 2003-10-31  Paul Eggert  <eggert@twinsun.com>
66141
66142         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
66143         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
66144         (read_filesystem_list): Set and use me_type_malloced.
66145         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
66146         whatever the type happens to be), for brevity and consistency.
66147         Check for size calculation overflow on Alphas running OSF/1.
66148
66149 2003-10-31  Jim Meyering  <jim@meyering.net>
66150
66151         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
66152
66153         * lib/linebuffer.c: Include <string.h> for declaration of memset.
66154
66155 2003-10-30  Paul Eggert  <eggert@twinsun.com>
66156             Bruno Haible  <bruno@clisp.org>
66157
66158         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
66159         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
66160
66161 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66162
66163         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
66164         netbsd*-gnu*.  Suggested by Robert Millan.
66165
66166 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66167
66168         * modules/group-member: Depend on stdbool.
66169
66170 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66171
66172         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
66173
66174 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66175
66176         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
66177         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
66178         after the 'gnu' in these cases.  This fixes some bugs in the
66179         previous change, and is based on suggestions by Robert Millan.
66180
66181 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66182
66183         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
66184         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
66185         no longer needed.
66186         * lib/quotearg.c (quotearg_n_options): Use it.
66187         * lib/group-member.c: Include <stdbool.h>.
66188         (free_group_info): Arg is now const *; don't free arg.
66189         (get_group_info): Now returns bool and accepts struct group_info *,
66190         rather than returning a malloc'ed struct group_info *.
66191         All uses changed.  Check for overflow in internal size calculation.
66192
66193         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
66194         rather than xmalloc/xrealloc.
66195         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
66196         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
66197         conformance bug: the old code used a pointer after freeing the
66198         storage that it addressed.
66199         * lib/hash.c (hash_initialize): Simplify the code by using
66200         xalloc_oversized rather than doing it by hand.
66201         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
66202         the buffer preserved.  Use free and xmalloc instead.
66203         * lib/quotearg.c (quotearg_n_options): Likewise.
66204         Use a simpler test for size overflow.  Don't use xalloc_oversized
66205         because unsigned int might be wider than size_t (!); this suggests
66206         that we should switch from unsigned int to size_t for slot numbers.
66207
66208 2003-10-28  Paul Eggert  <eggert@twinsun.com>
66209
66210         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
66211         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
66212         NetBSD kernels.  Requested by Richard Stallman.
66213
66214 2003-10-27  Paul Eggert  <eggert@twinsun.com>
66215
66216         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
66217         to allocate the returned structure.  Do not allocate a subarray,
66218         as x2nrealloc will do that.
66219         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
66220         instead of xnrealloc.
66221         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
66222
66223 2003-10-27  Bruno Haible  <bruno@clisp.org>
66224
66225         * lib/stdbool_.h: Better support for BeOS.
66226
66227 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66228
66229         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
66230         now uses inline.
66231
66232 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66233
66234         * lib/xalloc.h (xalloc_oversized): New static inline function, for
66235         callers that want to do their own size-overflow checking.  Include
66236         <stdbool.h>, since xalloc_oversized returns bool.
66237         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
66238         to use xalloc_oversized.
66239
66240         Add two functions x2realloc, x2nrealloc, for programs that grow
66241         arrays dynamically by doubling their sizes.
66242         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
66243         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
66244         New functions.
66245
66246         Port to C99 semantics for 'inline' of external functions.
66247         Bug reported by Bruno Haible.
66248         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
66249         with the old contents of xnmalloc.
66250         (xnmalloc, xmalloc): Use it.
66251         (xnrealloc_inline): New static inline function,
66252         with the old contents of xnrealloc.
66253         (xnrealloc, xrealloc): Use it.
66254
66255         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
66256         that.
66257
66258 2003-10-26  Karl Berry  <karl@gnu.org>
66259
66260         * config/srclist.txt (COPYING.DOC): no longer available from
66261         /gd/gnuorg; don't know where the ultimate source is.
66262
66263 2003-10-25  Paul Eggert  <eggert@twinsun.com>
66264
66265         Fix several address-calculation bugs in the hash modules,
66266         plus some minor code cleanup.
66267
66268         * lib/hash.h: Include <stdbool.h>, for bool.
66269         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
66270         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
66271         hash_get_n_entries, hash_get_max_bucket_length,
66272         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
66273         hash_rehash): Use size_t rather than unsigned.
66274         * lib/hash.c (struct hash_table, hash_get_n_buckets,
66275         hash_get_n_buckets_used, hash_get_n_entries,
66276         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
66277         hash_get_entries, hash_do_for_each, hash_string, is_prime,
66278         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
66279         Likewise.
66280         (SIZE_MAX): Define if not defined.
66281         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
66282         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
66283         hash_print):
66284         Use const * when possible.
66285         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
66286         (check_tuning): Fix bug: if tuning parameters were very close to
66287         0 or 1, rounding errors could have caused subscript violations.
66288         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
66289         (hash_initialize): Add 'fail:' label
66290         to free table and return NULL, and use it to simplify code.
66291         Use calloc rather than clearing the storage ourself.
66292         (hash_initialize, hash_rehash): Check for arithmetic overflow in
66293         buffer size calculations.
66294         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
66295         Include <stddef.h>, for size_t.
66296         * lib/hash-pjw.c (hash_pjw): Likewise.
66297         Switch to method described by Bruno Haible.
66298         Include <limits.h>, for CHAR_BIT.
66299         (SIZE_BITS): New macro.
66300
66301 2003-10-23  Paul Eggert  <eggert@twinsun.com>
66302
66303         * m4/getline.m4 (AM_FUNC_GETLINE):
66304         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
66305         hosts.  Problem reported by Derek Robert Price in
66306         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
66307         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
66308         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
66309
66310 2003-10-21  Paul Eggert  <eggert@twinsun.com>
66311
66312         * lib/getndelim2.c (getndelim2): When size calculation overflows,
66313         ceiling the allocation at NMAX bytes rather than silently
66314         discarding input bytes before NMAX is reached.  This makes
66315         a difference only if NMAX exceeds SIZE_MAX / 2.
66316
66317         * lib/obstack.c: Merge from glibc.
66318         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
66319         Add libc_hidden_def (_obstack_newchunk).
66320         (_obstack_free) [! defined _LIBC]: Remove.
66321         [defined _LIBC]: Make a strong alias from obstack_free, rather than
66322         a clone of the function body.
66323         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
66324         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
66325
66326         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66327         glibc.
66328         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
66329         arg to memcpy.
66330
66331         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
66332         (obstack_ptr_grow_fast, obstack_int_grow_fast):
66333         Don't use lvalue casts, as GCC plans to remove support for them
66334         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
66335         was also present in the non-GCC version, indicating that this
66336         code had always been buggy and had never been widely used.
66337         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
66338         Use the fast variant of each macro, rather than copying the
66339         definiens of the fast variant; that way, we'll be more likely to
66340         catch future bugs in the fast variants.
66341
66342 2003-10-20  Bruno Haible  <bruno@clisp.org>
66343
66344         * modules/wait-process: New file.
66345         * MODULES.html.sh (func_all_modules): Add wait-process.
66346
66347 2003-10-20  Bruno Haible  <bruno@clisp.org>
66348
66349         * m4/wait-process.m4: New file.
66350
66351 2003-10-20  Bruno Haible  <bruno@clisp.org>
66352
66353         * lib/wait-process.h: New file, from GNU gettext.
66354         * lib/wait-process.c: New file, from GNU gettext.
66355
66356 2003-10-19  Jim Meyering  <jim@meyering.net>
66357
66358         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
66359         HPUX 10.20.
66360
66361 2003-10-18  Karl Berry  <karl@gnu.org>
66362
66363         * config/config.guess: update from config.
66364
66365 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66366
66367         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
66368         (getgroups): First arg is int, not size_t.
66369         Don't let 'free' mangle errno.
66370
66371 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66372
66373         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
66374
66375 2003-10-16  Karl Berry  <karl@gnu.org>
66376
66377         * config/config.{guess,sub}: update from config.
66378
66379 2003-10-16  Jim Meyering  <jim@meyering.net>
66380
66381         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
66382         memcpy.
66383
66384 2003-10-15  Paul Eggert  <eggert@twinsun.com>
66385
66386         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
66387         (SIZE_MAX): Remove.
66388         (new_exclude, add_exclude_file): Initial size no longer needs to
66389         be a power of 2.
66390         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
66391         our own address arithmetic overflow checking.
66392
66393         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
66394         (fnmatch): Do not alloca more than 2000 wide characters;
66395         instead, use malloc for large buffers.
66396         Check for address arithmetic overflow, and return -1
66397         with errno set to ENOMEM in that case.
66398         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
66399         (NEW_PATTERN): Do not alloca more than 8000 bytes;
66400         instead, return -1.  Check for address arithmetic overflow.
66401
66402 2003-10-14  Paul Eggert  <eggert@twinsun.com>
66403
66404         Handle invalid suffixes and overflow independently, so that
66405         callers can treat them independently as needed.  Fix some bugs in
66406         suffix handling, e.g., "100k@" was not diagnosed as an invalid
66407         suffix for a human-readable blocksize.  The major caller-visible
66408         change is the addition of a new
66409         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66410         that both overflow and suffix chars were found.
66411
66412         * lib/human.c (humblock): Don't check separately for invalid suffix
66413         char; that is xstrtoumax's job (now that its bug is fixed).
66414         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66415         INTMAX_MAX]: New macros.
66416         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66417         TYPE_MAXIMUM): New macros.
66418         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66419         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66420         if overflow occurs, as it's what __strtol does and it's more useful
66421         in practice.
66422         (__xstrtol): If __strtol reports some error other than ERANGE,
66423         reflect it to the caller as LONGINT_INVALID.  If it reports
66424         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66425         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66426         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66427         value.
66428         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66429         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66430         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66431         [defined UINTMAX_MAX]: New macros.
66432
66433 2003-10-14  Bruno Haible  <bruno@clisp.org>
66434
66435         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66436
66437 2003-10-14  Bruno Haible  <bruno@clisp.org>
66438
66439         * m4/sig_atomic_t: New file, from GNU gettext.
66440         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66441
66442 2003-10-14  Bruno Haible  <bruno@clisp.org>
66443
66444         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66445         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66446         Also use volatile where needed.
66447
66448 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66449
66450         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
66451         Change maintainer from Bruno Haible to 'all'.
66452
66453 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66454
66455         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
66456
66457 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66458
66459         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66460         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66461         and define in terms of the other primitives.
66462         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66463         (SIZE_MAX): Define if not already defined.
66464         (array_size_overflow): New function.
66465         (xalloc_die): Abort instead of exiting if 'error' returns.
66466         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66467         (xmalloc, xrealloc): Use them.
66468         (xcalloc): Check for address arithmetic overflow.
66469         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66470         a bit faster than strcpy.
66471
66472 2003-10-10  Simon Josefsson  <jas@extundo.com>
66473
66474         * modules/argp (Depends-on): Add restrict and strcase.
66475
66476 2003-10-10  Simon Josefsson  <jas@extundo.com>
66477
66478         * m4/argp.m4: Add AC_C_INLINE.
66479
66480 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66481
66482         Merge getpass from libc, plus a few fixes.
66483
66484         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66485         Include <stdbool.h>.
66486         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66487         __fsetlocking to empty.
66488         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66489         do include <bits/libc-lock.h>.
66490         Do not include <fcntl.h>; not needed.
66491         [_LIBC]: Include <wchar.h>.
66492         (NOTCANCEL_MODE): New macro.
66493         (flockfile, funlockfile) [_LIBC]: New macros.
66494         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66495         [!_LIBC]: New macros.
66496         (call_fclose): New function.
66497         (getpass): Use it.  Save tty stream separately; this simplifies the
66498         code and makes it more reliable if stdin happens to equal stdout.
66499         Invoke __fsetlocking on tty.
66500         Handle thread cancellation if needed.
66501         Namespace cleanup (use __tcgetattr, __getline).
66502         Use bool for Booleans.
66503         [USE_IN_LIBIO]: Handle wide streams.
66504         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66505         stream might go where.
66506
66507         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66508         doesn't have to include <stdio.h> before us.
66509         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66510         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66511         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66512         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66513         if not declared, so that we can use getpass.c code from libc without
66514         rewriting it.
66515         (flockfile, ftrylockfile, funlockfile): New macros.
66516
66517 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66518
66519         * modules/getpass: Depend on stdbool.
66520
66521 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66522
66523         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66524
66525 2003-10-07  Karl Berry  <karl@gnu.org>
66526
66527         * config/config.{guess,sub}: update from config.
66528
66529 2003-10-06  Jim Meyering  <jim@meyering.net>
66530             Bruno Haible  <bruno@clisp.org>
66531
66532         This lets translators provide better translations for the
66533         "Written by ..." part of --version output.
66534         * lib/version-etc.h: Include stdarg.h.
66535         (version_etc_copyright): Declare as readonly.
66536         (version_etc): Make this function variadic with a NULL-terminated list
66537         of author name strings.
66538         (version_etc_va): New declaration.
66539         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66540         (version_etc_copyright): Declare as readonly.
66541         (version_etc_va): New function. Provide a different translatable string
66542         for each possible number of authors < 10. Abbreviate when there are 10
66543         authors or more.
66544         (version_etc): Make this function variadic. Call version_etc_va.
66545         Suggestion from Gary V. Vaughan.
66546
66547         * lib/long-options.h (parse_long_options): Change prototype: the
66548         authors string is moved to the end and becomes variadic.
66549         * lib/long-options.c: Include stdarg.h.
66550         (parse_long_options): Make this function variadic, too.
66551         Call version_etc_va, not version_etc.
66552
66553 2003-10-06  Bruno Haible  <bruno@clisp.org>
66554
66555         * modules/version-etc-2: Remove file.
66556         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66557
66558 2003-10-06  Bruno Haible  <bruno@clisp.org>
66559
66560         * modules/fatal-signal: New file.
66561         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66562
66563 2003-10-06  Bruno Haible  <bruno@clisp.org>
66564
66565         * m4/fatal-signal.m4: New file.
66566         * m4/signalblocking.m4: New file, from GNU gettext.
66567
66568 2003-10-06  Bruno Haible  <bruno@clisp.org>
66569
66570         * lib/version-etc-2.h: Remove file.
66571         * lib/version-etc-2.c: Remove file.
66572
66573 2003-10-06  Bruno Haible  <bruno@clisp.org>
66574
66575         * lib/fatal-signal.h: New file, from GNU gettext.
66576         * lib/fatal-signal.c: New file, from GNU gettext.
66577
66578 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66579
66580         * README: Rework advice for preventing empty .o files.
66581         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66582         not <sys/types.h>.
66583
66584 2003-10-04  Karl Berry  <karl@gnu.org>
66585
66586         * lib/argp*: update from libc.
66587
66588 2003-10-04  Karl Berry  <karl@gnu.org>
66589
66590         * config/config.{guess,sub}: update from config.
66591
66592 2003-10-02  Bruno Haible  <bruno@clisp.org>
66593
66594         * modules/lchown (Include): Add lchown.h.
66595         * modules/time_r (Include): Use "..." syntax.
66596         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66597
66598 2003-10-01  Simon Josefsson  <jas@extundo.com>
66599
66600         * MODULES.html.sh (func_all_modules): Move gethostname from section
66601         'based on' to section 'lacking' POSIX:2001.
66602
66603 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66604
66605         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66606         to output mode on the same stream.
66607
66608 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66609
66610         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66611         Fix arg typo in previous patch.
66612
66613 2003-09-28  Jim Meyering  <jim@meyering.net>
66614
66615         * lib/error.c: Correct cpp indentation.
66616
66617 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66618
66619         * modules/free: New file.
66620
66621 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66622
66623         * m4/free.m4: New file.
66624
66625 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66626
66627         * lib/minmax.h (MIN, MAX)
66628         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66629         Omit the special code that used __typeof__, since we worry that
66630         it could be more trouble than it's worth.  See:
66631         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66632         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66633
66634         * lib/free.c: New file.
66635
66636 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66637
66638         Trivial fixes to Makefile.am parts of module listings.
66639         * modules/strstr: Append strstr.h to lib_SOURCES.
66640         * modules/strcase: Likewise, for strcase.h.
66641
66642 2003-09-27  Karl Berry  <karl@gnu.org>
66643
66644         * config/mkinstalldirs: update from automake.
66645
66646 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66647
66648         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66649         (error_tail): Do not loop, reallocating temporary buffer, since
66650         the output cannot contain more wide characters than the input
66651         contains bytes, the size must be big enough already.  This avoids
66652         one potential size overflow calculation.  Check for size overflow
66653         when calculating temporary buffer size.  Free temporary buffer
66654         when done, if it was allocated with malloc; this plugs a memory
66655         leak.  Remove casts from void * to pointers, that are no longer
66656         needed now that we're assuming C89 or better.
66657
66658         Merge error changes from glibc.
66659
66660         * lib/error.c, error.h: Update copyright notice header to match glibc.
66661         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66662         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66663         Disable cancellation while printing error.
66664         * lib/error.h: Prepend __ to parameter names.
66665
66666 2003-09-26  Jim Meyering  <jim@meyering.net>
66667
66668         * lib/error.c (error_tail): Move some declarations
66669         into inner scope where the local variables are used.
66670
66671 2003-09-26  Bruno Haible  <bruno@clisp.org>
66672
66673         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66674         stpncpy().
66675         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66676
66677 2003-09-26  Bruno Haible  <bruno@clisp.org>
66678
66679         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66680         (stpncpy): Define as alias for gnu_stpncpy.
66681         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66682
66683 2003-09-25  Simon Josefsson  <jas@extundo.com>
66684
66685         * lib/xgetdomainname.h: New file.
66686         * lib/xgetdomainname.c: New file.
66687
66688 2003-09-25  Simon Josefsson  <jas@extundo.com>
66689             Bruno Haible  <bruno@clisp.org>
66690
66691         * modules/getdomainname: New file.
66692         * modules/xgetdomainname: New file.
66693         * MODULES.html.sh (func_all_modules): Add getdomainname,
66694         xgetdomainname.
66695
66696 2003-09-25  Simon Josefsson  <jas@extundo.com>
66697             Bruno Haible  <bruno@clisp.org>
66698
66699         * m4/getdomainname.m4: New file.
66700
66701 2003-09-25  Simon Josefsson  <jas@extundo.com>
66702             Bruno Haible  <bruno@clisp.org>
66703
66704         * lib/getdomainname.h: New file.
66705         * lib/getdomainname.c: New file.
66706
66707 2003-09-25  Karl Berry  <karl@gnu.org>
66708
66709         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66710
66711 2003-09-25  Karl Berry  <karl@gnu.org>
66712
66713         * config/install-sh: update from automake.
66714
66715 2003-09-25  Bruno Haible  <bruno@clisp.org>
66716
66717         * modules/version-etc-2: New file, from modules/version-etc with
66718         modifications.
66719         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66720
66721 2003-09-25  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66724         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66725
66726 2003-09-24  Simon Josefsson  <jas@extundo.com>
66727
66728         * modules/xgethostname: Add xgethostname.h.
66729
66730 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66731
66732         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66733         the buffer associated with the argument.  Bug reported by
66734         Simon Josefsson.
66735
66736 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66737
66738         * README: Document assumptions that 'int' is at least 32 bits
66739         wide, that integer arithmetic is 2's complement without overflow,
66740         that there are no holes in integer values, that adding sizes of
66741         two nonoverlapping objects can't overflow, and that all-bits-zero
66742         yields scalar zero.  Fix spelling and capitalization typos.
66743
66744 2003-09-19  Karl Berry  <karl@gnu.org>
66745
66746         * lib/argp.h: update from libc.
66747
66748 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66749
66750         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66751         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66752         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66753
66754 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66755
66756         * gnulib-tool: Use "test -h", not "test -L", for portability
66757         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66758         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66759         (sed_extract_prog): Issue s commands one-by-one, rather than
66760         using \| in one s command.
66761
66762 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66763
66764         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66765         input error, instead of returning NULL the next time we are called
66766         (and therefore losing track of errno).
66767
66768 2003-09-16  Bruno Haible  <bruno@clisp.org>
66769
66770         * gnulib-tool (func_create_testdir): Warn about duplicated
66771         dependencies.
66772
66773 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66774
66775         * modules/argmatch, modules/fatal, modules/obstack,
66776         modules/xalloc, modules/xgethostname: Sort dependencies by
66777         importance, not alphabetically.
66778
66779 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66780
66781         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66782         fails, so that the caller gets the proper errno.
66783
66784         * lib/readutmp.c (read_utmp): Likewise.
66785         Check for fstat error.  Close stream and free storage
66786         when failing.
66787
66788 2003-09-14  Karl Berry  <karl@gnu.org>
66789
66790         * config/srclist.txt (strdup.c): disable for c89 changes.
66791
66792 2003-09-14  Jim Meyering  <jim@meyering.net>
66793
66794         * lib/getloadavg.c: Correct cpp indentation.
66795         * lib/strdup.c: Likewise.
66796         * lib/vasnprintf.c: Likewise.
66797
66798 2003-09-14  Bruno Haible  <bruno@clisp.org>
66799
66800         * modules/fwriteerror: New file.
66801         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66802
66803 2003-09-14  Bruno Haible  <bruno@clisp.org>
66804
66805         * lib/fwriteerror.h: New file.
66806         * lib/fwriteerror.c: New file.
66807
66808 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66809
66810         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66811         modules/xgethostname, modules/xalloc: Depend on exit.
66812
66813 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66814
66815         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66816
66817         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66818         and AC_MINIX, too, so that their extensions are available.
66819
66820         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66821         This macro has been superseded by gl_BACKUPFILE.
66822
66823         More patches to assume C89 or better.
66824
66825         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66826
66827         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66828         unconditionally.
66829         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66830         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66831         Include <string.h>, <stdlib.h> unconditionally.
66832         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66833         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66834         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66835         headers or for string.h.
66836         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66837         or strtoul.
66838
66839         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66840         headers.
66841         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66842         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66843         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66844         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66845         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66846         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66847         memcpy, memset.
66848         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66849         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66850         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66851         strtol.
66852         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66853         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66854         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66855         strtoul.
66856
66857 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66858
66859         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66860         * lib/obstack.c [!defined _LIBC]: Likewise.
66861         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66862         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66863         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66864
66865         More changes to assume C89 or better.
66866
66867         * lib/error.c (error_tail): Assume vprintf.
66868
66869         * lib/argmatch.c (getenv): Remove decl.
66870         * lib/progreloc.c (get_full_program_name): Define via prototype.
66871         * lib/setenv.c (clearenv): Likewise.
66872         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66873         needed.
66874         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66875         (malloc, memcpy): Remove decls.
66876         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66877         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66878         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66879         (memcpy): Remove macro.
66880         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66881         (__P): Remove.  All uses removed.
66882         (PTR): Remove.  All uses changed to void *.
66883         (CHAR_BIT, NULL): Remove.
66884         (spaces, zeros, memset_space, memset_zero)
66885         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66886         Remove.
66887         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66888         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66889         Define with prototype.
66890         Remove now-unnecessary prototype decl.
66891         (extra_args_spec): Assume ANSI C.  All uses changed.
66892         (extra_args_spec_iso): Remove.
66893         (my_strftime, emacs_strftimeu): Define via prototype.
66894         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66895         unconditionally.
66896         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66897         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66898         (strtoul, strtol): Remove decls.
66899         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66900         LONG_MAX): Remove.
66901         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66902         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66903         (LOCALE_PARAM_PROTO): New macro.
66904         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66905         (INTERNAL (strtol), strtol): Define with a prototype.
66906         (PARAMS): Remove.  All uses removed.
66907         * lib/tempname.c: Include <string.h> unconditionally.
66908         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66909         * lib/xgethostname.c (main): Define with a prototype.
66910         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66911         Include <stdlib.h> unconditionally.
66912         (calloc, malloc, realloc, free): Remove decls.
66913         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66914         Include <stdlib.h> unconditionally.  Sort include file names.
66915         (strtod): Remove.
66916         (xstrtod): Define with a prototype.
66917         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66918         (strtol, strtoul): Remove decls.
66919
66920 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66921
66922         More patches to assume C89 or better.
66923         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66924         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66925         string.h, memchr, STDC_HEADERS.
66926
66927 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66928
66929         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66930         Include <stdlib.h>, <string.h> unconditionally.
66931         Remove now-unnecessary cast to char *.
66932         * lib/strnlen.c: Include <string.h> unconditionally.
66933         * lib/yesno.c (yesno): Define with a prototype.
66934
66935 2003-09-11  Bruno Haible  <bruno@clisp.org>
66936
66937         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66938
66939 2003-09-10  Jim Meyering  <jim@meyering.net>
66940
66941         * lib/error.c: Correct indentation of cpp directives.
66942
66943 2003-09-10  Bruno Haible  <bruno@clisp.org>
66944
66945         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66946         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66947         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66948         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66949         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66950         <stdlib.h> and <string.h> checks.
66951         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66952         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66953
66954 2003-09-10  Bruno Haible  <bruno@clisp.org>
66955
66956         * lib/strcspn.c: Include <string.h> unconditionally.
66957         * lib/strpbrk.c: Include <string.h> unconditionally.
66958         * lib/strstr.c: Include <string.h> unconditionally.
66959         * lib/unicodeio.c: Include <string.h> unconditionally.
66960         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66961         * lib/unsetenv.c: Likewise.
66962         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66963         * lib/yesno.c: Include <stdlib.h> unconditionally.
66964         (rpmatch): Add prototype.
66965
66966 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66967
66968         More patches to assume C89 or better.
66969         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66970         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66971         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66972         or for string.h.
66973         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66974         stdlib.h.
66975         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66976         C headers.
66977         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66978         string.h.
66979         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66980         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66981         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66982         or for string.h.
66983         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66984         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66985         C headers.
66986         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66987         memcpy.
66988         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66989         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66990         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66991         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66992         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66993         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66994         string.h, free.
66995         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66996         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66997         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66998         C headers, or for string.h.
66999         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
67000         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
67001         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
67002         headers, memory.h, stdlib.h, string.h, strings.h.
67003         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
67004         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
67005         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
67006         strchr.
67007         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
67008         headers, memory.h, string.h.
67009         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
67010         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
67011         free.
67012         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
67013         headers.
67014         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
67015         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
67016         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
67017         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
67018         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
67019
67020 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67021
67022         More K&R removal.
67023
67024         * lib/acosl.c (main): Use a prototype.
67025         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
67026         tanl.c: Likewise.
67027
67028         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
67029
67030         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
67031         (getopt, etopt_long, getopt_long_only, _getopt_internal)
67032         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
67033         with a prototype.
67034         * lib/getopt.c (const): Remove macro.
67035         Include <string.h> unconditionally.
67036         (my_index): Remove; all uses changed to strchr.
67037         (strlen): Remove decl.
67038         (exchange): Remove forward decl; no longer needed.
67039         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
67040         Define with prototype.
67041         * lib/getopt1.c (const): Remove macro.
67042         (getopt_long, getopt_long_only, main): Define with prototype.
67043
67044         * lib/getugroups.c: Include <string.h> unconditionally.
67045
67046         * lib/getusershell.c: Include <stdlib.h> unconditionally.
67047         (getusershell, setusershell, endusershell, readname, main):
67048         Define with prototypes.
67049
67050         * lib/group-member.c: Include group-member.h first.
67051         Include <stdlib.h> unconditionally.
67052
67053         * lib/hard-locale.c: Include hard-locale.h first.
67054         Include <stdlib.h>, <string.h> unconditionally.
67055
67056         * lib/hash.c (free, malloc): Remove decls.
67057         Include <stdlib.h> unconditionally.
67058
67059         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
67060         (getenv): Do not declare.
67061
67062         * lib/idcache.c: Include <string.h> unconditionally.
67063
67064         * lib/long-options.c: Include long-options.h first, to test interface.
67065         Include <stdlib.h> unconditionally.
67066
67067         * lib/makepath.c: Include makepath.h first, to test interface.
67068         Include <stdlib.h> and <string.h> unconditionally.
67069
67070         * lib/linebuffer.c: Include <stdlib.h>.
67071         (free): Remove decl.
67072
67073         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
67074         stddef.h. rpl_malloc returns void *, not char *.
67075         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
67076         prototype.
67077
67078         * lib/md5.h: Include <limits.h> unconditionally.
67079         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
67080         (__P): Remove; all uses removed.
67081         * lib/md5.c: Include "md5.h" first.
67082         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
67083         md5_buffer, md5_process_bytes, md5_process_block):
67084         Define with prototypes.
67085         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
67086         * lib/sha.c: Include "sha.h" first.
67087         Include <stdlib.h>, <string.h> unconditionally.
67088
67089         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
67090         * lib/memcmp.c (__ptr_t): Likewise.
67091         * lib/memrchr.c (__ptr_t): Likewise.
67092         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
67093         Include <string.h> unconditionally.
67094         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
67095         * lib/memchr.c: Include <stdlib.h> unconditionally.
67096         * lib/memchr.c (LONG_MAX): Remove.
67097         * lib/memrchr.c (LONG_MAX): Likewise.
67098         * lib/memchr.c (__memchr): Define via a prototype.
67099         * lib/memrchr.c (__memrchr): Likewise.
67100         * lib/memcmp.c (__P): Remove, and remove all uses.
67101         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
67102         Remove forward decls; no longer needed.
67103         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
67104         Use types required by C89 in prototype.
67105
67106         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
67107         * lib/savedir.c: Likewise.
67108         * lib/mkdir.c (free): Remove decl.
67109         * lib/rmdir.c (rmdir): Define with a prototype.
67110         * lib/savedir.c: Include savedir.h first, to test interface.
67111
67112         * lib/mktime.c (STDC_HEADERS): Remove.
67113         Include <stdlib.h>, <string.h> unconditionally.
67114
67115         * lib/modechange.c: Include <stdlib.h> unconditionally.
67116         (malloc): Remove decl.
67117
67118         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
67119         (free): Remove decl.
67120
67121         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
67122         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
67123         (This type really should be intptr_t, but that's a C99ism.)
67124         (_obstack_memcpy): Remove: all uses changed to memcpy.
67125         Include <string.h> unconditionally.
67126         (struct obstack): Assume __STDC__ for types of members
67127         chunkfun, freefun, extra_arg.
67128         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
67129         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
67130         obstack_begin, obstack_specify_allocation,
67131         obstack_specify_allocation_with_arg, obstack_chunkfun,
67132         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
67133         Remove unprototyped decls and the macros that use them.
67134         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
67135         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
67136         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
67137         (defined __STDC__ && __STDC__)]:
67138         Remove nonprototyped code.
67139         Include <stdlib.h> unconditionally.
67140         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
67141         _obstack_allocated_p, _obstack_free, obstack_free,
67142         _obstack_memory_used, print_and_abort):
67143         Define using prototypes.
67144         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
67145         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
67146         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
67147         obstack_next_free, obstack_object_size, obstack_room) [0]:
67148         Remove unused, unprototyped code.
67149
67150         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
67151
67152         * lib/physmem.c (physmem_total, physmem_available, main): Define
67153         with prototypes.
67154
67155         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
67156         (main): Define with a prototype.
67157
67158         * lib/posixver.c (getenv): Remove decl.
67159
67160         * lib/putenv.c (malloc): Returns void *, not char *.
67161         Include <string.h> unconditionally.
67162         (strchr, memcpy, NULL): Do not define.
67163
67164         * lib/readtokens.c: Include readtokens.h first, to test interface.
67165         Include <stdlib.h>, <string.h> unconditionally.
67166         (init_tokenbuffer): Define with a prototype.
67167
67168         * lib/regex.c (PARAMS): Remove.  All uses removed.
67169         All uses of _RE_ARGS removed, too.
67170         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67171         unconditionally.
67172         (bzero): Assume memset exists.
67173         (memcmp, memcpy, NULL): Remove.
67174         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
67175         char, or assignments to local vars of type signed char.
67176         (init_syntax_once, PREFIX(extract_number_and_incr),
67177         PREFIX(print_partial_compiled_pattern),
67178         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
67179         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
67180         PREFIX(regex_grow_registers), PREFIX(regex_compile),
67181         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
67182         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
67183         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
67184         wcs_compile_range, byte_compile_range, truncate_wchar,
67185         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
67186         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
67187         count_mbs_length, wcs_re_match_2_internal,
67188         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
67189         PREFIX(alt_match_null_string_p),
67190         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
67191         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
67192         regfree, PREFIX(extract_number)): Define with prototype.  Remove
67193         now-unnecessary declaration, if any.
67194         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
67195         regcomp, regexec):
67196         Remove now-unnecessary casts among pointer types.
67197         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
67198
67199         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
67200         (free): Remove decl.
67201
67202         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
67203
67204         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
67205         (free): Remove decl.
67206
67207         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
67208         * lib/xgetcwd.c: Likewise.
67209
67210         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
67211         (free): Remove decl.
67212
67213         * lib/strchrnul.c (strchrnul): Define with a prototype.
67214         Fix bug: c_in was not converted to char before searching.
67215
67216         The following changes are not K&R related:
67217
67218         * lib/group-member.h: Include <sys/types.h>, so that this file is
67219         self-contained.
67220         * lib/makepath.h: Likewise.
67221
67222         * lib/getusershell.c (readname, default_index, line_size, readname):
67223         Use size_t, not int, for sizes.
67224         (readname): If the size overflows, report an error instead of
67225         looping forever.
67226
67227 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67228
67229         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
67230         libc.
67231
67232 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67233
67234         * README: New section: portability guidelines.
67235
67236 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67237
67238         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
67239         C89 spec.
67240
67241 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67242
67243         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
67244
67245 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67246
67247         Assume C89 or better; remove K&R cruft.
67248         A few of these changes were first proposed by Derek Robert Price
67249         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
67250
67251         * lib/addext.c: Include <string.h> unconditionally.
67252         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
67253         Don't declare getenv or malloc.
67254
67255         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
67256         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
67257         (NULL): Remove.
67258         (find_stack_direction, alloca): Use prototypes.
67259
67260         * lib/atexit.c (atexit): Define using a prototype.
67261
67262         * lib/basename.c, dirname.c, stripslash.c:
67263         Include <string.h> unconditionally.
67264
67265         * lib/bcopy.c: Include <stddef.h>.
67266         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
67267
67268         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
67269
67270         * lib/error.h (error, error_at_line, error_print_progname)
67271         [! (defined (__STDC__) && __STDC__)]: Remove decls.
67272         * lib/error.c: Include error.h first, to check interface.
67273         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67274         (VA_START): Remove; all uses changeed to va_start.
67275         (exit, strerror): Remove decls.
67276         (error_print_progname): Prototype uncondionally.
67277         Don't include <errno.h>; no longer needed.
67278         (private_strerror): Remove.
67279         (error_tail): Always define.
67280         (error, error_at_line): Assume C89 or better; always use prototypes.
67281         * lib/fatal.c: Include "fatal.h" first, to test interface.
67282         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67283         (VA_START): Remove; all uses changed to va_start.
67284         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
67285         this case.
67286         (exit): Remove decl.
67287         (fatal): Prototype unconditionally.  Assume va_start works.
67288         Abort at end, to pacify gcc.
67289
67290         * lib/euidaccess.c (main): Define with a prototype.
67291
67292         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
67293
67294         * lib/exitfail.c: Include <stdlib.h> unconditionally.
67295
67296         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
67297         prototypes.
67298         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
67299         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
67300         (getenv): Remove decl.
67301         (fnmatch): Define using a prototype.
67302         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
67303         (FCT): Define using a prototype.
67304
67305         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
67306
67307         * lib/gethostname.c: Include <stddef.h>.
67308         (gethostname): Define with prototype.  Length is size_t, not int.
67309
67310 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67311
67312         Assume C89 or better; remove K&R cruft.
67313         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
67314         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
67315         string.h, getenv, malloc.
67316         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
67317         headers.
67318         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
67319         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
67320         do not check for strerror.
67321         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
67322         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
67323         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
67324         do not check for doprnt or vprintf.
67325         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67326         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67327
67328 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67329
67330         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
67331         getversion.c should have been removed then, but was accidentally
67332         preserved.
67333
67334         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
67335         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
67336
67337 2003-09-08  Karl Berry  <karl@gnu.org>
67338
67339         * config/config.sub, config.guess, srclistvars.sh: update from savannah
67340                 config, forget about prep.
67341
67342         * config/depcomp, missing: update from automake.
67343
67344 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67345
67346         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
67347         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67348
67349 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67350
67351         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
67352         copy_tm_result.  Bug reported by Simon Josefsson in
67353         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67354
67355 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67356
67357         * m4/time_r.m4: New file.
67358         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
67359         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
67360         is. Check for timegm declaration.
67361         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
67362         Do not check for gmtime_r.
67363         Replace mktime if __mktime_internal does not exist and if mktime
67364         hasn't been replaced already.
67365
67366 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67367
67368         * lib/time_r.c, lib/time_r.h: New files.
67369
67370         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
67371         __localtime_r.
67372         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
67373         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
67374
67375         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
67376         __gmtime_r.
67377         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
67378         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
67379         Include <time_r.h>.
67380
67381         * lib/timegm.c: Switch to glibc implementation, with the following
67382         changes:
67383         [defined HAVE_CONFIG_H]: Include <config.h>.
67384         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
67385         (__mktime_internal) [!defined _LIBC]: New decl.
67386         (__gmtime_r) [!defined _LIBC]: New macro and function.
67387         (timegm): Use a prototype, since gnulib assumes C89.
67388         Do not bother declaring tmp to be const, as it's not really usefu.
67389         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
67390         (timegm): Declare only if HAVE_DECL_TIMEGM.
67391
67392 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67393
67394         * MODULES.html.sh (func_all_modules): Add time_r.
67395         * modules/time_r: New file.
67396         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
67397         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
67398
67399 2003-09-03  Paul Eggert  <eggert@twinsun.com>
67400
67401         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
67402         Bug reported by Lute Kamstra in
67403         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
67404
67405         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
67406         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
67407         course with correspondingly smaller numbers for tomorrow and
67408         yesterday.  From Tadayoshi Funaba.  Originally installed into
67409         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67410         coreutils merge?).
67411
67412 2003-08-31  Simon Josefsson  <jas@extundo.com>
67413
67414         * modules/timegm: New file.
67415         * MODULES.html.sh (func_all_modules): Add timegm.
67416
67417 2003-08-31  Simon Josefsson  <jas@extundo.com>
67418
67419         * m4/timegm.m4: New file.
67420
67421 2003-08-31  Simon Josefsson  <jas@extundo.com>
67422
67423         * lib/timegm.h: New file.
67424         * lib/timegm.c: New file.  Based on
67425         wget-1.8.2/src/http.c:mktime_from_utc.
67426
67427 2003-08-31  Karl Berry  <karl@gnu.org>
67428
67429         * lib/argp.h: update from libc.
67430
67431 2003-08-28  Bruno Haible  <bruno@clisp.org>
67432
67433         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67434         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67435         followed by '#define fnmatch fnmatch_posix' gives an error.
67436
67437 2003-08-28  Bruno Haible  <bruno@clisp.org>
67438
67439         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67440         warning on QNX, which defines O_BINARY to 000000.
67441
67442 2003-08-27  Jim Meyering  <jim@meyering.net>
67443
67444         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67445         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67446         would fail after 32.  Reported by Danny Levinson.  Details here:
67447         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67448
67449 2003-08-24  Bruno Haible  <bruno@clisp.org>
67450
67451         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
67452         MSVC7 <stdio.h> is included later.
67453
67454 2003-08-22  Simon Josefsson  <jas@extundo.com>
67455
67456         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
67457
67458 2003-08-20  Karl Berry  <karl@gnu.org>
67459
67460         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67461
67462 2003-08-20  Bruno Haible  <bruno@clisp.org>
67463
67464         * modules/progname: New file.
67465         * MODULES.html.sh (func_all_modules): Add progname.
67466
67467 2003-08-20  Bruno Haible  <bruno@clisp.org>
67468
67469         * lib/progname.h: New file, from GNU gettext.
67470         * lib/progname.c: New file, from GNU gettext.
67471         * lib/progreloc.c: New file, from GNU gettext.
67472
67473 2003-08-19  Jim Meyering  <jim@meyering.net>
67474
67475         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67476         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67477
67478 2003-08-19  Bruno Haible  <bruno@clisp.org>
67479
67480         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67481         more.
67482
67483 2003-08-19  Bruno Haible  <bruno@clisp.org>
67484
67485         * lib/xstrdup.c: Assume <string.h> exists.
67486
67487 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67488
67489         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67490         in makefile rules.
67491
67492 2003-08-18  Jim Meyering  <jim@meyering.net>
67493
67494         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67495         * m4/lib-ld.m4: Likewise.
67496
67497 2003-08-18  Jim Meyering  <jim@meyering.net>
67498
67499         * lib/setenv.h: Indent nested cpp directive.
67500         * lib/vasnprintf.c: Remove trailing blanks.
67501
67502 2003-08-17  Simon Josefsson  <jas@extundo.com>
67503
67504         * modules/xstrndup: New file.
67505         * MODULES.html.sh (func_all_modules): Add xstrndup.
67506
67507 2003-08-17  Simon Josefsson  <jas@extundo.com>
67508
67509         * modules/argp: Fix autoconf macro name. Add more dependencies.
67510
67511 2003-08-17  Simon Josefsson  <jas@extundo.com>
67512
67513         * m4/xstrndup.m4: New file.
67514
67515 2003-08-17  Simon Josefsson  <jas@extundo.com>
67516
67517         * m4/argp.m4: New file.
67518
67519 2003-08-17  Simon Josefsson  <jas@extundo.com>
67520             Bruno Haible  <bruno@clisp.org>
67521
67522         * lib/xstrndup.h: New file.
67523         * lib/xstrndup.c: New file.
67524
67525 2003-08-17  Bruno Haible  <bruno@clisp.org>
67526
67527         * modules/strndup (Files, Include): Add lib/strndup.h.
67528
67529 2003-08-17  Bruno Haible  <bruno@clisp.org>
67530
67531         * modules/euidaccess (Files): Add lib/euidaccess.h.
67532
67533 2003-08-17  Bruno Haible  <bruno@clisp.org>
67534
67535         * lib/strndup.h: New file.
67536
67537 2003-08-17  Bruno Haible  <bruno@clisp.org>
67538
67539         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67540         like AC_GNU_SOURCE.
67541         * modules/extensions (configure.ac): Comment out the invocation of
67542         gl_USE_SYSTEM_EXTENSIONS.
67543
67544 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67545
67546         Merges from coreutils, etc.
67547         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67548         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67549         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67550         fixing a typo.
67551         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67552         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67553
67554 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67555
67556         Document merge from coreutils.
67557         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67558         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67559         * modules/utime: Add m4/utimes-null.m4.
67560
67561 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67562
67563         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67564         space, undoing this 2003-08-12 change:
67565         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67566
67567 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67568
67569         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67570         strtoul.c from libc, undoing this 2003-08-12 change:
67571         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67572
67573 2003-08-16  Jim Meyering  <jim@meyering.net>
67574
67575         Merges from coreutils.
67576         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67577         prefix.  Adjust cache variables similarly.  Create 500 rather than
67578         just 300 files, to exercise bug on Darwin6.5, too.
67579         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67580         $missing_dir.
67581         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67582         AM_SYS_POSIX_TERMIOS.
67583         Reported by mkc@mathdogs.com.
67584         Also change use of $am_cv_sys_posix_termios
67585         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67586         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67587         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67588         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67589         in /proc/mounts until it finds one with matching device number.  This
67590         is unnecessary when the FILE argument *is* a mount point.  No stat call
67591         is necessary in that case.  So, disable the statvfs-testing code on
67592         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67593         as RedHat bug# 84846.
67594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67595         to 1MB, so as not to render systems with no stack size limit (e.g.,
67596         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67597         Include <unistd.h>.  On some systems,
67598         it is required for the definition of _SC_PAGESIZE.
67599
67600 2003-08-16  Jim Meyering  <jim@meyering.net>
67601
67602         Merge from coreutils.
67603         * lib/xstrtoimax.c: #else #if -> #elif.
67604         * lib/xstrtoumax.c: Likewise.
67605
67606 2003-08-16  Jim Meyering  <jim@meyering.net>
67607
67608         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67609         * m4/utimes.m4: Removed.
67610         * m4/utimes-null.m4: Renamed from utimes.m4.
67611
67612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67613         to 1MB, so as not to render systems with no stack size limit (e.g.,
67614         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67615         Include <unistd.h>.  On some systems,
67616         it is required for the definition of _SC_PAGESIZE.
67617
67618 2003-08-16  Jim Meyering  <jim@meyering.net>
67619         and Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         Merges from coreutils, etc.
67622
67623         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67624         using the latest version from cvs.  This avoids problems with #line
67625         directives using a vendor (Sun) compiler.
67626         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67627         Don't set GETGROUPS_LIB here; now it's
67628         done via getgroups.m4's wrapper function.
67629         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67630         rather than just in sh-util/configure.in, so that the
67631         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67632         same.
67633         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67634         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67635         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67636         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67637         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67638         Remove code that is now done by the newly-required macros.
67639         Append $(EXEEXT) to DF_PROG.
67640         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67641         Do not invoke or require the following here,
67642         since prereq.m4 or some gnulib .m4 now does this for us:
67643         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67644         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67645         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67646         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67647         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67648         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67649         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67650         AC_FUNC_OBSTACK.
67651         Do not replace the following functions, as this is now the job
67652         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67653         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67654         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67655         atexit getpass, strdup, getpagesize.
67656         Replace 'raise'.
67657         Do not check for the following functions, as this is now the job
67658         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67659         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67660         setregid.
67661         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67662         Check for sys/sysctl.h.
67663         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67664         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67665         of checking for ssize_t ourselves.
67666
67667         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67668         Require every macro that gnulib/modules/* suggests for us.
67669         (jm_PREREQ_ADDEXT): New macro.
67670         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67671         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67672
67673         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67674         (gl_PHYSMEM): Use it.
67675         Also check for `table' function.
67676         Check for new headers and functions.
67677         Add check for sys/sysmp.h.
67678         With suggestions from Kaveh Ghazi.
67679         Ignore headers that are present but cannot be compiled.  This
67680         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67681         C 5.4.
67682
67683 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67684
67685         Document merge from coreutils.
67686         * modules/userspec: Depend on posixver.
67687         * modules/strftime: Depend on tzset.
67688
67689 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67690
67691         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67692         rather than tab, after '#' in shell-script copyright notices.
67693         Suggested by Bruno Haible.
67694
67695 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67696
67697         * config/srclist-update: Use three spaces, rather than tab, after '#'
67698         in shell-script copyright notices.  Suggested by Bruno Haible.
67699         Remove unnecessary parenthesization in regular expression.
67700
67701 2003-08-15  Jim Meyering  <jim@meyering.net>
67702
67703         Merge from coreutils.
67704         * lib/xgethostname.c: Include <stdlib.h>.
67705         (xghostname): Don't exit for anything other than memory-related
67706         failure; just return NULL.
67707         * lib/userspec.c: Include "posixver.h".
67708         (parse_user_spec): Accept `.' as a separator only
67709         in pre-POSIX-200112 mode.
67710         * lib/strtoimax.c: Use #elif rather than #else #if.
67711         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67712         Remove function, now that we can rely on a working tzset function.
67713         [!_LIBC]: Ensure that the required autoconf test has been run.
67714         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67715         Use underlying_strftime for %r.
67716         * lib/sha.c: Merge in some clean-up and optimization changes from
67717         glibc.
67718         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67719         Ensure that it is a multiple of 64.
67720         Rearrange loop exit tests so as to avoid performing an
67721         additional fread after encountering an error or EOF.
67722         * lib/realloc.c: Update copyright date.
67723
67724 2003-08-15  Jim Meyering  <jim@meyering.net>
67725         and Paul Eggert  <eggert@twinsun.com>
67726
67727         Merge from coreutils.
67728         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67729         member but strut utmpx does not.  Needed for AIX 4.3.3.
67730         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67731
67732 2003-08-15  Jim Meyering  <jim@meyering.net>
67733         and Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         Merges from coreutils, etc.
67736         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67737         Require gl_FUNC_TZSET_CLOBBER.
67738         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67739         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67740         members.
67741
67742 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67743
67744         Help the merge from coreutils.
67745         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67746         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67747         * m4/tzset.m4: Use it too.
67748
67749 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67750
67751         * modules/tzset: New file.
67752
67753 2003-08-14  Jim Meyering  <jim@meyering.net>
67754
67755         Merges from coreutils.
67756         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67757         variable names, rather than @FNMATCH_H@.
67758         * modules/alloca: Likewise for $(ALLOCA_H).
67759
67760         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67761         the three copies of the literal target, `fnmatch.h'.
67762         * modules/alloca (alloca.h): Likewise.
67763
67764 2003-08-14  Jim Meyering  <jim@meyering.net>
67765
67766         Merge from coreutils.
67767         * m4/tzset.m4: New file.
67768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67769         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67770         otherwise, AIX 5.1 systems would end up using the latter.
67771         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67772         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67773         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67774         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67775
67776 2003-08-14  Jim Meyering  <jim@meyering.net>
67777
67778         Merge from coreutils.
67779         * lib/obstack.h: Whitespace changes.
67780         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67781         and xcalloc return values.
67782         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67783         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67784         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67785         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67786         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67787         error from mntctl.
67788         Use mntctl's return value to drive the entry-processing loop, since
67789         we can't rely on the value of the vmt_length member in the last
67790         entry.  On some systems doing so could result in exhausting
67791         virtual memory.  Based in part on a patch from Mike Jetzer.
67792
67793 2003-08-14  Jim Meyering  <jim@meyering.net>
67794         and Paul Eggert  <eggert@twinsun.com>
67795
67796         Merges from coreutils, plus other fixes.
67797         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67798         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67799         for credits and details.  Thanks to Kaveh Ghazi for helping
67800         to keep these files in sync.
67801         (ARRAY_SIZE): Define it.
67802         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67803         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67804         (memcasecmp): Don't assume size_t fits in unsigned int.
67805         Remove casts and duplicate code.
67806         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67807         (memcpy): Remove definition.
67808         Merge in some clean-up and optimization changes from glibc.
67809         [BLOCKSIZE]: Move definition to top of file.
67810         Ensure that it is a multiple of 64.
67811         Rearrange loop exit tests so as to avoid performing an
67812         additional fread after encountering an error or EOF.
67813         * lib/md5.h (md5_uintptr): Define.
67814         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67815         return to the initial working directory.  Preserve errno
67816         for caller.
67817         * lib/idcache.c: Include "xalloc.h".
67818         (xmalloc, xrealloc): Remove decls.
67819         (getuser): Remove casts no longer required in C89.
67820         * lib/human.c: Include stdio.h, for sprintf.
67821         * lib/group-member.c: Include "xalloc.h".
67822         (xmalloc, xrealloc): Remove decls.
67823         (get_group_info): Remove casts no longer required in C89.
67824         * lib/getusershell.c (readname): Remove casts no longer required in
67825         C89.
67826         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67827         * lib/getline.c: Whitespace fix, from coreutils.
67828
67829 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67830
67831         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67832         Check for isascii.
67833
67834         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67835         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67836         Undo previous (whitespace-only) change.
67837
67838 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67839
67840         * lib/exclude.c: Include <ctype.h>
67841         (IN_CTYPE_DOMAIN): New macro.
67842         (is_space): New fn.
67843         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67844         and empty lines.
67845
67846         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67847         Undo previous (whitespace-only) change.
67848
67849 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67850
67851         * config/srclist-update: Change update back to the old behavior,
67852         leaving whitespace alone.  Use one 'sed' command rather than a
67853         pipeline.
67854         (fixlicense): Now a variable, not a function.
67855         (remove_trailing_blanks): Remove.
67856         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67857         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67858         Undo previous (whitespace-only) change.
67859
67860 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67861
67862         Merge from coreutils.
67863         * modules/euidaccess: Add lib_SOURCES, include for new
67864         file euidaccess.h
67865
67866 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67867
67868         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67869         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67870         Normalize leading white space and remove trailing white space.
67871
67872         Merge from coreutils
67873         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67874
67875         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67876         0.12.1.  These files are now being upgraded automatically by
67877         ../config/srclist-update.
67878
67879 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67880
67881         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67882         Normalize leading white space and remove trailing white space.
67883         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67884         notice, as per ../config/srclist-update.
67885
67886         Merge from coreutils.
67887         * lib/euidaccess.h: New file.
67888         * lib/euidaccess.c: Include it.
67889         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67890         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67891         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67892
67893 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67894
67895         * config/srclist-update: Add copyright notice.
67896         (remove_id_lines, remove_trailing_blanks): New constants.
67897         (fixfile): Use them to normalize spacing a bit in copied files.
67898         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67899         Normalize leading white space and remove trailing white space.
67900
67901         * config/texinfo.tex: Sync with texinfo.
67902
67903         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67904         strtoul.c from libc, to merge coreutils whitespace changes.
67905
67906         * config/srclist.txt: Get the following m4 files from gettext:
67907         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67908         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67909         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67910         wint_t.m4.
67911
67912 2003-08-12  Karl Berry  <karl@gnu.org>
67913
67914         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67915         been made.
67916
67917 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67918
67919         * modules/gnu-source, m4/gnu-source.m4:
67920         Remove; we're assuming Autoconf 2.54 or later now.
67921         Suggested by Bruno Haible.
67922         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67923
67924 2003-08-11  Bruno Haible  <bruno@clisp.org>
67925
67926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67927
67928 2003-08-11  Bruno Haible  <bruno@clisp.org>
67929
67930         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67931         (vasnprintf): Use it instead of wcslen.
67932
67933 2003-08-11  Bruno Haible  <bruno@clisp.org>
67934
67935         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67936         value to ensure that _Bool promotes to int. Use #define for _Bool when
67937         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67938
67939 2003-08-10  Karl Berry  <karl@gnu.org>
67940
67941         * lib/regex.h: update from libc (whitespace fix).
67942
67943 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67944
67945         Merge some files from coreutils.  These changes were
67946         originally made by Jim Meyering.
67947         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67948         many older Unixes require this.
67949         * lib/alloca.c (alloca): Remove cast to argument of free;
67950         no longer needed in C89.
67951         * lib/alloca_.h, regex.h: Fix white space to match
67952         what GNU indent does.
67953
67954 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67955
67956         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67957         apparently Emacs's Unicode mode got confused before my 2003-08-05
67958         checkin.
67959
67960 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67961
67962         * m4/extensions.m4: New file.
67963         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67964         Require gl_USE_SYSTEM_EXTENSIONS.
67965         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67966         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67967
67968 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67969
67970         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67971         * modules/extensions, modules/gnu-source: New files.
67972         * modules/timespec, modules/unlocked-io: Depend on extensions.
67973
67974 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67975
67976         * modules/restrict: New file.
67977         * MODULES.html.sh (func_all_modules): Add restrict.
67978         * modules/regex: Depend on restrict.
67979
67980 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67981
67982         * m4/restrict.m4: New file.
67983         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67984
67985 2003-08-07  Bruno Haible  <bruno@clisp.org>
67986
67987         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67988         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67989
67990 2003-08-07  Bruno Haible  <bruno@clisp.org>
67991
67992         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67993         makes the module 'getndelim2' compatible with the module 'getline'.
67994
67995 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67996
67997         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67998         byte with "\201" to avoid glitches when editing that source file
67999         with multi-gnome-terminal.
68000
68001 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68002
68003         * lib/bumpalloc.h: Remove.
68004
68005 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68006
68007         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
68008         * modules/bumpalloc: Remove.
68009
68010 2003-08-04  Paul Eggert  <eggert@twinsun.com>
68011
68012         * lib/getloadavg.c: Change copyright notice and spacing to conform to
68013         GNU coding style.
68014
68015         Merge from coreutils.
68016         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
68017         1. From glibc.
68018         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
68019         from Karl Berry, implemented by Jim Meyering.
68020         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
68021         from Dmitry V. Levin.
68022         Remove anachronistic cast of xrealloc.
68023         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
68024         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
68025         type. Otherwise, it wouldn't compile with at least /bin/cc on
68026         ymp-cray-unicos9.0.2.X.
68027         Combine two mostly-identical uses of alloca into one.
68028         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
68029
68030 2003-08-04  Dave Love  <d.love@dl.ac.uk>
68031
68032         [From Emacs.]
68033
68034         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
68035         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
68036         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
68037         obsolete NLIST_NAME_UNION.
68038         [__GNU__]: Undef BSD and FSCALE.
68039         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
68040
68041 2003-08-03  Paul Eggert  <eggert@twinsun.com>
68042
68043         * lib/stdbool_.h (_Bool): Make it signed char, instead of
68044         an enum type, so that it's guaranteed to promote to int.  See:
68045         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
68046
68047 2003-08-03  Karl Berry  <karl@gnu.org>
68048
68049         * config/depcomp: update from automake.
68050
68051 2003-07-31  Paul Eggert  <eggert@twinsun.com>
68052
68053         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
68054         (strerror): Don't assume that a printable int fits in 14 bytes.
68055
68056 2003-07-31  Bruno Haible  <bruno@clisp.org>
68057
68058         * modules/getpass-gnu: New file.
68059         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
68060
68061 2003-07-31  Bruno Haible  <bruno@clisp.org>
68062
68063         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
68064
68065 2003-07-24  Karl Berry  <karl@gnu.org>
68066
68067         * config/missing: update from automake.
68068
68069 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
68070             Bruno Haible  <bruno@clisp.org>
68071
68072         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
68073         * lib/getline.c (getline, getdelim): Likewise.
68074         Remove _GNU_SOURCE define; now it's defined in config.h through
68075         m4/getline.m4.
68076
68077 2003-07-23  Karl Berry  <karl@gnu.org>
68078
68079         * config/config.sub: update from prep.
68080
68081 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68082
68083         * modules/xalloc (Depends-on): Add exitfail.
68084         * modules/xmemcoll: Likewise.
68085
68086 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68087
68088         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
68089         over-parenthesization in macros.
68090
68091         Sync with coreutils.
68092
68093         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
68094         required by C99.
68095
68096         Use `exit_failure' for xalloc and xmemcoll instead of their own
68097         private exit-failure variables.
68098         * lib/xalloc.h (xalloc_exit_failure): Remove.
68099         * lib/xmalloc.c: Likewise.  Include exitfail.h.
68100         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
68101         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
68102         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
68103         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
68104
68105 2003-07-20  Jim Meyering  <jim@meyering.net>
68106
68107         * modules/closeout (Depends-on): Add exitfail.
68108         Suggestion from Bruno Haible.
68109
68110 2003-07-19  Karl Berry  <karl@gnu.org>
68111
68112         * config/config.sub: update from prep.
68113
68114 2003-07-18  Paul Eggert  <eggert@twinsun.com>
68115
68116         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
68117         Remove.
68118         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
68119         to test that it can stand by itself.  Include "exitfail.h".
68120         Clients should set exit_failure instead.
68121         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
68122
68123 2003-07-18  Bruno Haible  <bruno@clisp.org>
68124
68125         * modules/getndelim2: New file.
68126         * modules/getline: Share files with module getndelim2.
68127         * modules/getnline: Depend on getndelim2 instead of sharing files with
68128         it. Add getnline.c to lib_SOURCES.
68129         * MODULES.html.sh (func_all_modules): Add getndelim2.
68130
68131 2003-07-18  Bruno Haible  <bruno@clisp.org>
68132
68133         * m4/getndelim2.m4: New file.
68134         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
68135         invoke gl_PREREQ_GETNDELIM2.
68136         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
68137         gl_PREREQ_GETNDELIM2.
68138         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
68139         gl_GETNDELIM2.
68140
68141 2003-07-18  Bruno Haible  <bruno@clisp.org>
68142
68143         * lib/getndelim2.h: New file.
68144         * lib/getndelim2.c: Make into a module of its own. Include config.h,
68145         getndelim2.h.
68146         (getndelim2): Make non-static. Change return type to ssize_t.
68147         * lib/getline.h: Change argument names.
68148         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
68149         * lib/getnline.c: Include getndelim2.h.
68150
68151 2003-07-18  Andreas Schwab  <schwab@suse.de>
68152
68153         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
68154
68155 2003-07-17  Karl Berry  <karl@gnu.org>
68156
68157         * config/config.sub: update from prep.
68158
68159 2003-07-17  Bruno Haible  <bruno@clisp.org>
68160
68161         * modules/getnline: New file.
68162         * modules/getline: Add lib/getndelim2.c to source file list.
68163         * MODULES.html.sh (func_all_modules): Add getnline.
68164
68165 2003-07-17  Bruno Haible  <bruno@clisp.org>
68166
68167         * m4/getnline.m4: New file.
68168
68169 2003-07-17  Bruno Haible  <bruno@clisp.org>
68170
68171         * m4/Makefile.am.in: Remove file.
68172         * m4/Makefile.am: Remove file.
68173         * m4/Makefile.in: Remove file.
68174
68175 2003-07-17  Bruno Haible  <bruno@clisp.org>
68176
68177         * lib/getnline.h: New file.
68178         * lib/getnline.c: New file.
68179         * lib/getndelim2.c: New file, extracted from getline.c.
68180         (getndelim2): Renamed from getdelim2, with added nmax argument.
68181         * lib/getline.c: Include getndelim2.c.
68182         (getdelim2): Moved out to getndelim2.c.
68183         (getline, getdelim): Update.
68184
68185 2003-07-17  Bruno Haible  <bruno@clisp.org>
68186
68187         * lib/Makefile.am: Remove file.
68188         * lib/Makefile.in: Remove file.
68189
68190 2003-07-17  Bruno Haible  <bruno@clisp.org>
68191
68192         * configure.in: Remove file.
68193         * Makefile.in: Remove file.
68194
68195 2003-07-17  Bruno Haible  <bruno@clisp.org>
68196
68197         * MODULES.html.sh: Put the </BODY> right before </HTML>.
68198
68199 2003-07-16  Karl Berry  <karl@gnu.org>
68200
68201         * config/srclist-update: was running fixlicense twice, which caused
68202                 texinfo.tex to be nullified for some reason.  Simplify,
68203                 $gplsrc is no longer needed as far as I can see?
68204
68205 2003-07-16  Jim Meyering  <jim@meyering.net>
68206
68207         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
68208
68209 2003-07-15  Paul Eggert  <eggert@twinsun.com>
68210
68211         * config/srclist.txt: Get the following files from gettext-runtime/intl
68212         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
68213         ref-del.sin.  From Bruno Haible.
68214         * config/srclist-update (fixfile): Change grep pattern again, since the
68215         previous fix didn't work (there was another trailing $).  Use
68216         '[$]' to escape the $s.
68217
68218 2003-07-15  Karl Berry  <karl@gnu.org>
68219
68220         * lib/vasnprintf.c: update from gettext.
68221
68222 2003-07-15  Karl Berry  <karl@gnu.org>
68223
68224         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
68225         gets expanded when surrounded by '$'.
68226
68227 2003-07-15  Jim Meyering  <jim@meyering.net>
68228
68229         * modules/save-cwd: Don't depend on error.  From Derek Price.
68230
68231 2003-07-15  Jim Meyering  <jim@meyering.net>
68232
68233         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
68234
68235 2003-07-14  Simon Josefsson  <jas@extundo.com>
68236
68237         * modules/mempcpy: New file.
68238         * MODULES.html.sh (func_all_modules): Add mempcpy.
68239
68240 2003-07-14  Simon Josefsson  <jas@extundo.com>
68241
68242         * m4/mempcpy.m4: New file.
68243
68244 2003-07-14  Simon Josefsson  <jas@extundo.com>
68245
68246         * lib/mempcpy.h: New file.
68247         * lib/mempcpy.c: New file.
68248
68249 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68250
68251         * modules/getdate, modules/posixtm: Depend on mktime.
68252
68253 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68254
68255         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
68256         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
68257         unicodeio.c, unicodeio.h, unlocked-io.h:
68258         Switch from LGPL to GPL.
68259
68260 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68261
68262         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
68263         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
68264         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
68265         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
68266         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
68267         updated automatically by ../config/srclist-update.  This changes
68268         their license from LPGL to GPL.
68269
68270 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68271
68272         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
68273         assumed to refer to the root of the most recent stable gettext version.
68274         * config/srclistvars.sh: Add defaults for eggert.
68275         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
68276         Match "This program" as well as "The program".  This is needed
68277         for gettext.
68278
68279 2003-07-14  Jim Meyering  <jim@meyering.net>
68280
68281         Don't emit diagnostics.  Let callers do that.
68282         * lib/save-cwd.c: Don't include "error.h".
68283         (save_cwd): Don't call error.  Ensure that errno is valid
68284         when returning nonzero.
68285
68286         * lib/save-cwd.h (restore_cwd): Update prototype.
68287         * lib/save-cwd.c (restore_cwd): Remove two parameters.
68288         Simplify.  Don't call error upon failure.  Let callers do that.
68289         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
68290         when auditing is enabled.  But don't bother updating the #if.
68291
68292 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
68293
68294         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
68295         it breaks C++ compilation.
68296         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
68297
68298 2003-07-10  Simon Josefsson  <jas@extundo.com>
68299
68300         * modules/strchrnul (Makefile.am): Add strchrnul.h.
68301
68302 2003-07-10  Jim Meyering  <jim@meyering.net>
68303
68304         * m4/clock_time.m4: Remove trailing blank.
68305         * m4/intmax_t.m4: Likewise.
68306
68307 2003-07-10  Jim Meyering  <jim@meyering.net>
68308
68309         * lib/vasnprintf.c: Remove trailing blanks.
68310         Make cpp indentation consistent.
68311
68312 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68313
68314         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
68315         posixver.c, strftime.c, strnlen.c, strverscmp.c:
68316         Switch from LGPL to GPL.
68317
68318 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68319
68320         * config/srclist.txt: Sort sublists.  Add
68321         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
68322         that differ from gnulib for one reason or another; we'd like this list
68323         to be smaller but for now let's document what we have.
68324
68325 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68326
68327         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
68328         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
68329         and sweeter "eval x=$x".
68330         * config/srclist.txt: Get lib/argp* from glibc.
68331
68332 2003-07-07  Paul Eggert  <eggert@twinsun.com>
68333
68334         * lib/mktime.c: Fix some boundary cases and remove need for floating
68335         point.
68336
68337         Issue a compile-time diagnostic if time_t is floating point, or if
68338         two's complement arithmetic is not in effect, or if arithmetic
68339         right shift does not propagate the sign.  These assumptions were
68340         all in the original code but they weren't checked.
68341
68342         (TIME_T_MIDPOINT, verify): New macros.
68343         (__isleap): Remove; it has integer overflow problems.
68344         (leapyear): New function, without those problems.
68345         (ydhms_tm_diff): Remove; splitting into two parts.
68346         (ydhms_diff): New function, containing the arithmetic part of
68347         the old ydhms_tm_diff function.  Issue a compile-time
68348         diagnostic if we are not using C99 integer division.
68349         Avoid casts when possible.
68350         (guess_time_tm): New function, containing the checking part of
68351         the old ydhms_tm_diff function.  Return the new value, rather than
68352         the difference between it and the old.  Accept a new argument T
68353         so that *T specifies the old value.  Check for overflow in the result.
68354
68355         (__mktime_internal): Use a time_t offset, not a long int offset.
68356         This undoes the 2003-06-04 change, which is no longer needed now
68357         that we have better overflow checking.
68358         (localtime_offset): Likewise.
68359
68360         (__mktime_internal): Avoid harmful overflow on hosts where time_t
68361         and long are 64-bit but int is only 32-bit.
68362         (ydhms_diff): Use long int to store year1 and yday1.
68363         Issue a compile-time diagnostic if long int is not wide enough.
68364
68365         (__mktime_internal): Use long int to store adjusted year and yday.
68366         Use plain C rather than preprocessor commands, if that doesn't
68367         affect efficiency.
68368         Check for overflow (and try to repair) after each probe
68369         rather than checking only at the very end.  This avoids some bugs
68370         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
68371         does not equal GMT offset at maximum time).
68372         Use integer to check for overflow rather than floating point; this
68373         is more portable to non-IEEE hosts, and is a tad faster.
68374         When we detect that we are oscillating between two values,
68375         don't check whether tm_isdst has the requested value, since
68376         we already know the answer.  When tm_isdst has the wrong value,
68377         use a different heuristic to find the right one, based on the
68378         extreme values actually observed in practice in tz2003a,
68379         rather than the (overly optimistic) "previous 3 calendar quarters".
68380
68381         (not_equal_tm, print_tm, check_result): Use "const T" rather than
68382         "T const" to accommodate glibc style.
68383         (check_result): Use less-confusing report format.  "long" -> "long int.
68384         (main): Likewise.
68385         Don't loop if the iteration overflows time_t.
68386         Allow a negative step in the iteration.
68387
68388 2003-07-06  Karl Berry  <karl@gnu.org>
68389
68390         * config/depcomp: update from automake.
68391         * config/config.sub: update from prep.
68392
68393 2003-07-03  Karl Berry  <karl@gnu.org>
68394
68395         * config/config.guess: update from prep.
68396
68397 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68398
68399         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
68400         xreadlink.c now includes it unconditionally.
68401
68402 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68403
68404         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
68405         having it depend on HAVE_SYS_TYPES_H.
68406
68407 2003-07-01  Bruno Haible  <bruno@clisp.org>
68408
68409         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68410         <sys/types.h> should be sufficient.
68411         Reported by Paul Eggert.
68412
68413 2003-06-26  Karl Berry  <karl@gnu.org>
68414
68415         * config/depcomp: update from automake.
68416
68417 2003-06-26  Bruno Haible  <bruno@clisp.org>
68418
68419         * modules/human: Depend on module stdbool.
68420
68421 2003-06-25  Bruno Haible  <bruno@clisp.org>
68422
68423         * modules/readlink: New file.
68424         * modules/xreadlink: Depend on it.
68425         * MODULES.html.sh (func_all_modules): Add readlink.
68426
68427 2003-06-25  Bruno Haible  <bruno@clisp.org>
68428
68429         * m4/readlink.m4: New file.
68430
68431 2003-06-25  Bruno Haible  <bruno@clisp.org>
68432
68433         * lib/readlink.c: New file.
68434
68435 2003-06-22  Karl Berry  <karl@gnu.org>
68436
68437         * config/srclist.txt: update mkinstalldirs from automake.
68438         * config/mkinstalldirs: update.
68439
68440 2003-06-22  Bruno Haible  <bruno@clisp.org>
68441
68442         Portability to mingw32.
68443         * m4/ssize_t.m4: New file, from GNU gettext.
68444         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68445         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68446
68447 2003-06-22  Bruno Haible  <bruno@clisp.org>
68448
68449         * modules/safe-read: Add m4/ssize_t.m4.
68450         * modules/xreadlink: Add m4/ssize_t.m4.
68451
68452 2003-06-20  Bruno Haible  <bruno@clisp.org>
68453
68454         Assume C89, so PARAMS isn't needed.
68455         * lib/unicodeio.h (PARAMS): Remove.
68456         * lib/unicodeio.c: Don't use PARAMS.
68457
68458 2003-06-18  Karl Berry  <karl@gnu.org>
68459
68460         * config/config.{guess,sub}: update from prep.
68461
68462 2003-06-18  Jim Meyering  <jim@meyering.net>
68463
68464         Merge changes from coreutils.
68465         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68466         Remove explicit declarations of xmalloc and realloc.
68467         Include xalloc.h.
68468         (read_utmp): Remove anachronistic cast of xmalloc.
68469
68470 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68471
68472         Assume C89, so PARAMS isn't needed.
68473         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68474         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68475         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68476         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68477         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68478         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68479         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68480         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68481         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68482         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68483         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68484         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68485         no longer needed. Anyway, config.h should always be included before any
68486         other file.
68487
68488 2003-06-11  Simon Josefsson  <jas@extundo.com>
68489
68490         * modules/sysexits: New file.
68491         * MODULES.html.sh (func_all_modules): Add sysexits.
68492
68493 2003-06-11  Simon Josefsson  <jas@extundo.com>
68494
68495         * lib/sysexit_.h: New file.
68496
68497 2003-06-11  Derek Price  <derek@ximbiot.com>
68498
68499         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68500         necessary.
68501
68502 2003-06-11  Bruno Haible  <bruno@clisp.org>
68503
68504         * m4/sysexits.m4: New file.
68505
68506 2003-06-10  Simon Josefsson  <jas@extundo.com>
68507
68508         * lib/argp.h: New file, from glibc.
68509         * lib/argp-ba.c: New file, from glibc.
68510         * lib/argp-eexst.c: New file, from glibc.
68511         * lib/argp-fmtstream.c: New file, from glibc.
68512         * lib/argp-fmtstream.h: New file, from glibc.
68513         * lib/argp-fs-xinl.c: New file, from glibc.
68514         * lib/argp-help.c: New file, from glibc.
68515         * lib/argp-namefrob.h: New file, from glibc.
68516         * lib/argp-parse.c: New file, from glibc.
68517         * lib/argp-pv.c: New file, from glibc.
68518         * lib/argp-pvh.c: New file, from glibc.
68519         * lib/argp-xinl.c: New file, from glibc.
68520
68521 2003-06-10  Simon Josefsson  <jas@extundo.com>
68522
68523         * modules/strchrnul: New file.
68524
68525 2003-06-10  Simon Josefsson  <jas@extundo.com>
68526
68527         * modules/argp: New file.
68528
68529 2003-06-10  Simon Josefsson  <jas@extundo.com>
68530
68531         * m4/strchrnul.m4: New file.
68532
68533 2003-06-10  Simon Josefsson  <jas@extundo.com>
68534
68535         * lib/strchrnul.h: New file.
68536         * lib/strchrnul.c: New file.
68537
68538 2003-06-10  Bruno Haible  <bruno@clisp.org>
68539
68540         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68541
68542 2003-06-07  Karl Berry  <karl@gnu.org>
68543
68544         * config/config.{guess,sub}: update from prep.
68545
68546 2003-06-07  Jim Meyering  <jim@meyering.net>
68547
68548         * modules/strtod: Use $(...) notation, not @...@ for
68549         AC_REPLACE'd variables.
68550         * modules/localcharset: Likewise.
68551
68552 2003-06-07  Jim Meyering  <jim@meyering.net>
68553
68554         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68555         in place of my name in the copyright comment.
68556         Remove definition and uses of __P.
68557
68558         From coreutils.
68559         * lib/stat.c: Don't declare xmalloc explicitly.
68560         Instead, include "xalloc.h".
68561         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68562         xrealloc, and xcalloc return values.
68563         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68564         Improve comment.
68565         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68566
68567 2003-06-07  Bruno Haible  <bruno@clisp.org>
68568
68569         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68570         avoid AC_CONFIG_LINKS.
68571         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68572         fnmatch.h, to avoid AC_CONFIG_LINKS.
68573         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68574
68575 2003-06-07  Bruno Haible  <bruno@clisp.org>
68576
68577         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68578         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68579         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68580         directory.
68581         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68582         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68583         directory.
68584
68585 2003-06-06  Jim Meyering  <jim@meyering.net>
68586
68587         Merge from coreutils.
68588         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68589         Consolidate declarations and initializations of *_base* locals.
68590
68591         Merge from coreutils.
68592         This avoids a core dump on systems without GNU putenv,
68593         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68594         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68595         (unsetenv): New static function, from GNU libc.
68596         (rpl_putenv): Use it.
68597
68598         * lib/modechange.c: Remove trailing blanks.
68599
68600         Merge from coreutils.
68601         * lib/fsusage.c: Remove declaration of statfs.
68602         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68603
68604         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68605
68606 2003-06-06  Jim Meyering  <jim@meyering.net>
68607
68608         * lib/stdbool_.h: Renamed from stdbool.h.in.
68609
68610 2003-06-06  Jim Meyering  <jim@meyering.net>
68611             Bruno Haible  <bruno@clisp.org>
68612
68613         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68614         Adjust Makefile.am snippet not to redirect directly to target.
68615         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68616
68617 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68618
68619         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68620         mismatch, look in future quarters as well as past.  This fixes a
68621         bug when processing fall-backwards gaps immediately after a long
68622         period of daylight-saving time.
68623
68624         * lib/mktime.c: Assume freestanding C89 or better.
68625         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68626         (__P): Remove; not used.
68627         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68628         (mktime, not_equal_tm, print_tm, check_result,
68629         main): Use prototypes.  Use const * where appropriate.
68630         (main): Fix typo in testing code that uncovered by above changes.
68631         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68632
68633 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68634
68635         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68636         locale.h, localeconv.  This merges changes from coreutils.
68637
68638         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68639         It can be removed after the next Autoconf is released.
68640         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68641         needed.
68642
68643 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68644
68645         * lib/mktime.c: Fix Debian bug 177940
68646         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68647         (localtime_offset): Now long int, not time_t, because we want it
68648         to be guaranteed to be signed.  All uses changed.
68649         (__mktime_internal): If overflow would occur when adding offset,
68650         don't add it.
68651
68652         Merge 'human' changes from coreutils.  Rewrite to support
68653         locale-specific notations like thousands separators.
68654         * lib/human.c: Simplify authorship notice.
68655         Include human.h immediately after config.h.
68656         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68657         <limits.h>: Do not include, since human.h does.
68658         (SIZE_MAX, UINTMAX_MAX): New macros.
68659         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68660         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68661         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68662         (power_letter): Renamed from suffixes.
68663         (generate_suffix_backwards): Remove.
68664         (adjust_value): Now takes int style (because of human.h changes)
68665         and long double value (for greater precision on some platforms).
68666         (group_number): New function.
68667         (human_readable): Use it.  Use integer options, not enum.
68668         Put the options before the sizes in the arg list.
68669         Support all the new options.
68670         The old human_readable function has been removed;
68671         use inttostr.h instead.
68672         (human_readable, default_block_size, humblock):
68673         Use uintmax_t, not int, for block sizes.
68674         (human_readable_inexact, block_size_types): Remove.
68675         (block_size_opts): New constant.
68676         (human_options): Renamed from human_block_size, with new signature
68677         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68678         * lib/human.h: Add copyright and authorship notice.
68679         Include <limits.h> and <stdbool.h> unconditionally.
68680         (PARAMS): Remove.  All uses removed.
68681         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68682         (enum human_inexact_style): Remove tag; now a nameless enum.
68683         (human_floor, human_ceiling, human_round_to_even): Now have
68684         values 2, 0, 1 rather than -1, 1, 0.
68685         (human_group_digits, human_suppress_point_zero, human_autoscale,
68686         human_base_1024, human_SI, human_B): New constants.
68687         (human_readable_inexact, human_block_size): Remove.
68688         (human_readable): Size args are now uintmax_t, not int.
68689         (human_options): New decl.
68690
68691         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68692         unnecessary now that we assume C89 or better.  This change
68693         imported from coreutils.
68694
68695         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68696         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68697         in the 2003-05-30 sync from glibc.
68698
68699         .h files should stand alone, but we shouldn't include <sys/types.h>
68700         if we can get away with just <stddef.h>.
68701
68702         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68703         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68704         rather than <sys/types.h>, as we merely need size_t.
68705         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68706         to get size_t.
68707         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68708         Include <stdio.h>, to get FILE.
68709         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68710         memcasecmp.h has included <stddef.h> and all we need is size_t.
68711         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68712         our interface, instead of including <sys/types.h>
68713
68714 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68715
68716         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68717         now, as glibc mktime is buggy on non-glibc systems.
68718
68719 2003-06-03  Karl Berry  <karl@gnu.org>
68720
68721         * config/config.sub: update from prep.
68722
68723 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68724
68725         [from coreutils]
68726         Fix some minor time-related bugs with POSIX time arguments.
68727         Some valid time stamps were being rejected (notably -1, and
68728         time stamps before 1900 on 64-bit hosts).  And some invalid
68729         time stamps were being accepted, e.g. September 31.
68730
68731         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68732         that we can return (time_t) -1 successfully.
68733         * lib/posixtm.c: Likewise.
68734         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68735         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68736         (t): Remove static var.
68737         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68738         of static var.  All uses changed.
68739         (year): Do not reject years before 1900; they can occur with
68740         64-bit time_t.
68741         (posix_time_parse): Do not check for out-of-range components;
68742         that is now the caller's responsibility, since our checks were
68743         only approximations.
68744         (posixtime): Use mktime to check for out-of-range components,
68745         since it knows them exactly.
68746         If mktime returns (time_t) -1, check whether an error actually occurred
68747         by invoking localtime on -1.
68748         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68749         posixtime failures better.
68750         Improve the test data (in comments only).
68751
68752 2003-06-02  Karl Berry  <karl@gnu.org>
68753
68754         * config/mkinstalldirs (version): new variable.
68755         (--version): new option.
68756         (usage): improve message.
68757
68758 2003-05-30  Karl Berry  <karl@gnu.org>
68759
68760         * lib/mktime.c: update from libc.
68761
68762 2003-05-30  Bruno Haible  <bruno@clisp.org>
68763
68764         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68765         * config/config.rpath: Upgrade to gettext-0.12.1.
68766
68767 2003-05-30  Bruno Haible  <bruno@clisp.org>
68768
68769         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68770         * m4/nls.m4: New file, from gettext-0.12.1.
68771         * m4/po.m4: New file, from gettext-0.12.1.
68772         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68773
68774 2003-05-30  Bruno Haible  <bruno@clisp.org>
68775
68776         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68777         * lib/localcharset.h: Likewise.
68778         * lib/localcharset.c: Likewise.
68779
68780 2003-05-29  Karl Berry  <karl@gnu.org>
68781
68782         * config/config.rpath: update from gettext.
68783
68784 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68785
68786         Assume the headers required for C89 freestanding compilers.
68787         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68788         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68789         * m4/human.m4 (gl_HUMAN): Likewise.
68790         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68791         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68792         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68793         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68794         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68795         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68796
68797 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68798
68799         Assume the headers required for C89 freestanding compilers.
68800         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68801         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68802         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68803         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68804         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68805         define, since <limits.h> is guaranteed to do that.
68806         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68807         * lib/exclude.c: Include <stdbool.h> unconditionally.
68808         * lib/tempname.c: Include <stddef.h> unconditionally.
68809         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68810         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68811         <stddef.h> does that.
68812         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68813         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68814         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68815         needed.
68816         * lib/xstrtol.c: Likewise.
68817         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68818         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68819
68820         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68821         warnings on some platforms.
68822
68823         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68824         arbitrarily.
68825
68826 2003-05-26  Jim Meyering  <jim@meyering.net>
68827
68828         Merge in a change from coreutils:
68829         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68830         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68831         that condition, rather than `-1' which is slightly misleading.
68832         Change the name of the cache variable to have the gl_ prefix.
68833         Prompted by a patch from Richard Dawe for DJGPP.
68834
68835 2003-05-24  Karl Berry  <karl@gnu.org>
68836
68837         * config/config.guess: update from prep.
68838
68839 2003-05-22  Karl Berry  <karl@gnu.org>
68840
68841         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68842
68843 2003-05-20  Karl Berry  <karl@gnu.org>
68844
68845         * config/config.guess: update from prep.
68846
68847 2003-05-18  Karl Berry  <karl@gnu.org>
68848
68849         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68850         might actually be set by the user.
68851
68852         * config/depcomp, install-sh, mdate-sh: update from automake.
68853
68854 2003-05-17  Bruno Haible  <bruno@clisp.org>
68855
68856         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68857         invalid expansion for AC_EGREP_CPP.
68858         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68859         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68860         Suggested by Akim Demaille <akim@epita.fr> in
68861         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68862
68863 2003-05-12  Jim Meyering  <jim@meyering.net>
68864
68865         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68866         the space-padded-by-default conversion specifiers, %e, %k, %l.
68867
68868 2003-05-12  Bruno Haible  <bruno@clisp.org>
68869
68870         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68871         the string is longer than 4 KB.
68872
68873 2003-05-11  Karl Berry  <karl@gnu.org>
68874
68875         * config/config.{guess,sub}: update from prep.
68876
68877 2003-05-09  Bruno Haible  <bruno@clisp.org>
68878
68879         * modules/error: Add m4/strerror_r.m4 to file list.
68880
68881 2003-05-03  Bruno Haible  <bruno@clisp.org>
68882
68883         Upgrade to Unicode-4.0.
68884         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68885         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68886         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68887         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68888         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68889         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68890         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68891         Change width of U+E0100..U+E01EF from 1 to 0.
68892
68893 2003-04-25  Jim Meyering  <jim@meyering.net>
68894
68895         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68896         of type size_t, not int.
68897
68898 2003-04-25  Bruno Haible  <bruno@clisp.org>
68899
68900         * lib/copy-file.c: Include <stddef.h>, for size_t.
68901
68902 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68903
68904         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68905         code which expansion is under static control.  Patch imported from
68906         Akim Demaille's patch to Bison; see
68907         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68908
68909 2003-04-14  Bruno Haible  <bruno@clisp.org>
68910
68911         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68912
68913 2003-04-11  Jim Meyering  <jim@meyering.net>
68914
68915         Merge changes from Coreutils.
68916
68917         2003-03-22  Jim Meyering  <jim@meyering.net>
68918
68919         * lib/strftime.c (widen): Cast alloca return value to proper type.
68920
68921         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68922
68923         From GNU libc.
68924         * lib/strftime.c (my_strftime): Handle very large width
68925         specifications for numeric values correctly.  Improve checks for
68926         overflow.
68927
68928         2003-01-19  Jim Meyering  <jim@meyering.net>
68929
68930         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68931         definitions.
68932         (nl_get_alt_digit) [! defined my_strftime]: Define.
68933         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68934         _nl_get_alt_digit and _nl_get_walt_digit.
68935
68936         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68937         libc. These changes have no effect outside of _LIBC.
68938
68939 2003-04-10  Bruno Haible  <bruno@clisp.org>
68940
68941         * modules/findprog: New file.
68942         * MODULES.html.sh (func_all_modules): Add it.
68943
68944 2003-04-10  Bruno Haible  <bruno@clisp.org>
68945
68946         * m4/findprog.m4: New file.
68947         * m4/eaccess.m4: New file.
68948
68949 2003-04-10  Bruno Haible  <bruno@clisp.org>
68950
68951         * lib/findprog.h: New file, from GNU gettext.
68952         * lib/findprog.c: New file, from GNU gettext.
68953
68954 2003-04-05  Jim Meyering  <jim@meyering.net>
68955
68956         Merge changes from Coreutils.
68957
68958         * lib/exclude.h (PARAMS): Remove definition and uses.
68959         * lib/exclude.c: Remove uses of `PARAMS'.
68960
68961         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68962         Add test-cases for DOS filenames. Declare program_name.
68963         (main): Set up program_name.  Patch by Rich Dawe.
68964
68965         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68966         error from mntctl.
68967         Use mntctl's return value to drive the entry-processing loop, since
68968         we can't rely on the value of the vmt_length member in the last
68969         entry.  On some systems doing so could result in exhausting
68970         virtual memory.  Based in part on a patch from Mike Jetzer.
68971
68972 2003-04-04  Bruno Haible  <bruno@clisp.org>
68973
68974         * modules/linebreak: New file.
68975         * MODULES.html.sh (func_all_modules): Add it.
68976
68977 2003-04-04  Bruno Haible  <bruno@clisp.org>
68978
68979         * m4/linebreak.m4: New file.
68980
68981 2003-04-04  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/linebreak.h: New file, from GNU gettext.
68984         * lib/linebreak.c: New file, from GNU gettext with slight
68985         modifications.
68986         * lib/lbrkprop.h: New file, from GNU gettext.
68987
68988 2003-04-03  Bruno Haible  <bruno@clisp.org>
68989
68990         * modules/utf8-ucs4: New file.
68991         * modules/utf16-ucs4: New file.
68992         * modules/ucs4-utf8: New file.
68993         * modules/ucs4-utf16: New file.
68994         * MODULES.html.sh (func_all_modules): Add them.
68995
68996 2003-04-03  Bruno Haible  <bruno@clisp.org>
68997
68998         * m4/utf-ucs4.m4: New file.
68999         * m4/ucs4-utf.m4: New file.
69000
69001 2003-04-03  Bruno Haible  <bruno@clisp.org>
69002
69003         * lib/utf8-ucs4.h: New file, from GNU gettext.
69004         * lib/utf16-ucs4.h: New file, from GNU gettext.
69005         * lib/ucs4-utf8.h: New file, from GNU gettext.
69006         * lib/ucs4-utf16.h: New file, from GNU gettext.
69007
69008 2003-04-02  Bruno Haible  <bruno@clisp.org>
69009
69010         * modules/binary-io: New file.
69011         * MODULES.html.sh (func_all_modules): Add it.
69012
69013 2003-04-02  Bruno Haible  <bruno@clisp.org>
69014
69015         * lib/binary-io.h: New file, from GNU gettext.
69016
69017 2003-04-01  Bruno Haible  <bruno@clisp.org>
69018
69019         * modules/pathname: New file.
69020         * MODULES.html.sh (func_all_modules): Add it.
69021
69022 2003-04-01  Bruno Haible  <bruno@clisp.org>
69023
69024         * lib/pathname.h: New file, from GNU gettext.
69025         * lib/concatpath.c: New file, from GNU gettext.
69026
69027 2003-03-30  Bruno Haible  <bruno@clisp.org>
69028
69029         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
69030
69031 2003-03-30  Bruno Haible  <bruno@clisp.org>
69032
69033         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
69034         function chown() doesn't exist.
69035
69036 2003-03-28  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/copy-file: New file.
69039         * MODULES.html.sh (func_all_modules): Add it.
69040
69041 2003-03-28  Bruno Haible  <bruno@clisp.org>
69042
69043         * m4/copy-file.m4: New file.
69044
69045 2003-03-28  Bruno Haible  <bruno@clisp.org>
69046
69047         * lib/copy-file.h: New file, from GNU gettext.
69048         * lib/copy-file.c: New file, from GNU gettext.
69049
69050 2003-03-18  Jim Meyering  <jim@meyering.net>
69051
69052         * lib/quote.c (quote_n): Fix typo in comment.
69053
69054 2003-03-18  Bruno Haible  <bruno@clisp.org>
69055
69056         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
69057         checking.
69058         * m4/onceonly_2_57.m4: Likewise.
69059
69060 2003-03-17  Bruno Haible  <bruno@clisp.org>
69061
69062         * m4/onceonly.m4: Require autoconf 2.54 or newer.
69063         (m4_quote): Remove macro.
69064         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
69065
69066 2003-03-14  Jim Meyering  <jim@meyering.net>
69067
69068         Merge changes from Coreutils.
69069         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
69070         to be const, in order to avoid warnings.
69071         (obstack_room): Likewise.
69072         (obstack_empty_p): Likewise.
69073
69074 2003-03-14  Bruno Haible  <bruno@clisp.org>
69075
69076         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
69077         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
69078
69079 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69080
69081         Merge changes from Bison.
69082         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
69083         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
69084         when compiling Bison 1.875's `bitset bset = obstack_alloc
69085         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
69086         * lib/hash.c: Include <stdbool.h> unconditionally.
69087
69088 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69089
69090         * m4/onceonly.m4 (m4_quote): New macro.
69091         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
69092         Quote AC_FOREACH variable-expansions properly.
69093
69094 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69095
69096         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
69097
69098 2003-03-09  Paul Eggert  <eggert@twinsun.com>
69099
69100         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
69101         Reported by Bruce Becker; see:
69102         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
69103
69104 2003-03-03  Paul Eggert  <eggert@twinsun.com>
69105             Bruno Haible  <bruno@clisp.org>
69106
69107         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
69108         Reported by John Hughes, see
69109         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
69110
69111 2003-02-20  Bruno Haible  <bruno@clisp.org>
69112
69113         * MODULES.html.sh (func_all_modules): Add poll.
69114
69115 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69116
69117         * modules/poll: New file.
69118
69119 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69120
69121         * lib/poll_.h: New file.
69122         * lib/poll.c: New file.
69123
69124 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69125
69126         * m4/poll.m4: New file.
69127
69128 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69129
69130         * modules/mathl: New file.
69131
69132 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69133
69134         * lib/mathl.h: New file.
69135         * lib/acosl.c: New file.
69136         * lib/asinl.c: New file.
69137         * lib/atanl.c: New file.
69138         * lib/ceill.c: New file.
69139         * lib/cosl.c: New file.
69140         * lib/expl.c: New file.
69141         * lib/floorl.c: New file.
69142         * lib/frexpl.c: New file.
69143         * lib/ldexpl.c: New file.
69144         * lib/logl.c: New file.
69145         * lib/sincosl.c: New file.
69146         * lib/sinl.c: New file.
69147         * lib/sqrtl.c: New file.
69148         * lib/tanl.c: New file.
69149         * lib/trigl.c: New file.
69150         * lib/trigl.h: New file.
69151
69152 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69153
69154         * m4/mathl.m4: New file.
69155
69156 2003-02-18  Bruno Haible  <bruno@clisp.org>
69157
69158         * MODULES.html.sh (func_all_modules): Add mathl.
69159
69160 2003-02-17  Bruno Haible  <bruno@clisp.org>
69161
69162         * modules/mkdtemp: New module.
69163         * MODULES.html.sh (func_all_modules): Add it.
69164
69165 2003-02-17  Bruno Haible  <bruno@clisp.org>
69166
69167         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
69168
69169 2003-02-17  Bruno Haible  <bruno@clisp.org>
69170
69171         * lib/mkdtemp.h: New file, from GNU gettext.
69172         * lib/mkdtemp.c: New file, from GNU gettext.
69173
69174 2003-02-02  Jim Meyering  <jim@meyering.net>
69175
69176         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
69177         e.g. glibc-2.2.93.
69178
69179 2003-01-31  Bruno Haible  <bruno@clisp.org>
69180
69181         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
69182         'rpl_rename'.
69183         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
69184         'rpl_strnlen'.
69185         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
69186         'rpl_strtod'.
69187         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
69188         'rpl_utime'.
69189
69190 2003-01-31  Bruno Haible  <bruno@clisp.org>
69191
69192         * lib/rename.c: #undef rename before defining rpl_rename.
69193         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
69194
69195 2003-01-30  Bruno Haible  <bruno@clisp.org>
69196
69197         * modules/vasnprintf, modules/vasprintf: New modules.
69198         * MODULES.html.sh (func_all_modules): Add them.
69199
69200 2003-01-30  Bruno Haible  <bruno@clisp.org>
69201
69202         * m4/signed.m4: New file, from GNU gettext.
69203         * m4/longdouble.m4: New file, from GNU gettext.
69204         * m4/wchar_t.m4: New file, from GNU gettext.
69205         * m4/wint_t.m4: New file, from GNU gettext.
69206         * m4/vasnprintf.m4: New file.
69207         * m4/vasprintf.m4: New file.
69208
69209 2003-01-30  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/printf-args.h: New file, from GNU gettext.
69212         * lib/printf-args.c: New file, from GNU gettext.
69213         * lib/printf-parse.h: New file, from GNU gettext.
69214         * lib/printf-parse.c: New file, from GNU gettext.
69215         * lib/vasnprintf.h: New file, from GNU gettext.
69216         * lib/vasnprintf.c: New file, from GNU gettext.
69217         * lib/asnprintf.c: New file, from GNU gettext.
69218         * lib/vasprintf.h: New file, from GNU gettext with modifications.
69219         * lib/vasprintf.c: New file, from GNU gettext.
69220         * lib/asprintf.c: New file, from GNU gettext.
69221
69222 2003-01-29  Bruno Haible  <bruno@clisp.org>
69223
69224         * modules/stpncpy: New module.
69225         * MODULES.html.sh (func_all_modules): Add it.
69226
69227 2003-01-29  Bruno Haible  <bruno@clisp.org>
69228
69229         * m4/stpncpy.m4: New file.
69230
69231 2003-01-29  Bruno Haible  <bruno@clisp.org>
69232
69233         * lib/stpncpy.h: New file, from GNU gettext with modifications.
69234         * lib/stpncpy.c: New file, from GNU gettext with modifications.
69235
69236 2003-01-28  Bruno Haible  <bruno@clisp.org>
69237
69238         * modules/c-ctype: New module.
69239         * MODULES.html.sh (func_all_modules): Add it.
69240
69241 2003-01-28  Bruno Haible  <bruno@clisp.org>
69242
69243         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
69244         Paul Eggert.
69245         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
69246         Paul Eggert.
69247
69248 2003-01-27  Bruno Haible  <bruno@clisp.org>
69249
69250         * modules/xsetenv: New module.
69251         * MODULES.html.sh (func_all_modules): Add it.
69252
69253 2003-01-27  Bruno Haible  <bruno@clisp.org>
69254
69255         * lib/xsetenv.h: New file, from GNU gettext.
69256         * lib/xsetenv.c: New file, from GNU gettext.
69257
69258 2003-01-23  Jim Meyering  <jim@meyering.net>
69259
69260         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
69261         from working on systems without dirfd (at least Irix and OSF1/Tru64).
69262
69263 2003-01-23  Bruno Haible  <bruno@clisp.org>
69264
69265         * modules/minmax: New module.
69266         * MODULES.html.sh (func_all_modules): Add it.
69267
69268 2003-01-23  Bruno Haible  <bruno@clisp.org>
69269
69270         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
69271         Eggert.
69272
69273 2003-01-22  Bruno Haible  <bruno@clisp.org>
69274
69275         * modules/exit: New module.
69276         * MODULES.html.sh (func_all_modules): Add it.
69277
69278 2003-01-22  Bruno Haible  <bruno@clisp.org>
69279
69280         * lib/exit.h: New file, from GNU gettext.
69281
69282 2003-01-19  Bruno Haible  <bruno@clisp.org>
69283
69284         * gnulib-tool: Recognize option --extract-maintainer.
69285         (func_get_maintainer): New function.
69286         * modules/*: Add Maintainer entry.
69287
69288 2003-01-16  Jim Meyering  <jim@meyering.net>
69289
69290         * m4/regex.m4: The `regex' struct is both input and output.
69291         Initialize it before each use.  Patch by Tim Waugh.
69292
69293 2003-01-16  Bruno Haible  <bruno@clisp.org>
69294
69295         * MODULES.html.sh: Add a table of contents. Add the module name as
69296         leftmost column. Add hyperlinks.
69297
69298 2003-01-15  Bruno Haible  <bruno@clisp.org>
69299
69300         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
69301
69302 2003-01-15  Bruno Haible  <bruno@clisp.org>
69303
69304         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
69305         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
69306         suffix.
69307
69308 2003-01-15  Bruno Haible  <bruno@clisp.org>
69309
69310         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
69311
69312 2003-01-15  Bruno Haible  <bruno@clisp.org>
69313
69314         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
69315         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
69316
69317 2003-01-14  Jim Meyering  <jim@meyering.net>
69318
69319         * lib/same.c (same_name): Tweak a comment.
69320
69321 2003-01-14  Bruno Haible  <bruno@clisp.org>
69322
69323         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
69324         when a string comparison is sufficient.
69325
69326 2003-01-14  Bruno Haible  <bruno@clisp.org>
69327
69328         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
69329         'unsigned int'.
69330
69331 2003-01-14  Bruno Haible  <bruno@clisp.org>
69332
69333         * lib/hash-pjw.c: Add comment about low quality of this function.
69334
69335 2003-01-13  Bruno Haible  <bruno@clisp.org>
69336
69337         * modules/stpcpy: Distribute lib/stpcpy.h.
69338         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
69339
69340 2003-01-13  Bruno Haible  <bruno@clisp.org>
69341
69342         * modules/*: Add a description.
69343         * modules/strpbrk: Fix Makefile.am snippet.
69344         * modules/strtoimax: Fix dependencies.
69345         * modules/strtoumax: Likewise.
69346
69347 2003-01-13  Bruno Haible  <bruno@clisp.org>
69348
69349         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
69350         * modules/alloca (Makefile.am): All object files depend on alloca.h.
69351         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
69352
69353 2003-01-13  Bruno Haible  <bruno@clisp.org>
69354
69355         * gnulib-tool (func_create_testdir): Store config/* files in the main
69356         directory.
69357         * config.rpath: Move to ...
69358         * config/config.rpath: ... here.
69359         * modules/gettext: Contains config/config.rpath, not config.rpath.
69360         * modules/iconv: Likewise.
69361
69362 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69363
69364         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69365         to avoid collisions with libcurses and libreadline.
69366
69367         * m4/getstr.m4: Remove.
69368         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
69369
69370 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69371
69372         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69373         to avoid collisions with libcurses and libreadline.
69374
69375         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
69376         * lib/getstr.h, getstr.c: Remove.
69377         * lib/getline.c: Include "getline.h", to check interface.
69378         Move body of old getstr.c here: this defines MIN_CHUNK and
69379         declares getdelim2, which is renamed from getstr.
69380         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
69381
69382         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
69383         All uses changed.
69384         * lib/linebuffer.h: Likewise.
69385         (readline): Remove backward-compatibility macro.
69386
69387 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69388
69389         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69390         to avoid collisions with libcurses and libreadline.
69391         * getstr: Remove.
69392         * MODULES.html.sh: Remove getstr.
69393         * modules/getline: Depend on unlocked-io, not getstr.
69394
69395 2003-01-12  Jim Meyering  <jim@meyering.net>
69396
69397         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
69398
69399 2003-01-10  Bruno Haible  <bruno@clisp.org>
69400
69401         * modules/alloca: Change Makefile.am requirements. Simplify Include
69402         requirements. Add lib/alloca_.h to file list.
69403
69404 2003-01-10  Bruno Haible  <bruno@clisp.org>
69405
69406         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
69407
69408 2003-01-10  Bruno Haible  <bruno@clisp.org>
69409
69410         * lib/alloca_.h: New file.
69411         * lib/getdate.y: Unconditionally include alloca.h.
69412         * lib/makepath.c: Likewise.
69413         * lib/setenv.c: Likewise.
69414         * lib/userspec.c: Likewise.
69415
69416 2003-01-09  Karl Berry  <karl@gnu.org>
69417
69418         * MODULES.html.sh: include `dirname $0` in PATH, to find
69419         gnulib-tool.
69420
69421 2003-01-09  Bruno Haible  <bruno@clisp.org>
69422
69423         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69424         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69425
69426 2003-01-09  Bruno Haible  <bruno@clisp.org>
69427
69428         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69429
69430 2003-01-09  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/stdbool.h.in: New file.
69433
69434 2003-01-09  Bruno Haible  <bruno@clisp.org>
69435
69436         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69437         * MODULES.html.sh: Likewise.
69438
69439 2003-01-08  Jim Meyering  <jim@meyering.net>
69440
69441         * lib/full-write.c: Undefine and define-away `const' after inclusion
69442         of errno.h, not before.  Suggestion from Bruno Haible.
69443
69444 2003-01-08  Bruno Haible  <bruno@clisp.org>
69445
69446         * modules/full-read: Depend on full-write.
69447
69448 2003-01-08  Bruno Haible  <bruno@clisp.org>
69449
69450         * lib/safe-read.c: Include specification header first, to ensure its
69451         selfcontainedness.
69452         * lib/full-write.c: Likewise.
69453
69454 2003-01-07  Jim Meyering  <jim@meyering.net>
69455
69456         * lib/full-write.c: Rework so that it may serve to define full_read,
69457         too.
69458         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
69459
69460 2003-01-07  Bruno Haible  <bruno@clisp.org>
69461
69462         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69463         <inttypes.h>.
69464         * lib/xstrtol.h: Likewise.
69465         * lib/xstrtoimax.c: Likewise.
69466         * lib/xstrtoumax.c: Likewise.
69467         * lib/human.h: Likewise.
69468
69469         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69470         on systems that have <inttypes.h> but not <stdint.h>.
69471
69472 2003-01-07  Bruno Haible  <bruno@clisp.org>
69473
69474         * MODULES.html.sh: Add copyright notice.
69475         (missed_files): Omit CVS directory entries.
69476         (func_module): Make it work with sed-3.02.
69477         * MODULES.txt: Remove file.
69478
69479 2003-01-06  Jim Meyering  <jim@meyering.net>
69480
69481         * lib/version-etc.c: Update year in translatable copyright string.
69482
69483 2003-01-03  Karl Berry  <karl@gnu.org>
69484
69485         * config/config.{guess,sub}: update from prep.
69486
69487 2003-01-02  Karl Berry  <karl@gnu.org>
69488
69489         * doc/COPYING.DOC: belatedly updated to 1.2.
69490
69491 2003-01-01  Karl Berry  <karl@gnu.org>
69492
69493         * gnulib-tool (func_verify_module): report module name $module in
69494         error message, not $1.
69495         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69496         be created, only if it doesn't exist.
69497         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69498
69499 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69500
69501         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69502
69503 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69504
69505         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69506         memcmp if strcoll doesn't work.
69507
69508 2002-12-31  Bruno Haible  <bruno@clisp.org>
69509
69510         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69511         nonempty.
69512
69513 2002-12-31  Bruno Haible  <bruno@clisp.org>
69514
69515         * lib/memcoll.c (STRCOLL): New macro.
69516         (memcoll): Use it.
69517
69518 2002-12-31  Bruno Haible  <bruno@clisp.org>
69519
69520         * lib/localcharset.h: New file.
69521         * lib/localcharset.c: Include it.
69522         * lib/unicodeio.c: Likewise.
69523
69524 2002-12-31  Bruno Haible  <bruno@clisp.org>
69525
69526         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69527         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69528
69529 2002-12-31  Bruno Haible  <bruno@clisp.org>
69530
69531         * lib/getline.h: Include <stddef.h>, for size_t.
69532
69533         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69534         * lib/unicodeio.c: Don't include <stddef.h>.
69535
69536 2002-12-31  Bruno Haible  <bruno@clisp.org>
69537
69538         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69539         HAVE_TM_ZONE.
69540
69541 2002-12-24  Karl Berry  <karl@gnu.org>
69542
69543         * config/config.guess: update from prep.
69544
69545 2002-12-24  Bruno Haible  <bruno@clisp.org>
69546
69547         General infrasructure.
69548         * m4/README: Rewritten.
69549         * m4/onceonly.m4: New file.
69550         * m4/onceonly_2_57.m4: New file.
69551
69552         Module atexit.
69553         * m4/atexit.m4: New file.
69554
69555         Module strtod.
69556         * m4/strtod.m4: New file.
69557
69558         Module strtol.
69559         * m4/strtol.m4: New file.
69560
69561         Module strtoul.
69562         * m4/strtoul.m4: New file.
69563
69564         Module memchr.
69565         * m4/memchr.m4: New file.
69566
69567         Module memcmp.
69568         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69569         (jm_FUNC_MEMCMP): Invoke it.
69570
69571         Module memcpy.
69572         * m4/memcpy.m4: New file.
69573
69574         Module memmove.
69575         * m4/memmove.m4: New file.
69576
69577         Module memset.
69578         * m4/memset.m4: New file.
69579
69580         Module strcspn.
69581         * m4/strcspn.m4: New file.
69582
69583         Module strpbrk.
69584         * m4/strpbrk.m4: New file.
69585
69586         Module strstr.
69587         * m4/strstr.m4: New file.
69588
69589         Module strerror.
69590         * m4/strerror.m4: New file.
69591
69592         Module mktime.
69593         * m4/mktime.m4: Renamed from jm-mktime.m4.
69594         (gl_PREREQ_MKTIME): New macro.
69595         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69596
69597         Module malloc.
69598         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69599         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69600         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69601
69602         Module realloc.
69603         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69604         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69605         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69606
69607         Module strftime.
69608         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69609         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69610         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69611         gl_TM_GMTOFF.
69612         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69613
69614         Module xalloc.
69615         * m4/xalloc.m4: New file.
69616
69617         Module alloca.
69618         * m4/alloca.m4: New file.
69619
69620         Module putenv.
69621         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69622         (jm_FUNC_PUTENV): Invoke it.
69623
69624         Module setenv.
69625         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69626         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69627         when invoked twice.
69628         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69629         gt_FUNC_SETENV.
69630
69631         Module memrchr.
69632         * m4/memrchr.m4: New file.
69633
69634         Module stpcpy.
69635         * m4/stpcpy.m4: New file.
69636
69637         Module strcase.
69638         * m4/strcase.m4: New file.
69639
69640         Module strdup.
69641         * m4/strdup.m4: New file.
69642
69643         Module strnlen.
69644         * m4/strnlen.m4: New file.
69645
69646         Module strndup.
69647         * m4/strndup.m4: New file.
69648
69649         Module xstrtod.
69650         * m4/xstrtod.m4: New file.
69651
69652         Module xstrtol.
69653         * m4/xstrtol.m4: New file.
69654
69655         Module getdate.
69656         * m4/getdate.m4: New file.
69657
69658         Module unlocked-io.
69659         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69660         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69661         * m4/jm-glibc-io.m4n: Remove file.
69662
69663         Module long-options.
69664         * m4/long-options.m4: New file.
69665
69666         Module md5.
69667         * m4/md5.m4: New file.
69668
69669         Module sha.
69670         * m4/sha.m4: New file.
69671
69672         Module getstr.
69673         * m4/getstr.m4: New file.
69674
69675         Module getline.
69676         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69677         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69678         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69679         simply getline. Infoke gl_PREREQ_GETLINE.
69680
69681         Module obstack.
69682         * m4/obstack.m4: New file.
69683
69684         Module hash.
69685         * m4/hash.m4: New file.
69686
69687         Module readtokens.
69688         * m4/readtokens.m4: New file.
69689
69690         Module strverscmp.
69691         * m4/strverscmp.m4: New file.
69692
69693         Module stdbool.
69694         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69695         OSF/1.
69696
69697         Module strtoll.
69698         * m4/strtoll.m4: New file.
69699
69700         Module strtoull.
69701         * m4/strtoull.m4: New file.
69702
69703         Module strtoimax.
69704         * m4/strtoimax.m4: New file.
69705
69706         Module strtoumax.
69707         * m4/strtoumax.m4: New file.
69708
69709         Module xstrtoimax.
69710         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69711         jm_AC_PREREQ_XSTRTOIMAX.
69712         Moved the strtol prerequisites to strtol.m4.
69713         Moved the strtoll prerequisites to strtoll.m4.
69714         Moved the strtoimax prerequisites to strtoimax.m4.
69715
69716         Module xstrtoumax.
69717         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69718         jm_AC_PREREQ_XSTRTOUMAX.
69719         Moved the strtoul prerequisites to strtoul.m4.
69720         Moved the strtoull prerequisites to strtoull.m4.
69721         Moved the strtoumax prerequisites to strtoumax.m4.
69722
69723         Module chown.
69724         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69725         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69726
69727         Module dup2.
69728         * m4/dup2.m4: New file.
69729
69730         Module ftruncate.
69731         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69732         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69733
69734         Module getgroups.
69735         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69736         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69737
69738         Module gettimeofday.
69739         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69740         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69741         gl_PREREQ_GETTIMEOFDAY.
69742
69743         Module mkdir.
69744         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69745         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69746
69747         Module mkstemp.
69748         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69749         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69750         jm_AC_TYPE_UINTMAX_T.
69751         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69752
69753         Module stat.
69754         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69755         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69756
69757         Module lstat.
69758         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69759         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69760
69761         Module timespec.
69762         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69763         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69764         * m4/st_mtim.m4: Indentation.
69765
69766         Module nanosleep.
69767         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69768         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69769         gl_PREREQ_NANOSLEEP.
69770
69771         Module regex.
69772         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69773         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69774         (gl_REGEX): New macro.
69775
69776         Module rename.
69777         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69778         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69779
69780         Module rmdir.
69781         * m4/rmdir.m4: New file.
69782
69783         Module utime.
69784         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69785         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69786         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69787
69788         Module dirname.
69789         * m4/dirname.m4: New file.
69790
69791         Module getopt.
69792         * m4/getopt.m4: New file.
69793
69794         Module unistd-safer.
69795         * m4/unistd-safer.m4: New file.
69796
69797         Module fnmatch.
69798         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69799         declaration.
69800         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69801         (gl_FUNC_FNMATCH_POSIX): New macro.
69802         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69803         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69804         simply fnmatch.
69805
69806         Module exclude.
69807         * m4/exclude.m4: New file.
69808
69809         Module human.
69810         * m4/human.m4: New file.
69811
69812         Module acl.
69813         * m4/acl.m4: Nop.
69814
69815         Module backupfile.
69816         * m4/backupfile.m4: New file.
69817         * m4/d-ino.m4: Indentation.
69818
69819         Module fsusage.
69820         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69821         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69822         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69823
69824         Module dirfd.
69825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69826         requirements.
69827
69828         Module euidaccess.
69829         * m4/euidaccess.m4: New file.
69830
69831         Module file-type.
69832         * m4/file-type.m4: New file.
69833
69834         Module fileblocks.
69835         * m4/fileblocks.m4: New file.
69836
69837         Module filemode.
69838         * m4/filemode.m4: New file.
69839
69840         Module isdir.
69841         * m4/isdir.m4: New file.
69842
69843         Module lchown.
69844         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69845         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69846
69847         Module makepath.
69848         * m4/makepath.m4: New file.
69849
69850         Module modechange.
69851         * m4/modechange.m4: New file.
69852
69853         Module mountlist.
69854         * m4/mountlist.m4: New file.
69855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69856         Indentation.
69857
69858         Module path-concat.
69859         * m4/path-concat.m4: New file.
69860
69861         Module pathmax.
69862         * m4/pathmax.m4: New file.
69863
69864         Module same.
69865         * m4/same.m4: New file.
69866
69867         Module save-cwd.
69868         * m4/save-cwd.m4: New file.
69869
69870         Module savedir.
69871         * m4/savedir.m4: New file.
69872
69873         Module xgetcwd.
69874         * m4/xgetcwd.m4: New file.
69875         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69876
69877         Module xreadlink.
69878         * m4/xreadlink.m4: New file.
69879
69880         Module safe-read.
69881         * m4/safe-read.m4: New file.
69882
69883         Module safe-write.
69884         * m4/safe-write.m4: New file.
69885
69886         Module closeout.
69887         * m4/closeout.m4: New file.
69888
69889         Module stdio-safer.
69890         * m4/stdio-safer.m4: New file.
69891
69892         Module getpass.
69893         * m4/getpass.m4: New file.
69894
69895         Module getugroups.
69896         * m4/getugroups.m4: New file.
69897
69898         Module group-member.
69899         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69900         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69901
69902         Module idcache.
69903         * m4/idcache.m4: New file.
69904
69905         Module userspec.
69906         * m4/userspec.m4: New file.
69907
69908         Module gettime.
69909         * m4/clock_time.m4: New file.
69910         * m4/gettime.m4: New file.
69911
69912         Module settime.
69913         * m4/settime.m4: New file.
69914
69915         Module posixtm.
69916         * m4/posixtm.m4: New file.
69917
69918         Module gethostname.
69919         * m4/gethostname.m4: New file.
69920
69921         Module canon-host.
69922         * m4/canon-host.m4: New file.
69923
69924         Module gettext.
69925         * m4/codeset.m4: New file, from gettext-0.11.5.
69926         * m4/gettext.m4: New file, from gettext-0.11.5.
69927         * m4/glibc21.m4: New file, from gettext-0.11.5.
69928         * m4/iconv.m4: New file, from gettext-0.11.5.
69929         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69930         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69931         * m4/inttypes.m4: New file, from gettext-0.11.5.
69932         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69933         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69934         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69935         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69936         * m4/lib-link.m4: New file, from gettext-0.11.5.
69937         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69938         * m4/progtest.m4: New file, from gettext-0.11.5.
69939         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69940         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69941         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69942
69943         Module localcharset.
69944         * m4/localcharset.m4: New file.
69945
69946         Module hard-locale.
69947         * m4/hard-locale.m4: New file.
69948
69949         Module mbswidth.
69950         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69951         onceonly macros.
69952         * m4/mbrtowc.m4: Add comment.
69953
69954         Module memcasecmp.
69955         * m4/memcasecmp.m4: New file.
69956
69957         Module memcoll.
69958         * m4/memcoll.m4: New file.
69959
69960         Module unicodeio.
69961         * m4/unicodeio.m4: New file.
69962
69963         Module rpmatch.
69964         * m4/rpmatch.m4: New file.
69965
69966         Module yesno.
69967         * m4/yesno.m4: New file.
69968
69969         Module exitfail.
69970         * m4/exitfail.m4: New file.
69971
69972         Module c-stack.
69973         * m4/c-stack.m4 (gl_C_STACK): New macro.
69974         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69975
69976         Module error.
69977         * m4/error.m4 (gl_ERROR): New macro.
69978         (jm_PREREQ_ERROR): Use onceonly macros.
69979
69980         Module fatal.
69981         * m4/fatal.m4: New file.
69982
69983         Module getloadavg.
69984         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69985         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69986
69987         Module getpagesize.
69988         * m4/getpagesize.m4: New file.
69989
69990         Module getusershell.
69991         * m4/getusershell.m4: New file.
69992
69993         Module physmem.
69994         * m4/physmem.m4: New file.
69995
69996         Module posixver.
69997         * m4/posixver.m4: New file.
69998
69999         Module quotearg.
70000         * m4/quotearg.m4: New file.
70001
70002         Module quote.
70003         * m4/quote.m4: New file.
70004
70005         Module readutmp.
70006         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
70007
70008         Module sig2str.
70009         * m4/sig2str.m4: New file.
70010
70011         Other.
70012         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
70013         ulonglong.m4.
70014         * m4/intmax_t.m4: New file.
70015         * m4/d-type.m4: Indentation.
70016         * m4/jm-macros.m4: Update.
70017         * m4/prereq.m4 (jm_PREREQ): Update.
70018         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
70019         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
70020         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
70021         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
70022         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
70023         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
70024         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
70025         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
70026         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
70027         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
70028         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
70029         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
70030         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
70031         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
70032         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
70033         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
70034         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
70035         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
70036         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
70037
70038 2002-12-24  Bruno Haible  <bruno@clisp.org>
70039
70040         * MODULES.txt: Update according to m4/ changes.
70041
70042         Module gettext.
70043         * config.rpath: New file, from gettext-0.11.5.
70044
70045         * modules/*: New module descriptions.
70046         * gnulib-tool: New file.
70047         * MODULES.html.sh: New file.
70048
70049 2002-12-21  Karl Berry  <karl@gnu.org>
70050
70051         * doc/fdl.texi: update to version 1.2.
70052
70053 2002-12-19  Karl Berry  <karl@gnu.org>
70054
70055         * config/config.guess: update from prep.
70056
70057 2002-12-18  Bruno Haible  <bruno@clisp.org>
70058
70059         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
70060         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
70061
70062 2002-12-17  Bruno Haible  <bruno@clisp.org>
70063
70064         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
70065         stdlib.h, string.h.
70066
70067 2002-12-17  Bruno Haible  <bruno@clisp.org>
70068
70069         * lib/canon-host.c (strdup): Remove unused declaration.
70070
70071         * lib/fsusage.c: Include full_read.h.
70072         (get_fs_usage): Use full_read instead of safe_read.
70073
70074         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
70075
70076 2002-12-12  Karl Berry  <karl@gnu.org>
70077
70078         * config/config.guess: update from prep.
70079
70080 2002-12-11  Bruno Haible  <bruno@clisp.org>
70081
70082         * m4/setenv.m4: New file, from gettext-0.11.5.
70083
70084 2002-12-11  Bruno Haible  <bruno@clisp.org>
70085
70086         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
70087         not unsetenv().
70088         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
70089         modifications:
70090
70091         2002-12-11  Bruno Haible  <bruno@clisp.org>
70092
70093                 * setenv.c (alloca): Fall back to malloc.
70094                 (freea): New macro.
70095                 (setenv): Use freea() to free memory allocated with alloca().
70096
70097         2002-11-13  Bruno Haible  <bruno@clisp.org>
70098
70099                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
70100                 function declarations.
70101                 * unsetenv.c (unsetenv): Likewise.
70102
70103         2002-03-04  Bruno Haible  <bruno@clisp.org>
70104
70105                 Portability to AIX 4.3.3.
70106                 * unsetenv.c: New file, extracted from setenv.c.
70107                 * setenv.c: Move the unsetenv() function to unsetenv.c.
70108
70109         2001-12-20  Bruno Haible  <bruno@clisp.org>
70110
70111                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
70112                 use malloc instead. For SunOS 4.
70113
70114         2001-12-11  Bruno Haible  <bruno@clisp.org>
70115
70116                 * setenv.c: Declare alloca.
70117                 (compar_fn_t): New typedef.
70118                 (KNOWN_VALUE, STORE_VALUE): Use it.
70119
70120         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
70121         setenv.h.
70122
70123 2002-12-10  Paul Eggert  <eggert@twinsun.com>
70124
70125         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
70126         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
70127         Choose values that are less likely to collide with system fnmatch
70128         options.
70129         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
70130         defined (e.g., a pure POSIX system).
70131         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
70132         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
70133
70134 2002-12-06  Paul Eggert  <eggert@twinsun.com>
70135
70136         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
70137         a pain in practice to deal with generated m4 files.  This change
70138         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
70139
70140         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
70141         and jm-glibc-io.m4, as they are no longer a special case.
70142         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
70143         kludge and the auto-generation stuff.  Check only whether the
70144         functions are declared, not whether they exist, since older hosts
70145         that don't declare the functions can't use the optimization anyway.
70146
70147 2002-12-06  Jim Meyering  <jim@meyering.net>
70148
70149         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
70150
70151         Merge in changes from libc's misc/error.c, in preparation
70152         for the merge of gnulib's changes back into libc.
70153
70154         * lib/error.c (_): Define only if not already defined.
70155         Move definition to follow all #include directives.
70156         Include unlocked-io.h only if !_LIBC.
70157         [_LIBC]: Include <libio/libioP.h>.
70158         [USE_IN_LIBIO]: Include <libio/iolibio.h>
70159         (fflush): Tweak definition to use INTUSE.
70160         (putc): Define.
70161
70162 2002-12-05  Paul Eggert  <eggert@twinsun.com>
70163
70164         * lib/alloca.c [defined emacs]: Include "lisp.h".
70165         (xalloc_die) [defined emacs]: New macro.
70166         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
70167         [! defined emacs]: Include <xalloc.h>.
70168         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
70169         (pointer): Typedef to POINTER_TYPE *.
70170         (malloc): Remove decl; we now always use xmalloc.
70171         (alloca): Use old-style definition, since Emacs needs this.
70172         Check for arithmetic overflow when computing combined size.
70173
70174 2002-12-04  Paul Eggert  <eggert@twinsun.com>
70175
70176         Do not generate unlocked-io.h automatically, since it's easier to
70177         maintain it by hand.
70178
70179         * lib/unlocked-io.h: New file, from GNU diffutils,
70180         but with proper copyright notice and attribution.
70181         * lib/gen-uio: Remove.
70182         * lib/Makefile.am: Add copyright notice.
70183         (libfetish_a_SOURCES): Add unlocked-io.h.
70184         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
70185         (DISTCLEANFILES, io_functions): Remove macros.
70186         (EXTRA_DIST): Remove gen_uio.
70187         (unlocked-io.h): Remove rule.
70188
70189 2002-12-04  Jim Meyering  <jim@meyering.net>
70190
70191         Reflect the fact that stat.c and lstat.c are no longer generated.
70192         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
70193         (DISTCLEANFILES): Likewise.
70194         (EXTRA_DIST): Likewise.
70195         (all_local): Don't depend on stat.c or lstat.c.
70196         (stat.c, lstat.c): Remove rules.
70197         (EXTRA_DIST): Remove xstat.in.
70198
70199         * lib/xstat.in: Remove file.  Contents moved into stat.c.
70200         * lib/stat.c: New file.  Contents mostly from xstat.in.
70201         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
70202         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
70203
70204         * lib/safe-read.c: Rework so that it may serve to define safe_write,
70205         too.
70206         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
70207
70208 2002-12-03  Jim Meyering  <jim@meyering.net>
70209
70210         * lib/safe-read.c, safe-write.c: Change variable names and comments,
70211         but not semantics, to minimize the differences between these two files.
70212         (safe_read): Change comment to mention SAFE_READ_ERROR.
70213
70214         * lib/safe-read.c (IS_EINTR): Define.
70215         (safe_read): Use IS_EINTR in place of in-function cpp directives.
70216
70217 2002-12-02  Jim Meyering  <jim@meyering.net>
70218
70219         * lib/safe-read.c (EINTR): Define.
70220         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70221         (INT_MAX): Provide fallback.
70222         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
70223
70224         * lib/safe-read.h (SAFE_READ_ERROR): Define.
70225
70226 2002-12-02  Bruno Haible  <bruno@clisp.org>
70227
70228         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
70229         Define, taken from safe-read.c.
70230         (INT_MAX): Provide fallback.
70231         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
70232         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
70233
70234         * lib/safe-read.c (EINTR): Remove definition.
70235         (safe_read): Don't use EINTR if it is absent.
70236
70237 2002-12-01  Jim Meyering  <jim@meyering.net>
70238
70239         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
70240         zero.
70241         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
70242
70243 2002-11-27  Paul Eggert  <eggert@twinsun.com>
70244
70245         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
70246         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
70247         with `if (! (value < limit)) abort ();', for readability.
70248
70249 2002-11-26  Karl Berry  <karl@gnu.org>
70250
70251         * lib/strdup.c: copy from libc again, with jim's ok.
70252         * lib/.cppi-disable: re-add strdup.c
70253
70254 2002-11-25  Karl Berry  <karl@gnu.org>
70255
70256         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
70257         instead of "strtol.c".
70258
70259 2002-11-25  Karl Berry  <karl@gnu.org>
70260
70261         * config/install-sh: update from automake for variable quoting, $0 in
70262         error msgs, etc.
70263
70264         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
70265         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
70266         entry.
70267
70268 2002-11-25  Jim Meyering  <jim@meyering.net>
70269
70270         * lib/mktime.c: Sync from libc, now that it has the latest fix.
70271
70272 2002-11-24  Karl Berry  <karl@gnu.org>
70273
70274         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
70275         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
70276
70277 2002-11-24  Jim Meyering  <jim@meyering.net>
70278
70279         Update from coreutils:
70280
70281         * lib/mktime.c: Merge in changes from libc.
70282
70283         Avoid a link-time failure on some Linux systems.
70284         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
70285         (otherwise).
70286         (__mon_yday): Declare with the STATIC attribute.
70287         (__mktime_internal): Likewise.
70288         Based on a report from Greg Schafer.
70289
70290 2002-11-23  Jim Meyering  <jim@meyering.net>
70291
70292         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
70293         Use `unsigned', not `int', as type of index.
70294
70295         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
70296
70297         * lib/fsusage.c: Remove unneeded parentheses around operands of
70298         `defined'.
70299
70300 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70301
70302         * lib/quotearg.h: Allow multiple inclusion by surrounding with
70303         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
70304         so that we can be included first.
70305         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
70306         * lib/quotearg.c: Include quotearg.h immediately after config.h.
70307         No need to include stddef.h or sys/types.h any more.
70308         Surround local include files with "", not "<>".
70309         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
70310         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
70311         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
70312         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
70313         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
70314         (ISPRINT): Remove; no longer needed now that we assume C89.
70315
70316         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
70317         Preserve errno.
70318
70319         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
70320         quotearg_char): Use SIZE_MAX rather than
70321         (size_t) -1 when we are talking about "infinity".
70322
70323         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
70324
70325 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70326
70327         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
70328         hint that one should use `if (! x) abort ();' rather than `assert
70329         (x);', and anyway it's one less thing to worry about configuring.
70330         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
70331         hash_rehash, hash_insert): Use abort rather than assert.
70332
70333 2002-11-22  Bruno Haible  <bruno@clisp.org>
70334
70335         * lib/safe-read.h: Assume C89. Add comments.
70336         (safe_read): Change return type to size_t.
70337         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
70338         byte counts > SSIZE_MAX correctly.
70339         * lib/safe-write.h: New file.
70340         * lib/safe-write.c: New file.
70341         * lib/full-read.h: New file.
70342         * lib/full-read.c: New file.
70343         * lib/full-write.h: Assume C89. Add comments.
70344         * lib/full-write.c: Include safe-write.h.
70345         (full_write): Rewritten to use safe_write.
70346         Suggested by Jim Meyering and Paul Eggert.
70347
70348 2002-11-21  Jim Meyering  <jim@meyering.net>
70349
70350         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
70351
70352         Merge in changes from the coreutils.
70353
70354         2002-09-25  Paul Eggert  <eggert@twinsun.com>
70355         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
70356         <stdint.h>.
70357         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
70358         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
70359         int.  Work more efficiently if X is the same width as uintmax_t.
70360         Do not compare X to -1, to avoid bogus compiler warning.
70361         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
70362         Don't assume that f_frsize and f_bsize are the same type.
70363
70364         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
70365         warning on FreeBSD.
70366
70367         * lib/makepath.c (make_path): Restore umask *before* creating the final
70368         component.
70369         (make_path): Minor reformatting.
70370
70371         * lib/xmalloc.c: Adjust to work with new autoconf macros,
70372         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
70373         HAVE_MALLOC/HAVE_REALLOC.
70374
70375         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
70376         dummy ones.  At least on GNU/Linux systems, `auto' means something
70377         else.
70378         From Michael Stone.
70379
70380 2002-11-21  Bruno Haible  <bruno@clisp.org>
70381
70382         Remove case insensitive option matching.
70383         * lib/argmatch.h (argcasematch): Remove declaration.
70384         (ARGCASEMATCH): Remove macro.
70385         (__xargmatch_internal): Remove case_sensitive argument.
70386         (XARGMATCH): Update.
70387         (XARGCASEMATCH): Remove macro.
70388         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
70389         case_sensitive argument.
70390         (argcasematch): Remove function.
70391         (__xargmatch_internal): Remove case_sensitive argument.
70392         (main): Use XARGMATCH instead of XARGCASEMATCH.
70393
70394         * lib/xmalloc.c: Change compile-time error message. Add comment about
70395         required autoconf version.
70396
70397 2002-11-20  Paul Eggert  <eggert@twinsun.com>
70398
70399         Merge argmatch cleanups from Bison.  Assume C89.
70400
70401         * lib/argmatch.c: Include config.h here, not in argmatch.h.
70402         Include stdlib.h, for EXIT_FAILURE.
70403         Always include <string.h>, since we assume C89.
70404         (EXIT_FAILURE): Remove pre-C89 bug workaround.
70405         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
70406         Include <stddef.h> instead, since it's all we need for size_t.
70407         (PARAMS): Remove.  All uses removed.
70408         (ARRAY_CARDINALITY): Do not bother to #undef.
70409         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70410         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70411         Remove unnecessary parentheses.
70412         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70413         Insert necessary parentheses.
70414         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70415         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70416
70417 2002-11-19  Bruno Haible  <bruno@clisp.org>
70418
70419         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70420         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70421
70422         * lib/mbswidth.h (PARAMS): Remove macro.
70423         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70424         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70425
70426         * lib/gcd.h (PARAMS): Remove macro.
70427         (gcd): Use ANSI C function declarations.
70428         * lib/gcd.c (gcd): Likewise.
70429
70430 2002-11-15  Bruno Haible  <bruno@clisp.org>
70431
70432         * lib/strcspn.c: Include <stddef.h>.
70433         (strcspn): Use ANSI C function declaration. Change return type to
70434         size_t. Use NULL.
70435         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70436         (strpbrk): Use NULL.
70437         * lib/strpbrk.h (PARAMS): Remove macro.
70438         (strpbrk): Use ANSI C function declaration.
70439         * lib/strstr.c: Don't include <sys/types.h>.
70440         * lib/strstr.h (PARAMS): Remove macro.
70441         (strstr): Use ANSI C function declarations.
70442
70443 2002-11-14  Karl Berry  <karl@gnu.org>
70444
70445         * config/mkinstalldirs: `do' on separate line, instead of
70446         `for var; do'.
70447
70448 2002-11-06  Bruno Haible  <bruno@clisp.org>
70449
70450         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
70451         * lib/gcd.c (gcd): Likewise.
70452
70453 2002-11-05  Bruno Haible  <bruno@clisp.org>
70454
70455         * lib/gcd.h: New file, from gettext-0.11.5.
70456         * lib/gcd.c: New file, from gettext-0.11.5.
70457
70458 2002-11-05  Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70461         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70462         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70463         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70464
70465         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70466         <libintl.h>.
70467         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70468         <libintl.h>.
70469
70470         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70471         * lib/human.c: Include gettext.h instead of <libintl.h>.
70472         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70473         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70474         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70475         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70476         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70477         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70478         (textdomain): Remove definition.
70479         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70480
70481         * lib/long-options.c: Remove include of <libintl.h> and definition of
70482         _.
70483         * lib/same.c: Remove include of <libintl.h> and definition of _.
70484
70485 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70486
70487         * lib/config.charset: A few additions for Solaris.
70488
70489 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70490
70491         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70492         * lib/localcharset.c (locale_charset): Declare as extern "C".
70493
70494 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70495
70496         * lib/config.charset: msdos in uk_UA uses CP1125.
70497
70498 2002-11-04  Bruno Haible  <bruno@clisp.org>
70499
70500         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70501         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70502         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70503         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70504         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70505
70506 2002-11-04  Bruno Haible  <bruno@clisp.org>
70507
70508         * lib/localcharset.c (locale_charset): Don't return an empty string.
70509
70510 2002-11-04  Bruno Haible  <bruno@clisp.org>
70511
70512         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70513         aliases.
70514
70515 2002-11-04  Bruno Haible  <bruno@clisp.org>
70516
70517         * lib/config.charset: Update for newest glibc. Add canonical names
70518         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70519
70520 2002-11-04  Bruno Haible  <bruno@clisp.org>
70521
70522         * lib/config.charset: Add support for NetBSD.
70523
70524 2002-11-04  Bruno Haible  <bruno@clisp.org>
70525
70526         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70527
70528 2002-11-01  Bruno Haible  <bruno@clisp.org>
70529
70530         * configure.in: Add AC_CONFIG_AUX_DIR call.
70531         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70532         test/Makefile.
70533         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70534
70535 2002-09-28  Karl Berry  <karl@gnu.org>
70536
70537         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70538         installed automake until the next release, since changes have been
70539         made.
70540
70541 2002-09-25  Karl Berry  <karl@gnu.org>
70542
70543         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70544         * lib/getopt*: copy from libc/posix.
70545         * lib/gettext.h: copy from gettext.
70546         * lib/.cppi-disable: add strdup.c, gettext.h.
70547
70548 2002-09-25  Karl Berry  <karl@gnu.org>
70549
70550         * config/srclist.txt: enable gettext.h check.
70551         * config/config.{guess,sub}: update from prep.
70552         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70553                 from automake 1.6.3.
70554         See srclist*.
70555
70556 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70557
70558         * regex.c (PATFETCH): Remove the translating fetch.
70559         (PATFETCH_RAW): Rename to PATFETCH.
70560         (set_image_of_range): New fun.
70561         (SET_RANGE_TABLE_WORK_AREA): Use it.
70562         (regex_compile): Don't translate the pattern chars so eagerly.
70563         Only do it when inserting an `exactn' bytecode or when handling
70564         a char-range.
70565         (mutually_exclusive_p): Avoid empty statement.
70566
70567 2002-07-06  Jim Meyering  <meyering@lucent.com>
70568
70569         * m4/README: Don't mention Makefile.am.in.
70570         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70571
70572 2002-07-01  Jim Meyering  <meyering@lucent.com>
70573
70574         * lib/c-stack.c: Include sys/time.h.
70575         From Volker Borchert.
70576
70577 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70578
70579         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70580
70581 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70582
70583         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70584         New macro.  Use it uniformly instead of
70585         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70586         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70587         reported by Vin Shelton.
70588
70589 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70590
70591         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70592         Do not assume SA_SIGINFO behavior.
70593         Bug reported by Jim Meyering on NetBSD 1.5.2.
70594
70595 2002-06-22  Jim Meyering  <meyering@lucent.com>
70596
70597         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70598         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70599
70600         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70601         now that configure.ac uses AC_GNU_SOURCE.
70602         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70603         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70604
70605         Update to latest tools.  Suggestions from Paul Eggert.
70606         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70607         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70608         * m4/fnmatch.m4: Likewise.
70609         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70610         to AC_HEADER_STDBOOL
70611
70612 2002-06-22  Jim Meyering  <meyering@lucent.com>
70613
70614         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70615         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70616
70617 2002-06-22  Jim Meyering  <meyering@lucent.com>
70618
70619         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70620
70621         * lib/exitfail.c, exitfail.h: Likewise.
70622         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70623
70624         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70625         of fnmatch.h.
70626         (EXTRA_DIST): Add fnmatch_loop.c.
70627         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70628
70629         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70630         * lib/fnmatch.c: Update from diffutils-2.8.2.
70631         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70632         * lib/fnmatch.h: Remove file.
70633
70634 2002-06-21  Jim Meyering  <meyering@lucent.com>
70635
70636         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70637         * m4/mbrtowc.m4: Likewise.
70638
70639         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70640         * m4/mbswidth.m4: Reflect name change:
70641         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70642         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70643
70644         * m4/lib-link.m4: Update from gettext-0.11.2.
70645         * m4/gettext.m4: Likewise.
70646
70647         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70648         From Alfred M. Szmidt.
70649
70650 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70651
70652         * lib/file-type.h: Report an error if neither S_ISREG nor
70653         S_IFREG is defined, instead of using a test specific to glibc
70654         2.2.  This should be safe, since POSIX requires S_ISREG and
70655         Unix Version 7 had S_IFREG.  We don't need to check for
70656         <sys/types.h> since we don't use any symbols that it defines.
70657
70658 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70659
70660         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70661         $@-t, so that each temporary file name is unique and valid in the first
70662         8 characters, for operation under DOS.
70663
70664 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70665
70666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70667
70668 2002-06-15  Jim Meyering  <meyering@lucent.com>
70669
70670         Work even with DJGPP 2.03, which lacks support for symlinks.
70671         From Richard Dawe.
70672         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70673         is defined.
70674         * lib/lchown.c (S_ISLNK): Likewise.
70675
70676 2002-06-15  Jim Meyering  <meyering@lucent.com>
70677
70678         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70679         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70680         have been included before this file.
70681
70682 2002-06-14  Jim Meyering  <meyering@lucent.com>
70683
70684         * lib/file-type.h: Use the version from diffutils-2.8.2.
70685         * lib/file-type.c: Likewise.
70686
70687 2002-06-07  Jim Meyering  <meyering@lucent.com>
70688
70689         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70690         They're needed at least for NetBSD 1.5.2.
70691         ($statxfs_includes): Include those same headers.
70692         ($statxfs_includes): Include sys/vfs.h if available.
70693         ($statxfs_includes): Likewise for sys/statvfs.h.
70694         Check for the following members in both structs statfs and statvfs:
70695         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70696
70697 2002-06-01  Jim Meyering  <meyering@lucent.com>
70698
70699         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70700         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70701
70702 2002-05-28  Jim Meyering  <meyering@lucent.com>
70703
70704         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70705         Reported by Volker Borchert.
70706
70707 2002-05-27  Jim Meyering  <meyering@lucent.com>
70708
70709         Fix a problem seen only on nonconforming systems whereby ls.c's
70710         use of localtime, and then of gettimeofday would cause trouble:
70711         the localtime call used to initialize rpl_gettimeofday's save
70712         mechanism would clobber ls's current local time information so
70713         that in any long listing the first file would always be listed
70714         with date 1970-01-01.  Analysis by Volker Borchert.
70715
70716         * lib/gettimeofday.c (localtime): Undefine.
70717         (rpl_localtime): New function.
70718
70719 2002-05-27  Jim Meyering  <meyering@lucent.com>
70720
70721         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70722         localtime.
70723
70724         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70725         use the replacement function; it wouldn't resolve at link time.
70726         Reported by Volker Borchert.
70727
70728 2002-05-22  Jim Meyering  <meyering@lucent.com>
70729
70730         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70731         file-type.h.
70732         * lib/file-type.h: New file.
70733         * lib/file-type.c (file_type): New file/function.  Extracted from
70734         diffutils.
70735
70736 2002-04-30  Jim Meyering  <meyering@lucent.com>
70737
70738         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70739
70740 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70741
70742         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70743
70744 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70745
70746         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70747         Do not check for alloca.h (no longer used) or stdbool.h (was never
70748         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70749
70750 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70751
70752         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70753
70754 2002-04-29  Jim Meyering  <meyering@lucent.com>
70755
70756         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70757         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70758         Use AC_FUNC_STRNLEN here instead.
70759
70760         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70761         With autoconf-2.53a, it's part of AC_PROG_CC.
70762
70763 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70764
70765         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70766         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70767
70768 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70769
70770         * lib/sig2str.h, lib/sig2str.c: New files.
70771         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70772
70773 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70774
70775         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70776         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70777         of 127, since 64 is the largest conceivable number for ancient
70778         nonstandard hosts.
70779         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70780
70781 2002-04-28  Jim Meyering  <meyering@lucent.com>
70782
70783         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70784
70785 2002-04-24  Jim Meyering  <meyering@lucent.com>
70786
70787         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70788         (jm_PREREQ): Use it.
70789
70790         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70791         mach/mach.h fcntl.h.
70792         Check for this function: setlocale.
70793
70794 2002-04-24  Jim Meyering  <meyering@lucent.com>
70795
70796         * lib/gettext.h: New file, from Gettext.
70797         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70798         (libfetish_a_SOURCES): Add gettext.h.
70799
70800 2002-04-16  Jim Meyering  <meyering@lucent.com>
70801
70802         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70803         ut_pid, ut_id, ut_exit.
70804
70805 2002-04-16  Jim Meyering  <meyering@lucent.com>
70806
70807         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70808         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70809         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70810
70811 2002-04-12  Jim Meyering  <meyering@lucent.com>
70812
70813         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70814         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70815         existence of the getmntinfo function.  Needed for Darwin 5.3.
70816
70817         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70818         This is necessary at least on Darwin 5.3.
70819
70820         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70821         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70822         strnlen.o in the library, and that makes some versions of ranlib
70823         object.
70824
70825 2002-04-12  Jim Meyering  <meyering@lucent.com>
70826
70827         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70828
70829 2002-04-09  Jim Meyering  <meyering@lucent.com>
70830
70831         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70832         to be more precise.  Rather than saying we're checking whether the
70833         function `works', say what we're testing.
70834         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70835         Reported by Bruno Haible.
70836
70837 2002-03-10  Jim Meyering  <meyering@lucent.com>
70838
70839         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70840         Suggestion from Santiago Vila.
70841
70842 2002-03-08  Jim Meyering  <meyering@lucent.com>
70843
70844         * lib/rename.c: Mention that this wrapper is needed also on
70845         mips-dec-ultrix4.4 systems.
70846
70847 2002-03-02  Jim Meyering  <meyering@lucent.com>
70848
70849         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70850         not HAVE_CLOCK_SETTIME.
70851
70852 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70853
70854         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70855         Check for clock_settime.
70856
70857 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70858
70859         * lib/nanosleep.h: Rename to....
70860         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70861
70862         * lib/gettime.c: New file.
70863         * lib/settime.c: New file.
70864         * lib/stime.c: Remove.
70865
70866         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70867         timespec.h.  Remove nanosleep.h.
70868
70869 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70870
70871         * m4/acl.m4: New file.
70872         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70873         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70874
70875 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70876
70877         * lib/acl.c, lib/acl.h: New files.
70878         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70879
70880 2002-02-24  Jim Meyering  <meyering@lucent.com>
70881
70882         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70883         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70884         cause trouble.  Reported by Nelson Beebe.
70885
70886 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70887
70888         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70889         compilers that don't know that xalloc_die never returns.
70890
70891 2002-02-20  Jim Meyering  <meyering@lucent.com>
70892
70893         * lib/getdate.c: Regenerate using bison-1.33.
70894
70895 2002-02-17  Jim Meyering  <meyering@lucent.com>
70896
70897         * config/config.guess (main): Don't use `head -1'; it's no longer
70898         portable. Use `sed 1q' instead.
70899
70900 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70901
70902         * m4/codeset.m4: Upgrade to gettext-0.11.
70903         * m4/gettext.m4: Upgrade to gettext-0.11.
70904         * m4/glibc21.m4: Upgrade to gettext-0.11.
70905         * m4/iconv.m4: Upgrade to gettext-0.11.
70906         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70907         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70908         * m4/lib-ld.m4: New file, from gettext-0.11.
70909         * m4/lib-link.m4: New file, from gettext-0.11.
70910         * m4/lib-prefix.m4: New file, from gettext-0.11.
70911         * m4/progtest.m4: Upgrade to gettext-0.11.
70912
70913 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70914
70915         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70916         (jm_PREREQ): Use it.
70917
70918 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70919
70920         * lib/posixver.c, lib/posixver.h: New files.
70921         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70922
70923 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70924             Bruno Haible  <bruno@clisp.org>
70925
70926         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70927         (fwrite_success_callback): New declaration.
70928         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70929         print_unicode_char. Call failure callback instead of error.
70930         (fwrite_success_callback): New function.
70931         (exit_failure_callback): New function.
70932         (fallback_failure_callback): New function.
70933         (print_unicode_char): Call unicode_to_mb.
70934
70935 2002-01-26  Jim Meyering  <meyering@lucent.com>
70936
70937         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70938         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70939
70940 2002-01-26  Jim Meyering  <meyering@lucent.com>
70941
70942         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70943
70944 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70945
70946         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70947
70948 2002-01-22  Jim Meyering  <meyering@lucent.com>
70949
70950         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70951         Otherwise, some versions of automake would omit the rule that makes
70952         Makefile from Makefile.in.
70953
70954 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70955
70956         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70957         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70958         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70959         (memcoll): Set errno to zero if there is no error.
70960
70961         * lib/quotearg.c (quotearg_buffer_restyled):
70962         Fix bug with quoting buffers containing NUL when backslashing escapes.
70963         This bug was exposed by the other changes in this patch.
70964         (quotearg_n_options): New arg ARGSIZE.
70965         All callers changed.
70966         (quoting_options_from_style): New function.
70967         (quotearg_n_style): Use it.
70968         (quotearg_n_style_mem): New function.
70969
70970         * lib/quotearg.h (quotearg_n_style_mem): New function.
70971
70972 2002-01-19  Jim Meyering  <meyering@lucent.com>
70973
70974         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70975         Remove useless quotes: DF_PROG="df".
70976         * m4/strnlen.m4: New file.
70977
70978 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70979
70980         * lib/backupfile.c (ISDIGIT): Comment fix.
70981         * lib/getdate.y (ISDIGIT): Likewise.
70982         * lib/posixtm.c (ISDIGIT, year): Likewise.
70983         * lib/strverscmp.c (ISDIGIT): Likewise.
70984         * lib/userspec.c (ISDIGIT): Likewise.
70985
70986 2002-01-16  Jim Meyering  <meyering@lucent.com>
70987
70988         * lib/getdate.y: Add three semicolons, each just before a closing
70989         brace. Bison (as of version 1.31) no longer papers over that mistake.
70990
70991 2002-01-05  Jim Meyering  <meyering@lucent.com>
70992
70993         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70994
70995 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70996
70997         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70998         not silently exit merely because the output buffer happens to
70999         have nothing pending.
71000
71001 2001-12-18  Paul Eggert  <eggert@twinsun.com>
71002
71003         See the big note in ../ChangeLog.
71004         * lib/human.c (suffixes): Prefer K to k for 1024.
71005         (generate_suffix_backwards): New function.
71006         (human_readable_inexact): Use it.
71007         * lib/xstrtol.c (__xstrtol): If there is no number but there
71008         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
71009         Accept 'K' as well as 'k'.
71010
71011 2001-12-15  Jim Meyering  <meyering@lucent.com>
71012
71013         * lib/regex.h (__restrict_arr): Update from libc.
71014
71015         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
71016         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
71017         (STREQ): Define.
71018
71019 2001-12-14  Jim Meyering  <meyering@lucent.com>
71020
71021         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
71022         Suggestion from Bruno Haible.
71023
71024 2001-12-10  Jim Meyering  <meyering@lucent.com>
71025
71026         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
71027         xrealloc, Instead, include "xalloc.h".
71028         (initbuffer): Don't cast xmalloc return value to char*.
71029         (readline): Reword comment.
71030         Don't cast xrealloc return value to char*
71031         Return NULL, not 0.
71032
71033 2001-12-09  Jim Meyering  <meyering@lucent.com>
71034
71035         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
71036         about `signed and unsigned type in conditional expression'.
71037         * lib/posixtm.c (posix_time_parse): Likewise.
71038
71039         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
71040
71041         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
71042         to avoid a pedantic warning.
71043
71044         * lib/getstr.c: Don't include assert.h.
71045         (getstr): Remove warning-evoking assertions.
71046         Return -1 if offset parameter is out of bounds.
71047         Change the type of a local from int to size_t.
71048
71049         * lib/strftime.c (my_strftime_localtime_r): Include this function
71050         definition in the `#if ! HAVE_TM_GMTOFF' block.
71051
71052         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
71053         Include xalloc.h instead.
71054
71055 2001-12-02  Jim Meyering  <meyering@lucent.com>
71056
71057         * lib/tempname.c: Don't declare getenv, thus reverting the change of
71058         2001-11-18.  It's no longer necessary, now that stdlib.h is always
71059         included.
71060
71061         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
71062         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
71063
71064 2001-11-30  Akim Demaille  <akim@epita.fr>
71065
71066         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
71067         before being defined.
71068
71069 2001-11-27  Paul Eggert  <eggert@twinsun.com>
71070
71071         * lib/quotearg.h (quotearg_n, quotearg_n_style):
71072         First arg is int, not unsigned.
71073         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
71074         (SIZE_MAX, UINT_MAX): New macros.
71075         (quotearg_n_options): Abort if N is negative.
71076         Avoid overflow check on hosts where size_t is 64 bits and int
71077         is 32 bits, as overflow is impossible there.
71078         Fix off-by-one typo that caused unnecessary reallocation.
71079
71080 2001-11-27  Jim Meyering  <meyering@lucent.com>
71081
71082         * lib/tempname.c: Merge with version from libc.
71083         * lib/regex.c: Likewise.
71084
71085         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
71086         systems for which STDC_HEADERS is 0, it was not included, resulting in
71087         a warning about an integer-to-pointer conversion problem with getenv.
71088         Reported by Volker Borchert.
71089
71090 2001-11-26  Jim Meyering  <meyering@lucent.com>
71091
71092         * lib/gtod.h: Remove file.
71093         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
71094         * lib/gettimeofday.c: Don't include gtod.h.
71095         (GTOD_init): Remove function.
71096         (rpl_gettimeofday): Do its job here instead, rather than aborting.
71097         Suggestion from Volker Borchert.
71098
71099 2001-11-23  Jim Meyering  <meyering@lucent.com>
71100
71101         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
71102         it.
71103         * lib/hash.c (struct hash_table): Define it here instead.
71104
71105 2001-11-22  Jim Meyering  <meyering@lucent.com>
71106
71107         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
71108
71109 2001-11-20  Jim Meyering  <meyering@lucent.com>
71110
71111         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
71112         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
71113
71114 2001-11-19  Jim Meyering  <meyering@lucent.com>
71115
71116         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
71117         directory.  Use "conftestXXXXXX" as the template.
71118         Suggestion from Paul Eggert.
71119
71120         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
71121         immediately, so the test doesn't mistakenly hit the max-open-files
71122         limit.
71123
71124 2001-11-18  Paul Eggert  <eggert@twinsun.com>
71125
71126         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
71127         (TEMPORARIES): New macro.
71128         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
71129         removes an artificial limitation (e.g. HP-UX 10.20, where
71130         TMP_MAX is 17576).
71131
71132 2001-11-18  Jim Meyering  <meyering@lucent.com>
71133
71134         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
71135
71136 2001-11-18  Jim Meyering  <meyering@lucent.com>
71137
71138         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
71139         on SunOS 4.
71140
71141         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
71142         files will be created before anything else.
71143
71144 2001-11-17  Paul Eggert  <eggert@twinsun.com>
71145
71146         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
71147         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
71148
71149 2001-11-17  Jim Meyering  <meyering@lucent.com>
71150
71151         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
71152         Prompted by a report from Bob Proulx.
71153
71154         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
71155         Instead, require UTILS_FUNC_MKSTEMP.
71156
71157 2001-11-17  Jim Meyering  <meyering@lucent.com>
71158
71159         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
71160         Now, that's done as part of AC_FUNC_STRTOD.
71161
71162 2001-11-17  Jim Meyering  <meyering@lucent.com>
71163
71164         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
71165         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
71166         rather than group writable.  Patch by Juan F. Codagnone.
71167
71168         * lib/readtokens.c: Remove explicit declarations of xmalloc and
71169         xrealloc, Instead, include "xalloc.h".
71170
71171         * lib/mountlist.c: Include unlocked-io.h after all system headers.
71172         Remove explicit declarations of xmalloc, xrealloc,
71173         and xstrdup.  Instead, include "xalloc.h".
71174
71175         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
71176         unlocked-io.h.
71177         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
71178         Likewise.
71179         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
71180
71181         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
71182         Reported by Padraig Brady.
71183
71184         * lib/mkstemp.c: #undef mkstemp.
71185         Include config.h.
71186         (rpl_mkstemp): Rename from mkstemp.
71187         Protoize.
71188
71189 2001-11-16  Jim Meyering  <meyering@lucent.com>
71190
71191         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
71192         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
71193         determine the amount of total physical memory, use pstat_getstatic.
71194         HPUX-11 doesn't define _SC_PHYS_PAGES.
71195         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
71196         If sysconf couldn't be used to determine the amount of available
71197         physical memory, use both pstat_getstatic and pstat_getdynamic.
71198         Based on a patch from Bob Proulx.
71199
71200 2001-11-10  Jim Meyering  <meyering@lucent.com>
71201
71202         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
71203         (jm_PREREQ): Use it.
71204
71205 2001-11-09  Jim Meyering  <meyering@lucent.com>
71206
71207         * m4/jm-macros.m4: Require autoconf-2.52f.
71208         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
71209         Use these AC_-prefixed names, not the AM_-prefixed ones.
71210
71211         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
71212
71213 2001-11-05  Jim Meyering  <meyering@lucent.com>
71214
71215         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
71216
71217 2001-11-04  Jim Meyering  <meyering@lucent.com>
71218
71219         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
71220         $DEFS.
71221
71222 2001-11-03  Jim Meyering  <meyering@lucent.com>
71223
71224         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
71225         of AC_DEFUN.
71226
71227         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
71228         know the name of the variable in the macro definition.
71229
71230 2001-11-03  Jim Meyering  <meyering@lucent.com>
71231
71232         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
71233         in argmatch_to_argument call.
71234
71235         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
71236         argument.
71237
71238         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
71239         e.g., a fault due to an attempt to free a NULL pointer.
71240
71241 2001-11-01  Jim Meyering  <meyering@lucent.com>
71242
71243         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
71244         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
71245
71246 2001-11-01  Jim Meyering  <meyering@lucent.com>
71247
71248         * lib/dirfd.c, lib/dirfd.h: New files.
71249         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
71250
71251         * lib/hash.c (hash_print) [TESTING]: Clean up.
71252
71253 2001-10-22  Paul Eggert  <eggert@twinsun.com>
71254
71255         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
71256         to avoid a warning if -Wall.
71257
71258 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
71259
71260         * README: New file
71261         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
71262         (per RMS's instructions, this is now the canonical source)
71263         * lgpl/, gpl/: New directories.
71264
71265 2001-10-21  Paul Eggert  <eggert@twinsun.com>
71266
71267         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
71268
71269 2001-10-21  Jim Meyering  <meyering@lucent.com>
71270
71271         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
71272         this code would end up calling gettext even in packages built
71273         with --disable-nls.
71274         * lib/getopt.c (_): Likewise.
71275         * lib/regex.c (_): Likewise.
71276
71277 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71278
71279         * m4/error.m4 (jm_PREREQ_ERROR):
71280         Do not invoke AC_CHECK_FUNCS with strerror_r, as
71281         AC_FUNC_STRERROR_R does that.
71282         Check for strerror declaration.
71283
71284         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
71285         are supposed to have them these days.
71286         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
71287         Merge changes from latest Autoconf CVS.
71288         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
71289         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
71290         POSIX decided to standardize on the int flavor of strerror_r.
71291
71292 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71293
71294         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
71295         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
71296         Use strerror_r that is only a macro, even if it is not a function.
71297         (strerror): Check for HAVE_DECL_STRERROR before declaring.
71298         (private_strerror): Use prototypes, not old-style function definition.
71299         (print_errno_message): New function.
71300         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
71301         char*-flavored one.
71302         (error_tail, error, error_at_line): Use it.
71303
71304 2001-10-11  Jim Meyering  <meyering@lucent.com>
71305
71306         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
71307         and quote_n (1, ... to avoid clobbering a buffer.
71308
71309 2001-10-05  Jim Meyering  <meyering@lucent.com>
71310
71311         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
71312         hash-pjw.h.
71313         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
71314         * lib/hash-pjw.h: New file.
71315
71316 2001-09-30  Jim Meyering  <meyering@lucent.com>
71317
71318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
71319         `struct fsstat' has the `f_fstypename' member.
71320         Use that to define FS_TYPE, which is now used to make
71321         the getfsstat link test tighter.
71322
71323 2001-09-30  Jim Meyering  <meyering@lucent.com>
71324
71325         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71326         Include <sys/ucred.h>, for Apple Darwin.
71327         Include sys/mount.h and sys/fs_types.h only if available.
71328         (FS_TYPE): Define.
71329         (read_filesystem_list): Use FS_TYPE.
71330
71331 2001-09-29  Paul Eggert  <eggert@twinsun.com>
71332
71333         * lib/exclude.c (excluded_filename): 0 -> false, since it's
71334         a boolean context.
71335
71336 2001-09-29  Jim Meyering  <meyering@lucent.com>
71337
71338         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71339         [one-argument getmntent function]): Include stdio.h before mntent.h.
71340         SunOS 4.1.x needs it for the declaration of `FILE'.
71341         Patch by Volker Borchert.
71342
71343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71344         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
71345         sys/fs_types.h, and make the link-test for getfsstat guard #include
71346         directives with appropriate #if HAVE_*_H tests so that we can
71347         detect getfsstat on Apple Darwin1.3.7 systems.
71348         Reported by Nelson Beebe.
71349         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
71350
71351 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71352
71353         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71354         #defines strtoimax.  Also treat the other strto* functions
71355         like strtoimax.
71356
71357         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71358         Check for strtoul and strtoumax,
71359         as those declarations are made even in the signed case.
71360         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
71361         Likewise, for strtol and strtoimax.
71362
71363 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71364
71365         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71366         #defines strtoimax.  Also treat the other strto* functions
71367         like strtoimax.
71368
71369         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
71370         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
71371         (strtoimax, strtoumax): Do not declare if already defined as a macro.
71372
71373 2001-09-26  Jim Meyering  <meyering@lucent.com>
71374
71375         Most macros in unlocked-io.h had the wrong number of arguments.
71376         * lib/gen-uio: New script.
71377         (USE_UNLOCKED_IO): Define to 1 if not already defined.
71378         * lib/unlocked-io.hin: Remove file.
71379         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
71380         rather than trying to embed it here.
71381         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
71382         Reported by Padraig Brady.
71383
71384 2001-09-25  Volker Borchert  <bt@teknon.de>
71385
71386         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
71387         `result'.
71388
71389 2001-09-24  Jim Meyering  <meyering@lucent.com>
71390
71391         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
71392
71393 2001-09-23  Jim Meyering  <meyering@lucent.com>
71394
71395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
71396         instead of the mere test for existence of mntent.h.  The latter
71397         would get a false-positive on AIX 3.4 systems.
71398         In the outer getmntent if-block, don't die if neither of the getmntent
71399         tests succeeds.  Instead, just fall through and continue with the
71400         remaining tests.
71401
71402 2001-09-23  Jim Meyering  <meyering@lucent.com>
71403
71404         * lib/mountlist.c: Remove useless parentheses in #if directives.
71405         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
71406         the deprecated MOUNTED symbol is no longer defined in mntent.h.
71407
71408 2001-09-22  Jim Meyering  <meyering@lucent.com>
71409
71410         * m4/gettext.m4: New file.  From gettext.
71411         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71412         * m4/progtest.m4: Likewise
71413         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71414         * m4/glibc21.m4: Likewise.
71415
71416         * m4/libintl.m4: Remove.  No longer used.
71417
71418 2001-09-22  Jim Meyering  <meyering@lucent.com>
71419
71420         * lib/localcharset.c: Update from latest gettext.
71421         * lib/config.charset: Likewise.
71422
71423 2001-09-20  Jim Meyering  <meyering@lucent.com>
71424
71425         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71426         strtoimax.
71427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71428         strtoumax.
71429
71430 2001-09-20  Jim Meyering  <meyering@lucent.com>
71431
71432         * lib/xstrtol.c (strtoimax): Guard declaration with
71433         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71434         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71435         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71436         (strtoumax): Likewise, for completeness (it wasn't necessary).
71437
71438 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71439
71440         * lib/strtoimax.c (HAVE_LONG_LONG):
71441         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71442         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71443         to work around bug in IBM C compiler.
71444
71445 2001-09-17  Jim Meyering  <meyering@lucent.com>
71446
71447         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71448         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
71449         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
71450         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
71451         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
71452         whenever the right hand side need not be expanded by the shell.
71453
71454 2001-09-16  Paul Eggert  <eggert@twinsun.com>
71455
71456         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
71457         library.  It's not correct, as some older glibcs are buggy.
71458         fnmatch wasn't fixed until glibc 2.2.
71459
71460         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71461         special shell magic here.
71462
71463 2001-09-16  Jim Meyering  <meyering@lucent.com>
71464
71465         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71466         * m4/jm-macros.m4: Require it.
71467
71468 2001-09-16  Jim Meyering  <meyering@lucent.com>
71469
71470         * lib/mkdir.c: New file.
71471
71472 2001-09-15  Jim Meyering  <meyering@lucent.com>
71473
71474         * m4/jm-macros.m4: Check for help2man.
71475
71476 2001-09-11  Jim Meyering  <meyering@lucent.com>
71477
71478         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71479         The body, by Paul Eggert, was moved here from configure.in.
71480         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71481
71482 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71483
71484         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71485         (jm_PREREQ): Use it.
71486
71487 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71488
71489         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71490         Use ssize_t, not int, to store result of readlink.
71491         Check for ssize_t overflow as well as size_t overflow,
71492         as POSIX says the result of readlink is implementation-defined
71493         when ssize_t overflows.
71494         Remove unnecessary cast to char*.
71495         Use free+malloc instead of realloc, as the storage doesn't need
71496         to be preserved and it's clearer and can be more efficient that way.
71497         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71498         * lib/xreadlink.h (xreadlink): Update prototype.
71499
71500 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71501
71502         * lib/xgetcwd.c: Revert some of the previous change; intead,
71503         fix the HAVE_GETCWD_NULL code to behave more like the
71504         !HAVE_GETCWD_NULL code used to.
71505
71506         Include "xalloc.h".
71507         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71508         invoke xalloc_die.
71509
71510 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71511
71512         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71513         sys/param.h, as pathmax.h includes them.
71514
71515 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71516
71517         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71518         (jm_PREREQ_XGETCWD): New macro.
71519
71520         * m4/getcwd.m4: New file.
71521
71522 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71523
71524         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71525         like the HAVE_GETCWD_NULL code.
71526         Include pathmax.h if not HAVE_GETCWD.
71527         Do not include xalloc.h.
71528         (INITIAL_BUFFER_SIZE): New symbol.
71529         Do not use xmalloc / xrealloc, since the caller is responsible for
71530         handling errors.  Preserve errno around `free' during failure.
71531         Do not overrun buffer when using getwd.
71532
71533 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71534
71535         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71536         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71537         getcwd (NULL, 0).
71538
71539 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71540
71541         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71542         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71543         spotted by Jim Meyering.
71544
71545 2001-09-03  Jim Meyering  <meyering@lucent.com>
71546
71547         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71548         failure.
71549
71550 2001-09-02  Jim Meyering  <meyering@lucent.com>
71551
71552         * lib/error.c: Update from GNU libc.
71553
71554 2001-09-01  Jim Meyering  <meyering@lucent.com>
71555
71556         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71557         Used by df.
71558
71559 2001-09-01  Jim Meyering  <meyering@lucent.com>
71560
71561         * lib/xreadlink.c: New file.
71562         * lib/xreadlink.h: New file.
71563         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71564         xreadlink.h.
71565
71566         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71567         doesn't conflict with sparc Solaris 7's definition in
71568         /usr/include/sys/int_types.h.
71569
71570         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71571         files.
71572         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71573         and strncasecmp as r-values.  Unixware didn't have declarations.
71574
71575 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71576
71577         * lib/xstrtol.h: Add copyright notice.
71578         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71579         LONGINT_INVALID_SUFFIX_CHAR.
71580
71581 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71582
71583         * lib/xstrtol.c (strtoimax): New decl.
71584
71585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71586
71587         * lib/xgetcwd.c: Don't include pathmax.h.
71588         Include stdlib.h and unistd.h if available.
71589         Include xalloc.h.
71590         (xmalloc, xstrdup, free): Remove decls.
71591         (xgetcwd): Don't assume sizes fit in unsigned.
71592         Check for overflow when computing sizes.
71593         Simplify reallocation code.
71594
71595 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71596
71597         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71598         a directory's st_size can have an arbitrary value, so the old
71599         usage could waste an arbitrary amount of memory.  All uses
71600         changed.
71601         * lib/savedir.h: Update prototype.
71602
71603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71604
71605         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71606
71607         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71608         old strtoimax.c.
71609
71610         Also, make the following further changes to make this file's
71611         configuration more similar to that of strtol.c:
71612         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71613         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71614         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71615         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71616         changed to signed values.
71617
71618         And make the following changes as well:
71619         Fix copyright notice, as 1999 was missing.
71620         (verify): New macro.
71621         (strtoimax): Check sizes at compile-time, not run-time.
71622         Prefer strtol to strtoll if both work.
71623         (main): Remove; it was not that useful and was a pain to maintain.
71624
71625         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71626
71627 2001-08-31  Jim Meyering  <meyering@lucent.com>
71628
71629         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71630         Use an initial, malloc'd, buffer of length 128 rather than
71631         a statically allocated one of length 1024.
71632
71633 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71634
71635         Simplify code, partly by assuming autoconf 2.52 semantics.
71636
71637         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71638
71639         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71640         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71641         All uses removed.
71642         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71643         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71644         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71645         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71646         jm_AC_HEADER_INTTYPES_H.
71647         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71648
71649         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71650
71651         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71652         Quote first arg of AC_DEFUN.
71653         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71654         since they are needed to parse the include file even if we need
71655         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71656         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71657         but with opposite signedness.
71658
71659 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71660
71661         Merge 'exclude' changes from tar 1.13.22.
71662         This fixes one or two unlikely storage allocation overflow bugs,
71663         but doesn't change user-visible behavior otherwise.
71664
71665 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71666
71667         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71668         (jm_PREREQ_EXCLUDE): New macro.
71669
71670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71671
71672         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71673         tm to be declared.
71674
71675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71676
71677         * lib/hash.c: Remove '2001' from copyright notice.
71678
71679 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71680
71681         * lib/full-write.h: New file.
71682         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71683         * lib/full-write.c: Correct credits, as cccp.c no longer
71684         exists and anyway it was so heavily changed from the old cccp
71685         code as to be unrecognizable.  Include full-write.h.
71686         (full_write) Return size_t, with short writes meaning failure.
71687         All callers changed.  This fixes a bug with large buffers
71688         on 64-bit hosts.
71689         * lib/utime.c: Include full-write.h.
71690
71691 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71692
71693         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71694         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71695         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71696         Include if available.
71697         (<xalloc.h>): Include
71698         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71699         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71700         collide with FNM macros.
71701         (struct patopts): New struct.
71702         (struct exclude): Use it, as exclude patterns now come with options.
71703         (new_exclude): Support above changes.
71704         (new_exclude, add_exclude_file):
71705         Initial size must now be a power of two to simplify overflow checking.
71706         (free_exclude, fnmatch_no_wildcards): New function.
71707         (excluded_filename): No longer requires options arg, as the options
71708         are determined by add_exclude.  Now returns bool, not int.
71709         (excluded_filename, add_exclude):
71710         Add support for the fancy new exclusion options.
71711         (add_exclude, add_exclude_file): Now takes int options arg.
71712         Check for arithmetic overflow when computing sizes.
71713         (add_exclude_file): xrealloc might modify errno, so don't
71714         realloc until after errno might be used.
71715
71716         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71717         New macros.
71718         (free_exclude): New decl.
71719         (add_exclude, add_exclude_file): Now takes int options arg.
71720         (excluded_filename): No longer requires options arg, as the options
71721         are determined by add_exclude.  Now returns bool, not int.
71722
71723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71724
71725         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71726
71727 2001-08-27  Jim Meyering  <meyering@lucent.com>
71728
71729         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71730
71731         * lib/version-etc.c (N_): Remove definition.
71732         Revert most of last change.
71733         Instead, simply don't mark the `Copyright...' string for translation.
71734         Based on advice from Paul Eggert.
71735
71736         * lib/strtoxmax.c: Tweak comment.
71737
71738 2001-08-26  Jim Meyering  <meyering@lucent.com>
71739
71740         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71741
71742         * m4/xstrtoimax.m4: New file.
71743         * m4/xstrtoumax.m4: Add comments explaining why we
71744         AC_REPLACE_FUNCS(strtol).
71745
71746 2001-08-26  Jim Meyering  <meyering@lucent.com>
71747
71748         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71749         of copyright with `%s' so translators don't get an untranslated
71750         message in 2002.
71751         (COPYRIGHT_YEAR): Define.
71752         (version_etc): Use fprintf rather than fputs.
71753         Suggestion from Ulrich Drepper.
71754
71755         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71756
71757         * lib/strtoll.c: New file, from GNU libc.
71758         * lib/xstrtoimax.c: New file.
71759
71760         * lib/xstrtol.h: Add xstrtoimax.
71761         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71762         * lib/strtoimax.c: New file.  Likewise, but first define
71763         STRTOUXMAX_SIGNED.
71764
71765         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71766         ...
71767         * lib/strtoxmax.c: ... then renamed to this.
71768
71769 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71770
71771         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71772         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71773         (jm_AC_TYPE_INTMAX_T): New macro.
71774         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71775
71776         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71777
71778         * m4/longlong.m4: Renamed from ulonglong.m4.
71779         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71780         * m4/uintmax_t.m4: Removed.
71781
71782 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71783
71784         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71785         Port to Solaris 8, where 'sed' requires a space after the 'r'
71786         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71787         Redirect output to $tmp just once.
71788
71789 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71790
71791         * lib/addext.c (<errno.h>): Include.
71792         (errno): Declare if not defined.
71793         (addext): Work correctly when pathconf returns -1 and leaves
71794         errno alone because there is no limit.  Also, work even if
71795         pathconf returns a value greater than SIZE_MAX.
71796
71797 2001-08-12  Jim Meyering  <meyering@lucent.com>
71798
71799         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71800         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71801         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71802         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71803         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71804         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71805         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71806         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71807         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71808         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71809         utime.m4, utimes.m4, xstrtoumax.m4:
71810         Quote the first argument in each use of AC_DEFUN.
71811
71812 2001-08-12  Jim Meyering  <meyering@lucent.com>
71813
71814         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71815         Simply `return getcwd (NULL, 0);'.
71816         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71817         Use 1300 as initial value for length, not PATH_MAX.
71818
71819         * lib/pathmax.h: Clean up cpp syntax.
71820
71821 2001-08-12  Jim Meyering  <meyering@lucent.com>
71822
71823         * lib/gettimeofday.c: New file.
71824         * lib/gtod.h: New file.
71825         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71826
71827 2001-08-05  Jim Meyering  <meyering@lucent.com>
71828
71829         * m4/jm-macros.m4: Require autoconf-2.52.
71830
71831 2001-08-04  Jim Meyering  <meyering@lucent.com>
71832
71833         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71834         stmt, to get in sync with glibc.
71835
71836 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71837
71838         The following changes are from gettext 0.10.39 as maintained by
71839         Bruno Haible.
71840
71841         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71842         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71843         with inverted sense.  All uses changed.
71844
71845         * lib/mbswidth.c: Don't include <limits.h>.
71846         Include <stdlib.h> and <string.h> unconditionally.
71847         (iswcntrl, mbsinit, ISCNTRL): New macros.
71848         (mbsnwidth): Use K&R style function declarations.
71849         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71850         can optimize it when MB_CUR_MAX == 1.
71851         The width of control characters is zero, not 1.
71852
71853 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71854
71855         The following changes are from gettext 0.10.39 as maintained by
71856         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71857
71858         * m4/codeset.m4: Upgrade to serial AM1.
71859         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71860         all uses changed.  Quote first arg of AC_DEFUN.
71861         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71862
71863         * m4/iconv.m4: Upgrade to serial AM2.
71864         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71865         Add --with-libconv-prefix.
71866         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71867         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71868         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71869         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71870         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71871
71872         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71873         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71874         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71875         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71876         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71877         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71878         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71879         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71880         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71881
71882         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71883         string.h any more.
71884
71885         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71886         not the default value.
71887
71888         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71889         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71890         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71891         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71892         Also check for iswcntrl, used for wcwidth fallback.
71893         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71894         to Autoconf 2.13.
71895
71896 2001-08-03  Jim Meyering  <meyering@lucent.com>
71897
71898         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71899         as it was in the original.  Reported by Paul Eggert.
71900
71901 2001-07-16  Jim Meyering  <meyering@lucent.com>
71902
71903         * m4/gettimeofday.m4: New file.
71904         Prompted by a report from Bernhard Baehr.
71905
71906 2001-07-15  Jim Meyering  <meyering@lucent.com>
71907
71908         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71909         stuff. Now it's in ../Makefile.cfg.
71910
71911 2001-07-15  Jim Meyering  <meyering@lucent.com>
71912
71913         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71914         (BUILT_SOURCES): Add unlocked-io.h.
71915         (io_functions): Define.
71916         (unlocked-io.h): New rule.
71917         (DISTCLEANFILES): Add unlocked-io.h.
71918         (all-local): Depend on unlocked-io.h, to ensure it is created.
71919
71920         * lib/unlocked-io.hin: New file
71921
71922         * lib/regex.c: Update from glibc.
71923
71924 2001-07-05  Jim Meyering  <meyering@lucent.com>
71925
71926         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71927         recommendation.
71928         (libfetish_a_SOURCES): Put all .h files here instead.
71929         Remove a thus-exposed (better checks in automake) duplicate and
71930         two unnecessary .h files.
71931
71932 2001-07-04  Jim Meyering  <meyering@lucent.com>
71933
71934         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71935         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71936         distcheck failure.
71937
71938 2001-07-02  Jim Meyering  <meyering@lucent.com>
71939
71940         The following changes were prompted by suggestions from Bruno Haible.
71941
71942         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71943         is now generated.
71944         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71945         definition of EXTRA_DIST.
71946         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71947         ensure that the generated file is created/updated whenever the list
71948         of $(unlocked_functions) is changed.
71949         (jm-glibc-io.m4): New rule.
71950         (unlocked-io.h): New rule -- currently unused.
71951
71952 2001-06-24  Jim Meyering  <meyering@lucent.com>
71953
71954         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71955         unmatched right bracket, rather than kludging it with an extra,
71956         falsely-matching quote in a comment.  Patch by Akim Demaille.
71957
71958 2001-06-11  Jim Meyering  <meyering@lucent.com>
71959
71960         * lib/regex.c: Update from GNU libc.
71961
71962 2001-05-27  Jim Meyering  <meyering@lucent.com>
71963
71964         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71965         Check for ut_type in struct utmp.
71966
71967 2001-05-27  Jim Meyering  <meyering@lucent.com>
71968
71969         * lib/readutmp.h (UT_TYPE): Define.
71970
71971 2001-05-24  Jim Meyering  <meyering@lucent.com>
71972
71973         * lib/argmatch.c: Include "quote.h".
71974         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71975         quote function.  Reported by Göran Uddeborg.
71976
71977 2001-05-22  Jim Meyering  <meyering@lucent.com>
71978
71979         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71980         now that we use the package-supplied version unconditionally.
71981         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71982
71983 2001-05-21  Jim Meyering  <meyering@lucent.com>
71984
71985         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71986         shell syntax errors.
71987
71988 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71989
71990         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71991
71992 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71993
71994         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71995         Don't bother to check library strftime, since
71996         we'll be using our own my_strftime function anyway.
71997         Define my_strftime instead of strftime.
71998
71999 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
72000
72001         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
72002         which is not yet declared.
72003
72004 2001-05-15  Jim Meyering  <meyering@lucent.com>
72005
72006         * m4/regex.m4: Use proper quoting so brackets appear in the test
72007         program.
72008         Reported by, and with help from, Bruno Haible.
72009
72010 2001-05-13  Jim Meyering  <meyering@lucent.com>
72011
72012         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
72013         undefined.
72014
72015 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72016
72017         dirname code cleanup.  base_name now behaves more compatibly
72018         with POSIX basename when given file names that have trailing
72019         slashes, and similarly for dir_name.  Add new primitives
72020         base_len and dir_len.  Put the directory-name-related decls
72021         into dirname.h.
72022
72023         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
72024         * lib/backupfile.c (base_name): Likewise.
72025         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
72026         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
72027         * lib/makepath.c (strip_trailing_slashes): Likewise.
72028         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
72029         ISSLASH): Likewise.
72030         * lib/rename.c (strip_trailing_slashes): Likewise.
72031         * lib/same.c (base_name): Likewise.
72032         * lib/stripslash.c (ISSLASH): Likewise.
72033
72034         * lib/addext.c: Include <dirname.h> after size_t is defined.
72035         * lib/backupfile.c: Likewise.
72036
72037         * lib/addext.c (addext): Use base_len to trim redundant
72038         trailing slashes instead of doing it ourselves.
72039         But do not trim the last slash if it is not redundant.
72040
72041         * lib/backupfile.c (find_backup_file_name,
72042         max_backup_version): Use base_len instead of rolling it ourselves.
72043         Handle the case of "" and (on DOS) "C:" correctly.
72044
72045         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
72046         needed. Include <string.h>, <dirname.h>.
72047         (base_name): Allow file names ending in slashes, other than names
72048         that are all slashes.  In this case, return the basename followed
72049         by the slashes.  This is more general, and can be used in places
72050         where the original base_name purposely had an assertion failure.
72051         (base_len): New function.
72052
72053         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
72054         Do not include <assert.h>; no longer needed.
72055         Include xalloc.h.
72056         (memrchr): Remove decl.
72057         (dir_name_r): Remove.
72058         (dir_len): Renamed from dirlen.  All callers changed.
72059         Rewrite in terms of base_name, for simplicity and consistency.
72060         (dir_name): Never return NULL.  All callers changed.
72061         Do not include <stdlib.h> in test program; no longer needed.
72062         return 0; is fine for test program.
72063
72064         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
72065         New macros.
72066         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
72067
72068         * lib/path-concat.c (path_concat): Use base_len to compute
72069         base length, not strlen; this means we cannot rely on memcpy
72070         to null-terminate.
72071
72072         * lib/same.c (STREQ): Remove.
72073         (same_name): Handle the case where the basename ends in trailing '/'.
72074
72075         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
72076         a slash was stripped.  Do not strip the last slash after a
72077         file system prefix.
72078
72079 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72080
72081         * lib/Makefile.am (libfetish_a_SOURCES):
72082         Add strftime.c, since we now compile it on all hosts.
72083
72084         * lib/strftime.c (my_strftime):
72085         Define to nstrftime if emacs, but only if my_strftime is not defined.
72086         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
72087         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
72088         Add one more extra argument: a nanoseconds value.
72089         All uses changed.
72090         (ns): New macro.
72091         (my_strftime function): Add %N format.
72092         (emacs_strftimeu): Renamed from emacs_strftime,
72093         with extra ut argument.
72094
72095 2001-05-09  Paul Eggert  <eggert@twinsun.com>
72096
72097         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
72098
72099 2001-04-21  Jim Meyering  <meyering@lucent.com>
72100
72101         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
72102         doesn't interfere.
72103
72104 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72105
72106         * m4/ftruncate.m4: Check for chsize.
72107         Link with ftruncate.o unconditionally if ftruncate is missing.
72108         This was required when cross-compiling to i586-mingw32msvc.
72109
72110 2001-04-08  Jim Meyering  <meyering@lucent.com>
72111
72112         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
72113         recomputed; that's necessary when the offset spans a DST transition.
72114         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
72115
72116 2001-04-02  Jim Meyering  <meyering@lucent.com>
72117
72118         * lib/regex.h, regex.c: Update from GNU libc.
72119
72120 2001-03-24  Jim Meyering  <meyering@lucent.com>
72121
72122         * m4/jm-macros.m4: Require autoconf-2.49d.
72123
72124 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
72125
72126         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
72127
72128 2001-03-19  Paul Eggert  <eggert@twinsun.com>
72129
72130         * lib/version-etc.c (version_etc_copyright): Update to 2001.
72131
72132 2001-03-17  Jim Meyering  <meyering@lucent.com>
72133
72134         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
72135         now that the version in autoconf is equivalent.
72136         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
72137
72138         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
72139         Suggestion from Akim Demaille.
72140
72141         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
72142         (jm_PREREQ_TEMPNAME): New function.
72143
72144 2001-03-16  Paul Eggert  <eggert@twinsun.com>
72145
72146         * lib/tempname.c (uint64_t): Define to uintmax_t if
72147         not defined, and if UINT64_MAX is not defined.
72148         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
72149         Reported by John David Anglin.
72150
72151 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
72152
72153         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
72154         resolve alias if codeset is empty.
72155         * lib/config.charset (BeOS): Use wildcard syntax.
72156
72157 2001-03-13  Jim Meyering  <meyering@lucent.com>
72158
72159         * lib/path-concat.c (path_concat)
72160         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
72161         concatenating e.g., `C:' and `foo'.
72162         From Bruno Haible.
72163
72164 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72165
72166         * lib/localcharset.c (locale_charset): Don't use
72167         setlocale(LC_CTYPE,NULL). Don't return NULL.
72168         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
72169
72170 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72171
72172         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
72173         support for DOS/DJGPP.
72174
72175 2001-03-01  Paul Eggert  <eggert@twinsun.com>
72176
72177         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
72178         lacks mkstemp.  Compile our own tempname.c if we compile our own
72179         mkstemp.c, as mkstemp relies on tempname.
72180
72181 2001-03-01  Jim Meyering  <meyering@lucent.com>
72182
72183         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
72184         AH_VERBATIM really does output its argument verbatim.
72185
72186 2001-02-28  Paul Eggert  <eggert@twinsun.com>
72187
72188         * lib/Makefile.am (libfetish_a_SOURCES):
72189         Add dup-safer.c, fopen-safer.c.
72190         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
72191
72192         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
72193         * lib/unistd-safer.h: New files.
72194
72195 2001-02-25  Paul Eggert  <eggert@twinsun.com>
72196
72197         The mkstemp replacement is taken from glibc 2.2.2, with some
72198         portability fixes for use outside glibc, as follows:
72199
72200         * lib/tempname.c (struct_stat64): New macro.
72201         (direxists, __gen_tempname): Use it.
72202         This avoids a portability problem with Solaris 8.
72203
72204         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
72205         (<stddef.h>, <stdint.h>, <string.h>):
72206         Include only if STDC_HEADERS || _LIBC.
72207         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
72208         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
72209         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
72210         (__set_errno): Define this macro if <errno.h> doesn't.
72211         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
72212         Define these macros if <stdio.h> doesn't.
72213         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
72214         Define these macros if <sys/stat.h>
72215         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
72216         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
72217         __xstat64): Define if not _LIBC.
72218         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
72219         (__gen_tempname): Invoke gettimeofday only if
72220         HAVE_GETTIMEOFDAY || _LIBC;
72221         otherwise, fall back on plain "time".
72222         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
72223
72224         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
72225
72226         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
72227
72228 2001-02-18  Paul Eggert  <eggert@twinsun.com>
72229
72230         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
72231
72232 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72233
72234         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
72235         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
72236         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
72237         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72238
72239 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72240
72241         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
72242         Remove workaround macros for hosts that have mbrtowc but not
72243         mbstate_t, as we now insist on proper declarations for both
72244         before using mbrtowc.
72245
72246 2001-02-17  Jim Meyering  <meyering@lucent.com>
72247
72248         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
72249         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
72250         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
72251         UnixWare 7.1.1.
72252
72253         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
72254         rather than AC_CACHE_VAL.
72255
72256 2001-02-17  Jim Meyering  <meyering@lucent.com>
72257
72258         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
72259         around included file name.
72260
72261         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
72262
72263         * lib/strftime.c: Update from GNU libc (the only changes were to
72264         comments).
72265
72266 2001-02-17  Jim Meyering  <meyering@lucent.com>
72267
72268         * lib/regex.c: Update from libc.
72269
72270 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
72271
72272         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
72273         clash.
72274
72275 2001-02-16  Paul Eggert  <eggert@twinsun.com>
72276
72277         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
72278         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
72279         Reported by Mark Hounschell via Paul Eggert.
72280
72281 2001-02-07  Jim Meyering  <meyering@lucent.com>
72282
72283         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
72284
72285 2001-02-05  Jim Meyering  <meyering@lucent.com>
72286
72287         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
72288         it includes the patch required for `large file' support with at least
72289         HP-UX's 10.20 /bin/cc.
72290
72291 2001-02-03  Jim Meyering  <meyering@lucent.com>
72292
72293         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
72294         AS_IF, now that it works once again (mysteriously).
72295         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72296
72297 2001-01-30  Jim Meyering  <meyering@lucent.com>
72298
72299         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
72300         * m4/chown.m4: Rename conftestchown to conftest.chown.
72301         * m4/rename.m4: s/conftestdir/conftest.d1/ and
72302         s/conftestdir2/conftest.d2/.
72303         * m4/utimes.m4: s/conftestdata/conftest.data/
72304         Inspired by Pavel Roskin's change in autoconf.
72305
72306 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
72307
72308         * lib/config.charset: Update for FreeBSD 4.2.
72309
72310 2001-01-27  Jim Meyering  <meyering@lucent.com>
72311
72312         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
72313         a use of AS_IF.
72314         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72315
72316 2001-01-26  Jim Meyering  <meyering@lucent.com>
72317
72318         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
72319         quotearg.c includes it.
72320
72321 2001-01-26  Jim Meyering  <meyering@lucent.com>
72322
72323         * lib/quotearg.c: Include stddef.h.
72324         * lib/quote.c: Include stddef.h.
72325         Reported by Axel Kittenberger.
72326
72327         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
72328         line in double quotes so that it evokes a better diagnostic.
72329         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
72330         Reported by Axel Kittenberger.
72331
72332 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
72333
72334         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
72335         as if it was a `charset'.
72336
72337 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72338
72339         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
72340         has const.
72341
72342 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72343
72344         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
72345         to avoid a warning.  Add back 'const' to inptr.
72346
72347 2001-01-20  Jim Meyering  <meyering@lucent.com>
72348
72349         Be sure that headers are checked before used in code compiled
72350         for the type checks.
72351         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
72352         In place of that, invoke jm_CHECK_ALL_TYPES.
72353         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
72354         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
72355         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
72356         The check for ssize_t was mistakenly run before the test for unistd.h.
72357
72358         The configure-time check for stdbool.h was missing.
72359         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
72360         (jm_PREREQ_HASH): New function.
72361
72362 2001-01-17  Jim Meyering  <meyering@lucent.com>
72363
72364         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
72365         for autoconf-2.49c.
72366         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
72367
72368 2001-01-16  Jim Meyering  <meyering@lucent.com>
72369
72370         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
72371         From Bruno Haible.
72372
72373 2001-01-14  Jim Meyering  <meyering@lucent.com>
72374
72375         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
72376         foo and bar.  Create conftestdir/ in the script, not in the C code.
72377         Remove directories in the script, not in the C code.
72378         Remove conftestdir{,2} before trying to create the directory.
72379         Make the entire configure script fail if the mkdir fails.
72380
72381 2001-01-14  Jim Meyering  <meyering@lucent.com>
72382
72383         * lib/rename.c: New file.  From Volker Borchert.
72384         Include stdlib.h, string.h or strings.h, and xalloc.h.
72385         Use strip_trailing_slashes rather than open-coding it.
72386
72387 2001-01-03  Paul Eggert  <eggert@twinsun.com>
72388
72389         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
72390
72391 2001-01-03  Jim Meyering  <meyering@lucent.com>
72392
72393         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
72394         of local `inptr' to avoid warning with some system declarations of
72395         iconv.
72396
72397 2001-01-02  Volker Borchert  <bt@teknon.de>
72398
72399         * m4/rename.m4: New file.
72400         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
72401
72402 2001-01-01  Jim Meyering  <meyering@lucent.com>
72403
72404         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
72405         even on systems with utmpx.h.  It's necessary for the declaration of
72406         utmp's ut_user member.  Reported by Andreas Jaeger.
72407
72408         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72409         available. They are required for the declarations of getgrgid and
72410         getpwuid resp.
72411         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72412         Reported by Andreas Jaeger.
72413
72414 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72415
72416         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72417         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72418         so `make install' also works in VPATH builds.
72419
72420 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72421
72422         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72423         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72424         can be used in subdirectories.
72425
72426 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72427
72428         * lib/modechange.c: Do not assume that mode_t uses the
72429         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72430         the other-execute bit of FOO even if S_IXOTH != 1.
72431
72432         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72433         WOTH, XOTH, ALLM): New macros.
72434         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72435          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72436         Use them.
72437         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72438         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72439         (mode_compile):
72440         No need to use uintmax_t; unsigned long is long enough.
72441         Don't bother to get suffix since we don't use it.
72442
72443 2000-12-26  Jim Meyering  <meyering@lucent.com>
72444
72445         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72446         better with autoheader.
72447
72448 2000-12-24  Jim Meyering  <meyering@lucent.com>
72449
72450         * lib/hash.c (is_prime): Return explicit boolean values.
72451         (hash_get_first): Return NULL to appease Irix5.6's 89.
72452         Reported by Nelson Beebe.
72453
72454 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
72455
72456         * lib/localcharset.c (locale_charset): Add support for Win32.
72457
72458 2000-12-18  Paul Eggert  <eggert@twinsun.com>
72459
72460         * lib/physmem.h, lib/physmem.c: New files.
72461
72462         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72463         (noinst_HEADERS): Add physmem.h.
72464
72465         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72466         't' for compatibility with Solaris 8 sort.
72467
72468 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72469
72470         * lib/config.charset: Add support for BeOS.
72471
72472 2000-12-17  Jim Meyering  <meyering@lucent.com>
72473
72474         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72475         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72476
72477 2000-12-16  Jim Meyering  <meyering@lucent.com>
72478
72479         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72480         N and M) would have treated it like `chown N:N FILE'.
72481
72482         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72483
72484 2000-12-16  Jim Meyering  <meyering@lucent.com>
72485
72486         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72487         SHELLS_FILE to a file name that's useful on djgpp systems.
72488         Include stdlib.h.
72489         (ADDITIONAL_DEFAULT_SHELLS): Define.
72490         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72491         Based mostly on a patch from Prashant TR.
72492
72493 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72494
72495         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72496         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72497         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72498
72499 2000-12-08  Andreas Schwab  <schwab@suse.de>
72500
72501         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72502         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72503
72504 2000-12-07  Jim Meyering  <meyering@lucent.com>
72505
72506         * lib/stripslash.c (ISSLASH): Define.
72507         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72508         `/'.
72509         From Prashant TR.
72510
72511         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72512         (dir_name_r): Declare this function as static.
72513         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72514         manifest itself on a name containing a mix of slashes and
72515         backslashes.
72516         Make this function work with names starting with a DOS-style
72517         drive letter and colon prefix.
72518         (dir_name): Append `.' if necessary.
72519         Based mostly on patches from Prashant TR and Eli Zaretskii.
72520
72521         * lib/dirname.h (dir_name_r): Remove prototype.
72522
72523 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72524
72525         * m4/off_t-format.m4: Remove this file.
72526         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72527
72528 2000-12-06  Jim Meyering  <meyering@lucent.com>
72529
72530         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72531         replacement strtoull, we may well need the replacement strtoul, too.
72532         Check for declarations of strtoul and strtoull.
72533         Check for strtol.  Mainly as a cue to cause automake to include
72534         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72535         Check for limits.h -- strtol.c needs it.
72536
72537 2000-12-05  Jim Meyering  <meyering@lucent.com>
72538
72539         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72540
72541 2000-12-04  Jim Meyering  <meyering@lucent.com>
72542
72543         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72544         Also include memory.h, stdlib.h, unistd.h if appropriate.
72545         Reported by Andreas Jaeger (conflicting declaration of malloc).
72546
72547 2000-12-02  Jim Meyering  <meyering@lucent.com>
72548
72549         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72550         * m4/jm-macros.m4 (jm_MACROS): require it.
72551
72552 2000-12-02  Jim Meyering  <meyering@lucent.com>
72553
72554         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72555
72556 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72557
72558         * lib/memrchr.c: Include <config.h> before any system include file.
72559
72560 2000-11-30  Jim Meyering  <meyering@lucent.com>
72561
72562         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72563
72564 2000-11-30  Jim Meyering  <meyering@lucent.com>
72565
72566         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72567
72568 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72569
72570         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72571
72572 2000-11-26  Jim Meyering  <meyering@lucent.com>
72573
72574         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72575
72576 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72577
72578         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72579         size of (size_t) -1; it's not portable.
72580
72581 2000-11-17  Jim Meyering  <meyering@lucent.com>
72582
72583         * lib/strstr.c: Update from GNU libc.
72584
72585 2000-11-17  Akim Demaille  <akim@epita.fr>
72586
72587         * lib/obstack.h: Formatting changes.
72588         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72589         prevent type checking.
72590         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72591         cast the value to (void *): assigning a `foo *' to a `void *'
72592         variable is valid.
72593         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72594
72595 2000-11-16  Jim Meyering  <meyering@lucent.com>
72596
72597         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72598
72599 2000-11-11  Jim Meyering  <meyering@lucent.com>
72600
72601         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72602
72603 2000-11-10  Jim Meyering  <meyering@lucent.com>
72604
72605         * lib/obstack.h: Update from GNU libc.
72606         * lib/obstack.c: Likewise.
72607
72608 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72609
72610         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72611
72612 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72613
72614         * lib/getusershell.c (setusershell): Use rewind rather than
72615         fseek/fseeko, to avoid configuration hassles with fseeko.
72616         Don't bother opening SHELLS_FILE if shellstream is NULL;
72617         it's not necessary.
72618
72619 2000-11-05  Jim Meyering  <meyering@lucent.com>
72620
72621         * lib/makepath.h (make_dir): Declare.
72622         * lib/makepath.c (make_dir): Remove `static' attribute.
72623         Tweak a comment.
72624
72625 2000-11-04  Jim Meyering  <meyering@lucent.com>
72626
72627         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72628
72629 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72630
72631         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72632         last one in a bucket, advance to the next bucket.
72633
72634 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72635
72636         * lib/fnmatch.c: Do not comment out all the code if we are using
72637         the GNU C library, because in some cases we are replacing buggy
72638         code in the GNU C library itself.
72639
72640 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72641
72642         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72643         (regex_compile): Catch bogus \(\1\).
72644
72645 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72646
72647         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72648         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72649         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72650
72651 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72652
72653         * lib/error.h, getline.h, modechange.h:
72654         Remove "2000" from Copyright line, as the file hasn't been
72655         changed this year other than in the copyright notice.
72656
72657         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72658         was changed this year.
72659
72660 2000-10-29  Jim Meyering  <meyering@lucent.com>
72661
72662         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72663         renaming.
72664         * m4/ls-mntd-fs.m4: Likewise
72665
72666 2000-10-29  Jim Meyering  <meyering@lucent.com>
72667
72668         * lib/xstat.in: Fix grammar in comment.
72669
72670 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72671
72672         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72673         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72674         doesn't define __restrict_arr.
72675
72676 2000-10-28  Jim Meyering  <meyering@lucent.com>
72677
72678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72679         (jm_PREREQ_MEMCHR): New function.
72680
72681 2000-10-28  Jim Meyering  <meyering@lucent.com>
72682
72683         * lib/memchr.c: Update from libc.
72684         Adjust for portability:
72685         [HAVE_STDLIB_H]: Include stdlib.h.
72686         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72687         Undef __memchr, too.
72688         [!weak_alias]: Define __memchr to memchr.
72689
72690         * lib/regex.c: Update from libc.
72691         * lib/regex.h: Likewise.
72692         * lib/getopt1.c: Likewise.
72693         * lib/memcmp.c: Likewise.
72694
72695         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72696         Avoid using fseek, when possible -- it's broken by design.
72697         Patch by Ulrich Drepper.
72698
72699 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72700
72701         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72702         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72703         Giving in to popular pressure to shut up the compiler with casts.
72704
72705 2000-10-26  Jim Meyering  <meyering@lucent.com>
72706
72707         * lib/strftime.c: Update from libc.
72708
72709 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72710
72711         * regex.c: More `unsigned char' -> `re_char' changes.
72712         Also change several `int' into `re_wchar_t'.
72713         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72714         (PUSH_FAILURE_POINTER): Don't cast any more.
72715         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72716         We want GCC to complain, since this piece of code makes
72717         re_match non-reentrant, which *should* be fixed.
72718         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72719         (EXTEND_BUFFER): Use RETALLOC.
72720         (SET_LIST_BIT): Don't cast.
72721         (re_wchar_t): New type.
72722         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72723         that those two functions will always properly return.
72724         (IMMEDIATE_QUIT_CHECK): Cast to void.
72725         (analyse_first): Use recursion rather than an explicit stack.
72726         (re_compile_fastmap): Can't fail anymore.
72727         (re_search_2): Don't check re_compile_fastmap for failure.
72728         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72729         Now also sets the new value (passed in a new argument).
72730         (re_match_2_internal): Use it.
72731         Also, use a new var `reg' of type size_t when looping through regs
72732         rather than reuse the inappropriate `mcnt'.
72733
72734 2000-10-25  Jim Meyering  <meyering@lucent.com>
72735
72736         * lib/obstack.c: Update from libc.
72737
72738 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72739
72740         * regex.c (regex_compile): Change the way of handling a range from
72741         a char less than 256 to a char not less than 256.
72742
72743 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72744
72745         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72746         NT-Emacs only.
72747         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72748         so that re_search functions only quit when callers expect them to.
72749
72750 2000-10-23  Jim Meyering  <meyering@lucent.com>
72751
72752         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72753         wrong.  That set_locale call must not have any side effects.
72754         From Paul Eggert.
72755
72756 2000-10-22  Jim Meyering  <meyering@lucent.com>
72757
72758         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72759         [CYCLIC]: Remove now-unused definition.
72760
72761         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72762         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72763         Suggestion from Ulrich Drepper.
72764
72765 2000-10-21  Jim Meyering  <meyering@lucent.com>
72766
72767         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72768         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72769         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72770
72771 2000-10-21  Jim Meyering  <meyering@lucent.com>
72772
72773         * lib/dirname.c (memrchr): Declare if necessary.
72774         (dir_name): Remove the restriction that there be no
72775         trailing slashes.  Now, this code skips past them, effectively
72776         ignoring them.
72777         [TEST_DIRNAME] (main): New unit tests.
72778
72779         * lib/memrchr.c: New file from GNU libc.
72780         Undef __memrchr, too.
72781         [!weak_alias]: Define __memrchr to memrchr.
72782         Guard weak_alias use with `#ifdef weak_alias'.
72783
72784 2000-10-21  Jim Meyering  <meyering@lucent.com>
72785
72786         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72787         (dir_name): Use dir_name_r.
72788         * lib/dirname.h (dir_name_r): Declare it.
72789
72790 2000-10-17  Jim Meyering  <meyering@lucent.com>
72791
72792         * lib/quote.h (PARAMS): Define and use.
72793         Reported by Akim Demaille.
72794
72795         * lib/getopt.c: Update from libc.
72796
72797 2000-10-16  Jim Meyering  <meyering@lucent.com>
72798
72799         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72800         setlocale.
72801         From Jan Fedak.
72802
72803 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72804
72805         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72806
72807 2000-09-25  Jim Meyering  <meyering@lucent.com>
72808
72809         * lib/md5.h (rol): Define (from GnuPG).
72810
72811         * lib/sha.c: Give credit (GnuPG) where due.
72812         (M): Use rol rather than open-coding it.
72813         Add a FIXME comment.
72814
72815 2000-09-21  Jim Meyering  <meyering@lucent.com>
72816
72817         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72818         Reported by Michael Stone.
72819
72820 2000-09-20  Jim Meyering  <meyering@lucent.com>
72821
72822         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72823         (noinst_HEADERS): Add sha.h.
72824         Based on code from Scott G. Miller and from GnuPG.
72825
72826 2000-09-18  Jim Meyering  <meyering@lucent.com>
72827
72828         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72829         LIBS. Otherwise, everyone ends up linking with -lelf for some
72830         configurations.
72831         Reported by Mike Stone.
72832
72833 2000-09-15  Jim Meyering  <meyering@lucent.com>
72834
72835         * lib/regex.c: Update from libc.
72836
72837 2000-09-10  Jim Meyering  <meyering@lucent.com>
72838
72839         * lib/getopt.c (_getopt_internal): Update from glibc.
72840
72841 2000-09-09  Jim Meyering  <meyering@lucent.com>
72842
72843         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72844         think it should be used as a general replacement for isascii.
72845         * lib/fnmatch.c: Likewise.
72846         * lib/mbswidth.c: Likewise
72847         * lib/regex.c: Likewise.
72848
72849         Don't use atoi.
72850         * lib/userspec.c: Include sys/param.h and limits.h.
72851         Include xstrtol.h.
72852         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72853         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72854         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72855         UID, GID.  Check range.
72856
72857 2000-09-06  Jim Meyering  <meyering@lucent.com>
72858
72859         * lib/getopt.c (_getopt_internal): Update from glibc.
72860
72861 2000-08-30  Jim Meyering  <meyering@lucent.com>
72862
72863         * lib/strftime.c: Merge in changes from GNU libc.
72864
72865 2000-08-26  Jim Meyering  <meyering@lucent.com>
72866
72867         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72868         * m4/fpending.m4: New file.
72869
72870 2000-08-26  Jim Meyering  <meyering@lucent.com>
72871
72872         * lib/closeout.c: Include "__fpending.h".
72873         (close_stdout_status): Return right away if there's nothing to flush.
72874
72875         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72876         * lib/__fpending.c: New file.
72877         * lib/__fpending.h: New file.
72878
72879 2000-08-20  Jim Meyering  <meyering@lucent.com>
72880
72881         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72882         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72883         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72884
72885 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72886
72887         Improve fileutils installation on systems where running
72888         programs (like install) can't be unlinked.
72889         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72890         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72891
72892 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72893
72894         Standardize on "memory exhausted" instead of "Memory exhausted"
72895         or "virtual memory exhausted".
72896         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72897         "virtual memory exhausted".
72898         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72899         our own message.
72900         * lib/userspec.c (parse_user_spec): Likewise.
72901         * lib/bumpalloc.h: comment fix
72902         * lib/same.c, userspec.c: Include xalloc.h.
72903
72904         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72905         not char *const and pointing to a constant array.
72906         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72907         (xrealloc): Comment fix.
72908
72909         * lib/userspec.c (parse_user_spec):
72910         Don't translate a message until just before returning,
72911         to avoid unnecessary translation.
72912
72913 2000-08-07  Jim Meyering  <meyering@lucent.com>
72914
72915         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72916         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72917         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72918         getgroups.c, gethostname.c, getopt.h, group-member.c,
72919         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72920         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72921         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72922         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72923         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72924         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72925         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72926         yesno.c: Back out Copyright date changes for each file with no change
72927         this year.  This eases coordination with other programs using the same
72928         source code modules.  From Paul Eggert.
72929
72930 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72931
72932         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72933         not char, for compatibility with glibc 2.1.3 strftime.c.
72934
72935 2000-08-03  Greg McGary  <greg@mcgary.org>
72936
72937         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72938         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72939         (EXTEND_BUFFER): Use them.
72940
72941 2000-08-01  Jim Meyering  <meyering@lucent.com>
72942
72943         * lib/dirname.c (ISSLASH): Define.
72944         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72945         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72946         both `\' and `/' may be use as path separators.
72947         Based on a patch from Prashant TR.
72948
72949 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72950
72951         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72952         slot vector a constant, since it might get modified.
72953
72954 2000-07-31  Jim Meyering  <meyering@lucent.com>
72955
72956         * lib/xmalloc.c: Use `virtual memory exhausted', not
72957         `Memory exhausted'.
72958         * lib/obstack.c (print_and_abort): Likewise.
72959
72960 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72961
72962         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72963         buffer, so that the caller can always quote one small
72964         component of a "memory exhausted" message in slot 0.
72965         From a suggestion by Jim Meyering.
72966
72967 2000-07-30  Jim Meyering  <meyering@lucent.com>
72968
72969         * lib/makepath.c (make_path): Quote the other instance, too.
72970
72971         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72972         (STATIC_BUF_SIZE): Define.
72973         (quotearg_n_options): Use only statically allocated storage when
72974         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72975         than STATIC_BUF_SIZE.
72976
72977 2000-07-29  Jim Meyering  <meyering@lucent.com>
72978
72979         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72980         * lib/dirname.c (dir_name): Likewise.
72981
72982         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72983         `/'.
72984
72985         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72986         (dir_name): Assert that there are no trailing slashes.
72987
72988 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72989
72990         * lib/mbswidth.h (mbswidth): Add a flags argument.
72991         (mbswidth): New declaration.
72992         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72993         * lib/mbswidth.c (mbswidth): Add a flags argument.
72994         (mbsnwidth): New function.
72995
72996 2000-07-24  Jim Meyering  <meyering@lucent.com>
72997
72998         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72999
73000 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73001
73002         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
73003
73004 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73005
73006         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
73007         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
73008         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
73009         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
73010         invoke multibyte primitives.
73011
73012 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73013
73014         * lib/quotearg.c:
73015         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
73016         so that mbstate_t is always defined.
73017
73018         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
73019         be 1 in at least one GCC installation, and this configuration
73020         error is likely to be common.  Ignoring MB_LEN_MAX hurts
73021         performance on hosts that have mbrtowc but have only unibyte
73022         locales, but I assume these hosts are rare.
73023
73024 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73025
73026         * lib/mbswidth.c (_XOPEN_SOURCE):
73027         Don't define; this causes problems on Solaris 7.
73028         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
73029
73030 2000-07-23  Jim Meyering  <meyering@lucent.com>
73031
73032         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
73033         too: getgrgid, getpwuid, getuid.
73034
73035 2000-07-23  Jim Meyering  <meyering@lucent.com>
73036
73037         * lib/basename.c (base_name): Add an assertion.
73038
73039 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
73040
73041         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
73042         shadow its mbsinit function.
73043
73044 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73045
73046         * lib/mbswidth.h: New file.
73047         * lib/mbswidth.c: New file.
73048         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
73049         (noinst_HEADERS): Add mbswidth.h.
73050
73051 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73052
73053         * lib/config.charset: Add support for FreeBSD. Improve support for
73054         HP-UX and IRIX 6.
73055
73056 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
73057
73058         * m4/mbswidth.m4: New file.
73059         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
73060
73061 2000-07-15  Jim Meyering  <meyering@lucent.com>
73062
73063         * lib/makepath.c: Include quote.h.
73064         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
73065         corresponding argument in a `quote (...)' call.
73066         Give better diagnostics.
73067
73068         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
73069         (noinst_HEADERS): Add quote.h.
73070
73071         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
73072         from tar's src/misc.c.
73073         * lib/quote.h: New file.  Prototypes for same.
73074
73075 2000-07-14  Paul Eggert  <eggert@twinsun.com>
73076
73077         From a suggestion by Bruno Haible.
73078         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
73079         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
73080         to decide whether to define the BeOS workaround macro;
73081         this adjusts to the change to AC_MBSTATE_T.
73082
73083 2000-07-14  Jim Meyering  <meyering@lucent.com>
73084
73085         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
73086         jm_AC_TYPE_UINTMAX_T.
73087
73088 2000-07-13  Paul Eggert  <eggert@twinsun.com>
73089
73090         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
73091
73092         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
73093         quotearg_buffer_restyled): Add support for
73094         clocale_quoting_style.  Undo previous change to
73095         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
73096         and "{RIGHT QUOTATION MARK}" msgids.
73097
73098 2000-07-10  Paul Eggert  <eggert@twinsun.com>
73099
73100         From a suggestion by Bruno Haible.
73101         * m4/mbstate_t.m4 (AC_MBSTATE_T):
73102         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
73103         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
73104         and mbstate_t, to a single-part test that simply defines mbstate_t.
73105         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
73106         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
73107
73108 2000-07-10  Jim Meyering  <meyering@lucent.com>
73109
73110         * m4/strerror_r.m4: Mirror the correction made in autoconf.
73111
73112         * m4/gnu-source.m4: Output to confdefs.h directly.
73113         Suggestion from Akim Demaille.
73114
73115 2000-07-09  Paul Eggert  <eggert@twinsun.com>
73116
73117         The old behavior of quoting `like this' doesn't look good with
73118         newer, ISO-style fonts.  See:
73119         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
73120
73121         Instead, quote "like this" by default.  Let the translator
73122         tailor the locale-specific quoting behavior by providing
73123         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
73124
73125         * lib/quotearg.c (N_): New macro.
73126         (gettext_default): New function.
73127         (quotearg_buffer_restyled): Use
73128         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
73129         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
73130
73131 2000-07-09  Jim Meyering  <meyering@lucent.com>
73132
73133         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
73134         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
73135
73136         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
73137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
73138
73139 2000-07-09  Jim Meyering  <meyering@lucent.com>
73140
73141         * lib/Most files: Update copyright dates to include 2000.
73142
73143 2000-07-08  Jim Meyering  <meyering@lucent.com>
73144
73145         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
73146         if not defined.
73147         (xgethostname): Remove now-unnecessary #ifdef.
73148         Move declaration of `err' into loop where it's used.
73149
73150 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73151         and Bruno Haible  <haible@clisp.cons.org>
73152
73153         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
73154         only if the test for an object-type mbstate_t fails.  This
73155         prevents us from mistakenly reporting that mbstate_t is a
73156         system object type after we "#define mbstate_t int" to work
73157         around its lack.
73158
73159 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73160         and Bruno Haible  <haible@clisp.cons.org>
73161
73162         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
73163
73164 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73165
73166         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
73167         to strerror_r.
73168         Include <ctype.h> for use of isalpha.
73169
73170 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73171
73172         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
73173         by allocating a larger buffer. Test the gethostname return value for
73174         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
73175         returns an error and ENAMETOOLONG isn't defined.
73176
73177 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73178
73179         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
73180         dimension.
73181
73182 2000-07-04  Jim Meyering  <meyering@lucent.com>
73183
73184         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
73185         of the deprecated AC_CHECKING.
73186
73187 2000-07-04  Jim Meyering  <meyering@lucent.com>
73188
73189         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
73190         Reported by Bruno Haible.
73191
73192 2000-07-04  Jim Meyering  <meyering@lucent.com>
73193
73194         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
73195         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
73196         lacks mbrtowc.
73197
73198 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73199
73200         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
73201         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
73202
73203 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73204         and Bruno Haible  <haible@clisp.cons.org>
73205
73206         * lib/quotearg.c (mbrtowc):
73207         Assign to *pwc, and return 1 only if result is nonzero.
73208         (iswprint): Use ISPRINT when substituting our own mbrtowc.
73209
73210 2000-07-03  Jim Meyering  <meyering@lucent.com>
73211
73212         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
73213
73214 2000-07-03  Jim Meyering  <meyering@lucent.com>
73215
73216         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
73217         This is necessary to get a definition of e.g., UTMP_FILE on
73218         HP-UX 10.20.
73219         From Bob Proulx.
73220
73221 2000-07-02  Jim Meyering  <meyering@lucent.com>
73222
73223         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
73224
73225         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
73226         AC_LIBOBJ(function_name).
73227         * m4/chown.m4: Likewise.
73228         * m4/fnmatch.m4: Likewise.
73229         * m4/ftruncate.m4: Likewise.
73230         * m4/getgroups.m4: Likewise.
73231         * m4/getline.m4: Likewise.
73232         * m4/group-member.m4: Likewise.
73233         * m4/jm-macros.m4: Likewise.
73234         * m4/lstat.m4: Likewise.
73235         * m4/malloc.m4: Likewise.
73236         * m4/memcmp.m4: Likewise.
73237         * m4/nanosleep.m4: Likewise.
73238         * m4/putenv.m4: Likewise.
73239         * m4/realloc.m4: Likewise.
73240         * m4/regex.m4: Likewise.
73241         * m4/stat.m4: Likewise.
73242         * m4/strftime.m4: Likewise.
73243
73244 2000-07-02  Jim Meyering  <meyering@lucent.com>
73245
73246         * lib/quotearg.c (mbstate_t): Don't define here.
73247
73248 2000-07-02  Jim Meyering  <meyering@lucent.com>
73249
73250         * lib/nanosleep.c (SIGCONT): Define if not already defined.
73251
73252 2000-07-01  Jim Meyering  <meyering@lucent.com>
73253
73254         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
73255
73256 2000-07-01  Jim Meyering  <meyering@lucent.com>
73257
73258         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
73259         problem.
73260
73261 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73262
73263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
73264         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
73265
73266 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73267
73268         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
73269         per change in ../m4/ls-mntd-fs.m4.
73270         (read_filesystem_list): Ignore symbolic links.
73271
73272 2000-06-29  Jim Meyering  <meyering@lucent.com>
73273
73274         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
73275         for declaration of strcmp.
73276
73277         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
73278
73279         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
73280         Avoid warning by casting result to `char *' to remove `const'.
73281
73282 2000-06-28  Jim Meyering  <meyering@lucent.com>
73283
73284         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
73285         included by quotearg.c, for which we perform this test.  From
73286         Bruno Haible.
73287
73288 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73289
73290         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
73291         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
73292         <utmpx.h> exists, put readutmp.o into LIBOBJS.
73293
73294 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73295
73296         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
73297
73298 2000-06-26  Paul Eggert  <eggert@twinsun.com>
73299
73300         savedir now sets errno on failure and invokes xmalloc to get memory.
73301         Fix a couple of other minor bugs while we're at it.
73302
73303         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
73304         (NAMLEN): Remove macro.
73305         (malloc, realloc): Remove decls.
73306         (stpcpy): Likewise.
73307         ("xalloc.h"): Include.
73308         (NAME_SIZE_DEFAULT): New macro.
73309         (savedir): Use xmalloc / xrealloc to allocate memory.
73310         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
73311         Skip "" directory entries.
73312         Use strlen to calculate directory entry length, since the old method
73313         is rarely used these days and isn't worth supporting.
73314         Don't use a pointer after freeing it.
73315         Check for integer overflow when calculating allocation size.
73316         Use memcpy to copy entries, instead of stpcpy.
73317         Set errno properly when returning NULL.
73318         Check for readdir error.
73319
73320 2000-06-26  Jim Meyering  <meyering@lucent.com>
73321
73322         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
73323
73324 2000-06-25  Jim Meyering  <meyering@lucent.com>
73325
73326         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73327         Linux header bug when _XOPEN_SOURCE is defined to 500.
73328
73329 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73330
73331         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
73332         deficiency.
73333
73334 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73335
73336         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
73337         Include xalloc.h.
73338         Don't include <stdlib.h>.  Don't declare malloc, realloc.
73339
73340 2000-06-24  Jim Meyering  <meyering@lucent.com>
73341
73342         * m4/strerror_r.m4: Revive this file -- to try out an experimental
73343         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
73344         for which strerror does return char*, but which lacks a conveniently
73345         accessible declaration of the function.  If the compile-test says
73346         strerror_r doesn't work, then resort to a `run'-test that works on
73347         BeOS and segfaults on DEC Unix.
73348
73349 2000-06-24  Jim Meyering  <meyering@lucent.com>
73350
73351         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
73352
73353 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73354
73355         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
73356         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
73357
73358 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73359
73360         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
73361         (mbrtowc, mbstate_t): Define substitutes if
73362         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
73363         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
73364         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
73365
73366 2000-06-23  Jim Meyering  <meyering@lucent.com>
73367
73368         * m4/afs.m4: Add missing AC_MSG_RESULT.
73369         Reported by Bruno Haible.
73370
73371         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
73372         Suggestion from Bruno Haible.
73373
73374 2000-06-23  Jim Meyering  <meyering@lucent.com>
73375
73376         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
73377
73378 2000-06-21  Jim Meyering  <meyering@lucent.com>
73379
73380         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
73381
73382 2000-06-21  Jim Meyering  <meyering@lucent.com>
73383
73384         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
73385         (noinst_HEADERS): Add getstr.h.
73386
73387         * lib/getline.c (getstr): Move into a separate file.
73388         * lib/getstr.c (getstr): New file, extracted from getline.c, with
73389         the following changes: new parameter, delim2; both delim[12]
73390         parameters have type `int', not `char'.  The latter would lose
73391         with 8-bit delimiters.
73392         * lib/getstr.h: New file.
73393
73394 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73395
73396         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
73397         than 1024, return a memory chunk of least possible size, instead
73398         of size PATH_MAX + 2. In the loop, increment the size proportionally.
73399         Use free/xmalloc instead of xrealloc to avoid copying for very long
73400         paths.
73401
73402 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73403
73404         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
73405         the empty string.
73406
73407 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73408
73409         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73410         address, not strdup.  Include <stdlib.h> and don't declare free().
73411
73412 2000-06-19  Jim Meyering  <meyering@lucent.com>
73413
73414         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73415
73416 2000-06-18  Jim Meyering  <meyering@lucent.com>
73417
73418         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73419
73420         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73421         `checking whether...' message to be consistent with that of the
73422         lstat test.
73423
73424 2000-06-18  Jim Meyering  <meyering@lucent.com>
73425
73426         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73427         Besides, these days every porting target provides a mkdir function.
73428
73429         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73430         needed. (this snippet comes from src/system.h).
73431
73432 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73433
73434         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73435
73436 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73437
73438         * lib/human.c (adjust_value): New function.
73439         (human_readable_inexact): Apply rounding style even when
73440         printing approximate values.
73441
73442 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73443
73444         * lib/human.c (human_readable_inexact): Allow an input block
73445         size that is not a multiple of the output block size, and vice versa.
73446         Reported by Piergiorgio Sartor.
73447
73448 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73449
73450         * lib/getdate.y (get_date): Apply relative times after time
73451         zone indicator, not before.  Reported by Todd A. Jacobs.
73452
73453 2000-06-13  Jim Meyering  <meyering@lucent.com>
73454
73455         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
73456
73457         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
73458
73459 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73460
73461         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73462
73463 2000-06-12  Jim Meyering  <meyering@lucent.com>
73464
73465         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73466         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73467         optional argument.
73468         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73469         the optional argument, `lib'.
73470
73471 2000-06-08  Jim Meyering  <meyering@lucent.com>
73472
73473         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73474
73475 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73476
73477         Rewrite largefile configuration so that we don't need to run
73478         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73479         AC_CANONICAL_HOST in configure.in -- jmm]
73480
73481         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73482         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73483         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73484         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73485         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73486         All uses changed.
73487         Instead of inspecting the output of getconf, try to compile the
73488         test program without and with the macro definition.
73489         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73490         for getconf.  Instead, check for the needed flags by compiling
73491         test programs.
73492
73493 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73494
73495         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73496
73497 2000-06-04  Jim Meyering  <meyering@lucent.com>
73498
73499         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73500         SunOS 4.1.4 for which gid_t is an unsigned type.
73501
73502 2000-06-03  Jim Meyering  <meyering@lucent.com>
73503
73504         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73505         now that autoconf requires that.
73506
73507         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73508         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73509         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73510
73511 2000-06-03  Jim Meyering  <meyering@lucent.com>
73512
73513         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73514
73515 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73516
73517         * m4/glibc21.m4: New file.
73518         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73519
73520 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73521
73522         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73523         newer, don't install charset.alias.
73524         * lib/config.charset: Change the Linux/glibc rules so they become empty
73525         on glibc-2.1 or newer.
73526
73527 2000-06-02  Jim Meyering  <meyering@lucent.com>
73528
73529         * lib/mountlist.c: Back out last change.  Instead, do this...
73530         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73531         me_dummy member using the same `ignore'-testing code.
73532         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73533         fs_type strings.
73534         From Mark D. Roth.
73535
73536 2000-05-29  Jim Meyering  <meyering@lucent.com>
73537
73538         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73539         mounts with the `ignore' attribute.  Based on a patch from
73540         Mark D. Roth.
73541
73542 2000-05-28  Jim Meyering  <meyering@lucent.com>
73543
73544         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73545         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73546         * m4/stat.m4: Likewise.
73547         * m4/lstat.m4: Likewise.
73548         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73549
73550         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73551         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73552
73553 2000-05-26  Jim Meyering  <meyering@lucent.com>
73554
73555         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73556
73557 2000-05-24  Jim Meyering  <meyering@lucent.com>
73558
73559         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73560         autoconf requires that.
73561         * m4/lib-check.m4: Likewise.
73562         * m4/jm-macros.m4: Likewise.
73563         * m4/strftime.m4: Likewise.
73564
73565         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73566         AC_CHECK_DECLS, now that autoconf requires that.
73567
73568 2000-05-22  Jim Meyering  <meyering@lucent.com>
73569
73570         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73571         * m4/lstat.m4: Likewise.
73572
73573 2000-05-22  Jim Meyering  <meyering@lucent.com>
73574
73575         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73576
73577 2000-05-20  Jim Meyering  <meyering@lucent.com>
73578
73579         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73580         (jm_PREREQ): Use it.
73581
73582 2000-05-18  Jim Meyering  <meyering@lucent.com>
73583
73584         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73585         back, too, since it may have been modified by allocate_entry.
73586         (hash_delete): Rewrite to use neither the assignment operator
73587         nor the comma operator in an if-expression.
73588
73589 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73590
73591         * lib/closeout.c:
73592         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73593         Remove; no longer needed.
73594         "quotearg.h": Add include.
73595         (file_name): Do not bother to explicitly initialize to NULL; it's less
73596         efficient on some hosts.
73597         (close_stdout_status): Remove test as to whether stdout was already
73598         closed; it breaks for the case "echo x | sort >&-".
73599         Quote file name colons.
73600         Do not assume that _("write error") lacks format strings.
73601
73602 2000-05-15  Jim Meyering  <meyering@lucent.com>
73603
73604         * lib/version-etc.c (version_etc_copyright): Update the copyright
73605         string used in all --version output.
73606
73607 2000-05-14  Jim Meyering  <meyering@lucent.com>
73608
73609         * lib/closeout.c (close_stdout_set_file_name): New function.
73610         (close_stdout_status): Use new file-scoped global.
73611         Return right away if fstat says the stdout file descriptor is invalid.
73612         * lib/closeout.h (close_stdout_set_file_name): Declare.
73613
73614 2000-05-10  Jim Meyering  <meyering@lucent.com>
73615
73616         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73617         (close_stdout_set_status): New function.
73618         * lib/closeout.h (close_stdout_set_status): Declare.
73619
73620 2000-05-09  Jim Meyering  <meyering@lucent.com>
73621
73622         * m4/gettext.m4: Rename this...
73623         * m4/libintl.m4: ...to this.
73624
73625 2000-05-08  Jim Meyering  <meyering@lucent.com>
73626
73627         * lib/long-options.c: Don't include closeout.h.
73628         (parse_long_options): Don't call close_stdout for --version.
73629
73630 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73631
73632         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73633         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73634         2.1.3 bug.  This avoids a clash when files like regex.c define
73635         _GNU_SOURCE.
73636
73637 2000-05-06  Jim Meyering  <meyering@lucent.com>
73638
73639         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73640         (AC_REPLACE_FUNCS): Add strnlen.
73641
73642         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73643         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73644
73645         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73646         AC_SEARCH_LIBS call for nanosleep.
73647         (LIB_NANOSLEEP): Set and AC_SUBST.
73648
73649 2000-05-06  Jim Meyering  <meyering@lucent.com>
73650
73651         * lib/strnlen.c: Undefine __strnlen and strnlen.
73652         [!weak_alias]: Define __strnlen to strnlen.
73653
73654         * lib/atexit.c: New file, from libiberty.
73655
73656 2000-05-06  Jim Meyering  <meyering@lucent.com>
73657
73658         * lib/closeout.c (close_stdout_status): Also check for errors on the
73659         stderr stream.
73660
73661 2000-05-05  Jim Meyering  <meyering@lucent.com>
73662
73663         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73664         AC_SEARCH_LIBS call for clock_gettime.
73665         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73666
73667         * m4/search-libs.m4: Update from autoconf.
73668
73669         su doesn't work on Solaris 2.6.
73670         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73671         <shadow.h>.  Reported by Dragos Harabor.
73672
73673 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73674
73675         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73676         memcpy instead of xmalloc, xrealloc, path_concat.
73677         (locale_charset): Treat empty environment variables as absent.
73678         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73679
73680 2000-05-04  Jim Meyering  <meyering@lucent.com>
73681
73682         * lib/getopt.c: Update from glibc.
73683         * lib/obstack.c: Likewise.
73684         * lib/obstack.h: Likewise.
73685         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73686         file
73687
73688         * lib/regex.h: Likewise.
73689         * lib/strndup.c: Likewise.
73690         * lib/strnlen.c: New file, from glibc.
73691
73692 2000-05-03  Jim Meyering  <meyering@lucent.com>
73693
73694         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73695
73696 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73697
73698         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73699         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73700         compile-time test, rather than inspecting host and OS, to
73701         decide whether to define _LARGEFILE_SOURCE.
73702
73703 2000-05-01  Jim Meyering  <meyering@lucent.com>
73704
73705         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73706
73707         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73708         Based on a patch from Bruno Haible.
73709
73710 2000-05-01  Jim Meyering  <meyering@lucent.com>
73711
73712         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73713
73714 2000-04-29  Jim Meyering  <meyering@lucent.com>
73715
73716         * lib/path-concat.c: Declare strdup only if it's not defined.
73717         * lib/canon-host.c: Likewise.
73718
73719 2000-04-28  Jim Meyering  <meyering@lucent.com>
73720
73721         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73722         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73723         is included first, then limits.h is included by locale.h by libintl.h.
73724         From John David Anglin.
73725
73726 2000-04-25  Jim Meyering  <meyering@lucent.com>
73727
73728         * lib/makepath.c (S_IRWXUGO): Define.
73729         (make_path): Always perform explicit chmod if MODE specifies any
73730         of the `special' permission bits.  Prompted by a bug report against
73731         install from Mate Wierdl and Joost van Baal.
73732
73733 2000-04-18  Jim Meyering  <meyering@lucent.com>
73734
73735         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73736         (jm_PREREQ): Use it.
73737
73738 2000-04-18  Jim Meyering  <meyering@lucent.com>
73739
73740         * lib/README: New file.
73741
73742         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73743         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73744
73745 2000-04-17  Jim Meyering  <meyering@lucent.com>
73746
73747         Get it right :-)
73748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73749         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73750         Suggestion from Akim Demaille.
73751
73752 2000-04-17  Jim Meyering  <meyering@lucent.com>
73753
73754         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73755         the definition of it to rpl_strftime also defined-away the system's
73756         declaration.
73757
73758 2000-04-15  Jim Meyering  <meyering@lucent.com>
73759
73760         Use `C' to denote so-called `contiguous' files, the same way
73761         that tar does.
73762         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73763         (ftypelet): Use S_ISCTG.
73764         From Michael Deutschmann.
73765
73766 2000-04-14  Jim Meyering  <meyering@lucent.com>
73767
73768         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73769         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73770         clobbered.
73771
73772 2000-04-14  Jim Meyering  <meyering@lucent.com>
73773
73774         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73775
73776 2000-04-13  Jim Meyering  <meyering@lucent.com>
73777
73778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73779         AH_VERBATIM to insert required #ifndef into config.h.in.
73780         Suggestion from Akim Demaille.
73781
73782 2000-04-12  Jim Meyering  <meyering@lucent.com>
73783
73784         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73785         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73786         Christian Krackowizer.
73787
73788         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73789         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73790         (AC_SYS_LARGEFILE): Require.
73791         (AM_C_PROTOTYPES): Require.
73792
73793 2000-04-08  Jim Meyering  <meyering@lucent.com>
73794
73795         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73796         names don't conflict.  Reported by Eli Zaretskii.
73797
73798 2000-04-07  Jim Meyering  <meyering@lucent.com>
73799
73800         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73801         sys/types.h, to work around system header problems on AIX 3.2.5.
73802         From Bruno Haible.
73803
73804 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73805
73806         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73807         bug.  Deal with the different error behavior of Irix iconv.
73808
73809 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73810
73811         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73812         IRIX if the installer said otherwise.
73813
73814 2000-04-05  Jim Meyering  <meyering@lucent.com>
73815
73816         Portability tweaks required for ultrix4.3.
73817         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73818         (jm_CHECK_DECLS): Add getutent to the list of functions.
73819         (_jm_DECL_HEADERS): Add utmpx.h.
73820         From John David Anglin.
73821
73822         * m4/strftime.m4: Back out the 2000-04-02 change.
73823         Instead of that change, simply undefine putenv in the test program.
73824
73825 2000-04-05  Jim Meyering  <meyering@lucent.com>
73826
73827         Portability tweaks required for ultrix4.3.
73828         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73829         getutent.
73830         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73831         * lib/canon-host.c: Declare strdup.
73832         * lib/path-concat.c: Likewise.
73833         From John David Anglin.
73834
73835 2000-04-04  Jim Meyering  <meyering@lucent.com>
73836
73837         Be more DOS 8.3-friendly.
73838         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73839         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73840         * lib/Makefile.am: Reflect renaming.
73841         Reported by Eli Zaretskii.
73842
73843         Use a temporary file name that won't clash with `charset.alias'
73844         in the DOS 8.3 name space.
73845         * lib/Makefile.am (charset_tmp): Define.
73846         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73847         (uninstall-local): Likewise.
73848         Reported by Eli Zaretskii.
73849
73850 2000-04-03  Jim Meyering  <meyering@lucent.com>
73851
73852         * m4/gettext.m4: Fix typo in comment.
73853
73854         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73855         textutils/configure.in).  Suggestion from Paul Eggert.
73856         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73857
73858 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73859
73860         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73861         variable in the shell rather than using putenv, which isn't
73862         portable.  This avoids the configure-time inter-test dependency
73863         on the potentially-renamed putenv function.
73864
73865 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73866
73867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73868         before checking struct stat.st_blksize, so that
73869         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73870
73871 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73872
73873         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73874         since strftime.c uses HAVE_STRFTIME to decide whether to use
73875         the underlying strftime.
73876
73877 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73878
73879         * lib/time/strftime.c (my_strftime): Make sure we call the system
73880         strftime, not ourselves, when invoking the underlying strftime.
73881
73882 2000-03-24  Jim Meyering  <meyering@lucent.com>
73883
73884         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73885         (charset_alias): Define.
73886         (install-exec-local): Factor out common code.
73887         (uninstall-local): Split lines longer than 80.
73888         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73889         (SUFFIXES): Define.
73890         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73891         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73892
73893 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73894
73895         * lib/config.charset: Output a line containing "Packages using this
73896         file".
73897         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73898         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73899         ref-del.sed): New rules.
73900
73901 2000-03-17  Jim Meyering  <meyering@lucent.com>
73902
73903         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73904         Otherwise, include <strings.h>
73905
73906 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73907
73908         * lib/unicodeio.c (utf8_wctomb): New function.
73909         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73910         format instead of in UCS-4 with platform dependent endianness.
73911
73912 2000-03-10  Jim Meyering  <meyering@lucent.com>
73913
73914         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73915         From Marco Franzen.
73916
73917 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73918
73919         * lib/savedir.c (savedir): Work even if directory size is
73920         negative; this can happen with some screwy NFS configurations.
73921
73922 2000-03-06  Jim Meyering  <meyering@lucent.com>
73923
73924         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73925         if it's NULL (because we ran out of memory).  From Bruno Haible.
73926
73927 2000-03-05  Jim Meyering  <meyering@lucent.com>
73928
73929         * lib/localcharset.c ("path-concat.h"): Include.
73930         (get_charset_aliases): Use path_concat instead of ANSI string
73931         concatenation.
73932
73933         * lib/unicodeio.h (PARAMS): Define.
73934         Use it to guard prototype.
73935
73936 2000-03-04  Jim Meyering  <meyering@lucent.com>
73937
73938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73939         for lib/localcharset.c.
73940
73941 2000-03-04  Jim Meyering  <meyering@lucent.com>
73942
73943         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73944         installing into it.
73945         (uninstall-local): Uncomment this rule so `make distcheck' works
73946         once again.
73947
73948         * lib/unicodeio.c (<errno.h>): Include it.
73949         (errno): Declare if not defined.
73950
73951         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73952
73953         * lib/config.charset: New version, incorporating remarks from a linux
73954         i18n mailing list.  From Bruno Haible.
73955
73956 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73957
73958         * m4/codeset.m4: New file.
73959         * m4/iconv.m4: New file.
73960         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73961
73962 2000-03-03  Jim Meyering  <meyering@lucent.com>
73963
73964         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73965
73966 2000-03-02  Jim Meyering  <meyering@lucent.com>
73967
73968         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73969         the messages come out on separate lines.
73970
73971         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73972         rather than jm_CHECK_DECLARATIONS.
73973         * m4/decl.m4: Remove now-unused file.
73974
73975         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73976         geteuid.
73977
73978 2000-03-02  Jim Meyering  <meyering@lucent.com>
73979
73980         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73981
73982 2000-03-01  Jim Meyering  <meyering@lucent.com>
73983
73984         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73985         * lib/unicodeio.c: Likewise.
73986
73987 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73988
73989         * lib/config.charset: New file.
73990         * lib/localcharset.c: New file.
73991         * lib/unicodeio.h, lib/unicodeio.c: New files.
73992         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73993         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73994         (noinst_HEADERS): Add unicodeio.h.
73995         (all-local, install-exec-local, charset.alias): New targets.
73996
73997 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73998
73999         * lib/quotearg.c (ALERT_CHAR): New macro.
74000         (quotearg_buffer_restyled): Use it.
74001
74002 2000-02-27  Jim Meyering  <meyering@lucent.com>
74003
74004         * m4/check-decl.m4: Add getenv to the list.
74005
74006 2000-02-27  Jim Meyering  <meyering@lucent.com>
74007
74008         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
74009         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
74010
74011         * lib/backupfile.c: Guard inclusion of stdlib.h with
74012         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
74013         Declare malloc if needed.
74014
74015         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
74016         `#ifndef HAVE_DECL..'
74017         now that autoconf always defines the HAVE_DECL_ symbols.
74018         * lib/human.c: Likewise.
74019         * lib/same.c: Likewise.
74020         * lib/strtoumax.c: Likewise.
74021
74022         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
74023         declaration check was not run.
74024         * lib/hash.c: Likewise.
74025         * lib/human.c: Likewise.
74026         * lib/same.c: Likewise.
74027         * lib/strtoumax.c: Likewise.
74028
74029         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
74030         `.', then first look up the entire `.'-containing string as a login
74031         name.
74032
74033 2000-02-23  Jim Meyering  <meyering@lucent.com>
74034
74035         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
74036         in place of my hack.
74037
74038 2000-02-18  Paul Eggert  <eggert@twinsun.com>
74039
74040         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
74041         (textint): New typedef.
74042         (parser_control): Member year changed from int to textint.
74043         All uses changed.
74044         (YYSTYPE): Removed; replaced by %union with int and textint members.
74045         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
74046         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
74047         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
74048         (tSNUMBER, tUNUMBER): Now of type <textintval>.
74049         (date, number, to_year): Use width of number in digits, not its value,
74050         to determine whether it's a 2-digit year, or a 2-digit time.
74051         (yylex): Store number of digits of numeric tokens.
74052         Reported by John Kendall.
74053
74054         (parser_control): Changed from struct parser_control to typedef (for
74055         consistency).  All uses changed.
74056
74057         (tID): Removed; not used.
74058         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
74059
74060 2000-02-14  Paul Eggert  <eggert@twinsun.com>
74061
74062         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
74063         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
74064
74065 2000-02-12  Jim Meyering  <meyering@lucent.com>
74066
74067         * lib/userspec.c (ISDIGIT): Define it.
74068         (isdigit): Remove definition.
74069         (is_number): Use ISDIGIT, not isdigit.
74070         <libintl.h>: Include.
74071         (_ and N_): Define.
74072         (parse_user_spec): Mark translatable strings.
74073
74074 2000-02-10  Jim Meyering  <meyering@lucent.com>
74075
74076         With these changes, nanosleep.[ch] are finally enough like the other
74077         lib/* replacement files to compile on a few more losing systems.
74078
74079         * lib/nanosleep.h: Don't include config.h.
74080         Remove prototype from declaration of nanosleep.
74081         (PARAMS): Remove now-unneeded definition.
74082         * lib/nanosleep.c: #undef nanosleep.
74083         (rpl_nanosleep): Rename from nanosleep.
74084
74085 2000-02-10  Jim Meyering  <meyering@lucent.com>
74086
74087         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
74088         gnu_nanosleep to rpl_nanosleep.
74089
74090 2000-02-09  Jim Meyering  <meyering@lucent.com>
74091
74092         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
74093         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
74094
74095 2000-02-08  Akim Demaille  <akim@epita.fr>
74096
74097         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
74098         `[' and `]' and remove uses of `changequote'.
74099         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
74100         (AC_SYS_LARGEFILE): Likewise.
74101         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
74102         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
74103         of changequote.
74104         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
74105         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
74106         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
74107         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
74108
74109 2000-02-05  Jim Meyering  <meyering@lucent.com>
74110
74111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
74112         Remove explicit use of AC_HEADER_TIME.  It is required by
74113         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
74114         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
74115         in autoconf whereby the expansion of the latter ended up preceding
74116         the expansion of its prerequisite, AC_HEADER_TIME.
74117         Reported by Volker Borchert.
74118
74119 2000-02-03  Jim Meyering  <meyering@lucent.com>
74120
74121         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
74122
74123 2000-02-03  Jim Meyering  <meyering@lucent.com>
74124
74125         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
74126         rather than with `#if HAVE_UTMPNAME'.
74127
74128 2000-02-02  Jim Meyering  <meyering@lucent.com>
74129
74130         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
74131         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
74132         Reported by Eli Zaretskii.
74133
74134 2000-02-01  Jim Meyering  <meyering@lucent.com>
74135
74136         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
74137
74138 2000-01-31  Jim Meyering  <meyering@lucent.com>
74139
74140         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
74141         functions.  Add the time.h and sys/time.h headers along with the
74142         AC_REQUIRE'ment of AC_HEADER_TIME.
74143
74144 2000-01-31  Jim Meyering  <meyering@lucent.com>
74145
74146         * lib/nanosleep.h (nanosleep): Guard declaration with
74147         `#if ! HAVE_DECL_NANOSLEEP'.
74148         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
74149         the declaration in that vendor's sys/timers.h.
74150         Reported by Christian Krackowizer.
74151
74152         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
74153         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
74154         (ISPRINT): Likewise.
74155         Reported by Tom Tromey.
74156
74157 2000-01-30  Jim Meyering  <meyering@lucent.com>
74158
74159         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
74160
74161         * m4/prereq.m4 (utmp_includes): Define.
74162         Check for ut_user and ut_name members in both struct utmpx
74163         and struct utmp.
74164
74165 2000-01-30  Jim Meyering  <meyering@lucent.com>
74166
74167         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
74168         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
74169         header files where only utmpx.ut_user is declared.
74170
74171         * lib/readutmp.h (UT_USER): Define.
74172
74173 2000-01-29  Jim Meyering  <meyering@lucent.com>
74174
74175         * m4/lib-check.m4: New file containing library-related checks from
74176         fileutils and sh-utils (textutils had none).
74177
74178 2000-01-28  Jim Meyering  <meyering@lucent.com>
74179
74180         * m4/perl.m4: Change format of warning message to look more like that
74181         from the missing script.  Suggestion from François Pinard.
74182
74183 2000-01-25  Jim Meyering  <meyering@lucent.com>
74184
74185         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
74186         well as time.h in the compile check.
74187         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
74188         Fix typo in cross-compiling case: s/yes/no/.
74189
74190 2000-01-23  Jim Meyering  <meyering@lucent.com>
74191
74192         * m4/jm-macros.m4: Move df-related tests here from
74193         fileutils/configure.in
74194
74195         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
74196         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
74197
74198         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
74199         s/space/ac_fsusage_space/.
74200         (jm_FILE_SYSTEM_USAGE): Take two parameters.
74201
74202         * m4/ftruncate.m4: New file (derived from part of
74203         fileutils/configure.in).
74204         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
74205         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
74206
74207         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
74208         AC_SUBST these here, rather than just in sh-util/configure.in, so
74209         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
74210         all the same.
74211         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
74212         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
74213         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
74214         (AC_SUBST(POW_LIBM)): Likewise.
74215         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
74216
74217 2000-01-23  Jim Meyering  <meyering@lucent.com>
74218
74219         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
74220         obstack.c.
74221
74222 2000-01-22  Jim Meyering  <meyering@lucent.com>
74223
74224         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
74225
74226         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
74227
74228         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
74229         configure.in
74230         (AC_CHECK_HEADERS): Likewise for sh-utils.
74231         (AC_CHECK_HEADERS): Likewise for textutils.
74232         Merge the three lists of headers.
74233
74234         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
74235         from fileutils' configure.in.
74236
74237         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
74238         code. Moved tests into their own function (_jm_DECL_HEADERS) in
74239         check-decl.m4.
74240
74241         * m4/check-decl.m4: Use #if rather than #ifdef.
74242         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
74243         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
74244         (_jm_DECL_HEADERS): Define new function.
74245         (jm_CHECK_DECLARATIONS): Require it.
74246
74247 2000-01-22  Jim Meyering  <meyering@lucent.com>
74248
74249         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
74250         [! HAVE_DECL_STRTOULL]: Declare strtoull.
74251         Required for some AIX systems.  Reported by Christian Krackowizer.
74252         [TESTING] (main): New function.
74253
74254         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
74255         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
74256         letters.
74257
74258         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
74259         iswprint.
74260
74261         * lib/strverscmp.c (ISDIGIT): Define.
74262         (strverscmp): Use ISDIGIT, not isdigit.
74263
74264 2000-01-19  Jim Meyering  <meyering@lucent.com>
74265
74266         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
74267         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
74268         defines `struct timespec' in <sys/time.h>
74269
74270         * m4/c-bs-a.m4: Remove uses of changequote altogether.
74271         Thanks to Akim for explaining.
74272
74273 2000-01-17  Paul Eggert  <eggert@twinsun.com>
74274
74275         * lib/nanosleep.c (nanosleep):
74276         Don't use SA_INTERRUPT to decide whether to call sigaction, as
74277         POSIX.1 doesn't require SA_INTERRUPT and some systems
74278         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
74279         it's been part of POSIX.1 since day 1 (in 1988).
74280
74281 2000-01-17  Jim Meyering  <meyering@lucent.com>
74282
74283         * lib/interlock: Remove unused file.  Reported by François Pinard.
74284
74285 2000-01-16  Paul Eggert  <eggert@twinsun.com>
74286
74287         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
74288         alert, backslash, formfeed, and vertical tab unnecessarily in
74289         shell quoting style.
74290
74291 2000-01-16  Jim Meyering  <meyering@lucent.com>
74292
74293         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
74294         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
74295         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
74296         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
74297
74298 2000-01-16  Jim Meyering  <meyering@lucent.com>
74299
74300         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
74301         because the latter didn't work.
74302
74303 2000-01-15  Jim Meyering  <meyering@lucent.com>
74304
74305         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
74306         (AC_REPLACE_FUNCS): Add memcpy and memset.
74307         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
74308         Add strpbrk.
74309         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
74310
74311 2000-01-12  Jim Meyering  <meyering@lucent.com>
74312
74313         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
74314         (jm_PREREQ): Use it.
74315         (jm_PREREQ_READUTMP): New macro.
74316         (jm_PREREQ): Use it.
74317
74318 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74319
74320         Quote multibyte characters correctly.
74321         * m4/c-bs-a.m4: New file.
74322         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
74323         (jm_PREREQ): Use it.
74324
74325 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74326
74327         * m4/uintmax_t.m4: Port to autoconf 2.13.
74328
74329 2000-01-08  Jim Meyering  <meyering@ascend.com>
74330
74331         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
74332         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
74333
74334 2000-01-04  Jim Meyering  <meyering@ascend.com>
74335
74336         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
74337         jm_STRUCT_DIRENT_D_TYPE.
74338         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
74339         jm_STRUCT_DIRENT_D_INO.
74340         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
74341         jm_STRUCT_UTIMBUF.
74342         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
74343         renamings.
74344         * m4/utime.m4: Likewise.
74345
74346         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
74347         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
74348
74349 2000-01-03  Paul Eggert  <eggert@twinsun.com>
74350
74351         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
74352         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
74353
74354 2000-01-02  Jim Meyering  <meyering@ascend.com>
74355
74356         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
74357         remember if this is necessary.
74358
74359 1999-12-26  Jim Meyering  <meyering@ascend.com>
74360
74361         * m4/jm-macros.m4: Use it here.
74362         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
74363
74364 1999-12-23  Jim Meyering  <meyering@ascend.com>
74365
74366         * m4/jm-macros.m4: Check for clock_gettime (moved from
74367         fileutils/configure.in)
74368         Check for gettimeofday.
74369
74370 1999-12-20  Jim Meyering  <meyering@ascend.com>
74371
74372         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
74373         autoconf-2.14a-1999-12-20.
74374
74375 1999-12-19  Jim Meyering  <meyering@ascend.com>
74376
74377         * m4/lstat-slash.m4: New file.
74378         * m4/jm-macros.m4: Use the new macro:
74379         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74380
74381 1999-12-07  Jim Meyering  <meyering@ascend.com>
74382
74383         * m4/perl.m4: Require that File::Compare be available, too.
74384         Too many systems seem to lack it.
74385
74386         * m4/strftime.m4: Add checks for most of the cpp macros tested in
74387         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
74388
74389 1999-11-18  Paul Eggert  <eggert@twinsun.com>
74390
74391         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
74392         problem with the QNX 4.25 shell, which doesn't propagate exit
74393         status of failed commands inside shell assignments.
74394
74395 1999-11-17  Jim Meyering  <meyering@ascend.com>
74396
74397         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
74398
74399 1999-11-07  Jim Meyering  <meyering@ascend.com>
74400
74401         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
74402
74403 1999-11-06  Jim Meyering  <meyering@ascend.com>
74404
74405         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
74406         * m4/jm-macros.m4 (jm_MACROS): Use it here.
74407
74408 1999-11-05  Jim Meyering  <meyering@ascend.com>
74409
74410         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74411         configure.in of textutils, fileutils, and sh-utils into this one
74412         (shared between those packages) file.
74413         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74414         AC_STRUCT_ST_BLKSIZE.
74415
74416 1999-11-03  Jim Meyering  <meyering@ascend.com>
74417
74418         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74419         of AC_CHECK_TYPE checks includes unistd.h.
74420         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74421         Suggestion from Akim Demaille.
74422
74423 1999-10-30  Jim Meyering  <meyering@ascend.com>
74424
74425         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74426         m4-quoted string.
74427         * m4/ls-mntd-fs.m4: Likewise.
74428         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74429         * m4/jm-winsz1.m4: Likewise.
74430
74431         * m4/const.m4: Remove file, since the fix made it into the experimental
74432         version of autoconf.
74433         * m4/mktime.m4: Likewise.
74434
74435         * m4/check-type.m4: Remove file, now that the latest version of
74436         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74437
74438         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74439         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74440         AC_CHECK_TYPE.
74441
74442 1999-10-04  Jim Meyering  <meyering@ascend.com>
74443
74444         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74445
74446 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74447
74448         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
74449         2.95.1 bug with HP-UX 10.20.
74450
74451 1999-09-17  Jim Meyering  <meyering@ascend.com>
74452
74453         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
74454         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
74455         due to missing strdup (against sh-utils-2.0).
74456
74457 1999-08-29  Jim Meyering  <meyering@ascend.com>
74458
74459         * m4/jm-macros.m4: Require jm_BISON.
74460         * m4/bison.m4: New file.
74461
74462 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74463
74464         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74465         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74466
74467 1999-08-05  Jim Meyering  <meyering@ascend.com>
74468
74469         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74470         to avoid conflicts with `conftest' on 8+3 filesystems.
74471         Suggestion from Eli Zaretskii.
74472
74473 1999-08-04  Jim Meyering  <meyering@ascend.com>
74474
74475         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74476         fileutils and sh-utils (textutils's getline test was inadequate).
74477         (AM_FUNC_GETLINE): Run this test.
74478         (AC_CHECK_FUNCS): Check for getdelim.
74479         Reported by Bob Proulx.
74480
74481 1999-08-02  Jim Meyering  <meyering@ascend.com>
74482
74483         * m4/jm-macros.m4: Add a comment.
74484
74485 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74486
74487         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74488         <inttypes.h> defines strtoumax as a macro (and not as a
74489         function).
74490
74491 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74492
74493         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74494         that we can shift, multiply and divide unsigned long long
74495         values; Ultrix cc can't do it.
74496
74497 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74498
74499         * m4/mktime.m4: New file, which is a preview of what should appear
74500         in the next public autoconf release.
74501
74502 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74503
74504         * m4/lfs.m4: Remove this file.
74505         * m4/largefile.m4: New file.  It contains the old contents of
74506         lfs.m4, except that all names with prefix AC_LFS have been
74507         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74508         compatible with future autoconf versions.  Also, some minor m4
74509         quoting problems have been fixed.
74510
74511 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74512
74513         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74514         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74515         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74516         and simplify the shell code.
74517
74518 1999-08-01  Jim Meyering  <meyering@ascend.com>
74519
74520         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74521         m4.
74522
74523 1999-07-20  Jim Meyering  <meyering@ascend.com>
74524
74525         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74526
74527 1999-07-15  Jim Meyering  <meyering@ascend.com>
74528
74529         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74530
74531 1999-05-22  Jim Meyering  <meyering@ascend.com>
74532
74533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74534
74535 1999-05-20  Jim Meyering  <meyering@ascend.com>
74536
74537         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74538         Add a colon after each `then' in case $4 is empty.
74539
74540 1999-05-16  Jim Meyering  <meyering@ascend.com>
74541
74542         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74543
74544 1999-05-10  Jim Meyering  <meyering@ascend.com>
74545
74546         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74547
74548         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74549         AC_FUNC_MKTIME.
74550
74551 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74552
74553         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74554
74555 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74556
74557         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74558         not CPPFLAGS, so that linking works correctly in IRIX.
74559
74560 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74561
74562         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74563
74564 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74565
74566         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74567         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74568         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74569         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74570         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74571
74572         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74573
74574 1999-04-20  Jim Meyering  <meyering@ascend.com>
74575
74576         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74577         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74578         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74579
74580 1999-04-18  Jim Meyering  <meyering@ascend.com>
74581
74582         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74583         * m4/jm-macros.m4: Use it.
74584
74585 1999-04-06  Jim Meyering  <meyering@ascend.com>
74586
74587         * m4/strftime.m4: Remove test for %f.
74588
74589 1999-03-29  Jim Meyering  <meyering@ascend.com>
74590
74591         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74592         superset of the AC_TYPE_* checks in the textutils, fileutils,
74593         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74594         AC_TYPE_PID_T.
74595
74596 1999-03-28  Jim Meyering  <meyering@ascend.com>
74597
74598         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74599         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74600         replaced e.g., in the *.sh files of the sh-utils.
74601
74602 1999-03-20  Jim Meyering  <meyering@ascend.com>
74603
74604         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74605         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74606         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74607
74608 1999-03-19  Jim Meyering  <meyering@ascend.com>
74609
74610         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74611
74612 1999-03-12  Jim Meyering  <meyering@ascend.com>
74613
74614         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74615
74616 1999-03-07  Jim Meyering  <meyering@ascend.com>
74617
74618         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74619         declared.
74620
74621 1999-02-17  Jim Meyering  <meyering@ascend.com>
74622
74623         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74624         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74625
74626 1999-02-07  Jim Meyering  <meyering@ascend.com>
74627
74628         * m4/group-member.m4: New file -- extracted from sh-utils'
74629         configure.in.
74630
74631         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74632         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74633
74634 1999-02-06  Jim Meyering  <meyering@ascend.com>
74635
74636         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74637         * m4/fnmatch.m4: Likewise.
74638         * m4/getgroups.m4: Likewise.
74639         * m4/lstat.m4: Likewise.
74640         * m4/malloc.m4: Likewise.
74641         * m4/putenv.m4: Likewise.
74642         * m4/realloc.m4: Likewise.
74643         * m4/regex.m4: Likewise.
74644         * m4/stat.m4: Likewise.
74645         * m4/strftime.m4: Likewise.
74646         Suggestion from Alain Magloire.
74647
74648         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74649         * m4/fnmatch.m4: Likewise.
74650         * m4/getgroups.m4: Likewise.
74651         * m4/getline.m4: Likewise.
74652         * m4/lstat.m4: Likewise.
74653         * m4/malloc.m4: Likewise.
74654         * m4/memcmp.m4: Likewise.
74655         * m4/putenv.m4: Likewise.
74656         * m4/realloc.m4: Likewise.
74657         * m4/regex.m4: Likewise.
74658         * m4/stat.m4: Likewise.
74659         * m4/strftime.m4: Likewise.
74660         Suggestion from Alain Magloire.
74661
74662         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74663         an argument.
74664
74665         * m4/regex.m4: Add a run-time Test for proper operation of
74666         re_compile_pattern.
74667
74668 1999-01-31  Jim Meyering  <meyering@ascend.com>
74669
74670         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74671
74672 1999-01-30  Jim Meyering  <meyering@ascend.com>
74673
74674         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74675
74676         * m4/jm-mktime.m4: Make this a wrapper around the official
74677         AM_FUNC_MKTIME rather than my private copy, now that the official one
74678         is up to date.
74679         * m4/mktime.m4: Remove file.
74680
74681         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74682         * m4/uptime.m4: Likewise.
74683         * m4/uintmax_t.m4: Likewise.
74684
74685 1999-01-28  Jim Meyering  <meyering@ascend.com>
74686
74687         * m4/jm-macros.m4: Use jm_AFS.
74688         * m4/afs.m4: New file (from fileutils' configure.in).
74689
74690         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74691         * m4/chown.m4: Likewise.
74692         * m4/d-ino.m4: Likewise.
74693         * m4/d-type.m4: Likewise.
74694         * m4/fnmatch.m4: Likewise.
74695         * m4/getgroups.m4: Likewise.
74696         * m4/gettext.m4: Likewise.
74697         * m4/jm-mktime.m4: Likewise.
74698         * m4/jm-winsz2.m4: Likewise.
74699         * m4/lcmessage.m4: Likewise.
74700         * m4/ls-mntd-fs.m4: Likewise.
74701         * m4/malloc.m4: Likewise.
74702         * m4/memcmp.m4: Likewise.
74703         * m4/putenv.m4: Likewise.
74704         * m4/realloc.m4: Likewise.
74705         * m4/st_mtim.m4: Likewise.
74706         * m4/strftime.m4: Likewise.
74707
74708 1999-01-16  Jim Meyering  <meyering@ascend.com>
74709
74710         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74711         (ARGMATCH_DIE_DECL): Define.
74712
74713 1999-01-12  Jim Meyering  <meyering@ascend.com>
74714
74715         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74716         Reported by Lars Hecking.
74717
74718 1999-01-10  Jim Meyering  <meyering@ascend.com>
74719
74720         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74721         gross kludge.
74722         * m4/inttypes_h.m4: Likewise.
74723         * m4/lstat.m4: Likewise.
74724         * m4/malloc.m4: Likewise.
74725         * m4/readdir.m4: Likewise.
74726         * m4/realloc.m4: Likewise.
74727         * m4/st_dm_mode.m4: Likewise.
74728         * m4/stat.m4: Likewise.
74729         * m4/utimbuf.m4: Likewise.
74730         * m4/utimes.m4: Likewise.
74731
74732         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74733         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74734         comments in config.h.in are meaningful.
74735
74736         * m4/jm-macros.m4: Require autoconf-2.13 here.
74737
74738         * m4/regex.m4: By default, don't use the included regex.c on systems
74739         with glibc 2.  Suggestion from Uli Drepper.
74740
74741 1999-01-02  Jim Meyering  <meyering@ascend.com>
74742
74743         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74744
74745 1998-12-18  Jim Meyering  <meyering@ascend.com>
74746
74747         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74748         Based on a suggestion from Lars Hecking.
74749
74750 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74751
74752         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74753
74754 1998-11-16  Jim Meyering  <meyering@ascend.com>
74755
74756         * m4/lfs.m4: Double-quote the `uname...` expression.
74757
74758 1998-11-14  Jim Meyering  <meyering@ascend.com>
74759
74760         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74761         * m4/stat.m4: Likewise.
74762
74763 1998-11-03  Jim Meyering  <meyering@ascend.com>
74764
74765         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74766         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74767
74768 1998-10-18  Jim Meyering  <meyering@ascend.com>
74769
74770         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74771
74772 1998-10-17  Jim Meyering  <meyering@ascend.com>
74773
74774         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74775         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74776         calls for those previously hard-coded headers.  Instead, take a new
74777         parameter.
74778         (jm_CHECK_DECLARATIONS): Reflect interface change.
74779         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74780         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74781
74782         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74783
74784 1998-10-14  Jim Meyering  <meyering@ascend.com>
74785
74786         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74787         instead of "TZ=America/Vancouver".  From Paul Eggert.
74788
74789 1998-10-11  Jim Meyering  <meyering@ascend.com>
74790
74791         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74792         This adds a test for a recently added compatibility fix for mktime.c.
74793         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74794
74795 1998-09-27  Jim Meyering  <meyering@ascend.com>
74796
74797         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74798
74799         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74800         ../configure.in, including a change from Gordon Matzigkeit to allow
74801         cross-compiling for the Hurd.
74802
74803         * m4/glibc.m4: New file/macro to test for the GNU C Library
74804         versions 1 and 2.  From Gordon Matzigkeit.
74805         Indent.
74806
74807 1998-09-21  Jim Meyering  <meyering@ascend.com>
74808
74809         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74810
74811 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74812
74813         Port nanosecond-resolution times to UnixWare 2.1.2 and
74814         pedantic Solaris 2.6.
74815
74816         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74817         AC_STRUCT_ST_MTIM.
74818         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74819         Generate name of ns member, instead of just 1 or undef.
74820         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74821
74822 1998-08-15  Jim Meyering  <meyering@ascend.com>
74823
74824         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74825         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74826         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74827         instead of jm_TYPE_SSIZE_T.
74828
74829 1998-08-12  Jim Meyering  <meyering@ascend.com>
74830
74831         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74832
74833 1998-08-02  Jim Meyering  <meyering@ascend.com>
74834
74835         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74836         in acconfig.h manually.
74837
74838 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74839
74840         * m4/st_mtim.m4: New file.
74841
74842 1998-07-28  Jim Meyering  <meyering@ascend.com>
74843
74844         * m4/utimes.m4: Undef stat.
74845
74846 1998-07-25  Jim Meyering  <meyering@ascend.com>
74847
74848         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74849         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74850
74851 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74852
74853         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74854         uid and gid actually remain unchanged.
74855
74856 1998-07-07  Jim Meyering  <meyering@ascend.com>
74857
74858         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74859
74860 1998-07-04  Jim Meyering  <meyering@ascend.com>
74861
74862         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74863         to prove that this macro can be used in packages without regex.c.
74864
74865 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74866
74867         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74868         is to be used.
74869
74870 1998-07-03  Jim Meyering  <meyering@ascend.com>
74871
74872         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74873
74874         * m4/gettext.m4: New file -- from gettext-0.10.35.
74875         * m4/lcmessage.m4: Likewise.
74876         * m4/progtest.m4: Likewise.
74877
74878         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74879         * m4/jm-macros.m4: Require the new macro.
74880
74881 1998-06-29  Jim Meyering  <meyering@ascend.com>
74882
74883         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74884         for the definition of NGROUPS (used in a system header included
74885         by sys/mount.h).
74886
74887 1998-06-28  Jim Meyering  <meyering@ascend.com>
74888
74889         * m4/ls-mntd-fs.m4: New file.
74890         * m4/fstypename.m4: New file.
74891
74892         * m4/jm-macros.m4: Require the new macro.
74893         * m4/jm-glibc-io.m4: New file.
74894
74895 1998-05-19  Jim Meyering  <meyering@ascend.com>
74896
74897         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74898         * m4/lchown.m4: New file.
74899
74900         * m4/Makefile.am.in: New file.
74901         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74902
74903 1998-05-14  Jim Meyering  <meyering@ascend.com>
74904
74905         * m4/Makefile.am (EXTRA_DIST): Add them.
74906         * m4/jm-macros.m4: New file.
74907         * m4/utimbuf.m4: New file.
74908
74909 1998-05-12  Jim Meyering  <meyering@ascend.com>
74910
74911         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74912
74913 1998-05-11  Jim Meyering  <meyering@ascend.com>
74914
74915         * m4/isc-posix.m4: New file.
74916
74917 1998-05-10  Jim Meyering  <meyering@ascend.com>
74918
74919         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74920
74921 1998-05-09  Jim Meyering  <meyering@ascend.com>
74922
74923         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74924         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74925         with automake.
74926
74927         * m4/ssize_t.m4: New file.
74928         * m4/mktime.m4: Remove file -- the new automake has this now.
74929
74930 1998-04-26  Jim Meyering  <meyering@ascend.com>
74931
74932         * m4/assert.m4: New file.
74933         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74934
74935 1998-04-05  Jim Meyering  <meyering@ascend.com>
74936
74937         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74938         (jm_PREREQ): Use it here.
74939
74940 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74941
74942         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74943         in acconfig.h.
74944
74945 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74946
74947         * m4/prereq.m4: New file.
74948         * m4/error.m4: New file.
74949         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74950
74951 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74952
74953         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74954         cache-check for the same variable -- that defeated the purpose of
74955         the test; the test program was never run.  This was a problem only
74956         on systems with losing getline functions -- HP-UX 10.20 is one.
74957         Reported by Bjorn Helgaas.
74958
74959 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74960
74961         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74962
74963 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74964
74965         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74966
74967         * m4/const.m4: New file.  Use an initializer in this declaration
74968         typedef int charset[2]; const charset x;
74969         Reported by Bob Glickstein.
74970
74971 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74972
74973         * m4/chown.m4: Fix reversed types on -1 args to chown.
74974         From Kaveh Ghazi.
74975
74976 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74977
74978         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74979         Add lseek and memchr.
74980
74981         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74982         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74983         have a 20-character limit on names.
74984
74985 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74986
74987         * m4/inttypes_h.m4: New file.
74988         * m4/uintmax_t.m4: New file.
74989         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74990
74991
74992         -----
74993
74994         Local Variables:
74995         coding: utf-8
74996         End:
74997
74998         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74999
75000         Copying and distribution of this file, with or without
75001         modification, are permitted provided the copyright notice
75002         and this notice are preserved.